OSDN Git Service

2008-03-14 Sterling Augustine <sterling@tensilica.com>
[pf3gnuchains/pf3gnuchains3x.git] / gas / ChangeLog
1 2008-03-14  Sterling Augustine  <sterling@tensilica.com>
2         
3         * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
4         RELAX_LOOP_END_ADD_NOP.
5         
6 2008-03-13  Evandro Menezes  <evandro@yahoo.com>
7
8         PR gas/5895
9         * read.c (s_mexit): Warn if attempting to exit a macro when not
10         inside a macro definition.
11
12 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
13
14         * Makefile.am: Run "make dep-am".
15         * Makefile.in: Regenerate.
16         * configure: Regenerate.
17
18 2008-03-09  Paul Brook  <paul@codesourcery.com>
19
20         * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
21         * doc/c-arm.texi: Add cortex-a9.
22
23 2008-03-09  Paul Brook  <paul@codesourcery.com>
24
25         * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
26         (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
27         (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
28         (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
29         * doc/c-arm.texi: Document new ARM FPU variants.
30
31 2008-03-07  Paul Brook  <paul@codesourcery.com>
32
33         * config/tc-arm.c (md_apply_fix): Use correct offset range.
34
35 2008-03-07  Alan Modra  <amodra@bigpond.net.au>
36
37         * config/tc-ppc.c (ppc_setup_opcodes): Tidy.  Add code to test
38         for strict ordering of powerpc_opcodes, but disable for now.
39
40 2008-03-04  Paul Brook  <paul@codesourcery.com>
41
42         * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
43         (arm_ext_v7m): Rename...
44         (arm_ext_m): ... to this.  Include v6-M.
45         (do_t_add_sub): Allow narrow low-reg non flag setting adds.
46         (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
47         (md_assemble): Allow wide msr instructions.
48         (insns): Add classifications for v6-m instructions.
49         (arm_cpu_option_table): Add cortex-m1.
50         (arm_arch_option_table): Add armv6-m.
51         (cpu_arch): Add ARM_ARCH_V6M.  Fix numbering of other v6 variants.
52
53 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
54             Bob Wilson  <bob.wilson@acm.org>
55         
56         * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
57         (md_begin): Initialize it.
58         (resources_conflict): Use it.
59         
60 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
61         
62         * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
63         
64 2008-03-03  Denys Vlasenko <vda.linux@googlemail.com>
65             H.J. Lu  <hongjiu.lu@intel.com>
66
67         PR gas/5543
68         * read.c (pseudo_set): Don't allow global register symbol.
69
70         * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
71         global.
72
73 2008-03-03  H.J. Lu  <hongjiu.lu@intel.com>
74
75         PR gas/5543
76         * write.c (write_object_file): Don't allow symbols which were
77         equated to register.  Stop if there is an error.
78
79 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
80
81         * config/tc-ppc.h (struct _ppc_fix_extra): New.
82         (ppc_cpu): Declare.
83         (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
84         * config/tc-ppc.c (ppu_cpu): Make global.
85         (ppc_insert_operand): Add ppu_cpu parameter.
86         (md_assemble): Adjust for above change.
87         (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
88
89 2008-02-22  Nick Clifton  <nickc@redhat.com>
90
91         * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
92         targeted ARM ports, otherwise just skip generating the reloc.
93
94 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
95
96         * doc/c-i386.texi: Update -march= and .arch.
97
98 2008-02-18  Nick Clifton  <nickc@redhat.com>
99
100         * config/tc-mn10300.c (has_known_symbol_location): New function.
101         Do not regard weak symbols as having a known location.
102         (md_estimate_size_before_relax): Use new function.
103         (md_pcrel_from): Do not compute a pcrel against a weak symbol.
104
105 2008-02-18  Jan Beulich  <jbeulich@novell.com>
106
107         * config/tc-i386.c (match_template): Disallow 'l' suffix when
108         currently selected CPU has no 32-bit support.
109         (parse_real_register): Do not return registers not available on
110         currently selected CPU.
111
112 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * config/tc-i386.c (process_immext): Fix format.
115
116 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
117
118         * config/tc-i386.c (inoutportreg): New.
119         (process_immext): New.
120         (md_assemble): Use it.
121         (update_imm): Use imm16 and imm32s.
122         (i386_att_operand): Use inoutportreg. 
123
124 2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>
125
126         * config/tc-i386.c (operand_type_all_zero): New.
127         (operand_type_set): Likewise.
128         (operand_type_equal): Likewise.
129         (cpu_flags_all_zero): Likewise.
130         (cpu_flags_set): Likewise.
131         (cpu_flags_equal): Likewise.
132         (UINTS_ALL_ZERO): Removed.
133         (UINTS_SET): Likewise.
134         (UINTS_CLEAR): Likewise.
135         (UINTS_EQUAL): Likewise.
136         (cpu_flags_match): Updated.
137         (smallest_imm_type): Likewise.
138         (set_cpu_arch): Likewise.
139         (md_assemble): Likewise.
140         (optimize_imm): Likewise.
141         (match_template): Likewise.
142         (process_suffix): Likewise.
143         (update_imm): Likewise.
144         (process_drex): Likewise.
145         (process_operands): Likewise.
146         (build_modrm_byte): Likewise.
147         (i386_immediate): Likewise.
148         (i386_displacement): Likewise.
149         (i386_att_operand): Likewise.
150         (parse_real_register): Likewise.
151         (md_parse_option): Likewise.
152         (i386_target_format): Likewise.
153
154 2008-02-14  Dimitry Andric  <dimitry@andric.com>
155
156         PR gas/5712
157         * config/tc-arm.c (s_arm_unwind_save): Advance the input line
158         pointer past the comma after parsing a floating point register
159         name.
160
161 2008-02-14  Hakan Ardo  <hakan@debian.org>
162
163         PR gas/2626
164         * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
165         to AVR_ISA_2xxe.
166         (avr_operand): Disallow post-increment addressing in the lpm
167         instruction for the attiny26.
168
169 2008-02-13  Jan Beulich  <jbeulich@novell.com>
170
171         * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
172         if not in Intel mode.
173         (i386_intel_operand): Ignore segment overrides in immediate and
174         offset operands.
175         (intel_e11): Range-check i.mem_operands before use as array
176         index. Filter out FLAT for uses other than as segment override.
177         (intel_get_token): Remove broken promotion of "FLAT:" to mean
178         "offset FLAT:".
179
180 2008-02-13  Jan Beulich  <jbeulich@novell.com>
181
182         * config/tc-i386.c (intel_e09): Also special-case 'bound'.
183
184 2008-02-13  Jan Beulich  <jbeulich@novell.com>
185
186         * config/tc-i386.c (allow_pseudo_reg): New.
187         (parse_real_register): Check for NULL just once. Allow all
188         register table entries when allow_pseudo_reg is non-zero.
189         Don't allow any registers without type when allow_pseudo_reg
190         is zero.
191         (tc_x86_regname_to_dw2regnum): Replace with ...
192         (tc_x86_parse_to_dw2regnum): ... this.
193         (tc_x86_frame_initial_instructions): Adjust for above change.
194         * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
195         (tc_parse_to_dw2regnum): New.
196         (tc_x86_regname_to_dw2regnum): Replace with ...
197         (tc_x86_parse_to_dw2regnum): ... this.
198         * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
199         (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
200         error handling.
201
202 2008-02-12  Nick Clifton  <nickc@redhat.com>
203
204         * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
205         argument.
206         (tic4x_insn_add): Likewise.
207         (md_begin): Drop cast that was discarding a const qualifier.
208         * config/tc-d30v.c (get_reloc): Add const qualifier to op
209         argument.
210         (build_insn): Drop cast that was discarding a const qualifier.
211
212 2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>
213
214         * config/tc-i386.c (cpu_arch): Add .xsave.
215         (md_show_usage): Add .xsave.
216
217         * doc/c-i386.texi: Add xsave to -march=.
218
219 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
220
221         * read.c (s_weakref): Don't pass unadorned NULL to concat.
222         * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
223
224 2008-02-05  Sterling Augustine  <sterling@tensilica.com>
225         
226         * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
227         checks into assertions.  When relaxation produces an operation that
228         does not fit in the current FLIX instruction, make sure that the
229         operation is relaxed as needed to account for being placed following
230         the current instruction.
231         
232 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
233
234         PR 5715
235         * configure: Regenerated.
236
237 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
238
239         * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
240
241 2008-01-31  Marc Gauthier  <marc@tensilica.com>
242
243         * configure.tgt (xtensa*-*-*): Recognize processor variants.
244
245 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
246
247         * read.c: (emit_expr): Correct for mingw use of printf size 
248         specifier.
249
250 2008-01-24  Bob Wilson  <bob.wilson@acm.org>
251         
252         * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
253         can only be encoded in FLIX instructions but are not specified as such.
254         (Xtensa Automatic Alignment): Remove obsolete comment about debugging
255         labels.
256         
257 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
258
259         * NEWS: Mention new command line options for x86 targets.
260
261 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
262
263         * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
264
265 2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>
266
267         * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
268
269 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
270
271         * config/tc-i386.c (md_show_usage): Show more processors for
272         -march=/-mtune=.
273
274 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
275
276         * config/tc-i386.c (i386_target_format): Remove cpummx2.
277
278 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
279
280         * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
281         (XXX_MNEM_SUFFIX): Likewise.
282         (END_OF_INSN): Likewise.
283         (templates): Likewise.
284         (modrm_byte): Likewise.
285         (rex_byte): Likewise.
286         (DREX_XXX): Likewise.
287         (drex_byte): Likewise.
288         (sib_byte): Likewise.
289         (processor_type): Likewise.
290         (arch_entry): Likewise.
291         (cpu_sub_arch_name): Remove const.
292         (cpu_arch): Add .vmx and .smx.
293         (set_cpu_arch): Append cpu_sub_arch_name.
294         (md_parse_option): Support -march=CPU[,+EXTENSION...].
295         (md_show_usage): Updated.
296
297         * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
298         (XXX_MNEM_SUFFIX): Likewise.
299         (END_OF_INSN): Likewise.
300         (templates): Likewise.
301         (modrm_byte): Likewise.
302         (rex_byte): Likewise.
303         (DREX_XXX): Likewise.
304         (drex_byte): Likewise.
305         (sib_byte): Likewise.
306         (processor_type): Likewise.
307         (arch_entry): Likewise.
308
309         * doc/as.texinfo: Update i386 -march option.
310
311         * doc/c-i386.texi: Update -march= for ISA.
312
313 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
314         
315         * config/tc-xtensa.c (xtensa_leb128): New function.
316         (md_pseudo_table): Use it for sleb128 and uleb128.
317         (is_leb128_expr): New internal flag.
318         (xtensa_symbol_new_hook): Check new flag.
319         
320 2008-01-16  Eric B. Weddington  <eric.weddington@atmel.com>
321
322         * config/tc-avr.c (mcu_types): Change opcode set for avr3,
323         at90usb82, at90usb162.
324         * doc/c-avr.texi: Change architecture grouping for at90usb82, 
325         at90usb162.
326         These changes support the new avr35 architecture group in gcc.
327
328 2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>
329
330         * config/tc-i386.c (md_assemble): Also zap movzx and movsx
331         suffix for AT&T syntax.
332
333 2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>
334
335         * config/tc-i386.c (match_reg_size): New.
336         (match_mem_size): Likewise.
337         (operand_size_match): Likewise.
338         (operand_type_match): Also clear all size fields.
339         (match_template): Skip Intel syntax when in AT&T syntax.
340         Call operand_size_match to check operand size.
341         (i386_att_operand): Set the mem field to 1 for memory
342         operand.
343         (i386_intel_operand): Likewise.
344
345 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
346
347         PR gas/5534
348         * config/tc-i386.c (_i386_insn): Update comment.
349         (operand_type_match): Also clear unspecified.
350         (operand_type_register_match): Likewise.
351         (parse_operands): Initialize unspecified.
352         (i386_intel_operand): Likewise.
353         (match_template): Check memory and accumulator operand size.
354         (i386_att_operand): Clear unspecified on register operand.
355         (intel_e11): Likewise.
356         (intel_e09): Set operand size and clean unspecified for
357         "XXX PTR".
358
359 2008-01-11  Andreas Schwab  <schwab@suse.de>
360
361         * read.c (s_space): Declare `repeat' as offsetT.
362
363 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
364
365         * config/tc-i386.c (match_template): Check processor support
366         first.
367
368 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
369
370         * config/tc-i386.c (match_template): Continue if processor
371         doesn't match.
372
373 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
374
375         * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
376         unwind personality function address.
377
378 2008-01-09  Bob Wilson  <bob.wilson@acm.org>
379         
380         * dwarf2dbg.c (out_sleb128): Delete.
381         (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
382         (out_fixed_inc_line_addr): Delete.
383         (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
384         size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
385         (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
386         (process_entries): Remove calls to out_fixed_inc_line_addr.  When
387         DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
388         * read.h (emit_expr_fix): New prototype.
389         * read.c (emit_expr): Move code to emit_expr_fix and use it here.
390         (emit_expr_fix): New.
391         
392 2008-01-09  H.J. Lu  <hongjiu.lu@intel.com>
393
394         * config/tc-i386.c (match_template): Check register size
395         only when size of operands can be encoded the canonical way.
396
397 2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>
398
399         * config/tc-i386.c (i386_operand): Renamed to ...
400         (i386_att_operand): This.
401         (parse_operands): Updated.
402
403 2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>
404
405         * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
406
407         * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
408         only.
409         (md_assemble): Remove Intel mode workaround.
410         (match_template): Check support for old gcc, AT&T mnemonic
411         and Intel Syntax.
412         (md_parse_option): Don't set intel_mnemonic to 0 for
413         OPTION_MOLD_GCC.
414
415 2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>
416
417         * config/tc-i386.h: Update copyright to 2008.
418
419 2008-01-04  Nick Clifton  <nickc@redhat.com>
420
421         * config/tc-ppc.c (parse_cpu): Preserve the settings of the
422         PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
423
424 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
425
426         * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
427         of SYSV386_COMPAT.
428
429 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
430
431         * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
432         (cpu_flags_not): Likewise.
433         (cpu_flags_match): Updated to check 64bit and arch.
434         (set_code_flag): Remove cpu_arch_flags_not.
435         (set_16bit_gcc_code_flag): Likewise.
436         (set_cpu_arch): Likewise.
437         (md_begin): Likewise.
438         (parse_insn): Call cpu_flags_match to check 64bit and arch.
439         (match_template): Likewise.
440
441 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
442
443         * config/tc-i386.c (process_drex): Initialize modrm_reg and
444         modrm_regmem to 0 instead of None.
445
446 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
447
448         * config/tc-i386.c (match_template): Use the xmmword field
449         instead of no_xsuf.
450
451 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
452
453         * config/tc-i386.c (process_suffix): Fix a typo.
454
455 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
456
457         PR gas/5534
458         * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
459         Check memory size in Intel mode.
460         (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
461         (intel_e09): Likewise.
462
463         * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
464
465 2008-01-02  Catherine Moore  <clm@codesourcery.com>
466
467         * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
468
469 For older changes see ChangeLog-2007
470 \f
471 Local Variables:
472 mode: change-log
473 left-margin: 8
474 fill-column: 74
475 version-control: never
476 End: