1 2008-03-03 Sterling Augustine <sterling@tensilica.com>
2 Bob Wilson <bob.wilson@acm.org>
4 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
5 (md_begin): Initialize it.
6 (resources_conflict): Use it.
8 2008-03-03 Sterling Augustine <sterling@tensilica.com>
10 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
12 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
13 H.J. Lu <hongjiu.lu@intel.com>
16 * read.c (pseudo_set): Don't allow global register symbol.
18 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
21 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
24 * write.c (write_object_file): Don't allow symbols which were
25 equated to register. Stop if there is an error.
27 2008-03-01 Alan Modra <amodra@bigpond.net.au>
29 * config/tc-ppc.h (struct _ppc_fix_extra): New.
31 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
32 * config/tc-ppc.c (ppu_cpu): Make global.
33 (ppc_insert_operand): Add ppu_cpu parameter.
34 (md_assemble): Adjust for above change.
35 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
37 2008-02-22 Nick Clifton <nickc@redhat.com>
39 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
40 targeted ARM ports, otherwise just skip generating the reloc.
42 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
44 * doc/c-i386.texi: Update -march= and .arch.
46 2008-02-18 Nick Clifton <nickc@redhat.com>
48 * config/tc-mn10300.c (has_known_symbol_location): New function.
49 Do not regard weak symbols as having a known location.
50 (md_estimate_size_before_relax): Use new function.
51 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
53 2008-02-18 Jan Beulich <jbeulich@novell.com>
55 * config/tc-i386.c (match_template): Disallow 'l' suffix when
56 currently selected CPU has no 32-bit support.
57 (parse_real_register): Do not return registers not available on
58 currently selected CPU.
60 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
62 * config/tc-i386.c (process_immext): Fix format.
64 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
66 * config/tc-i386.c (inoutportreg): New.
67 (process_immext): New.
68 (md_assemble): Use it.
69 (update_imm): Use imm16 and imm32s.
70 (i386_att_operand): Use inoutportreg.
72 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
74 * config/tc-i386.c (operand_type_all_zero): New.
75 (operand_type_set): Likewise.
76 (operand_type_equal): Likewise.
77 (cpu_flags_all_zero): Likewise.
78 (cpu_flags_set): Likewise.
79 (cpu_flags_equal): Likewise.
80 (UINTS_ALL_ZERO): Removed.
81 (UINTS_SET): Likewise.
82 (UINTS_CLEAR): Likewise.
83 (UINTS_EQUAL): Likewise.
84 (cpu_flags_match): Updated.
85 (smallest_imm_type): Likewise.
86 (set_cpu_arch): Likewise.
87 (md_assemble): Likewise.
88 (optimize_imm): Likewise.
89 (match_template): Likewise.
90 (process_suffix): Likewise.
91 (update_imm): Likewise.
92 (process_drex): Likewise.
93 (process_operands): Likewise.
94 (build_modrm_byte): Likewise.
95 (i386_immediate): Likewise.
96 (i386_displacement): Likewise.
97 (i386_att_operand): Likewise.
98 (parse_real_register): Likewise.
99 (md_parse_option): Likewise.
100 (i386_target_format): Likewise.
102 2008-02-14 Dimitry Andric <dimitry@andric.com>
105 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
106 pointer past the comma after parsing a floating point register
109 2008-02-14 Hakan Ardo <hakan@debian.org>
112 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
114 (avr_operand): Disallow post-increment addressing in the lpm
115 instruction for the attiny26.
117 2008-02-13 Jan Beulich <jbeulich@novell.com>
119 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
120 if not in Intel mode.
121 (i386_intel_operand): Ignore segment overrides in immediate and
123 (intel_e11): Range-check i.mem_operands before use as array
124 index. Filter out FLAT for uses other than as segment override.
125 (intel_get_token): Remove broken promotion of "FLAT:" to mean
128 2008-02-13 Jan Beulich <jbeulich@novell.com>
130 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
132 2008-02-13 Jan Beulich <jbeulich@novell.com>
134 * config/tc-i386.c (allow_pseudo_reg): New.
135 (parse_real_register): Check for NULL just once. Allow all
136 register table entries when allow_pseudo_reg is non-zero.
137 Don't allow any registers without type when allow_pseudo_reg
139 (tc_x86_regname_to_dw2regnum): Replace with ...
140 (tc_x86_parse_to_dw2regnum): ... this.
141 (tc_x86_frame_initial_instructions): Adjust for above change.
142 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
143 (tc_parse_to_dw2regnum): New.
144 (tc_x86_regname_to_dw2regnum): Replace with ...
145 (tc_x86_parse_to_dw2regnum): ... this.
146 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
147 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
150 2008-02-12 Nick Clifton <nickc@redhat.com>
152 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
154 (tic4x_insn_add): Likewise.
155 (md_begin): Drop cast that was discarding a const qualifier.
156 * config/tc-d30v.c (get_reloc): Add const qualifier to op
158 (build_insn): Drop cast that was discarding a const qualifier.
160 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
162 * config/tc-i386.c (cpu_arch): Add .xsave.
163 (md_show_usage): Add .xsave.
165 * doc/c-i386.texi: Add xsave to -march=.
167 2008-02-07 Alan Modra <amodra@bigpond.net.au>
169 * read.c (s_weakref): Don't pass unadorned NULL to concat.
170 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
172 2008-02-05 Sterling Augustine <sterling@tensilica.com>
174 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
175 checks into assertions. When relaxation produces an operation that
176 does not fit in the current FLIX instruction, make sure that the
177 operation is relaxed as needed to account for being placed following
178 the current instruction.
180 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
183 * configure: Regenerated.
185 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
187 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
189 2008-01-31 Marc Gauthier <marc@tensilica.com>
191 * configure.tgt (xtensa*-*-*): Recognize processor variants.
193 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
195 * read.c: (emit_expr): Correct for mingw use of printf size
198 2008-01-24 Bob Wilson <bob.wilson@acm.org>
200 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
201 can only be encoded in FLIX instructions but are not specified as such.
202 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
205 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
207 * NEWS: Mention new command line options for x86 targets.
209 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
211 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
213 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
215 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
217 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
219 * config/tc-i386.c (md_show_usage): Show more processors for
222 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
224 * config/tc-i386.c (i386_target_format): Remove cpummx2.
226 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
228 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
229 (XXX_MNEM_SUFFIX): Likewise.
230 (END_OF_INSN): Likewise.
231 (templates): Likewise.
232 (modrm_byte): Likewise.
233 (rex_byte): Likewise.
234 (DREX_XXX): Likewise.
235 (drex_byte): Likewise.
236 (sib_byte): Likewise.
237 (processor_type): Likewise.
238 (arch_entry): Likewise.
239 (cpu_sub_arch_name): Remove const.
240 (cpu_arch): Add .vmx and .smx.
241 (set_cpu_arch): Append cpu_sub_arch_name.
242 (md_parse_option): Support -march=CPU[,+EXTENSION...].
243 (md_show_usage): Updated.
245 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
246 (XXX_MNEM_SUFFIX): Likewise.
247 (END_OF_INSN): Likewise.
248 (templates): Likewise.
249 (modrm_byte): Likewise.
250 (rex_byte): Likewise.
251 (DREX_XXX): Likewise.
252 (drex_byte): Likewise.
253 (sib_byte): Likewise.
254 (processor_type): Likewise.
255 (arch_entry): Likewise.
257 * doc/as.texinfo: Update i386 -march option.
259 * doc/c-i386.texi: Update -march= for ISA.
261 2008-01-18 Bob Wilson <bob.wilson@acm.org>
263 * config/tc-xtensa.c (xtensa_leb128): New function.
264 (md_pseudo_table): Use it for sleb128 and uleb128.
265 (is_leb128_expr): New internal flag.
266 (xtensa_symbol_new_hook): Check new flag.
268 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
270 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
271 at90usb82, at90usb162.
272 * doc/c-avr.texi: Change architecture grouping for at90usb82,
274 These changes support the new avr35 architecture group in gcc.
276 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
278 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
279 suffix for AT&T syntax.
281 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
283 * config/tc-i386.c (match_reg_size): New.
284 (match_mem_size): Likewise.
285 (operand_size_match): Likewise.
286 (operand_type_match): Also clear all size fields.
287 (match_template): Skip Intel syntax when in AT&T syntax.
288 Call operand_size_match to check operand size.
289 (i386_att_operand): Set the mem field to 1 for memory
291 (i386_intel_operand): Likewise.
293 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
296 * config/tc-i386.c (_i386_insn): Update comment.
297 (operand_type_match): Also clear unspecified.
298 (operand_type_register_match): Likewise.
299 (parse_operands): Initialize unspecified.
300 (i386_intel_operand): Likewise.
301 (match_template): Check memory and accumulator operand size.
302 (i386_att_operand): Clear unspecified on register operand.
303 (intel_e11): Likewise.
304 (intel_e09): Set operand size and clean unspecified for
307 2008-01-11 Andreas Schwab <schwab@suse.de>
309 * read.c (s_space): Declare `repeat' as offsetT.
311 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
313 * config/tc-i386.c (match_template): Check processor support
316 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
318 * config/tc-i386.c (match_template): Continue if processor
321 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
323 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
324 unwind personality function address.
326 2008-01-09 Bob Wilson <bob.wilson@acm.org>
328 * dwarf2dbg.c (out_sleb128): Delete.
329 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
330 (out_fixed_inc_line_addr): Delete.
331 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
332 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
333 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
334 (process_entries): Remove calls to out_fixed_inc_line_addr. When
335 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
336 * read.h (emit_expr_fix): New prototype.
337 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
338 (emit_expr_fix): New.
340 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
342 * config/tc-i386.c (match_template): Check register size
343 only when size of operands can be encoded the canonical way.
345 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
347 * config/tc-i386.c (i386_operand): Renamed to ...
348 (i386_att_operand): This.
349 (parse_operands): Updated.
351 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
353 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
355 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
357 (md_assemble): Remove Intel mode workaround.
358 (match_template): Check support for old gcc, AT&T mnemonic
360 (md_parse_option): Don't set intel_mnemonic to 0 for
363 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
365 * config/tc-i386.h: Update copyright to 2008.
367 2008-01-04 Nick Clifton <nickc@redhat.com>
369 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
370 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
372 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
374 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
377 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
379 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
380 (cpu_flags_not): Likewise.
381 (cpu_flags_match): Updated to check 64bit and arch.
382 (set_code_flag): Remove cpu_arch_flags_not.
383 (set_16bit_gcc_code_flag): Likewise.
384 (set_cpu_arch): Likewise.
385 (md_begin): Likewise.
386 (parse_insn): Call cpu_flags_match to check 64bit and arch.
387 (match_template): Likewise.
389 2008-01-03 Jakub Jelinek <jakub@redhat.com>
391 * config/tc-i386.c (process_drex): Initialize modrm_reg and
392 modrm_regmem to 0 instead of None.
394 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
396 * config/tc-i386.c (match_template): Use the xmmword field
399 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
401 * config/tc-i386.c (process_suffix): Fix a typo.
403 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
406 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
407 Check memory size in Intel mode.
408 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
409 (intel_e09): Likewise.
411 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
413 2008-01-02 Catherine Moore <clm@codesourcery.com>
415 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
417 For older changes see ChangeLog-2007
423 version-control: never