1 2008-10-06 Bob Wilson <bob.wilson@acm.org>
3 * doc/as.texinfo (Local): New description of ELF .local directive.
5 2008-10-06 Nick Clifton <nickc@redhat.com>
8 * read.c (get_line_sb): Renamed to get_non_macro_line_sb.
9 (_find_end_of_line): Add extra parameter indicating if the line is
10 inside a macro. If it is then do not allow the @ character to be
11 treated as a line separator character.
12 (read_a_source): Update use of _find_end_of_line.
13 (find_end_of_line): Likewise.
14 (s_irp): Update use of get_line_sb.
16 (do_repeat): Likewise.
17 (get_line_sb): New function. Like the old version of get_line_sb
18 except that it takes an extra parameter indicating whether the
19 line is inside a macro.
20 (get_macro_line_sb): New function.
22 2008-10-04 Hans-Peter Nilsson <hp@axis.com>
24 * config/tc-cris.c: Update all comments regarding explicit relocations
25 to, besides PIC, also imply TLS or to say "relocation specifier" or
27 (RELOC_SUFFIX_CHAR): Rename from PIC_SUFFIX_CHAR. Change all callers.
28 (cris_get_reloc_suffix): Rename from cris_get_pic_suffix. Change all
29 callers. Also handle TLS relocs.
30 (cris_get_specified_reloc_size): Rename from cris_get_pic_reloc_size.
31 Change all callers. Also handle TLS relocs.
33 (cris_process_instruction): Check for non-PIC TLS relocations and
34 adjust message when emitting error message about relocation not
36 (get_autoinc_prefix_or_indir_op): Also check for relocation suffix
38 (get_3op_or_dip_prefix_op): Ditto.
39 (cris_number_to_imm, tc_gen_reloc): Handle TLS relocs like PIC relocs.
41 2008-10-03 Kazu Hirata <kazu@codesourcery.com>
43 * listing.c (buffer_line): Open the source file with FOPEN_RB.
44 Manually process line ends.
46 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca>
47 Nick Clifton <nickc@redhat.com>
49 * config/tc-tic4x.c (tic4x_globl): Call S_SET_EXTERNAL as well as
52 2008-09-30 Wesley W. Terpstra <wesley@terpstra.ca>
53 Nick Clifton <nickc@redhat.com>
55 * coffgen.c (coff_write_symbols): Check to see if a symbol's flags
56 do not match it class and if necessary update the class.
57 (null_error_handler): New function. Suppresses the generation of
59 * coff64-rs6000.c (bfd_xcoff_backend_data): Update comment.
61 2008-09-30 Alan Modra <amodra@bigpond.net.au>
63 * Makefile.am: Run "make dep-am".
64 * Makefile.in: Regenerate.
66 2008-09-29 Nick Clifton <nickc@redhat.com>
68 * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
69 tc_cfi_emit_pcrel_expr macro.
71 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
72 Steve Ellcey <sje@cup.hp.com>
74 * configure: Regenerate for new libtool.
77 * doc/Makefile.in: Ditto.
79 2008-09-29 Nick Clifton <nickc@redhat.com>
82 * app.c (do_scrub_chars): Only issue warnings about tick
83 characters detected in symbol strings if hex ticks are supported.
85 2008-09-29 Nick Clifton <nickc@redhat.com>
87 * dw2gencfi.c (output_cfi_insn): Fix typo in invocation of
88 tc_cfi_emit_pcrel_expr macro.
90 2008-09-28 Daniel Jacobowitz <dan@codesourcery.com>
92 * NEWS: Mention .cfi_val_encoded_addr.
94 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
96 * Makefile.am (TARG_ENV_HFILES): Add config/te-solaris.h.
97 * Makefile.in (TARG_ENV_HFILES): Likewise.
98 * configure.tgt (Solaris targets): Set em=solaris.
99 * config/te-solaris.h: New file.
101 2008-09-26 Jie Zhang <jie.zhang@analog.com>
103 * config/bfin-parse.y (asm_1): Fix reduce/reduce conflicts.
105 2008-09-24 Richard Henderson <rth@redhat.com>
107 * dw2gencfi.c (DWARF2_ADDR_SIZE): Provide default.
108 (struct cfi_insn_data): Add ea member.
109 (CFI_val_encoded_addr, dot_cfi_val_encoded_addr): New.
110 (output_cfi_insn): Handle CFI_val_encoded_addr.
111 (select_cie_for_fde): Don't match CFI_val_encoded_addr.
112 * doc/as.texinfo (.cfi_val_encoded_addr): Document.
114 2008-09-25 Alan Modra <amodra@bigpond.net.au>
117 * listing.c (print_options): Don't call fprintf without format string.
119 2008-09-19 Alan Modra <amodra@bigpond.net.au>
121 * write.c (TC_FORCE_RELOCATION_SUB_LOCAL): Heed md_register_arithmetic.
122 (TC_VALIDATE_FIX_SUB): Likewise.
123 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
124 * config/tc-hppa.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
125 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Likewise.
126 * config/tc-sh.h (TC_VALIDATE_FIX_SUB): Likewise.
127 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
128 * config/tc-sh64.h (TC_VALIDATE_FIX_SUB): Likewise.
129 * config/tc-xtensa.h (TC_VALIDATE_FIX_SUB): Likewise.
130 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS,
131 TC_FORCE_RELOCATION_SUB_LOCAL, TC_VALIDATE_FIX_SUB): Show new param.
133 * write.c (md_register_arithmetic): Define.
134 (fixup_segment): Adjust TC_FORCE_RELOCATION_SUB_ABS invocation.
135 Modify error message when registers involved.
136 (TC_FORCE_RELOCATION_SUB_ABS): Heed md_register_arithmetic.
137 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Likewise.
139 2008-09-15 Alan Modra <amodra@bigpond.net.au>
141 * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
143 2008-09-15 Alan Modra <amodra@bigpond.net.au>
145 * config/tc-frv.c (md_apply_fix): Use abs_section_sym for
146 relocs with no symbol.
147 * config/tc-mmix.c (md_assemble): Mark fake symbol on
148 BFD_RELOC_MMIX_BASE_PLUS_OFFSET as OK for use by relocs.
149 (mmix_md_end): Likewise mark mmix reg contents section symbol.
151 2008-09-14 Chris Smith <chris@zxdesign.info>
153 * config/tc-z80.c: Opcode generation of ld a,(bc) and ld a,(de) was
154 broken, as the opcode of ld a,(de) was being emitted for both.
156 2008-09-12 Sterling Augustine <sterling@tensilica.com>
158 * config/tc-xtensa.c (init_op_placement_info_table): Allow number of
159 operands equal to MAX_INSN_ARGS.
161 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
163 * configure.in: Call AC_SYS_LARGEFILE.
164 * config.in: Regenerate.
165 * configure: Regenerate.
167 2008-09-09 Peter Bergner <bergner@vnet.ibm.com>
169 * config/tc-ppc.c (ppc_setup_opcodes): Simplify POWER4/NOPOWER4 test.
170 Remove POWER5 and POWER6 tests.
172 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
174 * config/tc-hppa.c (hppa_regname_to_dw2regnum): Add register name to
175 number support for 32-bit targets.
177 2008-09-08 Tristan Gingold <gingold@adacore.com>
179 * NEWS: Add a marker for the 2.19 features.
181 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
183 * config/tc-hppa.h (DIFF_EXPR_OK): Define for SOM target. Revise
184 comment regarding use of difference expressions.
185 (TC_FORCE_RELOCATION_SUB_LOCAL): Define to 1.
187 * dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
188 (dot_cfi_personality): Use CFI_DIFF_EXPR_OK instead of DIFF_EXPR_OK.
189 (dot_cfi_lsda, output_cie, output_fde): Likewise.
190 * config/tc-hppa.h (CFI_DIFF_EXPR_OK): Define.
192 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
194 * config/tc-mips.h (DWARF2_FDE_RELOC_SIZE): Define.
196 2008-09-03 Nick Clifton <nickc@redhat.com>
198 * config/tc-i386.c (pe_lcomm_internal): New function. Allows the
199 alignment field of the .lcomm directive to be optional.
200 (pe_lcomm): New function. Pass pe_lcomm_internal to
202 (md_pseudo_table): Implement .lcomm directive for COFF based
204 * doc/c-i386.texi (i386-Directives): New node. Used to document
205 the .lcomm directive.
207 2008-08-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
209 * config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
212 2008-08-29 Eric B. Weddington <eric.weddington@atmel.com>
214 * config/tc-avr.c (mcu_types): Add atmega16u4.
215 * doc/c-avr.texi: Likewise.
217 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
219 * config/tc-ia64.c (CR_IIB0): New.
221 (cr): Add cr.iib0 and cr.iib1.
222 (specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.
224 2008-08-28 Jan Beulich <jbeulich@novell.com>
226 * config/tc-i386.c (md_assemble): Force number of displacement
227 operands to zero when processing string instruction.
228 (i386_index_check): Special-case string instruction operands. Don't
229 fudge address prefix if there already was a memory operand. Fix
230 error message to correctly reflect the addressing mode used.
231 (i386_att_operand): Fix comment.
232 (i386_intel_operand): Snapshot, clear, and restore base and index
233 reg for each operand processed. Increment count of memory operands
236 2008-08-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
238 * config/tc-hppa.c (is_SB_relative): New macro.
239 (fix_new_hppa): Remove $segrel$ marker.
240 (cons_fix_new_hppa): Set reloc type R_PARISC_SEGREL32 if expression is
242 * config/tc-hppa.h (tc_frob_symbol): Check for $segrel$.
244 2008-08-27 Jan Beulich <jbeulich@novell.com>
246 * config/tc-i386.c (check_string): Use register_prefix for error
248 (process_operands): Likewise.
250 2008-08-26 Mark Mitchell <mark@codesourcery.com>
252 * c-arm.texi: Add tutorial on ARM unwinding pseudo ops.
254 2008-08-26 Jie Zhang <jie.zhang@analog.com>
256 * config/bfin-parse.y (check_macfunc_option): Fix instruction
258 (asm_1): Check mode for 16-bit multiply instructions.
260 2008-08-24 Alan Modra <amodra@bigpond.net.au>
262 * configure.in: Update a number of obsolete autoconf macros.
263 * configure: Regenerate.
264 * aclocal.m4: Regenerate.
266 2008-08-22 Nick Clifton <nickc@redhat.com>
268 * config/tc-mcore.c (md_assemble): Increase length of name array
269 to include terminating NUL.
271 2008-08-22 Jie Zhang <jie.zhang@analog.com>
273 * config/bfin-lex.l (NUMBER): Protect special `.'.
275 2008-08-22 Alan Modra <amodra@bigpond.net.au>
277 * symbols.c (symbol_clone): Ensure clones are not external.
279 2008-08-22 Alan Modra <amodra@bigpond.net.au>
281 * config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".
283 2008-08-21 Richard Henderson <rth@redhat.com>
285 * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.
286 (output_cie, output_fde): Use it.
287 (DWARF2_EH_FRAME_READ_ONLY): New.
288 (cfi_finish): Use it.
290 * config/tc-hppa.h (DWARF2_FDE_RELOC_SIZE): Set to 8 for 64-bit.
291 (DWARF2_CIE_DATA_ALIGNMENT): Change sign.
292 (DWARF2_EH_FRAME_READ_ONLY): New.
293 * config/tc-hppa.c (tc_gen_reloc): Generate pc-relative relocations
294 from the results of DIFF_EXPR_OK manipulation.
296 2008-08-21 Sterling Augustine <sterling@tensilica.com>
298 * config/xtensa-istack.h (MAX_INSN_ARGS): Increase to 64.
300 2008-08-20 Bob Wilson <bob.wilson@acm.org>
302 * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define.
303 (O_tpoff, O_dtpoff): Define.
304 (suffix_relocs): Add entries for TLS suffixes.
305 (xtensa_elf_cons): Check for invalid use of TLS relocations.
306 (map_operator_to_reloc): Add is_literal parameter and use it to
307 control translating TLS instruction relocations to the corresponding
309 (xg_valid_literal_expression): Allow TLS operators.
310 (xg_build_to_insn): Copy TLS operators from pseudo-instruction
311 operands to generated literals.
312 (xg_assemble_literal): Handle TLS operators. Update call to
313 map_operator_to_reloc.
314 (md_assemble): Handle CALLXn.TLS pseudo-instruction.
315 (md_apply_fix): Handle TLS relocations.
316 (emit_single_op): Handle TLS operators.
317 (convert_frag_immed): Update call to map_operator_to_reloc.
318 (vinsn_to_insnbuf): Emit relocations for TLS-related instructions.
319 * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field.
320 * config/xtensa-relax.c (append_literal_op): Add src_op parameter
321 to initialize the op_data field of the BuildOp.
322 (build_transition): Use it here to record the source operand
323 corresponding to a generated literal.
324 * config/xtensa-relax.h (build_op): Comment op_data use for literals.
326 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
328 AVX Programming Reference (August, 2008)
329 * config/tc-i386.c (CPU_FLAGS_AES_MATCH): New.
330 (CPU_FLAGS_AVX_MATCH): Likewise.
331 (CPU_FLAGS_32BIT_MATCH): Updated.
332 (cpu_flags_match): Likewise.
334 2008-08-20 Alan Modra <amodra@bigpond.net.au>
337 * write.c (install_reloc): Check that reloc symbols have been
339 (set_symtab): Mark symbols with BSF_KEEP.
341 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
343 * config/tc-i386.c (i386_align_code): Fix a comment typo.
345 2008-08-15 Alan Modra <amodra@bigpond.net.au>
348 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
349 * Makefile.in: Regenerate.
350 * aclocal.m4: Regenerate.
351 * config.in: Regenerate.
352 * configure: Regenerate.
353 * doc/Makefile.in: Regenerate.
355 2008-08-14 Alan Modra <amodra@bigpond.net.au>
357 * config/tc-tic4x.c (tic4x_operands_parse): Make static.
359 2008-08-13 Ben Elliston <bje@au.ibm.com>
361 * doc/as.texinfo (Align): Document the PowerPC behaviour.
363 2008-08-13 Alan Modra <amodra@bigpond.net.au>
365 * as.c, as.h, ecoff.c, hash.c, macro.c, symbols.c, config/obj-evax.c,
366 config/obj-som.c, config/tc-alpha.c, config/tc-arm.c, config/tc-bfin.c,
367 config/tc-bfin.h, config/tc-crx.c, config/tc-frv.c, config/tc-frv.h,
368 config/tc-hppa.h, config/tc-i386.c, config/tc-i860.c, config/tc-i960.h,
369 config/tc-ia64.c, config/tc-ia64.h, config/tc-m32c.c, config/tc-m32c.h,
370 config/tc-m68k.c, config/tc-maxq.c, config/tc-s390.c, config/tc-s390.h,
371 config/tc-sparc.c, config/tc-sparc.h, config/tc-spu.c, config/tc-spu.h,
372 config/tc-tic4x.c, config/tc-tic4x.h, config/tc-tic54x.c,
373 config/tc-tic54x.h, config/tc-vax.c, doc/internals.texi: Banish PARAMS
374 and PTR. Convert to ISO C. Delete unnecessary forward declarations.
376 2008-08-12 Alan Modra <amodra@bigpond.net.au>
378 * config/tc-arm.c (s_unreq): Adjust hash_delete call.
379 * config/tc-ia64.c (dot_rot): Likewise.
381 2008-08-11 Alan Modra <amodra@bigpond.net.au>
384 * hash.c: Expand PTR to void *.
385 (hash_delete): Add "freeme" parameter. Call obstack_free.
386 * hash.h: Expand PTR to void *.
387 (hash_delete): Update prototype.
388 * macro.c (macro_expand_body): hash_delete LOCALs from formal_hash.
389 * config/tc-tic54x.c (tic54x_remove_local_label): Update hash_delete
391 (subsym_substitute): Likewise.
392 * doc/internals.texi (hash_delete): Update.
394 2008-08-08 Anatoly Sokolov <aesok@post.ru>
396 * config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
397 architectures. Reorganize list to put mcu types in correct
398 architectures and to order list same as in GCC. Use new ISA
399 definitions in include/opcode/avr.h.
400 * doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
401 descriptions. Reorganize descriptions to put mcu types in correct
402 architectures and to order lists same as in GCC.
404 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
405 Daniel Jacobowitz <dan@codesourcery.com>
407 * config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
408 (OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
409 (OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
410 (OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
411 (md_longopts): Add -call_nonpic.
412 (md_parse_option): Handle OPTION_CALL_NONPIC.
413 (md_show_usage): Add -call_nonpic.
415 2008-08-08 Sterling Augustine <sterling@tensilica.com>
417 * config/tc-xtensa.c (exclude_section_from_property_tables): New.
418 (xtensa_create_property_segments): Use it.
419 (xtensa_create_xproperty_segments): Likewise.
421 2008-08-08 Alan Modra <amodra@bigpond.net.au>
423 * doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.
425 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
427 * config/tc-mips.c (mips16_reloc_p, got16_reloc_p, hi16_reloc_p)
428 (lo16_reloc_p): New functions.
429 (reloc_needs_lo_p): Use hi16_reloc_p and got16_reloc_p to
430 generalize relocation checks.
431 (matching_lo_reloc): New function.
432 (fixup_has_matching_lo_p): Use it.
433 (mips16_mark_labels): Don't clobber a symbol's visibility.
434 (append_insn): Use hi16_reloc_p and lo16_reloc_p.
435 (mips16_ip): Handle BFD_RELOC_MIPS16_GOT16 and BFD_RELOC_MIPS16_CALL16.
436 (md_apply_fix): Likewise.
437 (mips16_percent_op): Add %got and %call16.
438 (mips_frob_file): Use got16_reloc_p to generalize relocation checks.
439 Use matching_lo_reloc.
440 (mips_force_relocation): Use hi16_reloc_p and lo16_reloc_p to
441 generalize relocation checks.
442 (mips_fix_adjustable): Use lo16_reloc_p to generalize relocation
445 2008-08-06 DJ Delorie <dj@redhat.com>
447 * NEWS: Mention these changes.
449 * config/tc-h8300.h (H_TICK_HEX): Define.
450 * config/tc-h8300.c (OPTION_H_TICK_HEX): New.
451 (md_longopts): Add "-h-tick-hex".
452 (md_parse_option): Support it.
453 * doc/c-h8300.texi (H8/300 Options): Document it.
454 * doc/as.texinfo (Overview): Likewise.
456 * config/tc-sh.h (H_TICK_HEX): Define.
457 * config/tc-sh.c (OPTION_H_TICK_HEX): New.
458 (md_longopts): Add "-h-tick-hex".
459 (md_parse_option): Support it.
460 * doc/c-sh.texi (SH Options): Document it.
461 * doc/c-sh64.texi (SH64 Options): Document it.
462 * doc/as.texinfo (Overview): Likewise.
464 2008-08-05 Alan Modra <amodra@bigpond.net.au>
467 * dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
468 debug info if we see compiler generated debug info.
469 (dwarf2_directive_loc): Likewise. Remove redundant debug_type test.
471 2008-08-04 Alan Modra <amodra@bigpond.net.au>
473 * dwarf2dbg.c: Remove superfluous forward function declarations.
474 (DWARF2_FORMAT): Add section arg.
475 (out_header): New function, split out from..
476 (out_debug_line): ..here.
477 (out_debug_aranges): Use out_header.
478 (out_debug_abbrev): Add info_seg and line_seg args. Use
479 DW_FORM_data8 (for DW_AT_stmt_list) if line_seg is 64-bit.
480 (out_debug_info): Use out_header. Output 8 byte DW_AT_stmt_list
481 if line_seg is 64-bit.
482 (dwarf2_finish): Adjust out_debug_abbrev call.
483 * config/tc-mips.h (DWARF2_FORMAT, mips_dwarf2_format): Add sec arg.
484 * config/tc-mips.c (mips_dwarf2_format): Likewise.
486 2008-08-04 Alan Modra <amodra@bigpond.net.au>
488 * Makefile.am (POTFILES.in): Set LC_ALL=C.
489 * Makefile.in: Regenerate.
490 * po/POTFILES.in: Regenerate.
492 2008-08-01 Peter Bergner <bergner@vnet.ibm.com>
494 * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
495 Handle -mvsx and -mpower7.
496 (md_show_usage): Document -mpower7 and -mvsx.
497 * doc/as.texinfo (Target PowerPC): Document -mvsx.
498 * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
500 2008-07-31 Peter Bergner <bergner@vnet.ibm.com>
502 * config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
505 2008-07-30 Michael J. Eager <eager@eagercon.com>
507 * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
508 (md_show_usage): Likewise.
510 2008-07-30 Alan Modra <amodra@bigpond.net.au>
512 * messages.c, symbols.c, write.c: Silence gcc warnings.
514 2008-07-28 Ineiev <ineiev@yahoo.co.uk>
516 * config/tc-i386.c (operand_type_check): Warning fix.
518 2008-07-26 Michael Eager <eager@eagercon.com>
520 * doc/as.texinfo: Add description of single-precision attribute.
522 2008-07-24 Jie Zhang <jie.zhang@analog.com>
524 * config/bfin-parse.y (asm_1): Error if plain symbol is used
525 as load/store offset.
527 2008-07-22 Chao-ying Fu <fu@mips.com>
529 * config/tc-mips.c (mips_ip): Reset s to argsStart.
531 2008-07-22 Jie Zhang <jie.zhang@analog.com>
533 * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
535 2008-07-21 DJ Delorie <dj@redhat.com>
537 * config/tc-h8300.c (fix_operand_size): Use the default size
538 specified by the .lbranch/.sbranch pseudos.
540 2008-07-18 DJ Delorie <dj@redhat.com>
542 * config/tc-m32c.h (H_TICK_HEX): Define.
543 * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
544 (md_longopts): Add support for it.
545 (md_parse_option): Likewise.
546 * doc/as.texinfo (Overview): Add new m32c options.
547 * doc/c-m32c.texi (M32C-Modifiers): Likewise
549 * as.h: (enable_h_tick_hex): New.
550 * app.c (enable_h_tick_hex): New.
552 (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
553 (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
554 style hex constants and convert the input stream to 0x00 style.
555 (do_scrub_chars): If a 'X style character constant is found after
556 a symbol character (like you're or X'00), warn the user.
558 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
560 * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
561 (mips_fix_adjustable): Likewise.
562 (mips_frob_file_after_relocs): Likewise.
564 2008-07-08 Nathan Sidwell <nathan@codesourcery.com>
566 * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
567 about overriding an earlier setting.
569 2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
571 * config/tc-mips.c (NO_ISA_COP): New macro.
572 (COP_INSN): New macro.
573 (is_opcode_valid): Use them.
574 (macro) <ld_st>: Use them. Don't accept coprocessor load store
575 insns based on the ISA if CPU is NO_ISA_COP.
576 <copz>: Likewise for coprocessor operations.
578 2008-07-07 Paul Brook <paul@codesourcery.com>
580 * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
583 2008-07-07 Ralf Corsépius <ralf.corsepius@rtems.org>
585 * configure.tgt: Add bfin-*-rtems*.
587 2008-07-04 Alan Modra <amodra@bigpond.net.au>
589 * config/tc-spu.c (md_apply_fix): Handle fully resolved
590 BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
592 2008-06-25 Peter Bergner <bergner@vnet.ibm.com>
594 * config/tc-ppc.c (parse_cpu): Handle -m464.
595 (md_show_usage): Likewise.
597 2008-06-24 Eric B. Weddington <eric.weddington@atmel.com>
599 Add support for ATtiny13A.
600 * config/tc-avr.c (mcu_types): Add attiny13a.
601 * doc/c-avr.texi: Likewise.
603 2008-06-24 Bob Wilson <bob.wilson@acm.org>
604 Alan Modra <amodra@bigpond.net.au>
606 * write.c (relax_segment <rs_org>): Include current stretch
607 value when calculating whether .org is backwards.
609 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
611 * configure: Regenerate.
613 2008-06-17 Nick Clifton <nickc@redhat.com>
615 * app.c (do_scrub_chars): Do not UNGET an EOF value.
617 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
620 * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
621 text_section. Do the "stepping backwards" test for text_section
622 using unsigned operands.
624 2008-06-13 Peter Bergner <bergner@vnet.ibm.com>
626 * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
627 (ppc_insert_operand): Likewise.
628 (ppc_machine): Likewise.
629 * config/tc-ppc.h: #include "opcode/ppc.h"
630 (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
631 (ppc_cpu): Update extern decl.
633 2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
635 * config/tc-mips.c (validate_mips_insn): Handle field descriptors
636 +x, +X, +p, +P, +s, +S.
639 * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
641 (macro_build): Likewise.
642 (CPU_HAS_SEQ): New macro.
643 (macro2) <M_SEQ_I, M_SNE_I>: Use it. Emit seq/sne and seqi/snei.
645 2008-06-09 Eric B. Weddington <eric.weddington@atmel.com>
647 * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
648 * doc/c-avr.texi: Likewise.
650 2008-06-04 Nick Clifton <nickc@redhat.com>
652 * app.c (do_scrub_chars): Do not UNGET an EOF value.
654 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
656 * config/tc-i386.c (set_sse_check): New.
657 (md_pseudo_table): Add "sse_check".
659 2008-06-03 Paul Brook <paul@codesourcery.com>
661 * config/tc-arm.c (do_t_rbit): Populate both rm fields.
663 2008-05-30 Nick Clifton <nickc@redhat.com>
666 * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
669 2008-05-29 Maxim Kuvyrkov <maxim@codesourcery.com>
671 * config/tc-mips.c (mips_cpu_info_table): Move records for
672 ST Loongson-2E/2F processors to a better place.
674 2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
677 * config/tc-i386.c (match_template): Report ambiguous operand
678 size, not invalid suffix when there is no match in Intel
681 2008-05-22 Paul Brook <paul@codesourcery.com>
683 * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
685 2008-05-21 I-Jui Sung <ijsung@gmail.com>
687 * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
688 compatible cores: fa526, fa626, fa626te, fa726te.
689 * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
692 2008-05-14 Alan Modra <amodra@bigpond.net.au>
694 * Makefile.am: Run "make dep-am".
695 * Makefile.in: Regenerate.
696 * doc/Makefile.in: Regenerate.
697 * po/POTFILES.in: Regenerate.
699 2008-05-09 Catherine Moore <clm@codesourcery.com>
701 * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
702 with non-MIPS16 relocs.
704 2008-05-09 Chao-ying Fu <fu@mips.com>
706 * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
707 case that some characters append at the end of the name.
709 (s_change_sec): Likewise.
710 (md_section_align): Likewise.
712 2008-05-07 Bob Wilson <bob.wilson@acm.org>
714 * config/tc-xtensa.c (xtensa_create_property_segments): Use
715 xtensa_make_property_section instead of xtensa_get_property_section.
716 (xtensa_create_xproperty_segments): Likewise.
718 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
720 * NEWS: Mention XSAVE, EPT and MOVBE.
722 * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
723 (md_show_usage): Add .movbe and .ept.
725 * doc/c-i386.texi: Add movbe and ept to -march=. Document
728 2008-04-29 David S. Miller <davem@davemloft.net>
730 * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
732 2008-04-28 Adam Nemet <anemet@caviumnetworks.com>
734 * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
736 (OPTION_ELF_BASE): Make room for new option macros.
737 (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
738 OPTION_DOUBLE_FLOAT): New option macros.
739 (md_longopts): Add msoft-float, mhard-float, msingle-float and
741 (md_parse_option): Handle OPTION_SINGLE_FLOAT,
742 OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
743 (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
745 (struct mips_set_options): New fields soft_float and single_float.
746 (mips_opts): Initialized them. Add comment for each field
748 (mips_after_parse_args): Set them based on file_mips_soft_float
749 and file_mips_single_float.
750 (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
751 `.set singlefloat' and `.set doublefloat'.
752 (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
753 Handle single-float and soft-float instructions here.
754 (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
755 (is_opcode_valid_16): New function.
756 (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
757 (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
758 M_S_DOB>: Remove special-casing of r4650.
759 * doc/c-mips.texi (-march=): Add Octeon.
760 (MIPS Opts): Document -msoft-float and -mhard-float. Document
761 -msingle-float and -mdouble-float.
762 (MIPS floating-point): New section. Document `.set softfloat' and
763 `.set hardfloat'. Document `.set singlefloat' and `.set
766 2008-04-25 David S. Miller <davem@davemloft.net>
768 * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
771 * doc/c-sparc.texi: Consistently refer to architecture 'versions',
772 rather than occaisionally 'levels'. Consistently refer to Sun's
773 UNIX variant as SunOS, every version of Solaris is also SunOS.
774 Document new 'softint_clear' and 'softint_set' aliases. Clarify
775 which architecture versions support '%dcr', '%cq', and '%gl'. Add
776 section on 32-bit/64-bit opcode translations.
778 2008-04-23 Mike Frysinger <vapier@gentoo.org>
780 * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
781 (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
782 (obj-fdpicelf.o): Define.
783 * Makefile.in: Regenerate.
784 * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
786 (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
787 (bfin-*-uclinux*): New; set fmt to elf and em to linux.
788 * config/obj-fdpicelf.c: New.
789 * config/obj-fdpicelf.h: Likewise.
790 * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
791 the OBJ_FDPIC_ELF define.
792 (OPTION_NOPIC): Define.
793 (md_longopts): Add mnopic and mno-fdpic.
794 (md_parse_option): Handle OPTION_NOPIC.
796 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
798 * aclocal.m4: Regenerate.
799 * configure: Regenerate.
801 2008-04-23 David S. Miller <davem@davemloft.net>
803 * config/tc-sparc.c (v9a_asr_table): Add missing
804 'stick' and 'stick_cmpr', and document ordering rules
806 (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
807 BFD_RELOC_SPARC_PC10.
808 * doc/c-sparc.texi: New section on Sparc constants.
809 Add documentation for %stick and %stick_cmpr.
811 2008-04-22 David S. Miller <davem@davemloft.net>
813 * config/obj-elf.c (obj_elf_section_type): Add prototype
814 before obj_elf_section_word and add 'warn' arg.
815 (obj_elf_section_word): Add type pointer arg, and if no #SECTION
816 is matched, try checking for #SECTION_TYPE.
817 (obj_elf_section): Adjust for new args.
818 (obj_elf_type_name): New function.
819 (obj_elf_type): Call it, and accept STT_foo number strings
820 in .type statements as output by SunPRO compiler.
822 2008-04-22 H.J. Lu <hongjiu.lu@intel.com>
824 * config/tc-i386.c (md_assemble): Don't check SSE instructions
827 2008-04-18 David S. Miller <davem@davemloft.net>
829 * doc/c-sparc.texi: Add syntax section.
831 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
833 * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
834 REG and NDS for instructions with immediate operand.
836 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
838 * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
841 2008-04-16 David S. Miller <davem@davemloft.net>
843 * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
844 and relocation generation.
845 (tc_gen_reloc): Likewise.
847 2008-04-15 Andrew Stubbs <andrew.stubbs@st.com>
849 * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
850 relocations are properly aligned, and not negative.
852 2008-04-15 Khem Raj <kraj@mvista.com>
854 * doc/tc-arm.texi: Fix fnstart and fnend directive names.
856 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
858 * config/tc-ppc.c (parse_cpu): Handle "e500mc". Extend "e500" to
859 accept e500mc instructions.
860 (md_show_usage): Document -me500mc.
862 2008-04-11 Nick Clifton <nickc@redhat.com>
864 * listing.c (print_timestamp): Use localtime rather than
865 localtime_r since not all build environments provide the latter.
867 2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
869 * NEWS: Mention -msse-check=[none|error|warning].
871 * config/tc-i386.c (sse_check): New.
872 (OPTION_MSSE_CHECK): Likewise.
873 (md_assemble): Check SSE instructions if needed.
874 (md_longopts): Add -msse-check.
875 (md_parse_option): Handle OPTION_MSSE_CHECK.
876 (md_show_usage): Show -msse-check=[none|error|warning].
878 * doc/c-i386.texi: Document -msse-check=[none|error|warning].
880 2008-04-10 Santiago Urueña <suruena@gmail.com>
882 * listing.c: Add -ag listing flag to show general information in
883 listings such as gas version, passed options, and time stamp.
884 (listing_general_info): New function.
885 (print_options): New function.
886 (print_single_option): New function.
887 (print_timestamp): New function.
888 (MAX_DATELEN): Define.
889 (listing_print): Add call to listing_general_info.
890 * listing.h (LISTING_GENERAL): Define.
891 (listing_print): Add new parameter.
892 * as.c (show_usage): Print new switch.
893 (parse_args): Parse new switch.
894 (main): Pass command line on to listing_print.
895 * NEWS: Mention this new feature.
896 * doc/as.texinfo: Document the new sub-option.
898 2008-04-08 Alan Modra <amodra@bigpond.net.au>
900 * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
901 call. Delete out of date comment.
902 (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
903 (dwarf2_emit_label): Don't emit unless there has been a previous
904 .file or we are outputting assembler generated debug.
905 dwarf2_consume_line_info after emitting line info, not before.
906 (out_debug_info): Simplify files_in_use test.
908 2008-04-07 H.J. Lu <hongjiu.lu@intel.com>
910 * config/tc-i386.c (parse_real_register): Return AVX register
911 only if AVX is enabled.
913 2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
916 * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
917 md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
919 2008-04-04 Adrian Bunk <bunk@stusta.de>
920 Bob Wilson <bob.wilson@acm.org>
922 * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
923 call to decode_reloc.
925 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
927 * NEWS: Mention XSAVE. Change CLMUL to PCLMUL.
929 * config/tc-i386.c (cpu_arch): Add .pclmul.
930 (md_show_usage): Replace clmul with pclmul.
931 * doc/c-i386.texi: Likewise.
933 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
935 * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
937 * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
938 Document -msse2avx, .avx, .aes, .clmul and .fma.
940 * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
941 (vex_prefix): Likewise.
943 (CPU_FLAGS_ARCH_MATCH): Likewise.
944 (CPU_FLAGS_64BIT_MATCH): Likewise.
945 (CPU_FLAGS_32BIT_MATCH): Likewise.
946 (CPU_FLAGS_PERFECT_MATCH): Likewise.
948 (vex_imm4): Likewise.
949 (fits_in_imm4): Likewise.
950 (build_vex_prefix): Likewise.
951 (VEX_check_operands): Likewise.
952 (bad_implicit_operand): Likewise.
953 (OPTION_MSSE2AVX): Likewise.
954 (T_YMMWORD): Likewise.
955 (_i386_insn): Add vex.
956 (cpu_arch): Add .avx, .aes, .clmul and .fma.
957 (cpu_flags_match): Changed to take a pointer to const template.
958 Enable encoding SSE instructions with VEX prefix for -msse2avx.
959 (match_mem_size): Also check ymmword.
960 (operand_type_match): Clear ymmword.
961 (md_begin): Allow '_' in mnemonic.
962 (type_names): Add OPERAND_TYPE_VEX_IMM4.
963 (process_immext): Update assert.
964 (md_assemble): Don't call process_immext if sse2avx and immext
965 are true. Call build_vex_prefix if vex is true.
966 (parse_insn): Updated for cpu_flags_match.
967 (swap_operands): Handle 5 operands.
968 (match_template): Handle 5 operands. Updated for cpu_flags_match.
969 Check regymm. Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
970 (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
971 (check_byte_reg): Check regymm.
972 (process_operands): Duplicate the destination register for
974 (build_modrm_byte): Updated for instructions with VEX encoding.
975 (output_insn): Output VEX prefix if needed.
976 (md_longopts): Add msse2avx.
977 (md_parse_option): Handle OPTION_MSSE2AVX.
978 (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
979 (intel_e09): Support YMMWORD.
980 (intel_e11): Likewise.
981 (intel_get_token): Likewise.
983 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
985 * config/tc-avr.c (mcu_types): Add attiny167.
986 * doc/c-avr.texi: Likewise.
988 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
990 * config/tc-avr.c (mcu_types): Add atmega32u4.
991 * doc/c-avr.texi: Likewise.
993 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
995 * config/tc-avr.c (mcu_types): Add atmega32c1.
996 * doc/c-avr.texi: Likewise.
998 2008-03-28 Paul Brook <paul@codesourcery.com>
1000 * config/tc-arm.c (parse_neon_mov): Parse register before immediate
1001 to avoid spurious symbols.
1003 2008-03-28 Nathan Sidwell <nathan@codesourcery.com>
1005 * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
1008 2008-03-27 Eric B. Weddington <eric.weddington@atmel.com>
1010 * config/tc-avr.c (mcu_types): Add atmega32m1.
1011 * doc/c-avr.texi: Likewise.
1013 2008-03-27 Ineiev <ineiev@yahoo.co.uk>
1015 * config/tc-arm.c (do_neon_cvt): Move variable declarations to
1017 (do_neon_ext): Fix sign of comparison.
1019 2008-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
1021 From Jie Zhang <jie.zhang@analog.com>
1022 * config/bfin-parse.y (asm_1): Check AREGS in comparison
1023 instructions. And call yyerror when comparing PREG with
1025 (check_macfunc_option): New.
1026 (check_macfuncs): Check option by calling check_macfunc_option.
1027 Fix comparison always true warnings. Both scalar instructions
1028 of vector instruction must share the same mode option. Only allow
1029 option mode at the end of the second instruction of the vector.
1030 (asm_1): Check option by calling check_macfunc_option.
1032 * config/bfin-parse.y (check_macfunc_option): Allow (IU)
1033 option for multiply and multiply-accumulate to data register
1035 (check_macfuncs): Don't check if accumulator matches the data register
1037 (assign_macfunc): Check if accumulator matches the
1038 data register in each rule that moves to the data
1041 * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
1042 generated for LOOP_BEGIN and LOOP_END instructions.
1043 (bfin_gen_loop): Likewise.
1045 2008-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1047 * config/tc-s390.c (md_parse_option): z10 option added.
1049 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1051 * aclocal.m4: Regenerate.
1052 * configure: Likewise.
1053 * Makefile.in: Likewise.
1054 * doc/Makefile.in: Likewise.
1056 2008-03-17 Adrian Bunk <bunk@stusta.de>
1059 * config/tc-hppa.c (is_same_frag): Delete.
1061 2008-03-14 Sterling Augustine <sterling@tensilica.com>
1063 * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
1064 RELAX_LOOP_END_ADD_NOP.
1066 2008-03-13 Evandro Menezes <evandro@yahoo.com>
1069 * read.c (s_mexit): Warn if attempting to exit a macro when not
1070 inside a macro definition.
1072 2008-03-13 Alan Modra <amodra@bigpond.net.au>
1074 * Makefile.am: Run "make dep-am".
1075 * Makefile.in: Regenerate.
1076 * configure: Regenerate.
1078 2008-03-09 Paul Brook <paul@codesourcery.com>
1080 * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
1081 * doc/c-arm.texi: Add cortex-a9.
1083 2008-03-09 Paul Brook <paul@codesourcery.com>
1085 * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
1086 (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
1087 (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
1088 (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
1089 * doc/c-arm.texi: Document new ARM FPU variants.
1091 2008-03-07 Paul Brook <paul@codesourcery.com>
1093 * config/tc-arm.c (md_apply_fix): Use correct offset range.
1095 2008-03-07 Alan Modra <amodra@bigpond.net.au>
1097 * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test
1098 for strict ordering of powerpc_opcodes, but disable for now.
1100 2008-03-04 Paul Brook <paul@codesourcery.com>
1102 * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
1103 (arm_ext_v7m): Rename...
1104 (arm_ext_m): ... to this. Include v6-M.
1105 (do_t_add_sub): Allow narrow low-reg non flag setting adds.
1106 (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
1107 (md_assemble): Allow wide msr instructions.
1108 (insns): Add classifications for v6-m instructions.
1109 (arm_cpu_option_table): Add cortex-m1.
1110 (arm_arch_option_table): Add armv6-m.
1111 (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants.
1113 2008-03-03 Sterling Augustine <sterling@tensilica.com>
1114 Bob Wilson <bob.wilson@acm.org>
1116 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
1117 (md_begin): Initialize it.
1118 (resources_conflict): Use it.
1120 2008-03-03 Sterling Augustine <sterling@tensilica.com>
1122 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
1124 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
1125 H.J. Lu <hongjiu.lu@intel.com>
1128 * read.c (pseudo_set): Don't allow global register symbol.
1130 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
1133 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
1136 * write.c (write_object_file): Don't allow symbols which were
1137 equated to register. Stop if there is an error.
1139 2008-03-01 Alan Modra <amodra@bigpond.net.au>
1141 * config/tc-ppc.h (struct _ppc_fix_extra): New.
1143 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
1144 * config/tc-ppc.c (ppu_cpu): Make global.
1145 (ppc_insert_operand): Add ppu_cpu parameter.
1146 (md_assemble): Adjust for above change.
1147 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
1149 2008-02-22 Nick Clifton <nickc@redhat.com>
1151 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
1152 targeted ARM ports, otherwise just skip generating the reloc.
1154 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
1156 * doc/c-i386.texi: Update -march= and .arch.
1158 2008-02-18 Nick Clifton <nickc@redhat.com>
1160 * config/tc-mn10300.c (has_known_symbol_location): New function.
1161 Do not regard weak symbols as having a known location.
1162 (md_estimate_size_before_relax): Use new function.
1163 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
1165 2008-02-18 Jan Beulich <jbeulich@novell.com>
1167 * config/tc-i386.c (match_template): Disallow 'l' suffix when
1168 currently selected CPU has no 32-bit support.
1169 (parse_real_register): Do not return registers not available on
1170 currently selected CPU.
1172 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
1174 * config/tc-i386.c (process_immext): Fix format.
1176 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
1178 * config/tc-i386.c (inoutportreg): New.
1179 (process_immext): New.
1180 (md_assemble): Use it.
1181 (update_imm): Use imm16 and imm32s.
1182 (i386_att_operand): Use inoutportreg.
1184 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
1186 * config/tc-i386.c (operand_type_all_zero): New.
1187 (operand_type_set): Likewise.
1188 (operand_type_equal): Likewise.
1189 (cpu_flags_all_zero): Likewise.
1190 (cpu_flags_set): Likewise.
1191 (cpu_flags_equal): Likewise.
1192 (UINTS_ALL_ZERO): Removed.
1193 (UINTS_SET): Likewise.
1194 (UINTS_CLEAR): Likewise.
1195 (UINTS_EQUAL): Likewise.
1196 (cpu_flags_match): Updated.
1197 (smallest_imm_type): Likewise.
1198 (set_cpu_arch): Likewise.
1199 (md_assemble): Likewise.
1200 (optimize_imm): Likewise.
1201 (match_template): Likewise.
1202 (process_suffix): Likewise.
1203 (update_imm): Likewise.
1204 (process_drex): Likewise.
1205 (process_operands): Likewise.
1206 (build_modrm_byte): Likewise.
1207 (i386_immediate): Likewise.
1208 (i386_displacement): Likewise.
1209 (i386_att_operand): Likewise.
1210 (parse_real_register): Likewise.
1211 (md_parse_option): Likewise.
1212 (i386_target_format): Likewise.
1214 2008-02-14 Dimitry Andric <dimitry@andric.com>
1217 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
1218 pointer past the comma after parsing a floating point register
1221 2008-02-14 Hakan Ardo <hakan@debian.org>
1224 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
1226 (avr_operand): Disallow post-increment addressing in the lpm
1227 instruction for the attiny26.
1229 2008-02-13 Jan Beulich <jbeulich@novell.com>
1231 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
1232 if not in Intel mode.
1233 (i386_intel_operand): Ignore segment overrides in immediate and
1235 (intel_e11): Range-check i.mem_operands before use as array
1236 index. Filter out FLAT for uses other than as segment override.
1237 (intel_get_token): Remove broken promotion of "FLAT:" to mean
1240 2008-02-13 Jan Beulich <jbeulich@novell.com>
1242 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
1244 2008-02-13 Jan Beulich <jbeulich@novell.com>
1246 * config/tc-i386.c (allow_pseudo_reg): New.
1247 (parse_real_register): Check for NULL just once. Allow all
1248 register table entries when allow_pseudo_reg is non-zero.
1249 Don't allow any registers without type when allow_pseudo_reg
1251 (tc_x86_regname_to_dw2regnum): Replace with ...
1252 (tc_x86_parse_to_dw2regnum): ... this.
1253 (tc_x86_frame_initial_instructions): Adjust for above change.
1254 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
1255 (tc_parse_to_dw2regnum): New.
1256 (tc_x86_regname_to_dw2regnum): Replace with ...
1257 (tc_x86_parse_to_dw2regnum): ... this.
1258 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
1259 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
1262 2008-02-12 Nick Clifton <nickc@redhat.com>
1264 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
1266 (tic4x_insn_add): Likewise.
1267 (md_begin): Drop cast that was discarding a const qualifier.
1268 * config/tc-d30v.c (get_reloc): Add const qualifier to op
1270 (build_insn): Drop cast that was discarding a const qualifier.
1272 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
1274 * config/tc-i386.c (cpu_arch): Add .xsave.
1275 (md_show_usage): Add .xsave.
1277 * doc/c-i386.texi: Add xsave to -march=.
1279 2008-02-07 Alan Modra <amodra@bigpond.net.au>
1281 * read.c (s_weakref): Don't pass unadorned NULL to concat.
1282 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
1284 2008-02-05 Sterling Augustine <sterling@tensilica.com>
1286 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
1287 checks into assertions. When relaxation produces an operation that
1288 does not fit in the current FLIX instruction, make sure that the
1289 operation is relaxed as needed to account for being placed following
1290 the current instruction.
1292 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
1295 * configure: Regenerated.
1297 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
1299 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
1301 2008-01-31 Marc Gauthier <marc@tensilica.com>
1303 * configure.tgt (xtensa*-*-*): Recognize processor variants.
1305 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
1307 * read.c: (emit_expr): Correct for mingw use of printf size
1310 2008-01-24 Bob Wilson <bob.wilson@acm.org>
1312 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
1313 can only be encoded in FLIX instructions but are not specified as such.
1314 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
1317 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
1319 * NEWS: Mention new command line options for x86 targets.
1321 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
1323 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
1325 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
1327 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
1329 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
1331 * config/tc-i386.c (md_show_usage): Show more processors for
1334 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
1336 * config/tc-i386.c (i386_target_format): Remove cpummx2.
1338 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
1340 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
1341 (XXX_MNEM_SUFFIX): Likewise.
1342 (END_OF_INSN): Likewise.
1343 (templates): Likewise.
1344 (modrm_byte): Likewise.
1345 (rex_byte): Likewise.
1346 (DREX_XXX): Likewise.
1347 (drex_byte): Likewise.
1348 (sib_byte): Likewise.
1349 (processor_type): Likewise.
1350 (arch_entry): Likewise.
1351 (cpu_sub_arch_name): Remove const.
1352 (cpu_arch): Add .vmx and .smx.
1353 (set_cpu_arch): Append cpu_sub_arch_name.
1354 (md_parse_option): Support -march=CPU[,+EXTENSION...].
1355 (md_show_usage): Updated.
1357 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
1358 (XXX_MNEM_SUFFIX): Likewise.
1359 (END_OF_INSN): Likewise.
1360 (templates): Likewise.
1361 (modrm_byte): Likewise.
1362 (rex_byte): Likewise.
1363 (DREX_XXX): Likewise.
1364 (drex_byte): Likewise.
1365 (sib_byte): Likewise.
1366 (processor_type): Likewise.
1367 (arch_entry): Likewise.
1369 * doc/as.texinfo: Update i386 -march option.
1371 * doc/c-i386.texi: Update -march= for ISA.
1373 2008-01-18 Bob Wilson <bob.wilson@acm.org>
1375 * config/tc-xtensa.c (xtensa_leb128): New function.
1376 (md_pseudo_table): Use it for sleb128 and uleb128.
1377 (is_leb128_expr): New internal flag.
1378 (xtensa_symbol_new_hook): Check new flag.
1380 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
1382 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
1383 at90usb82, at90usb162.
1384 * doc/c-avr.texi: Change architecture grouping for at90usb82,
1386 These changes support the new avr35 architecture group in gcc.
1388 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
1390 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
1391 suffix for AT&T syntax.
1393 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
1395 * config/tc-i386.c (match_reg_size): New.
1396 (match_mem_size): Likewise.
1397 (operand_size_match): Likewise.
1398 (operand_type_match): Also clear all size fields.
1399 (match_template): Skip Intel syntax when in AT&T syntax.
1400 Call operand_size_match to check operand size.
1401 (i386_att_operand): Set the mem field to 1 for memory
1403 (i386_intel_operand): Likewise.
1405 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
1408 * config/tc-i386.c (_i386_insn): Update comment.
1409 (operand_type_match): Also clear unspecified.
1410 (operand_type_register_match): Likewise.
1411 (parse_operands): Initialize unspecified.
1412 (i386_intel_operand): Likewise.
1413 (match_template): Check memory and accumulator operand size.
1414 (i386_att_operand): Clear unspecified on register operand.
1415 (intel_e11): Likewise.
1416 (intel_e09): Set operand size and clean unspecified for
1419 2008-01-11 Andreas Schwab <schwab@suse.de>
1421 * read.c (s_space): Declare `repeat' as offsetT.
1423 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1425 * config/tc-i386.c (match_template): Check processor support
1428 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1430 * config/tc-i386.c (match_template): Continue if processor
1433 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
1435 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
1436 unwind personality function address.
1438 2008-01-09 Bob Wilson <bob.wilson@acm.org>
1440 * dwarf2dbg.c (out_sleb128): Delete.
1441 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
1442 (out_fixed_inc_line_addr): Delete.
1443 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
1444 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
1445 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
1446 (process_entries): Remove calls to out_fixed_inc_line_addr. When
1447 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
1448 * read.h (emit_expr_fix): New prototype.
1449 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
1450 (emit_expr_fix): New.
1452 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
1454 * config/tc-i386.c (match_template): Check register size
1455 only when size of operands can be encoded the canonical way.
1457 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
1459 * config/tc-i386.c (i386_operand): Renamed to ...
1460 (i386_att_operand): This.
1461 (parse_operands): Updated.
1463 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
1465 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
1467 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
1469 (md_assemble): Remove Intel mode workaround.
1470 (match_template): Check support for old gcc, AT&T mnemonic
1472 (md_parse_option): Don't set intel_mnemonic to 0 for
1475 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
1477 * config/tc-i386.h: Update copyright to 2008.
1479 2008-01-04 Nick Clifton <nickc@redhat.com>
1481 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
1482 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
1484 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1486 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
1489 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1491 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
1492 (cpu_flags_not): Likewise.
1493 (cpu_flags_match): Updated to check 64bit and arch.
1494 (set_code_flag): Remove cpu_arch_flags_not.
1495 (set_16bit_gcc_code_flag): Likewise.
1496 (set_cpu_arch): Likewise.
1497 (md_begin): Likewise.
1498 (parse_insn): Call cpu_flags_match to check 64bit and arch.
1499 (match_template): Likewise.
1501 2008-01-03 Jakub Jelinek <jakub@redhat.com>
1503 * config/tc-i386.c (process_drex): Initialize modrm_reg and
1504 modrm_regmem to 0 instead of None.
1506 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1508 * config/tc-i386.c (match_template): Use the xmmword field
1511 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1513 * config/tc-i386.c (process_suffix): Fix a typo.
1515 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1518 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1519 Check memory size in Intel mode.
1520 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1521 (intel_e09): Likewise.
1523 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1525 2008-01-02 Catherine Moore <clm@codesourcery.com>
1527 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1529 For older changes see ChangeLog-2007
1535 version-control: never