1 2008-11-04 Sterling Augustine <sterling@tensilica.com>
3 * config/tc-xtensa.c (tinsn_check_arguments): Check for multiple
4 writes to the same register.
6 2008-11-04 Sterling Augustine <sterling@tensilica.com>
8 * config/tc-xtensa.c (xtensa_j_opcode): New.
9 (xg_instruction_matches_option_term): Handle "FREEREG" option.
10 (xg_build_to_insn): Likewise. Update renamed tls_reloc reference.
11 (md_begin): Initialize xtensa_j_opcode.
12 (md_assemble): Update renamed tls_reloc reference. Handle "j.l".
13 (xg_assemble_vliw_tokens): Save free_reg info in the frag.
14 (tinsn_immed_from_frag): Get free_reg info back out of the frag.
15 (vinsn_to_insnbuf): Update renamed tls_reloc references.
16 Distinguish extra argument for "FREEREG" from extra TLS argument.
17 * config/tc-xtensa.h (struct xtensa_frag_type): Add free_reg field.
18 * config/xtensa-istack.h (struct tinsn_struct): Rename tls_reloc
20 * config/xtensa-relax.c (widen_spec_list): Add rules to relax "j.l".
21 (build_transition): Handle "FREEREG" operand.
22 * config/xtensa-relax.h (enum op_type): Add OP_FREEREG.
24 2008-10-31 Alan Modra <amodra@bigpond.net.au>
28 2008-10-24 Maciej W. Rozycki <macro@linux-mips.org>
30 * config/tc-mips.c (mips_cpu_info_table): Move the MIPS64r2
31 comment so that Broadcom SB-1 cores are in the MIPS64 section.
33 2008-10-21 Alan Modra <amodra@bigpond.net.au>
35 * config/tc-bfin.c (gencode, allocate): Remove unnecessary cast.
36 * config/tc-ns32k.c (bit_fix_new): Likewise.
37 * config/tc-m68k.c (md_begin): Likewise.
38 * hash.c (hash_insert, hash_jam): Likewise.
39 * symbols.c (symbol_create, local_symbol_make): Likewise.
40 * frags.c (frag_alloc): Likewise.
42 2008-10-20 Jay Krell <jay.krell@cornell.edu>
44 * config/bfin-parse.y: Use C style comments.
45 * config/tc-bfin.c: Likewise.
46 * config/tc-m68k.c: Likewise.
47 * config/tc-mips.c: Likewise.
49 2008-10-12 H.J. Lu <hongjiu.lu@intel.com>
51 * config/tc-i386.c (processor_type): Moved to tc-i386.h.
52 (cpu_arch_tune): Make it global.
53 (cpu_arch_isa): Likewise.
54 (cpu_arch_isa_flags): Likewise.
55 (i386_align_code): Check fragP->tc_frag_data.isa,
56 fragP->tc_frag_data.isa_flags and cpu_arch_tune instead of
57 cpu_arch_isa, cpu_arch_isa_flags and cpu_arch_tune,
60 * config/tc-i386.h (processor_type): Moved from tc-i386.c.
62 (cpu_arch_isa): Likewise.
63 (cpu_arch_isa_flags): Likewise.
64 (i386_tc_frag_data): Likewise.
65 (TC_FRAG_TYPE): Likewise.
66 (TC_FRAG_INIT): Likewise.
68 2008-10-09 Bob Wilson <bob.wilson@acm.org>
70 * doc/as.texinfo (Pseudo Ops): Swap order of Comm and CFI menu entries.
71 (Altmacro, Comm, Loc, Loc_mark_labels, List, MRI, PopSection, Sleb128):
72 Moved into alphabetical order.
74 2008-10-09 Bob Wilson <bob.wilson@acm.org>
76 * doc/as.texinfo (Dot): Expand no-space-dir conditional to include
78 (Pseudo Ops): Put conditionals around Skip and Space menu entries.
79 (Line): Remove conditional declaration of Ln node and section here.
80 Put aout-bout description inside the no-line-dir conditional.
81 (Skip, Space): Use a separate conditional for each node.
83 2008-10-09 Bob Wilson <bob.wilson@acm.org>
85 * doc/as.texinfo (Pseudo Ops): Remove no-file-dir conditional around
86 menu entry for File; remove version-specific .file operands from menu
87 description. Replace "LNS directives" menu entry with new entries
88 for "Loc" and "Loc_mark_labels".
89 (LNS directives): Split into separate nodes for each directive.
90 (Loc): New node for .loc directive. Mention that this directive
91 is for DWARF2 and add a missing article.
92 (Loc_mark_labels): Likewise for .loc_mark_labels.
93 (File): Change this node to describe both the default version and
94 the DWARF2 version of .file. Move the no-file-dir conditional to
95 include only the default version.
97 2008-10-09 Eric Botcazou <ebotcazou@adacore.com>
99 * dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame.
100 * config/tc-i386.h (md_fix_up_eh_frame): Define on Solaris.
101 (i386_solaris_fix_up_eh_frame): Declare.
102 * config/tc-i386.c (i386_solaris_fix_up_eh_frame): New function.
104 2008-10-09 Nick Clifton <nickc@redhat.com>
107 * doc/as.texinfo (Dollar Local Labels): Correct description of
108 dollar local labels to show that the colon suffix is still
111 2008-10-08 Nick Clifton <nickc@redhat.com>
113 * configure.in (ALL_LINGUAS): Add "id".
114 * configure: Regenerate.
115 * po/id.po: New Indonesian translation.
117 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
119 * read.c (pseudo_set): Don't allow global register symbol only
120 if TC_GLOBAL_REGISTER_SYMBOL_OK is undefined.
121 * symbols.c (S_SET_EXTERNAL): Likewise.
123 * config/tc-mmix.h (TC_GLOBAL_REGISTER_SYMBOL_OK): Defined.
125 * doc/internals.texi: Document TC_GLOBAL_REGISTER_SYMBOL_OK.
127 2008-10-06 Bob Wilson <bob.wilson@acm.org>
129 * doc/as.texinfo (Local): New description of ELF .local directive.
131 2008-10-06 Nick Clifton <nickc@redhat.com>
134 * read.c (get_line_sb): Renamed to get_non_macro_line_sb.
135 (_find_end_of_line): Add extra parameter indicating if the line is
136 inside a macro. If it is then do not allow the @ character to be
137 treated as a line separator character.
138 (read_a_source): Update use of _find_end_of_line.
139 (find_end_of_line): Likewise.
140 (s_irp): Update use of get_line_sb.
142 (do_repeat): Likewise.
143 (get_line_sb): New function. Like the old version of get_line_sb
144 except that it takes an extra parameter indicating whether the
145 line is inside a macro.
146 (get_macro_line_sb): New function.
148 2008-10-04 Hans-Peter Nilsson <hp@axis.com>
150 * config/tc-cris.c: Update all comments regarding explicit relocations
151 to, besides PIC, also imply TLS or to say "relocation specifier" or
153 (RELOC_SUFFIX_CHAR): Rename from PIC_SUFFIX_CHAR. Change all callers.
154 (cris_get_reloc_suffix): Rename from cris_get_pic_suffix. Change all
155 callers. Also handle TLS relocs.
156 (cris_get_specified_reloc_size): Rename from cris_get_pic_reloc_size.
157 Change all callers. Also handle TLS relocs.
159 (cris_process_instruction): Check for non-PIC TLS relocations and
160 adjust message when emitting error message about relocation not
162 (get_autoinc_prefix_or_indir_op): Also check for relocation suffix
164 (get_3op_or_dip_prefix_op): Ditto.
165 (cris_number_to_imm, tc_gen_reloc): Handle TLS relocs like PIC relocs.
167 2008-10-03 Kazu Hirata <kazu@codesourcery.com>
169 * listing.c (buffer_line): Open the source file with FOPEN_RB.
170 Manually process line ends.
172 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca>
173 Nick Clifton <nickc@redhat.com>
175 * config/tc-tic4x.c (tic4x_globl): Call S_SET_EXTERNAL as well as
178 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca>
179 Nick Clifton <nickc@redhat.com>
181 * coffgen.c (coff_write_symbols): Check to see if a symbol's flags
182 do not match it class and if necessary update the class.
183 (null_error_handler): New function. Suppresses the generation of
185 * coff64-rs6000.c (bfd_xcoff_backend_data): Update comment.
187 2008-09-30 Alan Modra <amodra@bigpond.net.au>
189 * Makefile.am: Run "make dep-am".
190 * Makefile.in: Regenerate.
192 2008-09-29 Nick Clifton <nickc@redhat.com>
194 * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
195 tc_cfi_emit_pcrel_expr macro.
197 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
198 Steve Ellcey <sje@cup.hp.com>
200 * configure: Regenerate for new libtool.
202 * Makefile.in: Ditto.
203 * doc/Makefile.in: Ditto.
205 2008-09-29 Nick Clifton <nickc@redhat.com>
208 * app.c (do_scrub_chars): Only issue warnings about tick
209 characters detected in symbol strings if hex ticks are supported.
211 2008-09-29 Nick Clifton <nickc@redhat.com>
213 * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
214 tc_cfi_emit_pcrel_expr macro.
216 2008-09-28 Daniel Jacobowitz <dan@codesourcery.com>
218 * NEWS: Mention .cfi_val_encoded_addr.
220 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
222 * Makefile.am (TARG_ENV_HFILES): Add config/te-solaris.h.
223 * Makefile.in (TARG_ENV_HFILES): Likewise.
224 * configure.tgt (Solaris targets): Set em=solaris.
225 * config/te-solaris.h: New file.
227 2008-09-26 Jie Zhang <jie.zhang@analog.com>
229 * config/bfin-parse.y (asm_1): Fix reduce/reduce conflicts.
231 2008-09-24 Richard Henderson <rth@redhat.com>
233 * dw2gencfi.c (DWARF2_ADDR_SIZE): Provide default.
234 (struct cfi_insn_data): Add ea member.
235 (CFI_val_encoded_addr, dot_cfi_val_encoded_addr): New.
236 (output_cfi_insn): Handle CFI_val_encoded_addr.
237 (select_cie_for_fde): Don't match CFI_val_encoded_addr.
238 * doc/as.texinfo (.cfi_val_encoded_addr): Document.
240 2008-09-25 Alan Modra <amodra@bigpond.net.au>
243 * listing.c (print_options): Don't call fprintf without format string.
245 2008-09-19 Alan Modra <amodra@bigpond.net.au>
247 * write.c (TC_FORCE_RELOCATION_SUB_LOCAL): Heed md_register_arithmetic.
248 (TC_VALIDATE_FIX_SUB): Likewise.
249 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
250 * config/tc-hppa.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
251 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Likewise.
252 * config/tc-sh.h (TC_VALIDATE_FIX_SUB): Likewise.
253 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
254 * config/tc-sh64.h (TC_VALIDATE_FIX_SUB): Likewise.
255 * config/tc-xtensa.h (TC_VALIDATE_FIX_SUB): Likewise.
256 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS,
257 TC_FORCE_RELOCATION_SUB_LOCAL, TC_VALIDATE_FIX_SUB): Show new param.
259 * write.c (md_register_arithmetic): Define.
260 (fixup_segment): Adjust TC_FORCE_RELOCATION_SUB_ABS invocation.
261 Modify error message when registers involved.
262 (TC_FORCE_RELOCATION_SUB_ABS): Heed md_register_arithmetic.
263 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Likewise.
265 2008-09-15 Alan Modra <amodra@bigpond.net.au>
267 * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
269 2008-09-15 Alan Modra <amodra@bigpond.net.au>
271 * config/tc-frv.c (md_apply_fix): Use abs_section_sym for
272 relocs with no symbol.
273 * config/tc-mmix.c (md_assemble): Mark fake symbol on
274 BFD_RELOC_MMIX_BASE_PLUS_OFFSET as OK for use by relocs.
275 (mmix_md_end): Likewise mark mmix reg contents section symbol.
277 2008-09-14 Chris Smith <chris@zxdesign.info>
279 * config/tc-z80.c: Opcode generation of ld a,(bc) and ld a,(de) was
280 broken, as the opcode of ld a,(de) was being emitted for both.
282 2008-09-12 Sterling Augustine <sterling@tensilica.com>
284 * config/tc-xtensa.c (init_op_placement_info_table): Allow number of
285 operands equal to MAX_INSN_ARGS.
287 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
289 * configure.in: Call AC_SYS_LARGEFILE.
290 * config.in: Regenerate.
291 * configure: Regenerate.
293 2008-09-09 Peter Bergner <bergner@vnet.ibm.com>
295 * config/tc-ppc.c (ppc_setup_opcodes): Simplify POWER4/NOPOWER4 test.
296 Remove POWER5 and POWER6 tests.
298 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
300 * config/tc-hppa.c (hppa_regname_to_dw2regnum): Add register name to
301 number support for 32-bit targets.
303 2008-09-08 Tristan Gingold <gingold@adacore.com>
305 * NEWS: Add a marker for the 2.19 features.
307 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
309 * config/tc-hppa.h (DIFF_EXPR_OK): Define for SOM target. Revise
310 comment regarding use of difference expressions.
311 (TC_FORCE_RELOCATION_SUB_LOCAL): Define to 1.
313 * dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
314 (dot_cfi_personality): Use CFI_DIFF_EXPR_OK instead of DIFF_EXPR_OK.
315 (dot_cfi_lsda, output_cie, output_fde): Likewise.
316 * config/tc-hppa.h (CFI_DIFF_EXPR_OK): Define.
318 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
320 * config/tc-mips.h (DWARF2_FDE_RELOC_SIZE): Define.
322 2008-09-03 Nick Clifton <nickc@redhat.com>
324 * config/tc-i386.c (pe_lcomm_internal): New function. Allows the
325 alignment field of the .lcomm directive to be optional.
326 (pe_lcomm): New function. Pass pe_lcomm_internal to
328 (md_pseudo_table): Implement .lcomm directive for COFF based
330 * doc/c-i386.texi (i386-Directives): New node. Used to document
331 the .lcomm directive.
333 2008-08-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
335 * config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
338 2008-08-29 Eric B. Weddington <eric.weddington@atmel.com>
340 * config/tc-avr.c (mcu_types): Add atmega16u4.
341 * doc/c-avr.texi: Likewise.
343 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
345 * config/tc-ia64.c (CR_IIB0): New.
347 (cr): Add cr.iib0 and cr.iib1.
348 (specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.
350 2008-08-28 Jan Beulich <jbeulich@novell.com>
352 * config/tc-i386.c (md_assemble): Force number of displacement
353 operands to zero when processing string instruction.
354 (i386_index_check): Special-case string instruction operands. Don't
355 fudge address prefix if there already was a memory operand. Fix
356 error message to correctly reflect the addressing mode used.
357 (i386_att_operand): Fix comment.
358 (i386_intel_operand): Snapshot, clear, and restore base and index
359 reg for each operand processed. Increment count of memory operands
362 2008-08-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
364 * config/tc-hppa.c (is_SB_relative): New macro.
365 (fix_new_hppa): Remove $segrel$ marker.
366 (cons_fix_new_hppa): Set reloc type R_PARISC_SEGREL32 if expression is
368 * config/tc-hppa.h (tc_frob_symbol): Check for $segrel$.
370 2008-08-27 Jan Beulich <jbeulich@novell.com>
372 * config/tc-i386.c (check_string): Use register_prefix for error
374 (process_operands): Likewise.
376 2008-08-26 Mark Mitchell <mark@codesourcery.com>
378 * c-arm.texi: Add tutorial on ARM unwinding pseudo ops.
380 2008-08-26 Jie Zhang <jie.zhang@analog.com>
382 * config/bfin-parse.y (check_macfunc_option): Fix instruction
384 (asm_1): Check mode for 16-bit multiply instructions.
386 2008-08-24 Alan Modra <amodra@bigpond.net.au>
388 * configure.in: Update a number of obsolete autoconf macros.
389 * configure: Regenerate.
390 * aclocal.m4: Regenerate.
392 2008-08-22 Nick Clifton <nickc@redhat.com>
394 * config/tc-mcore.c (md_assemble): Increase length of name array
395 to include terminating NUL.
397 2008-08-22 Jie Zhang <jie.zhang@analog.com>
399 * config/bfin-lex.l (NUMBER): Protect special `.'.
401 2008-08-22 Alan Modra <amodra@bigpond.net.au>
403 * symbols.c (symbol_clone): Ensure clones are not external.
405 2008-08-22 Alan Modra <amodra@bigpond.net.au>
407 * config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".
409 2008-08-21 Richard Henderson <rth@redhat.com>
411 * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.
412 (output_cie, output_fde): Use it.
413 (DWARF2_EH_FRAME_READ_ONLY): New.
414 (cfi_finish): Use it.
416 * config/tc-hppa.h (DWARF2_FDE_RELOC_SIZE): Set to 8 for 64-bit.
417 (DWARF2_CIE_DATA_ALIGNMENT): Change sign.
418 (DWARF2_EH_FRAME_READ_ONLY): New.
419 * config/tc-hppa.c (tc_gen_reloc): Generate pc-relative relocations
420 from the results of DIFF_EXPR_OK manipulation.
422 2008-08-21 Sterling Augustine <sterling@tensilica.com>
424 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase to 64.
426 2008-08-20 Bob Wilson <bob.wilson@acm.org>
428 * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
429 (O_tpoff, O_dtpoff): Define.
430 (suffix_relocs): Add entries for TLS suffixes.
431 (xtensa_elf_cons): Check for invalid use of TLS relocations.
432 (map_operator_to_reloc): Add is_literal parameter and use it to
433 control translating TLS instruction relocations to the corresponding
435 (xg_valid_literal_expression): Allow TLS operators.
436 (xg_build_to_insn): Copy TLS operators from pseudo-instruction
437 operands to generated literals.
438 (xg_assemble_literal): Handle TLS operators. Update call to
439 map_operator_to_reloc.
440 (md_assemble): Handle CALLXn.TLS pseudo-instruction.
441 (md_apply_fix): Handle TLS relocations.
442 (emit_single_op): Handle TLS operators.
443 (convert_frag_immed): Update call to map_operator_to_reloc.
444 (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
445 * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
446 * config/xtensa-relax.c (append_literal_op): Add src_op parameter
447 to initialize the op_data field of the BuildOp.
448 (build_transition): Use it here to record the source operand
449 corresponding to a generated literal.
450 * config/xtensa-relax.h (build_op): Comment op_data use for literals.
452 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
454 AVX Programming Reference (August, 2008)
455 * config/tc-i386.c (CPU_FLAGS_AES_MATCH): New.
456 (CPU_FLAGS_AVX_MATCH): Likewise.
457 (CPU_FLAGS_32BIT_MATCH): Updated.
458 (cpu_flags_match): Likewise.
460 2008-08-20 Alan Modra <amodra@bigpond.net.au>
463 * write.c (install_reloc): Check that reloc symbols have been
465 (set_symtab): Mark symbols with BSF_KEEP.
467 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
469 * config/tc-i386.c (i386_align_code): Fix a comment typo.
471 2008-08-15 Alan Modra <amodra@bigpond.net.au>
474 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
475 * Makefile.in: Regenerate.
476 * aclocal.m4: Regenerate.
477 * config.in: Regenerate.
478 * configure: Regenerate.
479 * doc/Makefile.in: Regenerate.
481 2008-08-14 Alan Modra <amodra@bigpond.net.au>
483 * config/tc-tic4x.c (tic4x_operands_parse): Make static.
485 2008-08-13 Ben Elliston <bje@au.ibm.com>
487 * doc/as.texinfo (Align): Document the PowerPC behaviour.
489 2008-08-13 Alan Modra <amodra@bigpond.net.au>
491 * as.c, as.h, ecoff.c, hash.c, macro.c, symbols.c, config/obj-evax.c,
492 config/obj-som.c, config/tc-alpha.c, config/tc-arm.c, config/tc-bfin.c,
493 config/tc-bfin.h, config/tc-crx.c, config/tc-frv.c, config/tc-frv.h,
494 config/tc-hppa.h, config/tc-i386.c, config/tc-i860.c, config/tc-i960.h,
495 config/tc-ia64.c, config/tc-ia64.h, config/tc-m32c.c, config/tc-m32c.h,
496 config/tc-m68k.c, config/tc-maxq.c, config/tc-s390.c, config/tc-s390.h,
497 config/tc-sparc.c, config/tc-sparc.h, config/tc-spu.c, config/tc-spu.h,
498 config/tc-tic4x.c, config/tc-tic4x.h, config/tc-tic54x.c,
499 config/tc-tic54x.h, config/tc-vax.c, doc/internals.texi: Banish PARAMS
500 and PTR. Convert to ISO C. Delete unnecessary forward declarations.
502 2008-08-12 Alan Modra <amodra@bigpond.net.au>
504 * config/tc-arm.c (s_unreq): Adjust hash_delete call.
505 * config/tc-ia64.c (dot_rot): Likewise.
507 2008-08-11 Alan Modra <amodra@bigpond.net.au>
510 * hash.c: Expand PTR to void *.
511 (hash_delete): Add "freeme" parameter. Call obstack_free.
512 * hash.h: Expand PTR to void *.
513 (hash_delete): Update prototype.
514 * macro.c (macro_expand_body): hash_delete LOCALs from formal_hash.
515 * config/tc-tic54x.c (tic54x_remove_local_label): Update hash_delete
517 (subsym_substitute): Likewise.
518 * doc/internals.texi (hash_delete): Update.
520 2008-08-08 Anatoly Sokolov <aesok@post.ru>
522 * config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
523 architectures. Reorganize list to put mcu types in correct
524 architectures and to order list same as in GCC. Use new ISA
525 definitions in include/opcode/avr.h.
526 * doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
527 descriptions. Reorganize descriptions to put mcu types in correct
528 architectures and to order lists same as in GCC.
530 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
531 Daniel Jacobowitz <dan@codesourcery.com>
533 * config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
534 (OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
535 (OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
536 (OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
537 (md_longopts): Add -call_nonpic.
538 (md_parse_option): Handle OPTION_CALL_NONPIC.
539 (md_show_usage): Add -call_nonpic.
541 2008-08-08 Sterling Augustine <sterling@tensilica.com>
543 * config/tc-xtensa.c (exclude_section_from_property_tables): New.
544 (xtensa_create_property_segments): Use it.
545 (xtensa_create_xproperty_segments): Likewise.
547 2008-08-08 Alan Modra <amodra@bigpond.net.au>
549 * doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.
551 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
553 * config/tc-mips.c (mips16_reloc_p, got16_reloc_p, hi16_reloc_p)
554 (lo16_reloc_p): New functions.
555 (reloc_needs_lo_p): Use hi16_reloc_p and got16_reloc_p to
556 generalize relocation checks.
557 (matching_lo_reloc): New function.
558 (fixup_has_matching_lo_p): Use it.
559 (mips16_mark_labels): Don't clobber a symbol's visibility.
560 (append_insn): Use hi16_reloc_p and lo16_reloc_p.
561 (mips16_ip): Handle BFD_RELOC_MIPS16_GOT16 and BFD_RELOC_MIPS16_CALL16.
562 (md_apply_fix): Likewise.
563 (mips16_percent_op): Add %got and %call16.
564 (mips_frob_file): Use got16_reloc_p to generalize relocation checks.
565 Use matching_lo_reloc.
566 (mips_force_relocation): Use hi16_reloc_p and lo16_reloc_p to
567 generalize relocation checks.
568 (mips_fix_adjustable): Use lo16_reloc_p to generalize relocation
571 2008-08-06 DJ Delorie <dj@redhat.com>
573 * NEWS: Mention these changes.
575 * config/tc-h8300.h (H_TICK_HEX): Define.
576 * config/tc-h8300.c (OPTION_H_TICK_HEX): New.
577 (md_longopts): Add "-h-tick-hex".
578 (md_parse_option): Support it.
579 * doc/c-h8300.texi (H8/300 Options): Document it.
580 * doc/as.texinfo (Overview): Likewise.
582 * config/tc-sh.h (H_TICK_HEX): Define.
583 * config/tc-sh.c (OPTION_H_TICK_HEX): New.
584 (md_longopts): Add "-h-tick-hex".
585 (md_parse_option): Support it.
586 * doc/c-sh.texi (SH Options): Document it.
587 * doc/c-sh64.texi (SH64 Options): Document it.
588 * doc/as.texinfo (Overview): Likewise.
590 2008-08-05 Alan Modra <amodra@bigpond.net.au>
593 * dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
594 debug info if we see compiler generated debug info.
595 (dwarf2_directive_loc): Likewise. Remove redundant debug_type test.
597 2008-08-04 Alan Modra <amodra@bigpond.net.au>
599 * dwarf2dbg.c: Remove superfluous forward function declarations.
600 (DWARF2_FORMAT): Add section arg.
601 (out_header): New function, split out from..
602 (out_debug_line): ..here.
603 (out_debug_aranges): Use out_header.
604 (out_debug_abbrev): Add info_seg and line_seg args. Use
605 DW_FORM_data8 (for DW_AT_stmt_list) if line_seg is 64-bit.
606 (out_debug_info): Use out_header. Output 8 byte DW_AT_stmt_list
607 if line_seg is 64-bit.
608 (dwarf2_finish): Adjust out_debug_abbrev call.
609 * config/tc-mips.h (DWARF2_FORMAT, mips_dwarf2_format): Add sec arg.
610 * config/tc-mips.c (mips_dwarf2_format): Likewise.
612 2008-08-04 Alan Modra <amodra@bigpond.net.au>
614 * Makefile.am (POTFILES.in): Set LC_ALL=C.
615 * Makefile.in: Regenerate.
616 * po/POTFILES.in: Regenerate.
618 2008-08-01 Peter Bergner <bergner@vnet.ibm.com>
620 * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
621 Handle -mvsx and -mpower7.
622 (md_show_usage): Document -mpower7 and -mvsx.
623 * doc/as.texinfo (Target PowerPC): Document -mvsx.
624 * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
626 2008-07-31 Peter Bergner <bergner@vnet.ibm.com>
628 * config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
631 2008-07-30 Michael J. Eager <eager@eagercon.com>
633 * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
634 (md_show_usage): Likewise.
636 2008-07-30 Alan Modra <amodra@bigpond.net.au>
638 * messages.c, symbols.c, write.c: Silence gcc warnings.
640 2008-07-28 Ineiev <ineiev@yahoo.co.uk>
642 * config/tc-i386.c (operand_type_check): Warning fix.
644 2008-07-26 Michael Eager <eager@eagercon.com>
646 * doc/as.texinfo: Add description of single-precision attribute.
648 2008-07-24 Jie Zhang <jie.zhang@analog.com>
650 * config/bfin-parse.y (asm_1): Error if plain symbol is used
651 as load/store offset.
653 2008-07-22 Chao-ying Fu <fu@mips.com>
655 * config/tc-mips.c (mips_ip): Reset s to argsStart.
657 2008-07-22 Jie Zhang <jie.zhang@analog.com>
659 * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
661 2008-07-21 DJ Delorie <dj@redhat.com>
663 * config/tc-h8300.c (fix_operand_size): Use the default size
664 specified by the .lbranch/.sbranch pseudos.
666 2008-07-18 DJ Delorie <dj@redhat.com>
668 * config/tc-m32c.h (H_TICK_HEX): Define.
669 * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
670 (md_longopts): Add support for it.
671 (md_parse_option): Likewise.
672 * doc/as.texinfo (Overview): Add new m32c options.
673 * doc/c-m32c.texi (M32C-Modifiers): Likewise
675 * as.h: (enable_h_tick_hex): New.
676 * app.c (enable_h_tick_hex): New.
678 (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
679 (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
680 style hex constants and convert the input stream to 0x00 style.
681 (do_scrub_chars): If a 'X style character constant is found after
682 a symbol character (like you're or X'00), warn the user.
684 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
686 * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
687 (mips_fix_adjustable): Likewise.
688 (mips_frob_file_after_relocs): Likewise.
690 2008-07-08 Nathan Sidwell <nathan@codesourcery.com>
692 * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
693 about overriding an earlier setting.
695 2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
697 * config/tc-mips.c (NO_ISA_COP): New macro.
698 (COP_INSN): New macro.
699 (is_opcode_valid): Use them.
700 (macro) <ld_st>: Use them. Don't accept coprocessor load store
701 insns based on the ISA if CPU is NO_ISA_COP.
702 <copz>: Likewise for coprocessor operations.
704 2008-07-07 Paul Brook <paul@codesourcery.com>
706 * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
709 2008-07-07 Ralf Corsépius <ralf.corsepius@rtems.org>
711 * configure.tgt: Add bfin-*-rtems*.
713 2008-07-04 Alan Modra <amodra@bigpond.net.au>
715 * config/tc-spu.c (md_apply_fix): Handle fully resolved
716 BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
718 2008-06-25 Peter Bergner <bergner@vnet.ibm.com>
720 * config/tc-ppc.c (parse_cpu): Handle -m464.
721 (md_show_usage): Likewise.
723 2008-06-24 Eric B. Weddington <eric.weddington@atmel.com>
725 Add support for ATtiny13A.
726 * config/tc-avr.c (mcu_types): Add attiny13a.
727 * doc/c-avr.texi: Likewise.
729 2008-06-24 Bob Wilson <bob.wilson@acm.org>
730 Alan Modra <amodra@bigpond.net.au>
732 * write.c (relax_segment <rs_org>): Include current stretch
733 value when calculating whether .org is backwards.
735 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
737 * configure: Regenerate.
739 2008-06-17 Nick Clifton <nickc@redhat.com>
741 * app.c (do_scrub_chars): Do not UNGET an EOF value.
743 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
746 * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
747 text_section. Do the "stepping backwards" test for text_section
748 using unsigned operands.
750 2008-06-13 Peter Bergner <bergner@vnet.ibm.com>
752 * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
753 (ppc_insert_operand): Likewise.
754 (ppc_machine): Likewise.
755 * config/tc-ppc.h: #include "opcode/ppc.h"
756 (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
757 (ppc_cpu): Update extern decl.
759 2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
761 * config/tc-mips.c (validate_mips_insn): Handle field descriptors
762 +x, +X, +p, +P, +s, +S.
765 * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
767 (macro_build): Likewise.
768 (CPU_HAS_SEQ): New macro.
769 (macro2) <M_SEQ_I, M_SNE_I>: Use it. Emit seq/sne and seqi/snei.
771 2008-06-09 Eric B. Weddington <eric.weddington@atmel.com>
773 * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
774 * doc/c-avr.texi: Likewise.
776 2008-06-04 Nick Clifton <nickc@redhat.com>
778 * app.c (do_scrub_chars): Do not UNGET an EOF value.
780 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
782 * config/tc-i386.c (set_sse_check): New.
783 (md_pseudo_table): Add "sse_check".
785 2008-06-03 Paul Brook <paul@codesourcery.com>
787 * config/tc-arm.c (do_t_rbit): Populate both rm fields.
789 2008-05-30 Nick Clifton <nickc@redhat.com>
792 * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
795 2008-05-29 Maxim Kuvyrkov <maxim@codesourcery.com>
797 * config/tc-mips.c (mips_cpu_info_table): Move records for
798 ST Loongson-2E/2F processors to a better place.
800 2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
803 * config/tc-i386.c (match_template): Report ambiguous operand
804 size, not invalid suffix when there is no match in Intel
807 2008-05-22 Paul Brook <paul@codesourcery.com>
809 * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
811 2008-05-21 I-Jui Sung <ijsung@gmail.com>
813 * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
814 compatible cores: fa526, fa626, fa626te, fa726te.
815 * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
818 2008-05-14 Alan Modra <amodra@bigpond.net.au>
820 * Makefile.am: Run "make dep-am".
821 * Makefile.in: Regenerate.
822 * doc/Makefile.in: Regenerate.
823 * po/POTFILES.in: Regenerate.
825 2008-05-09 Catherine Moore <clm@codesourcery.com>
827 * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
828 with non-MIPS16 relocs.
830 2008-05-09 Chao-ying Fu <fu@mips.com>
832 * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
833 case that some characters append at the end of the name.
835 (s_change_sec): Likewise.
836 (md_section_align): Likewise.
838 2008-05-07 Bob Wilson <bob.wilson@acm.org>
840 * config/tc-xtensa.c (xtensa_create_property_segments): Use
841 xtensa_make_property_section instead of xtensa_get_property_section.
842 (xtensa_create_xproperty_segments): Likewise.
844 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
846 * NEWS: Mention XSAVE, EPT and MOVBE.
848 * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
849 (md_show_usage): Add .movbe and .ept.
851 * doc/c-i386.texi: Add movbe and ept to -march=. Document
854 2008-04-29 David S. Miller <davem@davemloft.net>
856 * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
858 2008-04-28 Adam Nemet <anemet@caviumnetworks.com>
860 * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
862 (OPTION_ELF_BASE): Make room for new option macros.
863 (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
864 OPTION_DOUBLE_FLOAT): New option macros.
865 (md_longopts): Add msoft-float, mhard-float, msingle-float and
867 (md_parse_option): Handle OPTION_SINGLE_FLOAT,
868 OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
869 (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
871 (struct mips_set_options): New fields soft_float and single_float.
872 (mips_opts): Initialized them. Add comment for each field
874 (mips_after_parse_args): Set them based on file_mips_soft_float
875 and file_mips_single_float.
876 (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
877 `.set singlefloat' and `.set doublefloat'.
878 (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
879 Handle single-float and soft-float instructions here.
880 (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
881 (is_opcode_valid_16): New function.
882 (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
883 (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
884 M_S_DOB>: Remove special-casing of r4650.
885 * doc/c-mips.texi (-march=): Add Octeon.
886 (MIPS Opts): Document -msoft-float and -mhard-float. Document
887 -msingle-float and -mdouble-float.
888 (MIPS floating-point): New section. Document `.set softfloat' and
889 `.set hardfloat'. Document `.set singlefloat' and `.set
892 2008-04-25 David S. Miller <davem@davemloft.net>
894 * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
897 * doc/c-sparc.texi: Consistently refer to architecture 'versions',
898 rather than occaisionally 'levels'. Consistently refer to Sun's
899 UNIX variant as SunOS, every version of Solaris is also SunOS.
900 Document new 'softint_clear' and 'softint_set' aliases. Clarify
901 which architecture versions support '%dcr', '%cq', and '%gl'. Add
902 section on 32-bit/64-bit opcode translations.
904 2008-04-23 Mike Frysinger <vapier@gentoo.org>
906 * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
907 (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
908 (obj-fdpicelf.o): Define.
909 * Makefile.in: Regenerate.
910 * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
912 (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
913 (bfin-*-uclinux*): New; set fmt to elf and em to linux.
914 * config/obj-fdpicelf.c: New.
915 * config/obj-fdpicelf.h: Likewise.
916 * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
917 the OBJ_FDPIC_ELF define.
918 (OPTION_NOPIC): Define.
919 (md_longopts): Add mnopic and mno-fdpic.
920 (md_parse_option): Handle OPTION_NOPIC.
922 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
924 * aclocal.m4: Regenerate.
925 * configure: Regenerate.
927 2008-04-23 David S. Miller <davem@davemloft.net>
929 * config/tc-sparc.c (v9a_asr_table): Add missing
930 'stick' and 'stick_cmpr', and document ordering rules
932 (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
933 BFD_RELOC_SPARC_PC10.
934 * doc/c-sparc.texi: New section on Sparc constants.
935 Add documentation for %stick and %stick_cmpr.
937 2008-04-22 David S. Miller <davem@davemloft.net>
939 * config/obj-elf.c (obj_elf_section_type): Add prototype
940 before obj_elf_section_word and add 'warn' arg.
941 (obj_elf_section_word): Add type pointer arg, and if no #SECTION
942 is matched, try checking for #SECTION_TYPE.
943 (obj_elf_section): Adjust for new args.
944 (obj_elf_type_name): New function.
945 (obj_elf_type): Call it, and accept STT_foo number strings
946 in .type statements as output by SunPRO compiler.
948 2008-04-22 H.J. Lu <hongjiu.lu@intel.com>
950 * config/tc-i386.c (md_assemble): Don't check SSE instructions
953 2008-04-18 David S. Miller <davem@davemloft.net>
955 * doc/c-sparc.texi: Add syntax section.
957 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
959 * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
960 REG and NDS for instructions with immediate operand.
962 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
964 * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
967 2008-04-16 David S. Miller <davem@davemloft.net>
969 * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
970 and relocation generation.
971 (tc_gen_reloc): Likewise.
973 2008-04-15 Andrew Stubbs <andrew.stubbs@st.com>
975 * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
976 relocations are properly aligned, and not negative.
978 2008-04-15 Khem Raj <kraj@mvista.com>
980 * doc/tc-arm.texi: Fix fnstart and fnend directive names.
982 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
984 * config/tc-ppc.c (parse_cpu): Handle "e500mc". Extend "e500" to
985 accept e500mc instructions.
986 (md_show_usage): Document -me500mc.
988 2008-04-11 Nick Clifton <nickc@redhat.com>
990 * listing.c (print_timestamp): Use localtime rather than
991 localtime_r since not all build environments provide the latter.
993 2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
995 * NEWS: Mention -msse-check=[none|error|warning].
997 * config/tc-i386.c (sse_check): New.
998 (OPTION_MSSE_CHECK): Likewise.
999 (md_assemble): Check SSE instructions if needed.
1000 (md_longopts): Add -msse-check.
1001 (md_parse_option): Handle OPTION_MSSE_CHECK.
1002 (md_show_usage): Show -msse-check=[none|error|warning].
1004 * doc/c-i386.texi: Document -msse-check=[none|error|warning].
1006 2008-04-10 Santiago Urueña <suruena@gmail.com>
1008 * listing.c: Add -ag listing flag to show general information in
1009 listings such as gas version, passed options, and time stamp.
1010 (listing_general_info): New function.
1011 (print_options): New function.
1012 (print_single_option): New function.
1013 (print_timestamp): New function.
1014 (MAX_DATELEN): Define.
1015 (listing_print): Add call to listing_general_info.
1016 * listing.h (LISTING_GENERAL): Define.
1017 (listing_print): Add new parameter.
1018 * as.c (show_usage): Print new switch.
1019 (parse_args): Parse new switch.
1020 (main): Pass command line on to listing_print.
1021 * NEWS: Mention this new feature.
1022 * doc/as.texinfo: Document the new sub-option.
1024 2008-04-08 Alan Modra <amodra@bigpond.net.au>
1026 * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
1027 call. Delete out of date comment.
1028 (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
1029 (dwarf2_emit_label): Don't emit unless there has been a previous
1030 .file or we are outputting assembler generated debug.
1031 dwarf2_consume_line_info after emitting line info, not before.
1032 (out_debug_info): Simplify files_in_use test.
1034 2008-04-07 H.J. Lu <hongjiu.lu@intel.com>
1036 * config/tc-i386.c (parse_real_register): Return AVX register
1037 only if AVX is enabled.
1039 2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1042 * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
1043 md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
1045 2008-04-04 Adrian Bunk <bunk@stusta.de>
1046 Bob Wilson <bob.wilson@acm.org>
1048 * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
1049 call to decode_reloc.
1051 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
1053 * NEWS: Mention XSAVE. Change CLMUL to PCLMUL.
1055 * config/tc-i386.c (cpu_arch): Add .pclmul.
1056 (md_show_usage): Replace clmul with pclmul.
1057 * doc/c-i386.texi: Likewise.
1059 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
1061 * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
1063 * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
1064 Document -msse2avx, .avx, .aes, .clmul and .fma.
1066 * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
1067 (vex_prefix): Likewise.
1068 (sse2avx): Likewise.
1069 (CPU_FLAGS_ARCH_MATCH): Likewise.
1070 (CPU_FLAGS_64BIT_MATCH): Likewise.
1071 (CPU_FLAGS_32BIT_MATCH): Likewise.
1072 (CPU_FLAGS_PERFECT_MATCH): Likewise.
1074 (vex_imm4): Likewise.
1075 (fits_in_imm4): Likewise.
1076 (build_vex_prefix): Likewise.
1077 (VEX_check_operands): Likewise.
1078 (bad_implicit_operand): Likewise.
1079 (OPTION_MSSE2AVX): Likewise.
1080 (T_YMMWORD): Likewise.
1081 (_i386_insn): Add vex.
1082 (cpu_arch): Add .avx, .aes, .clmul and .fma.
1083 (cpu_flags_match): Changed to take a pointer to const template.
1084 Enable encoding SSE instructions with VEX prefix for -msse2avx.
1085 (match_mem_size): Also check ymmword.
1086 (operand_type_match): Clear ymmword.
1087 (md_begin): Allow '_' in mnemonic.
1088 (type_names): Add OPERAND_TYPE_VEX_IMM4.
1089 (process_immext): Update assert.
1090 (md_assemble): Don't call process_immext if sse2avx and immext
1091 are true. Call build_vex_prefix if vex is true.
1092 (parse_insn): Updated for cpu_flags_match.
1093 (swap_operands): Handle 5 operands.
1094 (match_template): Handle 5 operands. Updated for cpu_flags_match.
1095 Check regymm. Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
1096 (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
1097 (check_byte_reg): Check regymm.
1098 (process_operands): Duplicate the destination register for
1099 -msse2avx if needed.
1100 (build_modrm_byte): Updated for instructions with VEX encoding.
1101 (output_insn): Output VEX prefix if needed.
1102 (md_longopts): Add msse2avx.
1103 (md_parse_option): Handle OPTION_MSSE2AVX.
1104 (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
1105 (intel_e09): Support YMMWORD.
1106 (intel_e11): Likewise.
1107 (intel_get_token): Likewise.
1109 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
1111 * config/tc-avr.c (mcu_types): Add attiny167.
1112 * doc/c-avr.texi: Likewise.
1114 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
1116 * config/tc-avr.c (mcu_types): Add atmega32u4.
1117 * doc/c-avr.texi: Likewise.
1119 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
1121 * config/tc-avr.c (mcu_types): Add atmega32c1.
1122 * doc/c-avr.texi: Likewise.
1124 2008-03-28 Paul Brook <paul@codesourcery.com>
1126 * config/tc-arm.c (parse_neon_mov): Parse register before immediate
1127 to avoid spurious symbols.
1129 2008-03-28 Nathan Sidwell <nathan@codesourcery.com>
1131 * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
1134 2008-03-27 Eric B. Weddington <eric.weddington@atmel.com>
1136 * config/tc-avr.c (mcu_types): Add atmega32m1.
1137 * doc/c-avr.texi: Likewise.
1139 2008-03-27 Ineiev <ineiev@yahoo.co.uk>
1141 * config/tc-arm.c (do_neon_cvt): Move variable declarations to
1143 (do_neon_ext): Fix sign of comparison.
1145 2008-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
1147 From Jie Zhang <jie.zhang@analog.com>
1148 * config/bfin-parse.y (asm_1): Check AREGS in comparison
1149 instructions. And call yyerror when comparing PREG with
1151 (check_macfunc_option): New.
1152 (check_macfuncs): Check option by calling check_macfunc_option.
1153 Fix comparison always true warnings. Both scalar instructions
1154 of vector instruction must share the same mode option. Only allow
1155 option mode at the end of the second instruction of the vector.
1156 (asm_1): Check option by calling check_macfunc_option.
1158 * config/bfin-parse.y (check_macfunc_option): Allow (IU)
1159 option for multiply and multiply-accumulate to data register
1161 (check_macfuncs): Don't check if accumulator matches the data register
1163 (assign_macfunc): Check if accumulator matches the
1164 data register in each rule that moves to the data
1167 * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
1168 generated for LOOP_BEGIN and LOOP_END instructions.
1169 (bfin_gen_loop): Likewise.
1171 2008-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1173 * config/tc-s390.c (md_parse_option): z10 option added.
1175 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1177 * aclocal.m4: Regenerate.
1178 * configure: Likewise.
1179 * Makefile.in: Likewise.
1180 * doc/Makefile.in: Likewise.
1182 2008-03-17 Adrian Bunk <bunk@stusta.de>
1185 * config/tc-hppa.c (is_same_frag): Delete.
1187 2008-03-14 Sterling Augustine <sterling@tensilica.com>
1189 * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
1190 RELAX_LOOP_END_ADD_NOP.
1192 2008-03-13 Evandro Menezes <evandro@yahoo.com>
1195 * read.c (s_mexit): Warn if attempting to exit a macro when not
1196 inside a macro definition.
1198 2008-03-13 Alan Modra <amodra@bigpond.net.au>
1200 * Makefile.am: Run "make dep-am".
1201 * Makefile.in: Regenerate.
1202 * configure: Regenerate.
1204 2008-03-09 Paul Brook <paul@codesourcery.com>
1206 * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
1207 * doc/c-arm.texi: Add cortex-a9.
1209 2008-03-09 Paul Brook <paul@codesourcery.com>
1211 * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
1212 (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
1213 (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
1214 (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
1215 * doc/c-arm.texi: Document new ARM FPU variants.
1217 2008-03-07 Paul Brook <paul@codesourcery.com>
1219 * config/tc-arm.c (md_apply_fix): Use correct offset range.
1221 2008-03-07 Alan Modra <amodra@bigpond.net.au>
1223 * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test
1224 for strict ordering of powerpc_opcodes, but disable for now.
1226 2008-03-04 Paul Brook <paul@codesourcery.com>
1228 * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
1229 (arm_ext_v7m): Rename...
1230 (arm_ext_m): ... to this. Include v6-M.
1231 (do_t_add_sub): Allow narrow low-reg non flag setting adds.
1232 (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
1233 (md_assemble): Allow wide msr instructions.
1234 (insns): Add classifications for v6-m instructions.
1235 (arm_cpu_option_table): Add cortex-m1.
1236 (arm_arch_option_table): Add armv6-m.
1237 (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants.
1239 2008-03-03 Sterling Augustine <sterling@tensilica.com>
1240 Bob Wilson <bob.wilson@acm.org>
1242 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
1243 (md_begin): Initialize it.
1244 (resources_conflict): Use it.
1246 2008-03-03 Sterling Augustine <sterling@tensilica.com>
1248 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
1250 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
1251 H.J. Lu <hongjiu.lu@intel.com>
1254 * read.c (pseudo_set): Don't allow global register symbol.
1256 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
1259 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
1262 * write.c (write_object_file): Don't allow symbols which were
1263 equated to register. Stop if there is an error.
1265 2008-03-01 Alan Modra <amodra@bigpond.net.au>
1267 * config/tc-ppc.h (struct _ppc_fix_extra): New.
1269 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
1270 * config/tc-ppc.c (ppu_cpu): Make global.
1271 (ppc_insert_operand): Add ppu_cpu parameter.
1272 (md_assemble): Adjust for above change.
1273 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
1275 2008-02-22 Nick Clifton <nickc@redhat.com>
1277 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
1278 targeted ARM ports, otherwise just skip generating the reloc.
1280 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
1282 * doc/c-i386.texi: Update -march= and .arch.
1284 2008-02-18 Nick Clifton <nickc@redhat.com>
1286 * config/tc-mn10300.c (has_known_symbol_location): New function.
1287 Do not regard weak symbols as having a known location.
1288 (md_estimate_size_before_relax): Use new function.
1289 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
1291 2008-02-18 Jan Beulich <jbeulich@novell.com>
1293 * config/tc-i386.c (match_template): Disallow 'l' suffix when
1294 currently selected CPU has no 32-bit support.
1295 (parse_real_register): Do not return registers not available on
1296 currently selected CPU.
1298 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
1300 * config/tc-i386.c (process_immext): Fix format.
1302 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
1304 * config/tc-i386.c (inoutportreg): New.
1305 (process_immext): New.
1306 (md_assemble): Use it.
1307 (update_imm): Use imm16 and imm32s.
1308 (i386_att_operand): Use inoutportreg.
1310 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
1312 * config/tc-i386.c (operand_type_all_zero): New.
1313 (operand_type_set): Likewise.
1314 (operand_type_equal): Likewise.
1315 (cpu_flags_all_zero): Likewise.
1316 (cpu_flags_set): Likewise.
1317 (cpu_flags_equal): Likewise.
1318 (UINTS_ALL_ZERO): Removed.
1319 (UINTS_SET): Likewise.
1320 (UINTS_CLEAR): Likewise.
1321 (UINTS_EQUAL): Likewise.
1322 (cpu_flags_match): Updated.
1323 (smallest_imm_type): Likewise.
1324 (set_cpu_arch): Likewise.
1325 (md_assemble): Likewise.
1326 (optimize_imm): Likewise.
1327 (match_template): Likewise.
1328 (process_suffix): Likewise.
1329 (update_imm): Likewise.
1330 (process_drex): Likewise.
1331 (process_operands): Likewise.
1332 (build_modrm_byte): Likewise.
1333 (i386_immediate): Likewise.
1334 (i386_displacement): Likewise.
1335 (i386_att_operand): Likewise.
1336 (parse_real_register): Likewise.
1337 (md_parse_option): Likewise.
1338 (i386_target_format): Likewise.
1340 2008-02-14 Dimitry Andric <dimitry@andric.com>
1343 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
1344 pointer past the comma after parsing a floating point register
1347 2008-02-14 Hakan Ardo <hakan@debian.org>
1350 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
1352 (avr_operand): Disallow post-increment addressing in the lpm
1353 instruction for the attiny26.
1355 2008-02-13 Jan Beulich <jbeulich@novell.com>
1357 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
1358 if not in Intel mode.
1359 (i386_intel_operand): Ignore segment overrides in immediate and
1361 (intel_e11): Range-check i.mem_operands before use as array
1362 index. Filter out FLAT for uses other than as segment override.
1363 (intel_get_token): Remove broken promotion of "FLAT:" to mean
1366 2008-02-13 Jan Beulich <jbeulich@novell.com>
1368 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
1370 2008-02-13 Jan Beulich <jbeulich@novell.com>
1372 * config/tc-i386.c (allow_pseudo_reg): New.
1373 (parse_real_register): Check for NULL just once. Allow all
1374 register table entries when allow_pseudo_reg is non-zero.
1375 Don't allow any registers without type when allow_pseudo_reg
1377 (tc_x86_regname_to_dw2regnum): Replace with ...
1378 (tc_x86_parse_to_dw2regnum): ... this.
1379 (tc_x86_frame_initial_instructions): Adjust for above change.
1380 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
1381 (tc_parse_to_dw2regnum): New.
1382 (tc_x86_regname_to_dw2regnum): Replace with ...
1383 (tc_x86_parse_to_dw2regnum): ... this.
1384 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
1385 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
1388 2008-02-12 Nick Clifton <nickc@redhat.com>
1390 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
1392 (tic4x_insn_add): Likewise.
1393 (md_begin): Drop cast that was discarding a const qualifier.
1394 * config/tc-d30v.c (get_reloc): Add const qualifier to op
1396 (build_insn): Drop cast that was discarding a const qualifier.
1398 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
1400 * config/tc-i386.c (cpu_arch): Add .xsave.
1401 (md_show_usage): Add .xsave.
1403 * doc/c-i386.texi: Add xsave to -march=.
1405 2008-02-07 Alan Modra <amodra@bigpond.net.au>
1407 * read.c (s_weakref): Don't pass unadorned NULL to concat.
1408 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
1410 2008-02-05 Sterling Augustine <sterling@tensilica.com>
1412 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
1413 checks into assertions. When relaxation produces an operation that
1414 does not fit in the current FLIX instruction, make sure that the
1415 operation is relaxed as needed to account for being placed following
1416 the current instruction.
1418 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
1421 * configure: Regenerated.
1423 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
1425 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
1427 2008-01-31 Marc Gauthier <marc@tensilica.com>
1429 * configure.tgt (xtensa*-*-*): Recognize processor variants.
1431 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
1433 * read.c: (emit_expr): Correct for mingw use of printf size
1436 2008-01-24 Bob Wilson <bob.wilson@acm.org>
1438 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
1439 can only be encoded in FLIX instructions but are not specified as such.
1440 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
1443 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
1445 * NEWS: Mention new command line options for x86 targets.
1447 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
1449 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
1451 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
1453 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
1455 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
1457 * config/tc-i386.c (md_show_usage): Show more processors for
1460 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
1462 * config/tc-i386.c (i386_target_format): Remove cpummx2.
1464 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
1466 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
1467 (XXX_MNEM_SUFFIX): Likewise.
1468 (END_OF_INSN): Likewise.
1469 (templates): Likewise.
1470 (modrm_byte): Likewise.
1471 (rex_byte): Likewise.
1472 (DREX_XXX): Likewise.
1473 (drex_byte): Likewise.
1474 (sib_byte): Likewise.
1475 (processor_type): Likewise.
1476 (arch_entry): Likewise.
1477 (cpu_sub_arch_name): Remove const.
1478 (cpu_arch): Add .vmx and .smx.
1479 (set_cpu_arch): Append cpu_sub_arch_name.
1480 (md_parse_option): Support -march=CPU[,+EXTENSION...].
1481 (md_show_usage): Updated.
1483 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
1484 (XXX_MNEM_SUFFIX): Likewise.
1485 (END_OF_INSN): Likewise.
1486 (templates): Likewise.
1487 (modrm_byte): Likewise.
1488 (rex_byte): Likewise.
1489 (DREX_XXX): Likewise.
1490 (drex_byte): Likewise.
1491 (sib_byte): Likewise.
1492 (processor_type): Likewise.
1493 (arch_entry): Likewise.
1495 * doc/as.texinfo: Update i386 -march option.
1497 * doc/c-i386.texi: Update -march= for ISA.
1499 2008-01-18 Bob Wilson <bob.wilson@acm.org>
1501 * config/tc-xtensa.c (xtensa_leb128): New function.
1502 (md_pseudo_table): Use it for sleb128 and uleb128.
1503 (is_leb128_expr): New internal flag.
1504 (xtensa_symbol_new_hook): Check new flag.
1506 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
1508 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
1509 at90usb82, at90usb162.
1510 * doc/c-avr.texi: Change architecture grouping for at90usb82,
1512 These changes support the new avr35 architecture group in gcc.
1514 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
1516 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
1517 suffix for AT&T syntax.
1519 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
1521 * config/tc-i386.c (match_reg_size): New.
1522 (match_mem_size): Likewise.
1523 (operand_size_match): Likewise.
1524 (operand_type_match): Also clear all size fields.
1525 (match_template): Skip Intel syntax when in AT&T syntax.
1526 Call operand_size_match to check operand size.
1527 (i386_att_operand): Set the mem field to 1 for memory
1529 (i386_intel_operand): Likewise.
1531 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
1534 * config/tc-i386.c (_i386_insn): Update comment.
1535 (operand_type_match): Also clear unspecified.
1536 (operand_type_register_match): Likewise.
1537 (parse_operands): Initialize unspecified.
1538 (i386_intel_operand): Likewise.
1539 (match_template): Check memory and accumulator operand size.
1540 (i386_att_operand): Clear unspecified on register operand.
1541 (intel_e11): Likewise.
1542 (intel_e09): Set operand size and clean unspecified for
1545 2008-01-11 Andreas Schwab <schwab@suse.de>
1547 * read.c (s_space): Declare `repeat' as offsetT.
1549 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1551 * config/tc-i386.c (match_template): Check processor support
1554 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1556 * config/tc-i386.c (match_template): Continue if processor
1559 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
1561 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
1562 unwind personality function address.
1564 2008-01-09 Bob Wilson <bob.wilson@acm.org>
1566 * dwarf2dbg.c (out_sleb128): Delete.
1567 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
1568 (out_fixed_inc_line_addr): Delete.
1569 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
1570 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
1571 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
1572 (process_entries): Remove calls to out_fixed_inc_line_addr. When
1573 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
1574 * read.h (emit_expr_fix): New prototype.
1575 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
1576 (emit_expr_fix): New.
1578 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
1580 * config/tc-i386.c (match_template): Check register size
1581 only when size of operands can be encoded the canonical way.
1583 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
1585 * config/tc-i386.c (i386_operand): Renamed to ...
1586 (i386_att_operand): This.
1587 (parse_operands): Updated.
1589 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
1591 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
1593 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
1595 (md_assemble): Remove Intel mode workaround.
1596 (match_template): Check support for old gcc, AT&T mnemonic
1598 (md_parse_option): Don't set intel_mnemonic to 0 for
1601 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
1603 * config/tc-i386.h: Update copyright to 2008.
1605 2008-01-04 Nick Clifton <nickc@redhat.com>
1607 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
1608 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
1610 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1612 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
1615 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1617 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
1618 (cpu_flags_not): Likewise.
1619 (cpu_flags_match): Updated to check 64bit and arch.
1620 (set_code_flag): Remove cpu_arch_flags_not.
1621 (set_16bit_gcc_code_flag): Likewise.
1622 (set_cpu_arch): Likewise.
1623 (md_begin): Likewise.
1624 (parse_insn): Call cpu_flags_match to check 64bit and arch.
1625 (match_template): Likewise.
1627 2008-01-03 Jakub Jelinek <jakub@redhat.com>
1629 * config/tc-i386.c (process_drex): Initialize modrm_reg and
1630 modrm_regmem to 0 instead of None.
1632 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1634 * config/tc-i386.c (match_template): Use the xmmword field
1637 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1639 * config/tc-i386.c (process_suffix): Fix a typo.
1641 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1644 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1645 Check memory size in Intel mode.
1646 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1647 (intel_e09): Likewise.
1649 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1651 2008-01-02 Catherine Moore <clm@codesourcery.com>
1653 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1655 For older changes see ChangeLog-2007
1661 version-control: never