OSDN Git Service

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