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