1 2008-11-14 Peter Jansen <pwjansen@yahoo.com>
4 * config/tc-arm.c: Ensure that all uses of as_bad have a
7 2008-11-12 Hans-Peter Nilsson <hp@axis.com>
9 * config/tc-cris.c (cris_number_to_imm): Except for
10 BFD_RELOC_NONE, always set contents. Where previously this was
11 skipped, set contents to 0.
14 * input-scrub.c (input_scrub_include_sb): Make the position
15 after the input have defined contents, a 0 character.
17 * config/tc-cris.c (cris_relax_frag): Add missing case for
18 ENCODE_RELAX (STATE_COND_BRANCH_PIC, STATE_DWORD).
21 * read.c (read_a_source_file): Rearrange evaluation order when
22 looking for '=' to avoid conditional on undefined contents of
23 input_line_pointer[1].
25 2008-11-06 Adam Nemet <anemet@caviumnetworks.com>
27 * config/tc-mips.c (COP_INSN): Change logic to always return false
30 2008-11-06 Chao-ying Fu <fu@mips.com>
32 * config/tc-mips.c (validate_mips_insn): Add case '1'.
33 (mips_ip): Add case '1' to process sync type.
35 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
37 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
39 2008-11-04 Sterling Augustine <sterling@tensilica.com>
41 * config/tc-xtensa.c (tinsn_check_arguments): Check for multiple
42 writes to the same register.
44 2008-11-04 Sterling Augustine <sterling@tensilica.com>
46 * config/tc-xtensa.c (xtensa_j_opcode): New.
47 (xg_instruction_matches_option_term): Handle "FREEREG" option.
48 (xg_build_to_insn): Likewise. Update renamed tls_reloc reference.
49 (md_begin): Initialize xtensa_j_opcode.
50 (md_assemble): Update renamed tls_reloc reference. Handle "j.l".
51 (xg_assemble_vliw_tokens): Save free_reg info in the frag.
52 (tinsn_immed_from_frag): Get free_reg info back out of the frag.
53 (vinsn_to_insnbuf): Update renamed tls_reloc references.
54 Distinguish extra argument for "FREEREG" from extra TLS argument.
55 * config/tc-xtensa.h (struct xtensa_frag_type): Add free_reg field.
56 * config/xtensa-istack.h (struct tinsn_struct): Rename tls_reloc
58 * config/xtensa-relax.c (widen_spec_list): Add rules to relax "j.l".
59 (build_transition): Handle "FREEREG" operand.
60 * config/xtensa-relax.h (enum op_type): Add OP_FREEREG.
62 2008-10-31 Alan Modra <amodra@bigpond.net.au>
66 2008-10-24 Maciej W. Rozycki <macro@linux-mips.org>
68 * config/tc-mips.c (mips_cpu_info_table): Move the MIPS64r2
69 comment so that Broadcom SB-1 cores are in the MIPS64 section.
71 2008-10-21 Alan Modra <amodra@bigpond.net.au>
73 * config/tc-bfin.c (gencode, allocate): Remove unnecessary cast.
74 * config/tc-ns32k.c (bit_fix_new): Likewise.
75 * config/tc-m68k.c (md_begin): Likewise.
76 * hash.c (hash_insert, hash_jam): Likewise.
77 * symbols.c (symbol_create, local_symbol_make): Likewise.
78 * frags.c (frag_alloc): Likewise.
80 2008-10-20 Jay Krell <jay.krell@cornell.edu>
82 * config/bfin-parse.y: Use C style comments.
83 * config/tc-bfin.c: Likewise.
84 * config/tc-m68k.c: Likewise.
85 * config/tc-mips.c: Likewise.
87 2008-10-12 H.J. Lu <hongjiu.lu@intel.com>
89 * config/tc-i386.c (processor_type): Moved to tc-i386.h.
90 (cpu_arch_tune): Make it global.
91 (cpu_arch_isa): Likewise.
92 (cpu_arch_isa_flags): Likewise.
93 (i386_align_code): Check fragP->tc_frag_data.isa,
94 fragP->tc_frag_data.isa_flags and cpu_arch_tune instead of
95 cpu_arch_isa, cpu_arch_isa_flags and cpu_arch_tune,
98 * config/tc-i386.h (processor_type): Moved from tc-i386.c.
100 (cpu_arch_isa): Likewise.
101 (cpu_arch_isa_flags): Likewise.
102 (i386_tc_frag_data): Likewise.
103 (TC_FRAG_TYPE): Likewise.
104 (TC_FRAG_INIT): Likewise.
106 2008-10-09 Bob Wilson <bob.wilson@acm.org>
108 * doc/as.texinfo (Pseudo Ops): Swap order of Comm and CFI menu entries.
109 (Altmacro, Comm, Loc, Loc_mark_labels, List, MRI, PopSection, Sleb128):
110 Moved into alphabetical order.
112 2008-10-09 Bob Wilson <bob.wilson@acm.org>
114 * doc/as.texinfo (Dot): Expand no-space-dir conditional to include
116 (Pseudo Ops): Put conditionals around Skip and Space menu entries.
117 (Line): Remove conditional declaration of Ln node and section here.
118 Put aout-bout description inside the no-line-dir conditional.
119 (Skip, Space): Use a separate conditional for each node.
121 2008-10-09 Bob Wilson <bob.wilson@acm.org>
123 * doc/as.texinfo (Pseudo Ops): Remove no-file-dir conditional around
124 menu entry for File; remove version-specific .file operands from menu
125 description. Replace "LNS directives" menu entry with new entries
126 for "Loc" and "Loc_mark_labels".
127 (LNS directives): Split into separate nodes for each directive.
128 (Loc): New node for .loc directive. Mention that this directive
129 is for DWARF2 and add a missing article.
130 (Loc_mark_labels): Likewise for .loc_mark_labels.
131 (File): Change this node to describe both the default version and
132 the DWARF2 version of .file. Move the no-file-dir conditional to
133 include only the default version.
135 2008-10-09 Eric Botcazou <ebotcazou@adacore.com>
137 * dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame.
138 * config/tc-i386.h (md_fix_up_eh_frame): Define on Solaris.
139 (i386_solaris_fix_up_eh_frame): Declare.
140 * config/tc-i386.c (i386_solaris_fix_up_eh_frame): New function.
142 2008-10-09 Nick Clifton <nickc@redhat.com>
145 * doc/as.texinfo (Dollar Local Labels): Correct description of
146 dollar local labels to show that the colon suffix is still
149 2008-10-08 Nick Clifton <nickc@redhat.com>
151 * configure.in (ALL_LINGUAS): Add "id".
152 * configure: Regenerate.
153 * po/id.po: New Indonesian translation.
155 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
157 * read.c (pseudo_set): Don't allow global register symbol only
158 if TC_GLOBAL_REGISTER_SYMBOL_OK is undefined.
159 * symbols.c (S_SET_EXTERNAL): Likewise.
161 * config/tc-mmix.h (TC_GLOBAL_REGISTER_SYMBOL_OK): Defined.
163 * doc/internals.texi: Document TC_GLOBAL_REGISTER_SYMBOL_OK.
165 2008-10-06 Bob Wilson <bob.wilson@acm.org>
167 * doc/as.texinfo (Local): New description of ELF .local directive.
169 2008-10-06 Nick Clifton <nickc@redhat.com>
172 * read.c (get_line_sb): Renamed to get_non_macro_line_sb.
173 (_find_end_of_line): Add extra parameter indicating if the line is
174 inside a macro. If it is then do not allow the @ character to be
175 treated as a line separator character.
176 (read_a_source): Update use of _find_end_of_line.
177 (find_end_of_line): Likewise.
178 (s_irp): Update use of get_line_sb.
180 (do_repeat): Likewise.
181 (get_line_sb): New function. Like the old version of get_line_sb
182 except that it takes an extra parameter indicating whether the
183 line is inside a macro.
184 (get_macro_line_sb): New function.
186 2008-10-04 Hans-Peter Nilsson <hp@axis.com>
188 * config/tc-cris.c: Update all comments regarding explicit relocations
189 to, besides PIC, also imply TLS or to say "relocation specifier" or
191 (RELOC_SUFFIX_CHAR): Rename from PIC_SUFFIX_CHAR. Change all callers.
192 (cris_get_reloc_suffix): Rename from cris_get_pic_suffix. Change all
193 callers. Also handle TLS relocs.
194 (cris_get_specified_reloc_size): Rename from cris_get_pic_reloc_size.
195 Change all callers. Also handle TLS relocs.
197 (cris_process_instruction): Check for non-PIC TLS relocations and
198 adjust message when emitting error message about relocation not
200 (get_autoinc_prefix_or_indir_op): Also check for relocation suffix
202 (get_3op_or_dip_prefix_op): Ditto.
203 (cris_number_to_imm, tc_gen_reloc): Handle TLS relocs like PIC relocs.
205 2008-10-03 Kazu Hirata <kazu@codesourcery.com>
207 * listing.c (buffer_line): Open the source file with FOPEN_RB.
208 Manually process line ends.
210 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca>
211 Nick Clifton <nickc@redhat.com>
213 * config/tc-tic4x.c (tic4x_globl): Call S_SET_EXTERNAL as well as
216 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca>
217 Nick Clifton <nickc@redhat.com>
219 * coffgen.c (coff_write_symbols): Check to see if a symbol's flags
220 do not match it class and if necessary update the class.
221 (null_error_handler): New function. Suppresses the generation of
223 * coff64-rs6000.c (bfd_xcoff_backend_data): Update comment.
225 2008-09-30 Alan Modra <amodra@bigpond.net.au>
227 * Makefile.am: Run "make dep-am".
228 * Makefile.in: Regenerate.
230 2008-09-29 Nick Clifton <nickc@redhat.com>
232 * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
233 tc_cfi_emit_pcrel_expr macro.
235 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
236 Steve Ellcey <sje@cup.hp.com>
238 * configure: Regenerate for new libtool.
240 * Makefile.in: Ditto.
241 * doc/Makefile.in: Ditto.
243 2008-09-29 Nick Clifton <nickc@redhat.com>
246 * app.c (do_scrub_chars): Only issue warnings about tick
247 characters detected in symbol strings if hex ticks are supported.
249 2008-09-29 Nick Clifton <nickc@redhat.com>
251 * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
252 tc_cfi_emit_pcrel_expr macro.
254 2008-09-28 Daniel Jacobowitz <dan@codesourcery.com>
256 * NEWS: Mention .cfi_val_encoded_addr.
258 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
260 * Makefile.am (TARG_ENV_HFILES): Add config/te-solaris.h.
261 * Makefile.in (TARG_ENV_HFILES): Likewise.
262 * configure.tgt (Solaris targets): Set em=solaris.
263 * config/te-solaris.h: New file.
265 2008-09-26 Jie Zhang <jie.zhang@analog.com>
267 * config/bfin-parse.y (asm_1): Fix reduce/reduce conflicts.
269 2008-09-24 Richard Henderson <rth@redhat.com>
271 * dw2gencfi.c (DWARF2_ADDR_SIZE): Provide default.
272 (struct cfi_insn_data): Add ea member.
273 (CFI_val_encoded_addr, dot_cfi_val_encoded_addr): New.
274 (output_cfi_insn): Handle CFI_val_encoded_addr.
275 (select_cie_for_fde): Don't match CFI_val_encoded_addr.
276 * doc/as.texinfo (.cfi_val_encoded_addr): Document.
278 2008-09-25 Alan Modra <amodra@bigpond.net.au>
281 * listing.c (print_options): Don't call fprintf without format string.
283 2008-09-19 Alan Modra <amodra@bigpond.net.au>
285 * write.c (TC_FORCE_RELOCATION_SUB_LOCAL): Heed md_register_arithmetic.
286 (TC_VALIDATE_FIX_SUB): Likewise.
287 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
288 * config/tc-hppa.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
289 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Likewise.
290 * config/tc-sh.h (TC_VALIDATE_FIX_SUB): Likewise.
291 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
292 * config/tc-sh64.h (TC_VALIDATE_FIX_SUB): Likewise.
293 * config/tc-xtensa.h (TC_VALIDATE_FIX_SUB): Likewise.
294 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS,
295 TC_FORCE_RELOCATION_SUB_LOCAL, TC_VALIDATE_FIX_SUB): Show new param.
297 * write.c (md_register_arithmetic): Define.
298 (fixup_segment): Adjust TC_FORCE_RELOCATION_SUB_ABS invocation.
299 Modify error message when registers involved.
300 (TC_FORCE_RELOCATION_SUB_ABS): Heed md_register_arithmetic.
301 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Likewise.
303 2008-09-15 Alan Modra <amodra@bigpond.net.au>
305 * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
307 2008-09-15 Alan Modra <amodra@bigpond.net.au>
309 * config/tc-frv.c (md_apply_fix): Use abs_section_sym for
310 relocs with no symbol.
311 * config/tc-mmix.c (md_assemble): Mark fake symbol on
312 BFD_RELOC_MMIX_BASE_PLUS_OFFSET as OK for use by relocs.
313 (mmix_md_end): Likewise mark mmix reg contents section symbol.
315 2008-09-14 Chris Smith <chris@zxdesign.info>
317 * config/tc-z80.c: Opcode generation of ld a,(bc) and ld a,(de) was
318 broken, as the opcode of ld a,(de) was being emitted for both.
320 2008-09-12 Sterling Augustine <sterling@tensilica.com>
322 * config/tc-xtensa.c (init_op_placement_info_table): Allow number of
323 operands equal to MAX_INSN_ARGS.
325 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
327 * configure.in: Call AC_SYS_LARGEFILE.
328 * config.in: Regenerate.
329 * configure: Regenerate.
331 2008-09-09 Peter Bergner <bergner@vnet.ibm.com>
333 * config/tc-ppc.c (ppc_setup_opcodes): Simplify POWER4/NOPOWER4 test.
334 Remove POWER5 and POWER6 tests.
336 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
338 * config/tc-hppa.c (hppa_regname_to_dw2regnum): Add register name to
339 number support for 32-bit targets.
341 2008-09-08 Tristan Gingold <gingold@adacore.com>
343 * NEWS: Add a marker for the 2.19 features.
345 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
347 * config/tc-hppa.h (DIFF_EXPR_OK): Define for SOM target. Revise
348 comment regarding use of difference expressions.
349 (TC_FORCE_RELOCATION_SUB_LOCAL): Define to 1.
351 * dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
352 (dot_cfi_personality): Use CFI_DIFF_EXPR_OK instead of DIFF_EXPR_OK.
353 (dot_cfi_lsda, output_cie, output_fde): Likewise.
354 * config/tc-hppa.h (CFI_DIFF_EXPR_OK): Define.
356 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
358 * config/tc-mips.h (DWARF2_FDE_RELOC_SIZE): Define.
360 2008-09-03 Nick Clifton <nickc@redhat.com>
362 * config/tc-i386.c (pe_lcomm_internal): New function. Allows the
363 alignment field of the .lcomm directive to be optional.
364 (pe_lcomm): New function. Pass pe_lcomm_internal to
366 (md_pseudo_table): Implement .lcomm directive for COFF based
368 * doc/c-i386.texi (i386-Directives): New node. Used to document
369 the .lcomm directive.
371 2008-08-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
373 * config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
376 2008-08-29 Eric B. Weddington <eric.weddington@atmel.com>
378 * config/tc-avr.c (mcu_types): Add atmega16u4.
379 * doc/c-avr.texi: Likewise.
381 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
383 * config/tc-ia64.c (CR_IIB0): New.
385 (cr): Add cr.iib0 and cr.iib1.
386 (specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.
388 2008-08-28 Jan Beulich <jbeulich@novell.com>
390 * config/tc-i386.c (md_assemble): Force number of displacement
391 operands to zero when processing string instruction.
392 (i386_index_check): Special-case string instruction operands. Don't
393 fudge address prefix if there already was a memory operand. Fix
394 error message to correctly reflect the addressing mode used.
395 (i386_att_operand): Fix comment.
396 (i386_intel_operand): Snapshot, clear, and restore base and index
397 reg for each operand processed. Increment count of memory operands
400 2008-08-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
402 * config/tc-hppa.c (is_SB_relative): New macro.
403 (fix_new_hppa): Remove $segrel$ marker.
404 (cons_fix_new_hppa): Set reloc type R_PARISC_SEGREL32 if expression is
406 * config/tc-hppa.h (tc_frob_symbol): Check for $segrel$.
408 2008-08-27 Jan Beulich <jbeulich@novell.com>
410 * config/tc-i386.c (check_string): Use register_prefix for error
412 (process_operands): Likewise.
414 2008-08-26 Mark Mitchell <mark@codesourcery.com>
416 * c-arm.texi: Add tutorial on ARM unwinding pseudo ops.
418 2008-08-26 Jie Zhang <jie.zhang@analog.com>
420 * config/bfin-parse.y (check_macfunc_option): Fix instruction
422 (asm_1): Check mode for 16-bit multiply instructions.
424 2008-08-24 Alan Modra <amodra@bigpond.net.au>
426 * configure.in: Update a number of obsolete autoconf macros.
427 * configure: Regenerate.
428 * aclocal.m4: Regenerate.
430 2008-08-22 Nick Clifton <nickc@redhat.com>
432 * config/tc-mcore.c (md_assemble): Increase length of name array
433 to include terminating NUL.
435 2008-08-22 Jie Zhang <jie.zhang@analog.com>
437 * config/bfin-lex.l (NUMBER): Protect special `.'.
439 2008-08-22 Alan Modra <amodra@bigpond.net.au>
441 * symbols.c (symbol_clone): Ensure clones are not external.
443 2008-08-22 Alan Modra <amodra@bigpond.net.au>
445 * config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".
447 2008-08-21 Richard Henderson <rth@redhat.com>
449 * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.
450 (output_cie, output_fde): Use it.
451 (DWARF2_EH_FRAME_READ_ONLY): New.
452 (cfi_finish): Use it.
454 * config/tc-hppa.h (DWARF2_FDE_RELOC_SIZE): Set to 8 for 64-bit.
455 (DWARF2_CIE_DATA_ALIGNMENT): Change sign.
456 (DWARF2_EH_FRAME_READ_ONLY): New.
457 * config/tc-hppa.c (tc_gen_reloc): Generate pc-relative relocations
458 from the results of DIFF_EXPR_OK manipulation.
460 2008-08-21 Sterling Augustine <sterling@tensilica.com>
462 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase to 64.
464 2008-08-20 Bob Wilson <bob.wilson@acm.org>
466 * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
467 (O_tpoff, O_dtpoff): Define.
468 (suffix_relocs): Add entries for TLS suffixes.
469 (xtensa_elf_cons): Check for invalid use of TLS relocations.
470 (map_operator_to_reloc): Add is_literal parameter and use it to
471 control translating TLS instruction relocations to the corresponding
473 (xg_valid_literal_expression): Allow TLS operators.
474 (xg_build_to_insn): Copy TLS operators from pseudo-instruction
475 operands to generated literals.
476 (xg_assemble_literal): Handle TLS operators. Update call to
477 map_operator_to_reloc.
478 (md_assemble): Handle CALLXn.TLS pseudo-instruction.
479 (md_apply_fix): Handle TLS relocations.
480 (emit_single_op): Handle TLS operators.
481 (convert_frag_immed): Update call to map_operator_to_reloc.
482 (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
483 * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
484 * config/xtensa-relax.c (append_literal_op): Add src_op parameter
485 to initialize the op_data field of the BuildOp.
486 (build_transition): Use it here to record the source operand
487 corresponding to a generated literal.
488 * config/xtensa-relax.h (build_op): Comment op_data use for literals.
490 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
492 AVX Programming Reference (August, 2008)
493 * config/tc-i386.c (CPU_FLAGS_AES_MATCH): New.
494 (CPU_FLAGS_AVX_MATCH): Likewise.
495 (CPU_FLAGS_32BIT_MATCH): Updated.
496 (cpu_flags_match): Likewise.
498 2008-08-20 Alan Modra <amodra@bigpond.net.au>
501 * write.c (install_reloc): Check that reloc symbols have been
503 (set_symtab): Mark symbols with BSF_KEEP.
505 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
507 * config/tc-i386.c (i386_align_code): Fix a comment typo.
509 2008-08-15 Alan Modra <amodra@bigpond.net.au>
512 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
513 * Makefile.in: Regenerate.
514 * aclocal.m4: Regenerate.
515 * config.in: Regenerate.
516 * configure: Regenerate.
517 * doc/Makefile.in: Regenerate.
519 2008-08-14 Alan Modra <amodra@bigpond.net.au>
521 * config/tc-tic4x.c (tic4x_operands_parse): Make static.
523 2008-08-13 Ben Elliston <bje@au.ibm.com>
525 * doc/as.texinfo (Align): Document the PowerPC behaviour.
527 2008-08-13 Alan Modra <amodra@bigpond.net.au>
529 * as.c, as.h, ecoff.c, hash.c, macro.c, symbols.c, config/obj-evax.c,
530 config/obj-som.c, config/tc-alpha.c, config/tc-arm.c, config/tc-bfin.c,
531 config/tc-bfin.h, config/tc-crx.c, config/tc-frv.c, config/tc-frv.h,
532 config/tc-hppa.h, config/tc-i386.c, config/tc-i860.c, config/tc-i960.h,
533 config/tc-ia64.c, config/tc-ia64.h, config/tc-m32c.c, config/tc-m32c.h,
534 config/tc-m68k.c, config/tc-maxq.c, config/tc-s390.c, config/tc-s390.h,
535 config/tc-sparc.c, config/tc-sparc.h, config/tc-spu.c, config/tc-spu.h,
536 config/tc-tic4x.c, config/tc-tic4x.h, config/tc-tic54x.c,
537 config/tc-tic54x.h, config/tc-vax.c, doc/internals.texi: Banish PARAMS
538 and PTR. Convert to ISO C. Delete unnecessary forward declarations.
540 2008-08-12 Alan Modra <amodra@bigpond.net.au>
542 * config/tc-arm.c (s_unreq): Adjust hash_delete call.
543 * config/tc-ia64.c (dot_rot): Likewise.
545 2008-08-11 Alan Modra <amodra@bigpond.net.au>
548 * hash.c: Expand PTR to void *.
549 (hash_delete): Add "freeme" parameter. Call obstack_free.
550 * hash.h: Expand PTR to void *.
551 (hash_delete): Update prototype.
552 * macro.c (macro_expand_body): hash_delete LOCALs from formal_hash.
553 * config/tc-tic54x.c (tic54x_remove_local_label): Update hash_delete
555 (subsym_substitute): Likewise.
556 * doc/internals.texi (hash_delete): Update.
558 2008-08-08 Anatoly Sokolov <aesok@post.ru>
560 * config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
561 architectures. Reorganize list to put mcu types in correct
562 architectures and to order list same as in GCC. Use new ISA
563 definitions in include/opcode/avr.h.
564 * doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
565 descriptions. Reorganize descriptions to put mcu types in correct
566 architectures and to order lists same as in GCC.
568 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
569 Daniel Jacobowitz <dan@codesourcery.com>
571 * config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
572 (OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
573 (OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
574 (OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
575 (md_longopts): Add -call_nonpic.
576 (md_parse_option): Handle OPTION_CALL_NONPIC.
577 (md_show_usage): Add -call_nonpic.
579 2008-08-08 Sterling Augustine <sterling@tensilica.com>
581 * config/tc-xtensa.c (exclude_section_from_property_tables): New.
582 (xtensa_create_property_segments): Use it.
583 (xtensa_create_xproperty_segments): Likewise.
585 2008-08-08 Alan Modra <amodra@bigpond.net.au>
587 * doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.
589 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
591 * config/tc-mips.c (mips16_reloc_p, got16_reloc_p, hi16_reloc_p)
592 (lo16_reloc_p): New functions.
593 (reloc_needs_lo_p): Use hi16_reloc_p and got16_reloc_p to
594 generalize relocation checks.
595 (matching_lo_reloc): New function.
596 (fixup_has_matching_lo_p): Use it.
597 (mips16_mark_labels): Don't clobber a symbol's visibility.
598 (append_insn): Use hi16_reloc_p and lo16_reloc_p.
599 (mips16_ip): Handle BFD_RELOC_MIPS16_GOT16 and BFD_RELOC_MIPS16_CALL16.
600 (md_apply_fix): Likewise.
601 (mips16_percent_op): Add %got and %call16.
602 (mips_frob_file): Use got16_reloc_p to generalize relocation checks.
603 Use matching_lo_reloc.
604 (mips_force_relocation): Use hi16_reloc_p and lo16_reloc_p to
605 generalize relocation checks.
606 (mips_fix_adjustable): Use lo16_reloc_p to generalize relocation
609 2008-08-06 DJ Delorie <dj@redhat.com>
611 * NEWS: Mention these changes.
613 * config/tc-h8300.h (H_TICK_HEX): Define.
614 * config/tc-h8300.c (OPTION_H_TICK_HEX): New.
615 (md_longopts): Add "-h-tick-hex".
616 (md_parse_option): Support it.
617 * doc/c-h8300.texi (H8/300 Options): Document it.
618 * doc/as.texinfo (Overview): Likewise.
620 * config/tc-sh.h (H_TICK_HEX): Define.
621 * config/tc-sh.c (OPTION_H_TICK_HEX): New.
622 (md_longopts): Add "-h-tick-hex".
623 (md_parse_option): Support it.
624 * doc/c-sh.texi (SH Options): Document it.
625 * doc/c-sh64.texi (SH64 Options): Document it.
626 * doc/as.texinfo (Overview): Likewise.
628 2008-08-05 Alan Modra <amodra@bigpond.net.au>
631 * dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
632 debug info if we see compiler generated debug info.
633 (dwarf2_directive_loc): Likewise. Remove redundant debug_type test.
635 2008-08-04 Alan Modra <amodra@bigpond.net.au>
637 * dwarf2dbg.c: Remove superfluous forward function declarations.
638 (DWARF2_FORMAT): Add section arg.
639 (out_header): New function, split out from..
640 (out_debug_line): ..here.
641 (out_debug_aranges): Use out_header.
642 (out_debug_abbrev): Add info_seg and line_seg args. Use
643 DW_FORM_data8 (for DW_AT_stmt_list) if line_seg is 64-bit.
644 (out_debug_info): Use out_header. Output 8 byte DW_AT_stmt_list
645 if line_seg is 64-bit.
646 (dwarf2_finish): Adjust out_debug_abbrev call.
647 * config/tc-mips.h (DWARF2_FORMAT, mips_dwarf2_format): Add sec arg.
648 * config/tc-mips.c (mips_dwarf2_format): Likewise.
650 2008-08-04 Alan Modra <amodra@bigpond.net.au>
652 * Makefile.am (POTFILES.in): Set LC_ALL=C.
653 * Makefile.in: Regenerate.
654 * po/POTFILES.in: Regenerate.
656 2008-08-01 Peter Bergner <bergner@vnet.ibm.com>
658 * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
659 Handle -mvsx and -mpower7.
660 (md_show_usage): Document -mpower7 and -mvsx.
661 * doc/as.texinfo (Target PowerPC): Document -mvsx.
662 * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
664 2008-07-31 Peter Bergner <bergner@vnet.ibm.com>
666 * config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
669 2008-07-30 Michael J. Eager <eager@eagercon.com>
671 * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
672 (md_show_usage): Likewise.
674 2008-07-30 Alan Modra <amodra@bigpond.net.au>
676 * messages.c, symbols.c, write.c: Silence gcc warnings.
678 2008-07-28 Ineiev <ineiev@yahoo.co.uk>
680 * config/tc-i386.c (operand_type_check): Warning fix.
682 2008-07-26 Michael Eager <eager@eagercon.com>
684 * doc/as.texinfo: Add description of single-precision attribute.
686 2008-07-24 Jie Zhang <jie.zhang@analog.com>
688 * config/bfin-parse.y (asm_1): Error if plain symbol is used
689 as load/store offset.
691 2008-07-22 Chao-ying Fu <fu@mips.com>
693 * config/tc-mips.c (mips_ip): Reset s to argsStart.
695 2008-07-22 Jie Zhang <jie.zhang@analog.com>
697 * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
699 2008-07-21 DJ Delorie <dj@redhat.com>
701 * config/tc-h8300.c (fix_operand_size): Use the default size
702 specified by the .lbranch/.sbranch pseudos.
704 2008-07-18 DJ Delorie <dj@redhat.com>
706 * config/tc-m32c.h (H_TICK_HEX): Define.
707 * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
708 (md_longopts): Add support for it.
709 (md_parse_option): Likewise.
710 * doc/as.texinfo (Overview): Add new m32c options.
711 * doc/c-m32c.texi (M32C-Modifiers): Likewise
713 * as.h: (enable_h_tick_hex): New.
714 * app.c (enable_h_tick_hex): New.
716 (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
717 (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
718 style hex constants and convert the input stream to 0x00 style.
719 (do_scrub_chars): If a 'X style character constant is found after
720 a symbol character (like you're or X'00), warn the user.
722 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
724 * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
725 (mips_fix_adjustable): Likewise.
726 (mips_frob_file_after_relocs): Likewise.
728 2008-07-08 Nathan Sidwell <nathan@codesourcery.com>
730 * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
731 about overriding an earlier setting.
733 2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
735 * config/tc-mips.c (NO_ISA_COP): New macro.
736 (COP_INSN): New macro.
737 (is_opcode_valid): Use them.
738 (macro) <ld_st>: Use them. Don't accept coprocessor load store
739 insns based on the ISA if CPU is NO_ISA_COP.
740 <copz>: Likewise for coprocessor operations.
742 2008-07-07 Paul Brook <paul@codesourcery.com>
744 * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
747 2008-07-07 Ralf Corsépius <ralf.corsepius@rtems.org>
749 * configure.tgt: Add bfin-*-rtems*.
751 2008-07-04 Alan Modra <amodra@bigpond.net.au>
753 * config/tc-spu.c (md_apply_fix): Handle fully resolved
754 BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
756 2008-06-25 Peter Bergner <bergner@vnet.ibm.com>
758 * config/tc-ppc.c (parse_cpu): Handle -m464.
759 (md_show_usage): Likewise.
761 2008-06-24 Eric B. Weddington <eric.weddington@atmel.com>
763 Add support for ATtiny13A.
764 * config/tc-avr.c (mcu_types): Add attiny13a.
765 * doc/c-avr.texi: Likewise.
767 2008-06-24 Bob Wilson <bob.wilson@acm.org>
768 Alan Modra <amodra@bigpond.net.au>
770 * write.c (relax_segment <rs_org>): Include current stretch
771 value when calculating whether .org is backwards.
773 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
775 * configure: Regenerate.
777 2008-06-17 Nick Clifton <nickc@redhat.com>
779 * app.c (do_scrub_chars): Do not UNGET an EOF value.
781 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
784 * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
785 text_section. Do the "stepping backwards" test for text_section
786 using unsigned operands.
788 2008-06-13 Peter Bergner <bergner@vnet.ibm.com>
790 * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
791 (ppc_insert_operand): Likewise.
792 (ppc_machine): Likewise.
793 * config/tc-ppc.h: #include "opcode/ppc.h"
794 (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
795 (ppc_cpu): Update extern decl.
797 2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
799 * config/tc-mips.c (validate_mips_insn): Handle field descriptors
800 +x, +X, +p, +P, +s, +S.
803 * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
805 (macro_build): Likewise.
806 (CPU_HAS_SEQ): New macro.
807 (macro2) <M_SEQ_I, M_SNE_I>: Use it. Emit seq/sne and seqi/snei.
809 2008-06-09 Eric B. Weddington <eric.weddington@atmel.com>
811 * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
812 * doc/c-avr.texi: Likewise.
814 2008-06-04 Nick Clifton <nickc@redhat.com>
816 * app.c (do_scrub_chars): Do not UNGET an EOF value.
818 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
820 * config/tc-i386.c (set_sse_check): New.
821 (md_pseudo_table): Add "sse_check".
823 2008-06-03 Paul Brook <paul@codesourcery.com>
825 * config/tc-arm.c (do_t_rbit): Populate both rm fields.
827 2008-05-30 Nick Clifton <nickc@redhat.com>
830 * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
833 2008-05-29 Maxim Kuvyrkov <maxim@codesourcery.com>
835 * config/tc-mips.c (mips_cpu_info_table): Move records for
836 ST Loongson-2E/2F processors to a better place.
838 2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
841 * config/tc-i386.c (match_template): Report ambiguous operand
842 size, not invalid suffix when there is no match in Intel
845 2008-05-22 Paul Brook <paul@codesourcery.com>
847 * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
849 2008-05-21 I-Jui Sung <ijsung@gmail.com>
851 * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
852 compatible cores: fa526, fa626, fa626te, fa726te.
853 * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
856 2008-05-14 Alan Modra <amodra@bigpond.net.au>
858 * Makefile.am: Run "make dep-am".
859 * Makefile.in: Regenerate.
860 * doc/Makefile.in: Regenerate.
861 * po/POTFILES.in: Regenerate.
863 2008-05-09 Catherine Moore <clm@codesourcery.com>
865 * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
866 with non-MIPS16 relocs.
868 2008-05-09 Chao-ying Fu <fu@mips.com>
870 * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
871 case that some characters append at the end of the name.
873 (s_change_sec): Likewise.
874 (md_section_align): Likewise.
876 2008-05-07 Bob Wilson <bob.wilson@acm.org>
878 * config/tc-xtensa.c (xtensa_create_property_segments): Use
879 xtensa_make_property_section instead of xtensa_get_property_section.
880 (xtensa_create_xproperty_segments): Likewise.
882 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
884 * NEWS: Mention XSAVE, EPT and MOVBE.
886 * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
887 (md_show_usage): Add .movbe and .ept.
889 * doc/c-i386.texi: Add movbe and ept to -march=. Document
892 2008-04-29 David S. Miller <davem@davemloft.net>
894 * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
896 2008-04-28 Adam Nemet <anemet@caviumnetworks.com>
898 * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
900 (OPTION_ELF_BASE): Make room for new option macros.
901 (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
902 OPTION_DOUBLE_FLOAT): New option macros.
903 (md_longopts): Add msoft-float, mhard-float, msingle-float and
905 (md_parse_option): Handle OPTION_SINGLE_FLOAT,
906 OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
907 (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
909 (struct mips_set_options): New fields soft_float and single_float.
910 (mips_opts): Initialized them. Add comment for each field
912 (mips_after_parse_args): Set them based on file_mips_soft_float
913 and file_mips_single_float.
914 (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
915 `.set singlefloat' and `.set doublefloat'.
916 (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
917 Handle single-float and soft-float instructions here.
918 (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
919 (is_opcode_valid_16): New function.
920 (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
921 (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
922 M_S_DOB>: Remove special-casing of r4650.
923 * doc/c-mips.texi (-march=): Add Octeon.
924 (MIPS Opts): Document -msoft-float and -mhard-float. Document
925 -msingle-float and -mdouble-float.
926 (MIPS floating-point): New section. Document `.set softfloat' and
927 `.set hardfloat'. Document `.set singlefloat' and `.set
930 2008-04-25 David S. Miller <davem@davemloft.net>
932 * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
935 * doc/c-sparc.texi: Consistently refer to architecture 'versions',
936 rather than occaisionally 'levels'. Consistently refer to Sun's
937 UNIX variant as SunOS, every version of Solaris is also SunOS.
938 Document new 'softint_clear' and 'softint_set' aliases. Clarify
939 which architecture versions support '%dcr', '%cq', and '%gl'. Add
940 section on 32-bit/64-bit opcode translations.
942 2008-04-23 Mike Frysinger <vapier@gentoo.org>
944 * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
945 (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
946 (obj-fdpicelf.o): Define.
947 * Makefile.in: Regenerate.
948 * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
950 (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
951 (bfin-*-uclinux*): New; set fmt to elf and em to linux.
952 * config/obj-fdpicelf.c: New.
953 * config/obj-fdpicelf.h: Likewise.
954 * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
955 the OBJ_FDPIC_ELF define.
956 (OPTION_NOPIC): Define.
957 (md_longopts): Add mnopic and mno-fdpic.
958 (md_parse_option): Handle OPTION_NOPIC.
960 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
962 * aclocal.m4: Regenerate.
963 * configure: Regenerate.
965 2008-04-23 David S. Miller <davem@davemloft.net>
967 * config/tc-sparc.c (v9a_asr_table): Add missing
968 'stick' and 'stick_cmpr', and document ordering rules
970 (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
971 BFD_RELOC_SPARC_PC10.
972 * doc/c-sparc.texi: New section on Sparc constants.
973 Add documentation for %stick and %stick_cmpr.
975 2008-04-22 David S. Miller <davem@davemloft.net>
977 * config/obj-elf.c (obj_elf_section_type): Add prototype
978 before obj_elf_section_word and add 'warn' arg.
979 (obj_elf_section_word): Add type pointer arg, and if no #SECTION
980 is matched, try checking for #SECTION_TYPE.
981 (obj_elf_section): Adjust for new args.
982 (obj_elf_type_name): New function.
983 (obj_elf_type): Call it, and accept STT_foo number strings
984 in .type statements as output by SunPRO compiler.
986 2008-04-22 H.J. Lu <hongjiu.lu@intel.com>
988 * config/tc-i386.c (md_assemble): Don't check SSE instructions
991 2008-04-18 David S. Miller <davem@davemloft.net>
993 * doc/c-sparc.texi: Add syntax section.
995 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
997 * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
998 REG and NDS for instructions with immediate operand.
1000 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
1002 * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
1005 2008-04-16 David S. Miller <davem@davemloft.net>
1007 * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
1008 and relocation generation.
1009 (tc_gen_reloc): Likewise.
1011 2008-04-15 Andrew Stubbs <andrew.stubbs@st.com>
1013 * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
1014 relocations are properly aligned, and not negative.
1016 2008-04-15 Khem Raj <kraj@mvista.com>
1018 * doc/tc-arm.texi: Fix fnstart and fnend directive names.
1020 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
1022 * config/tc-ppc.c (parse_cpu): Handle "e500mc". Extend "e500" to
1023 accept e500mc instructions.
1024 (md_show_usage): Document -me500mc.
1026 2008-04-11 Nick Clifton <nickc@redhat.com>
1028 * listing.c (print_timestamp): Use localtime rather than
1029 localtime_r since not all build environments provide the latter.
1031 2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
1033 * NEWS: Mention -msse-check=[none|error|warning].
1035 * config/tc-i386.c (sse_check): New.
1036 (OPTION_MSSE_CHECK): Likewise.
1037 (md_assemble): Check SSE instructions if needed.
1038 (md_longopts): Add -msse-check.
1039 (md_parse_option): Handle OPTION_MSSE_CHECK.
1040 (md_show_usage): Show -msse-check=[none|error|warning].
1042 * doc/c-i386.texi: Document -msse-check=[none|error|warning].
1044 2008-04-10 Santiago Urueña <suruena@gmail.com>
1046 * listing.c: Add -ag listing flag to show general information in
1047 listings such as gas version, passed options, and time stamp.
1048 (listing_general_info): New function.
1049 (print_options): New function.
1050 (print_single_option): New function.
1051 (print_timestamp): New function.
1052 (MAX_DATELEN): Define.
1053 (listing_print): Add call to listing_general_info.
1054 * listing.h (LISTING_GENERAL): Define.
1055 (listing_print): Add new parameter.
1056 * as.c (show_usage): Print new switch.
1057 (parse_args): Parse new switch.
1058 (main): Pass command line on to listing_print.
1059 * NEWS: Mention this new feature.
1060 * doc/as.texinfo: Document the new sub-option.
1062 2008-04-08 Alan Modra <amodra@bigpond.net.au>
1064 * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
1065 call. Delete out of date comment.
1066 (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
1067 (dwarf2_emit_label): Don't emit unless there has been a previous
1068 .file or we are outputting assembler generated debug.
1069 dwarf2_consume_line_info after emitting line info, not before.
1070 (out_debug_info): Simplify files_in_use test.
1072 2008-04-07 H.J. Lu <hongjiu.lu@intel.com>
1074 * config/tc-i386.c (parse_real_register): Return AVX register
1075 only if AVX is enabled.
1077 2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1080 * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
1081 md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
1083 2008-04-04 Adrian Bunk <bunk@stusta.de>
1084 Bob Wilson <bob.wilson@acm.org>
1086 * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
1087 call to decode_reloc.
1089 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
1091 * NEWS: Mention XSAVE. Change CLMUL to PCLMUL.
1093 * config/tc-i386.c (cpu_arch): Add .pclmul.
1094 (md_show_usage): Replace clmul with pclmul.
1095 * doc/c-i386.texi: Likewise.
1097 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
1099 * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
1101 * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
1102 Document -msse2avx, .avx, .aes, .clmul and .fma.
1104 * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
1105 (vex_prefix): Likewise.
1106 (sse2avx): Likewise.
1107 (CPU_FLAGS_ARCH_MATCH): Likewise.
1108 (CPU_FLAGS_64BIT_MATCH): Likewise.
1109 (CPU_FLAGS_32BIT_MATCH): Likewise.
1110 (CPU_FLAGS_PERFECT_MATCH): Likewise.
1112 (vex_imm4): Likewise.
1113 (fits_in_imm4): Likewise.
1114 (build_vex_prefix): Likewise.
1115 (VEX_check_operands): Likewise.
1116 (bad_implicit_operand): Likewise.
1117 (OPTION_MSSE2AVX): Likewise.
1118 (T_YMMWORD): Likewise.
1119 (_i386_insn): Add vex.
1120 (cpu_arch): Add .avx, .aes, .clmul and .fma.
1121 (cpu_flags_match): Changed to take a pointer to const template.
1122 Enable encoding SSE instructions with VEX prefix for -msse2avx.
1123 (match_mem_size): Also check ymmword.
1124 (operand_type_match): Clear ymmword.
1125 (md_begin): Allow '_' in mnemonic.
1126 (type_names): Add OPERAND_TYPE_VEX_IMM4.
1127 (process_immext): Update assert.
1128 (md_assemble): Don't call process_immext if sse2avx and immext
1129 are true. Call build_vex_prefix if vex is true.
1130 (parse_insn): Updated for cpu_flags_match.
1131 (swap_operands): Handle 5 operands.
1132 (match_template): Handle 5 operands. Updated for cpu_flags_match.
1133 Check regymm. Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
1134 (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
1135 (check_byte_reg): Check regymm.
1136 (process_operands): Duplicate the destination register for
1137 -msse2avx if needed.
1138 (build_modrm_byte): Updated for instructions with VEX encoding.
1139 (output_insn): Output VEX prefix if needed.
1140 (md_longopts): Add msse2avx.
1141 (md_parse_option): Handle OPTION_MSSE2AVX.
1142 (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
1143 (intel_e09): Support YMMWORD.
1144 (intel_e11): Likewise.
1145 (intel_get_token): Likewise.
1147 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
1149 * config/tc-avr.c (mcu_types): Add attiny167.
1150 * doc/c-avr.texi: Likewise.
1152 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
1154 * config/tc-avr.c (mcu_types): Add atmega32u4.
1155 * doc/c-avr.texi: Likewise.
1157 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
1159 * config/tc-avr.c (mcu_types): Add atmega32c1.
1160 * doc/c-avr.texi: Likewise.
1162 2008-03-28 Paul Brook <paul@codesourcery.com>
1164 * config/tc-arm.c (parse_neon_mov): Parse register before immediate
1165 to avoid spurious symbols.
1167 2008-03-28 Nathan Sidwell <nathan@codesourcery.com>
1169 * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
1172 2008-03-27 Eric B. Weddington <eric.weddington@atmel.com>
1174 * config/tc-avr.c (mcu_types): Add atmega32m1.
1175 * doc/c-avr.texi: Likewise.
1177 2008-03-27 Ineiev <ineiev@yahoo.co.uk>
1179 * config/tc-arm.c (do_neon_cvt): Move variable declarations to
1181 (do_neon_ext): Fix sign of comparison.
1183 2008-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
1185 From Jie Zhang <jie.zhang@analog.com>
1186 * config/bfin-parse.y (asm_1): Check AREGS in comparison
1187 instructions. And call yyerror when comparing PREG with
1189 (check_macfunc_option): New.
1190 (check_macfuncs): Check option by calling check_macfunc_option.
1191 Fix comparison always true warnings. Both scalar instructions
1192 of vector instruction must share the same mode option. Only allow
1193 option mode at the end of the second instruction of the vector.
1194 (asm_1): Check option by calling check_macfunc_option.
1196 * config/bfin-parse.y (check_macfunc_option): Allow (IU)
1197 option for multiply and multiply-accumulate to data register
1199 (check_macfuncs): Don't check if accumulator matches the data register
1201 (assign_macfunc): Check if accumulator matches the
1202 data register in each rule that moves to the data
1205 * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
1206 generated for LOOP_BEGIN and LOOP_END instructions.
1207 (bfin_gen_loop): Likewise.
1209 2008-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1211 * config/tc-s390.c (md_parse_option): z10 option added.
1213 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1215 * aclocal.m4: Regenerate.
1216 * configure: Likewise.
1217 * Makefile.in: Likewise.
1218 * doc/Makefile.in: Likewise.
1220 2008-03-17 Adrian Bunk <bunk@stusta.de>
1223 * config/tc-hppa.c (is_same_frag): Delete.
1225 2008-03-14 Sterling Augustine <sterling@tensilica.com>
1227 * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
1228 RELAX_LOOP_END_ADD_NOP.
1230 2008-03-13 Evandro Menezes <evandro@yahoo.com>
1233 * read.c (s_mexit): Warn if attempting to exit a macro when not
1234 inside a macro definition.
1236 2008-03-13 Alan Modra <amodra@bigpond.net.au>
1238 * Makefile.am: Run "make dep-am".
1239 * Makefile.in: Regenerate.
1240 * configure: Regenerate.
1242 2008-03-09 Paul Brook <paul@codesourcery.com>
1244 * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
1245 * doc/c-arm.texi: Add cortex-a9.
1247 2008-03-09 Paul Brook <paul@codesourcery.com>
1249 * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
1250 (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
1251 (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
1252 (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
1253 * doc/c-arm.texi: Document new ARM FPU variants.
1255 2008-03-07 Paul Brook <paul@codesourcery.com>
1257 * config/tc-arm.c (md_apply_fix): Use correct offset range.
1259 2008-03-07 Alan Modra <amodra@bigpond.net.au>
1261 * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test
1262 for strict ordering of powerpc_opcodes, but disable for now.
1264 2008-03-04 Paul Brook <paul@codesourcery.com>
1266 * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
1267 (arm_ext_v7m): Rename...
1268 (arm_ext_m): ... to this. Include v6-M.
1269 (do_t_add_sub): Allow narrow low-reg non flag setting adds.
1270 (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
1271 (md_assemble): Allow wide msr instructions.
1272 (insns): Add classifications for v6-m instructions.
1273 (arm_cpu_option_table): Add cortex-m1.
1274 (arm_arch_option_table): Add armv6-m.
1275 (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants.
1277 2008-03-03 Sterling Augustine <sterling@tensilica.com>
1278 Bob Wilson <bob.wilson@acm.org>
1280 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
1281 (md_begin): Initialize it.
1282 (resources_conflict): Use it.
1284 2008-03-03 Sterling Augustine <sterling@tensilica.com>
1286 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
1288 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
1289 H.J. Lu <hongjiu.lu@intel.com>
1292 * read.c (pseudo_set): Don't allow global register symbol.
1294 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
1297 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
1300 * write.c (write_object_file): Don't allow symbols which were
1301 equated to register. Stop if there is an error.
1303 2008-03-01 Alan Modra <amodra@bigpond.net.au>
1305 * config/tc-ppc.h (struct _ppc_fix_extra): New.
1307 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
1308 * config/tc-ppc.c (ppu_cpu): Make global.
1309 (ppc_insert_operand): Add ppu_cpu parameter.
1310 (md_assemble): Adjust for above change.
1311 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
1313 2008-02-22 Nick Clifton <nickc@redhat.com>
1315 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
1316 targeted ARM ports, otherwise just skip generating the reloc.
1318 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
1320 * doc/c-i386.texi: Update -march= and .arch.
1322 2008-02-18 Nick Clifton <nickc@redhat.com>
1324 * config/tc-mn10300.c (has_known_symbol_location): New function.
1325 Do not regard weak symbols as having a known location.
1326 (md_estimate_size_before_relax): Use new function.
1327 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
1329 2008-02-18 Jan Beulich <jbeulich@novell.com>
1331 * config/tc-i386.c (match_template): Disallow 'l' suffix when
1332 currently selected CPU has no 32-bit support.
1333 (parse_real_register): Do not return registers not available on
1334 currently selected CPU.
1336 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
1338 * config/tc-i386.c (process_immext): Fix format.
1340 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
1342 * config/tc-i386.c (inoutportreg): New.
1343 (process_immext): New.
1344 (md_assemble): Use it.
1345 (update_imm): Use imm16 and imm32s.
1346 (i386_att_operand): Use inoutportreg.
1348 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
1350 * config/tc-i386.c (operand_type_all_zero): New.
1351 (operand_type_set): Likewise.
1352 (operand_type_equal): Likewise.
1353 (cpu_flags_all_zero): Likewise.
1354 (cpu_flags_set): Likewise.
1355 (cpu_flags_equal): Likewise.
1356 (UINTS_ALL_ZERO): Removed.
1357 (UINTS_SET): Likewise.
1358 (UINTS_CLEAR): Likewise.
1359 (UINTS_EQUAL): Likewise.
1360 (cpu_flags_match): Updated.
1361 (smallest_imm_type): Likewise.
1362 (set_cpu_arch): Likewise.
1363 (md_assemble): Likewise.
1364 (optimize_imm): Likewise.
1365 (match_template): Likewise.
1366 (process_suffix): Likewise.
1367 (update_imm): Likewise.
1368 (process_drex): Likewise.
1369 (process_operands): Likewise.
1370 (build_modrm_byte): Likewise.
1371 (i386_immediate): Likewise.
1372 (i386_displacement): Likewise.
1373 (i386_att_operand): Likewise.
1374 (parse_real_register): Likewise.
1375 (md_parse_option): Likewise.
1376 (i386_target_format): Likewise.
1378 2008-02-14 Dimitry Andric <dimitry@andric.com>
1381 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
1382 pointer past the comma after parsing a floating point register
1385 2008-02-14 Hakan Ardo <hakan@debian.org>
1388 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
1390 (avr_operand): Disallow post-increment addressing in the lpm
1391 instruction for the attiny26.
1393 2008-02-13 Jan Beulich <jbeulich@novell.com>
1395 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
1396 if not in Intel mode.
1397 (i386_intel_operand): Ignore segment overrides in immediate and
1399 (intel_e11): Range-check i.mem_operands before use as array
1400 index. Filter out FLAT for uses other than as segment override.
1401 (intel_get_token): Remove broken promotion of "FLAT:" to mean
1404 2008-02-13 Jan Beulich <jbeulich@novell.com>
1406 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
1408 2008-02-13 Jan Beulich <jbeulich@novell.com>
1410 * config/tc-i386.c (allow_pseudo_reg): New.
1411 (parse_real_register): Check for NULL just once. Allow all
1412 register table entries when allow_pseudo_reg is non-zero.
1413 Don't allow any registers without type when allow_pseudo_reg
1415 (tc_x86_regname_to_dw2regnum): Replace with ...
1416 (tc_x86_parse_to_dw2regnum): ... this.
1417 (tc_x86_frame_initial_instructions): Adjust for above change.
1418 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
1419 (tc_parse_to_dw2regnum): New.
1420 (tc_x86_regname_to_dw2regnum): Replace with ...
1421 (tc_x86_parse_to_dw2regnum): ... this.
1422 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
1423 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
1426 2008-02-12 Nick Clifton <nickc@redhat.com>
1428 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
1430 (tic4x_insn_add): Likewise.
1431 (md_begin): Drop cast that was discarding a const qualifier.
1432 * config/tc-d30v.c (get_reloc): Add const qualifier to op
1434 (build_insn): Drop cast that was discarding a const qualifier.
1436 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
1438 * config/tc-i386.c (cpu_arch): Add .xsave.
1439 (md_show_usage): Add .xsave.
1441 * doc/c-i386.texi: Add xsave to -march=.
1443 2008-02-07 Alan Modra <amodra@bigpond.net.au>
1445 * read.c (s_weakref): Don't pass unadorned NULL to concat.
1446 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
1448 2008-02-05 Sterling Augustine <sterling@tensilica.com>
1450 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
1451 checks into assertions. When relaxation produces an operation that
1452 does not fit in the current FLIX instruction, make sure that the
1453 operation is relaxed as needed to account for being placed following
1454 the current instruction.
1456 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
1459 * configure: Regenerated.
1461 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
1463 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
1465 2008-01-31 Marc Gauthier <marc@tensilica.com>
1467 * configure.tgt (xtensa*-*-*): Recognize processor variants.
1469 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
1471 * read.c: (emit_expr): Correct for mingw use of printf size
1474 2008-01-24 Bob Wilson <bob.wilson@acm.org>
1476 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
1477 can only be encoded in FLIX instructions but are not specified as such.
1478 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
1481 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
1483 * NEWS: Mention new command line options for x86 targets.
1485 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
1487 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
1489 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
1491 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
1493 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
1495 * config/tc-i386.c (md_show_usage): Show more processors for
1498 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
1500 * config/tc-i386.c (i386_target_format): Remove cpummx2.
1502 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
1504 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
1505 (XXX_MNEM_SUFFIX): Likewise.
1506 (END_OF_INSN): Likewise.
1507 (templates): Likewise.
1508 (modrm_byte): Likewise.
1509 (rex_byte): Likewise.
1510 (DREX_XXX): Likewise.
1511 (drex_byte): Likewise.
1512 (sib_byte): Likewise.
1513 (processor_type): Likewise.
1514 (arch_entry): Likewise.
1515 (cpu_sub_arch_name): Remove const.
1516 (cpu_arch): Add .vmx and .smx.
1517 (set_cpu_arch): Append cpu_sub_arch_name.
1518 (md_parse_option): Support -march=CPU[,+EXTENSION...].
1519 (md_show_usage): Updated.
1521 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
1522 (XXX_MNEM_SUFFIX): Likewise.
1523 (END_OF_INSN): Likewise.
1524 (templates): Likewise.
1525 (modrm_byte): Likewise.
1526 (rex_byte): Likewise.
1527 (DREX_XXX): Likewise.
1528 (drex_byte): Likewise.
1529 (sib_byte): Likewise.
1530 (processor_type): Likewise.
1531 (arch_entry): Likewise.
1533 * doc/as.texinfo: Update i386 -march option.
1535 * doc/c-i386.texi: Update -march= for ISA.
1537 2008-01-18 Bob Wilson <bob.wilson@acm.org>
1539 * config/tc-xtensa.c (xtensa_leb128): New function.
1540 (md_pseudo_table): Use it for sleb128 and uleb128.
1541 (is_leb128_expr): New internal flag.
1542 (xtensa_symbol_new_hook): Check new flag.
1544 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
1546 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
1547 at90usb82, at90usb162.
1548 * doc/c-avr.texi: Change architecture grouping for at90usb82,
1550 These changes support the new avr35 architecture group in gcc.
1552 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
1554 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
1555 suffix for AT&T syntax.
1557 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
1559 * config/tc-i386.c (match_reg_size): New.
1560 (match_mem_size): Likewise.
1561 (operand_size_match): Likewise.
1562 (operand_type_match): Also clear all size fields.
1563 (match_template): Skip Intel syntax when in AT&T syntax.
1564 Call operand_size_match to check operand size.
1565 (i386_att_operand): Set the mem field to 1 for memory
1567 (i386_intel_operand): Likewise.
1569 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
1572 * config/tc-i386.c (_i386_insn): Update comment.
1573 (operand_type_match): Also clear unspecified.
1574 (operand_type_register_match): Likewise.
1575 (parse_operands): Initialize unspecified.
1576 (i386_intel_operand): Likewise.
1577 (match_template): Check memory and accumulator operand size.
1578 (i386_att_operand): Clear unspecified on register operand.
1579 (intel_e11): Likewise.
1580 (intel_e09): Set operand size and clean unspecified for
1583 2008-01-11 Andreas Schwab <schwab@suse.de>
1585 * read.c (s_space): Declare `repeat' as offsetT.
1587 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1589 * config/tc-i386.c (match_template): Check processor support
1592 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1594 * config/tc-i386.c (match_template): Continue if processor
1597 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
1599 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
1600 unwind personality function address.
1602 2008-01-09 Bob Wilson <bob.wilson@acm.org>
1604 * dwarf2dbg.c (out_sleb128): Delete.
1605 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
1606 (out_fixed_inc_line_addr): Delete.
1607 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
1608 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
1609 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
1610 (process_entries): Remove calls to out_fixed_inc_line_addr. When
1611 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
1612 * read.h (emit_expr_fix): New prototype.
1613 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
1614 (emit_expr_fix): New.
1616 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
1618 * config/tc-i386.c (match_template): Check register size
1619 only when size of operands can be encoded the canonical way.
1621 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
1623 * config/tc-i386.c (i386_operand): Renamed to ...
1624 (i386_att_operand): This.
1625 (parse_operands): Updated.
1627 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
1629 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
1631 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
1633 (md_assemble): Remove Intel mode workaround.
1634 (match_template): Check support for old gcc, AT&T mnemonic
1636 (md_parse_option): Don't set intel_mnemonic to 0 for
1639 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
1641 * config/tc-i386.h: Update copyright to 2008.
1643 2008-01-04 Nick Clifton <nickc@redhat.com>
1645 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
1646 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
1648 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1650 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
1653 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1655 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
1656 (cpu_flags_not): Likewise.
1657 (cpu_flags_match): Updated to check 64bit and arch.
1658 (set_code_flag): Remove cpu_arch_flags_not.
1659 (set_16bit_gcc_code_flag): Likewise.
1660 (set_cpu_arch): Likewise.
1661 (md_begin): Likewise.
1662 (parse_insn): Call cpu_flags_match to check 64bit and arch.
1663 (match_template): Likewise.
1665 2008-01-03 Jakub Jelinek <jakub@redhat.com>
1667 * config/tc-i386.c (process_drex): Initialize modrm_reg and
1668 modrm_regmem to 0 instead of None.
1670 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1672 * config/tc-i386.c (match_template): Use the xmmword field
1675 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1677 * config/tc-i386.c (process_suffix): Fix a typo.
1679 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1682 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1683 Check memory size in Intel mode.
1684 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1685 (intel_e09): Likewise.
1687 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1689 2008-01-02 Catherine Moore <clm@codesourcery.com>
1691 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1693 For older changes see ChangeLog-2007
1699 version-control: never