1 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3 * config/tc-m32r.c (md_convert_frag): Changed for @PLT.
4 (m32r_cgen_record_fixup_exp): Changed for @GOTOFF, @GOT.
5 (m32r_fix_adjustable): Changed for @GOTOFF, @GOT, @PLT.
6 (tc_gen_reloc): Likewise.
7 (m32r_end_of_match): Add for @GOTOFF, @GOT, @PLT.
8 (m32r_parse_name): Likewise.
9 (m32r_cgen_parse_fix_exp): Likewise.
10 * config/tc-m32r.h (md_parse_name): Define for @GOTOFF, @GOT, @PLT.
11 (O_PIC_reloc): Likewise.
12 (TC_CGEN_PARSE_FIX_EXP): Likewise..
13 * cgen.c (gas_cgen_parse_operand): Add TC_CGEN_PARSE_FIX_EXP
14 for @GOTOFF, @GOT, @PLT.
16 2004-06-21 Jan Beulich <jbeulich@novell.com>
18 * gas/symbols.c: While discarding ordinary local absolute symbols
19 when --strip-local-absolute is in effect, retain file symbols.
21 2004-06-20 Andreas Schwab <schwab@suse.de>
23 * config/tc-m68k.c (mri_chip): Replace current_chip, not augment.
24 (md_parse_option): Likewise.
26 2004-06-17 Jan Beulich <jbeulich@novell.com>
28 * config/tc-i386.c: Deal with LEX_QM the same way as with LEX_AT.
29 * config/te-netware.h: New file.
30 * config/te-ppcnw.h: Delete: Obsolete.
31 * configure.in: Eliminate ill NetWare targets. Make generic
32 NetWare target use proper emulation.
33 * Makefile.am: Eliminate reference to obsolete te-ppcnw.h, add
34 reference to new te-netware.h.
35 * configure: Regenerate.
36 * Makefile.in: Regenerate.
38 2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
40 * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
41 comparison in .insn pseudo operation.
43 2004-06-15 Alan Modra <amodra@bigpond.net.au>
45 * config/obj-coff.c (coff_adjust_section_syms): Use
46 bfd_get_section_size instead of bfd_get_section_size_before_reloc.
47 (coff_frob_section): Likewise.
48 * config/tc-mips.c (md_apply_fix3): Likewise.
49 * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
50 (elf_frob_file_after_relocs): Likewise.
52 2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
54 * config/tc-hppa.c (log2): Rename to exact_log2.
55 (pa_next_subseg): Delete unused function.
56 (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
57 (create_new_subspace): Likewise.
60 * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
63 2004-05-28 DJ Delorie <dj@redhat.com>
65 * config/tc-mn10300.h (tc_fix_adjustable): Define.
66 * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
67 or non-merged symbols.
69 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
71 * config/tc-ia64.c (remove_marked_resource): Save, clear and
72 restore the old slot when inserting srlz.i/srlz.d.
74 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
76 * Makefile.am: Regenerate dependecies.
77 * Makefile.in: Regenerate.
78 * config/tc-sh.c (valid_arch): Make unsigned.
79 (preset_target_arch): Likewise.
80 (md_begin): Use new architecture flags system.
81 (get_specific): Likewise.
82 (assemble_ppi): Likewise.
83 (md_assemble): Likewise. Also fix error check for bad opcodes.
84 (md_parse_option): Likewise. Also generate -isa values according
85 to the table in bfd/cpu-sh.c instead of just constants. Also
86 allow <arch>-up ISA variants.
87 (sh_elf_final_processing): Replace if-else chain with a call to
89 * testsuite/gas/sh/arch: New directory.
90 * testsuite/gas/sh/arch/arch.exp: New test script.
91 * testsuite/gas/sh/arch/arch_expected.txt: New file.
92 * testsuite/gas/sh/arch/sh.s: New file.
93 * testsuite/gas/sh/arch/sh2.s: New file.
94 * testsuite/gas/sh/arch/sh-dsp.s: New file.
95 * testsuite/gas/sh/arch/sh2e.s: New file.
96 * testsuite/gas/sh/arch/sh3-nommu.s: New file.
97 * testsuite/gas/sh/arch/sh3.s: New file.
98 * testsuite/gas/sh/arch/sh3-dsp.s: New file.
99 * testsuite/gas/sh/arch/sh3e.s: New file.
100 * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
101 * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
102 * testsuite/gas/sh/arch/sh4.s: New file.
103 * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
104 * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
105 * testsuite/gas/sh/arch/sh4a.s: New file.
107 2004-05-28 Peter Barada <peter@the-baradas.com>
109 * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
110 with zero offset into mode 2 addressing to save a word.
112 2004-05-27 H.J. Lu <hongjiu.lu@intel.com>
114 * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
115 (ar_is_only_in_integer_unit): New.
116 (ar_is_only_in_memory_unit): New.
117 (generate_unwind_image): Silence gcc on 32bit host.
118 (md_assemble): Use ar_is_only_in_integer_unit instead of
119 ar_is_in_integer_unit. Check AR access.
121 2004-05-27 Peter Barada <peter@the-baradas.com>
123 * config/tc-m68k.c (md_begin): Sort the opcode table into
125 (m68k_compare_opcode): New function to do the sorting.
127 2004-05-24 Peter Barada <peter@the-baradas.com>
129 * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
130 addressing on MIT style operands.
131 * config/m68k-parse.y(yylex): Allow '-&' for predecrement
133 * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
136 2004-05-23 Alan Modra <amodra@bigpond.net.au>
138 * expr.c (operand, operator): Don't reject '++' and '--'.
140 2004-05-20 Richard Sandiford <rsandifo@redhat.com>
142 * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
145 2004-05-17 Adam Nemet <anemet@lnxw.com>
147 * configure.in: Add ppc-*-lynxos*. Update i386-*-lynxos* to ELF.
148 * configure: Regenerate.
150 2004-05-13 Paul Brook <paul@codesourcery.com>
152 * dw2gencfi.c (output_cie): Handle dwarf3 format CIE entries.
154 2004-05-13 Joel Sherrill <joel@oarcorp.com>
156 * configure.in (or32-*-rtems*): Switch to elf.
157 * configure: Regenerate.
159 2004-05-13 Nick Clifton <nickc@redhat.com>
161 * po/fr.po: Updated French translation.
163 2004-05-11 Nick Clifton <nickc@redhat.com>
165 * doc/as.texinfo (Section): Document G and T flags to .section
166 directive. Document the extra arguments that the G flag
167 requires. Document the #tls flag.
169 2004-05-11 H.J. Lu <hongjiu.lu@intel.com>
171 * subsegs.c (section_symbol): Create a new section symbol if
172 the existing one doesn't match.
173 * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
175 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
177 * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
178 to cope with VR4181A errata MD(1) and MD(4).
180 2004-05-07 Brian Ford <ford@vss.fsi.com>
182 * NEWS: Mention .secrel32 for pe[i]-i386.
184 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
186 * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
189 2004-05-06 Daniel Jacobowitz <dan@debian.org>
191 * Makefile.am (DIST_SUBDIRS): Define.
192 * aclocal.m4: Regenerate with automake 1.8.4.
193 * Makefile.in: Likewise.
194 * doc/Makefile.in: Likewise.
196 2004-05-06 David Mosberger-Tang <davidm@hpl.hp.com>
198 * config/tc-ia64.c (dot_serialize): Declare.
199 (dot_serialize): New function.
200 (md_pseudo_table): Add ".serialize.data" and
201 ".serialize.instruction" directives.
203 2004-05-06 Nick Clifton <nickc@redhat.com>
205 * messages (as_internal_value_out_of_range): Print a message about
206 a value being out of range. Be consistent about whether the
207 values are printed in decimal or hexadecimal.
208 (as_warn_value_out_of_range): Generate a warning message about an
210 (as_bad_value_out_of_range): Generate an error message about an
212 * as.h: Prototype the new functions.
213 * config/tc-alpha.c (insert_operand): Use new function.
214 * config/tc-arc.c (arc_insert_operand): Likewise.
215 * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
216 * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
217 * config/tc-ppc.c (ppc_insert_operand): Likewise.
218 * config/tc-s390.c (s390_insert_operand): Likewise.
219 * config/tc-v850.c (v850_insert_operand): Likewise.
221 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
223 * configure.in: Set em=linux for frv-*-*linux*.
224 * configure: Rebuilt.
225 * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
226 (frv_md_fdpic_enabled): New.
227 * config/tc-frv.c (frv_md_fdpic_enabled): New.
228 (DEFAULT_FDPIC): New.
229 (frv_flags): Use DEFAULT_FDPIC.
230 (frv_pic_flag): Likewise.
232 (md_longopts): Add -mnopic.
233 (md_parse_option): Handle it.
234 (md_show_usage): Add -mfdpic and -mnopic.
236 2004-05-05 Peter Barada <peter@the-baradas.com>
238 * config/tc-m68k.c: Add find_cf_chip to print list of valid
239 chips for invalid coldfire instructions, rename selectors
240 for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
241 add current_chip to track which chip is referred to(including save/restore),
242 use current_chip to select control registers, not current_arch.
243 (md_show_usage): Add new chips.
244 * doc/c-m68k.texi: Document new command line switches.
246 2004-05-05 Jakub Jelinek <jakub@redhat.com>
248 * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
249 (NOP_OPCODE): Define.
250 (s390_align_code): Remove prototype.
251 * tc-s390.c (s390_align_code): Remove.
253 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
255 * config/tc-ia64.c (make_unw_section_name): Removed.
256 (start_unwind_section): New function.
257 (generate_unwind_image): Take const segT instead of const
259 (dot_handlerdata): Adjusted.
260 (dot_endp): Likewise.
262 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
264 * config/obj-elf.c (obj_elf_change_section): Allow the
265 ".note.GNU-stack" section has SHF_EXECINSTR.
267 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
269 * config/obj-elf.c (get_section): Return bfd_boolean.
270 (obj_elf_change_section): Call bfd_get_section_by_name_if
271 instead of bfd_map_over_sections.
273 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
275 * config/obj-elf.c (get_section): New function.
276 (obj_elf_change_section): Support multiple sections with same
279 2004-04-30 Nick Clifton <nickc@redhat.com>
281 * config/tc-arm.c (create_register_alias): Fix typo checking for
282 case sensitive register aliases.
283 (co_proc_number): Use error message string in all_reg_maps[]
285 (cp_reg_required_here): Likewise.
286 (fp_reg_required_here): Likewise.
288 2004-04-29 Brian Ford <ford@vss.fsi.com>
290 * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
292 2004-04-28 Chris Demetriou <cgd@broadcom.com>
294 * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
295 (load_address, macro, mips_ip, md_parse_option)
296 (mips_force_relocation, mips_validate_fix, md_apply_fix3)
297 (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
298 embedded-PIC handling, and update comments.
299 (SWITCH_TABLE): Remove.
300 * config/tc-mips.h (DIFF_EXPR_OK): Delete.
301 (enum mips_pic_level): Remove EMBEDDED_PIC.
302 (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
303 (TC_FORCE_RELOCATION): Update comment.
304 * ecoff.c (ecoff_build_lineno): Add comment about some code that
305 might be safe to remove now that MIPS embedded-PIC is gone.
307 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
309 * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
310 call to obj_set_subsection_attributes.
311 (obj_som_init_stab_section): Likewise.
312 * config/tc-hppa.c (default_subspace_dict): Add comdat field.
313 (pa_def_subspaces): Provide comdat default.
314 (pa_subspace): Handle new "comdat" parameter. Set SEC_LINK_ONCE and
315 not SEC_IS_COMMON if section is comdat, common or dup_common. Update
316 calls to create_new_subspace and update_subspace to pass comdat flag.
317 (create_new_subspace, update_subspace): Add new comdat argument. Use
318 it in calls to obj_set_subsection_attributes.
319 * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
320 and use of comdat, common and dup_comm parameters.
322 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
324 * config/obj-elf.c (obj_elf_change_section): Check if the old
325 group name is NULL before comparison.
327 2004-04-23 Chris Demetriou <cgd@broadcom.com>
329 * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
331 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
333 * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
335 2004-04-23 Chris Demetriou <cgd@broadcom.com>
337 * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
338 (OPTION_MEMBEDDED_PIC): Remove.
339 (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
340 (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
341 (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
342 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
343 (OPTION_ELF_BASE): Renumber.
344 (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
345 (md_show_usage): Remove mention of -membedded-pic.
346 * doc/as.texinfo: Remove mention of -membedded-pic.
348 2004-04-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
350 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
351 * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
353 (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
354 s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
355 USE_GLOBAL_POINTER_OPT.
357 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
359 * config/tc-mips.c (macro): One more use of load_delay_nop.
361 2004-04-22 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
363 * config/tc-mips.c (load_delay_nop): New function.
364 (load_address, macro): Use load_delay_nop() to build a nop
365 which can be omitted with gpr_interlocks.
367 2004-04-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
369 * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
370 cop_interlocks): Remove superfluous CPU entries.
372 2004-04-22 Paul Brook <paul@codesourcery.com>
374 * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
376 2004-04-22 Peter Barada <peter@the-baradas.com>
378 * NEWS: Added support for EMAC instructions and MAC/EMAC
380 * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
381 scale factor tokens, trailing_ampersand to mark mask addressing
382 for MAC/EMAC instructions.
383 * config/m68k-parse.y: Add options_ampersand clause, '<<',
385 (yylex): Handle '>', '<', and '&' following '+'.
386 * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
387 architectures in archs[].
388 (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
389 for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
391 (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
392 (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
394 Add EMAC operands to init_table[].
396 2004-04-22 Bruno De Bus <bdebus@elis.ugent.be>
398 * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
400 (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
401 * config/tc-arm.c (enum mstate): Delete from here.
402 (mapping_state): Remove the static mapstate variable and instead
403 store the state in the segment. This allows a per-section mapping
404 state. Handle and ignore MAP_UNDEFINED states.
405 (arm_elf_change_section): Get the current mapping state from the
407 (s_ltorg): Set the mapping state to MAP_DATA.
408 (arm_cleanup): Use arm_elf_change_section to get the mapping state
409 for each pool as it is emitted.
411 2004-04-22 Nick Clifton <nickc@redhat.com>
413 * config/tc-arm.h: Formatting tidy ups.
415 2004-04-20 Chris Demetriou <cgd@broadcom.com>
417 * NEWS: Note that MIPS -membedded-pic option is deprecated.
419 2004-04-20 DJ Delorie <dj@redhat.com>
421 * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
422 * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
423 [TE_PE] (O_secrel): Define.
424 [TE_PE] (x86_pe_cons_fix_new): New.
425 [TE_PE] (pe_directive_secrel): Likewise.
426 (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
428 2004-04-19 Eric Christopher <echristo@redhat.com>
430 * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
431 of previous patch for fix in gcc.
433 2004-04-19 Jakub Jelinek <jakub@redhat.com>
435 * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
437 2004-04-19 Nathan Sidwell <nathan@codesourcery.com>
439 * read.c (do_align): Call md_flush_pending_output, if defined.
441 2004-04-16 Alan Modra <amodra@bigpond.net.au>
443 * expr.c (operand): Correct checks for ++ and --.
445 2004-04-14 H.J. Lu <hongjiu.lu@intel.com>
447 * config/tc-generic.c: Add some comments.
449 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
451 * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
452 -{no-}mfix-vr4122-bugs.
453 * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
454 (append_insn, mips_emit_delays): Update accordingly.
455 (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
456 (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
457 (md_parse_option): Update after above changes.
458 (md_show_usage): Add -mfix-vr4120.
460 2004-04-13 Bob Wilson <bob.wilson@acm.org>
462 * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
463 of .section directive; add a reference to the ELF .subsection
466 2004-04-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
468 * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
471 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
473 * Makefile.am: Remove mips from aout targets.
474 * Makefile.in: Regenerate.
475 * configure.in: Remove mips-dec-bsd* target.
476 * configure: Regenerate.
478 2004-04-07 Alan Modra <amodra@bigpond.net.au>
481 * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
482 to struct map_bfd. Adjust MAP macro, and define MAP32, MAP64.
483 Update "mapping". Restrict some @ modifiers to 32 bit.
485 2004-04-01 Asgari Jinia <asgarij@kpitcummins.com>
486 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
488 * config/tc-sh.c (dont_adjust_reloc_32): New variable.
489 (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
490 dont_adjust_reloc_32 is set.
491 (md_longopts): Add option -renesas.
492 (md_parse_option, md_show_usage): Likewise.
493 * doc/c-sh.texi: Likewise.
495 2004-04-01 Dave Korn <dk@artimi.com>
497 * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
498 hi16 and lo16 fixS structs.
499 (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
500 exactly the same way as for RELOC_DLX_REL16.
501 (machine_ip): properly respect LO flag in the_insn and
502 output RELOC_DLX_LO16 rather than RELOC_DLX_16.
503 (md_apply_fix3): apply RELOC_DLX_LO16.
505 2004-03-30 Stan Shebs <shebs@apple.com>
507 Remove long-obsolete MPW support.
508 * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
509 * configure.in: Remove mention of ppc-*-mpw* config.
510 * configure.in: Likewise.
512 2004-03-30 Nick Clifton <nickc@redhat.com>
514 * config/tc-arm.c (meabi_flags): Make its use conditional upon
515 OBJ_ELF being defined.
517 2004-03-27 Alan Modra <amodra@bigpond.net.au>
519 * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
521 2004-03-23 Paul Brook <paul@codesourcery.com>
523 * config/tc-arm.c (meabi_flags): New variable.
524 (arm_parse_eabi): New function.
525 (md_begin): Set flags for EABI v3.
527 (arm_long_opts): Add meabi.
528 * doc/as.texinf <ARM>: Document -meabi.
529 * doc/c-arm.texi: Ditto.
531 2004-03-22 Bob Wilson <bob.wilson@acm.org>
533 * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
534 tables even when use_literal_section flag is not set.
536 2004-03-22 Alan Modra <amodra@bigpond.net.au>
538 * config/tc-sh.c: Remove trailing whitespace.
540 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
542 * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
543 --mul-bug-abort and the default behavior.
544 * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
545 (err_for_dangerous_mul_placement): New variable.
546 (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
548 (md_cris_relax_table): Have placeholder for STATE_MUL.
549 (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
550 (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
552 (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
554 (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
555 alignment and position of this frag, emit error message if
557 (md_assemble): For a multiply insn and when checking it,
558 transform the current frag into a special frag for that purpose.
559 (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
560 OPTION_MULBUG_ABORT_ON>: Handle new options.
562 2004-03-19 Bob Wilson <bob.wilson@acm.org>
564 * config/tc-xtensa.c (mark_literal_frags): New function.
565 (xtensa_move_literals): Call mark_literal_frags for all literal
566 segments, including init and fini literal segments.
567 (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
569 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
571 * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
572 (pa_comm): Set BSF_OBJECT in symbol flags.
574 2004-03-19 Alan Modra <amodra@bigpond.net.au>
576 * Makefile.am: Run "make dep-am".
577 * Makefile.in: Regenerate.
578 * doc/Makefile.in: Regenerate.
579 * config.in: Regenerate.
580 * po/gas.pot: Regenerate.
582 2004-03-18 Nathan Sidwell <nathan@codesourcery.com>
584 * read.c (read_a_source_file): Use demand_empty_rest_of_line.
585 (demand_empty_rest_of_line): Issue an error here.
586 (ignore_rest_of_line): Silently skip to end.
587 (demand_copy_string): Issue an error, not warning.
589 * config/obj-elf.c (obj_elf_section_name): Likewise.
590 (obj_elf_section): Likewise.
591 * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
592 (arc_extinst): Likewise.
593 * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
594 (dot_spill): Likewise.
595 (dot_unwabi): Likewise.
596 (dot_prologue): Likewise.
598 * expr.c (operand): Reject ++ and --.
599 (operator): Likewise.
601 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
603 * config/tc-sh.c: Include dw2gencfi.h.
604 (sh_cfi_frame_initial_instructions): New function.
605 (sh_regname_to_dw2regnum): Likewise.
606 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
608 (TARGET_USE_CFIPOP): Define.
609 (tc_cfi_frame_initial_instructions): Likewise.
610 (tc_regname_to_dw2regnum): Likewise.
611 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
612 * Makefile.am: Update dependencies.
613 * Makefile.in: Regenerate.
615 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
617 * configure.in: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
618 * configure: Regenerate.
620 2004-03-12 Bob Wilson <bob.wilson@acm.org>
622 * read.c (s_leb128): Call md_flush_pending_output.
624 2004-03-12 Michal Ludvig <mludvig@suse.cz>
626 * config/tc-i386.c (output_insn): Handle PadLock instructions.
627 * config/tc-i386.h (CpuPadLock): New define.
628 (CpuUnknownFlags): Added CpuPadLock.
630 2004-03-07 Andreas Schwab <schwab@suse.de>
632 * doc/c-hppa.texi (HPPA Directives): Fix typo.
634 2004-03-07 Richard Henderson <rth@redhat.com>
636 * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
637 (cfi_finish): Likewise for fde.
639 2004-03-05 H.J. Lu <hongjiu.lu@intel.com>
641 * config/tc-ia64.c (md_assemble): Properly handle NULL
643 (ia64_handle_align): Don't abort if failed to add a stop bit.
645 2004-03-04 H.J. Lu <hongjiu.lu@intel.com>
647 * Makefile.in: Regenerated.
648 * aclocal.m4: Likewise.
649 * configure: Likewise.
650 * doc/Makefile.in: Likewise.
652 2004-03-03 H.J. Lu <hongjiu.lu@intel.com>
654 * config/tc-ia64.c (dot_align): New.
655 (ia64_do_align): Make it static.
656 (md_pseudo_table): Use "dot_align" for "align".
657 (ia64_md_do_align): Don't set align_frag here.
658 (ia64_handle_align): Add a stop bit to the previous bundle if
661 * config/tc-ia64.h (ia64_do_align): Removed.
663 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
665 * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
666 -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
667 (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
668 the most general type or the user specifically requested it.
669 (md_assemble): Add a new error message for when an instruction
670 is understood, but is not allowed due to an -isa option.
672 2004-03-02 H.J. Lu <hongjiu.lu@intel.com>
674 * config/tc-ia64.c (align_frag): New.
675 (md_assemble): Set the tc_frag_data field in align_frag for
676 IA64_OPCODE_FIRST instructions.
677 (ia64_md_do_align): Set align_frag.
678 (ia64_handle_align): Add a stop bit if needed.
680 * config/tc-ia64.h (TC_FRAG_TYPE): New.
683 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
685 * config/tc-frv.c (fr400_audio): New variable.
686 (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
687 (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
688 (target_implements_insn_p): New function.
689 (md_assemble): Report an error if the processor doesn't implement
692 2004-02-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
694 * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
695 (md_parse_option): Ditto.
696 (OPTION_NO_SPECIAL_M32R): Added.
697 (md_show_usage): Document it.
698 (enable_speial_m32r): Changed a default value from 0 to 1.
699 * doc/c-m32r.texi: Document the -no-bitinst option.
701 2004-02-27 Nick Clifton <nickc@redhat.com>
703 * config/tc-sh.c (get_operand): Revert previous delta.
704 (tc_gen_reloc): Check for an unknown reloc type before processing
707 2004-02-27 Hannes Reinecke <hare@suse.de>
709 * config/tc-s390.c (s390_insn): Correct range check for opcode in
710 .insn pseudo operation.
712 2004-02-27 Anil Paranjpe <anilp1@kpitcummins.com>
714 * config/tc-sh.c (get_operand): In case of #Imm, check has been
715 added for wrong syntax.
717 2004-02-26 Eric Christopher <echristo@redhat.com>
719 * config/tc-mips.c (mips_dwarf2_addr_size): New.
720 * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
722 2004-02-26 Andrew Stubbs <andrew.stubbs@superh.com>
724 * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
725 nibble types to assembler.
727 2004-02-25 Fred Fish <fnf@redhat.com>
729 * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
731 2004-02-20 James E Wilson <wilson@specifixinc.com>
733 * config/tc-ia64.c (slot_index): New arg before_relax. Use instead of
735 (fixup_unw_records): New arg before_relax. Pass to slot_index.
736 (ia64_estimate_size_before_relax): New.
737 (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment.
738 (generate_unwind_image): Pass 1 to fixup_unw_records.
739 * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
740 (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
742 2004-02-19 Jakub Jelinek <jakub@redhat.com>
744 * stabs.c (generate_asm_file): Avoid warning about use of
745 uninitialized variable.
747 2004-02-18 David Mosberger <davidm@hpl.hp.com>
749 * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
750 body, and endp, allow unwind records which do not have a "t"
751 (time/instruction) field.
753 2004-02-17 Petko Manolov <petkan@nucleusys.com>
755 * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
756 (do_mav_dspsc_2): Likewise.
757 Fix accumulator registers move opcodes.
759 2004-02-13 Hannes Reinecke <hare@suse.de>
760 Jakub Jelinek <jakub@redhat.com>
762 * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
764 2004-02-10 Steve Ellcey <sje@cup.hp.com>
766 * config/tc-ia64.h (ia64_frob_symbol): New declaration.
767 (tc_frob_symbol): New macro definition.
768 * config/tc-ia64.c (ia64_frob_symbol): New routine.
770 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
772 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
775 2004-02-09 Nathan Sidwell <nathan@codesourcery.com>
777 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
778 (TC_CASE_SENSITIVE): ... this.
779 * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
780 * doc/internals.texi (TC_CASE_SENSITIVE): Document.
782 2004-02-06 James E Wilson <wilson@specifixinc.com>
784 * config/tc-ia64.c (dot_endp): Delete call to output_endp.
785 (generate_unwind_image): Re-add it here.
787 2004-02-06 Nathan Sidwell <nathan@codesourcery.com>
789 * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
790 * read.h (SKIP_WHITESPACE): Turn into an expression.
791 * read.c (read_a_source_file): A pseudo is removed by having a
794 2004-02-05 James E Wilson <wilson@specifixinc.com>
796 * config/tc-ia64.c (output_endp): New.
797 (count_bits): Delete.
798 (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
800 (fixup_unw_records): Handle endp unwind records. Delete code for
801 shortening prologue regions not followed by a body record.
802 (dot_endp): Call add_unwind_entry to emit endp unwind record.
803 * config/tc-ia64.h (unw_record_type): Add endp.
805 2004-02-03 James E Wilson <wilson@specifixinc.com>
807 * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
808 fill padding bytes with zeroes.
809 (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that
810 sets unwind_record slot_number and slot_frag fields.
812 2004-02-02 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
814 * config/tc-mips.c (add_got_offset_hilo): New function.
815 (macro): Use load_register() and add_got_offset_hilo() to load
816 constants instead of hardcoding code sequences throughout.
818 2004-01-28 H.J. Lu <hongjiu.lu@intel.com>
820 * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
822 2004-01-26 Bernardo Innocenti <bernie@develer.com>
824 * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
826 * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
827 of hard-coded test for TARGET_OS=elf.
829 2004-01-24 Chris Demetriou <cgd@broadcom.com>
831 * config/tc-mips.c (hilo_interlocks): Change definition
832 so that MIPS32, MIPS64 and later ISAs are included, along with
833 the already-included machines. Update comments.
835 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
837 * config/tc-arm.c (tc_gen_reloc): Improve error message for
838 undefined local labels.
840 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
842 * config/tc-mips.c (load_address, macro): Update comments about
843 NewABI GP relaxation.
845 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
847 * config/tc-mips.c (macro_build): Remove place and counter arguments.
848 (mips_build_lui, macro_build_ldst_constoffset): Likewise.
849 (mips16_macro_build, macro_build_jalr): Remove counter argument.
850 (set_at, load_register, load_address, move_register): Likewise.
851 (load_got_offset, add_got_offset): Likewise.
852 Update all calls and tidy accordingly.
854 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
856 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
857 (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
858 (RELAX_USE_SECOND): Bump to 0x10000.
859 (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
860 (mips_macro_warning): New variable.
861 (md_assemble): Wrap macro expansion in macro_start() and macro_end().
862 (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
863 (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use
865 (append_insn): Update mips_macro_warning.sizes.
866 (macro_start, macro_warning, macro_end): New functions.
867 (macro_build): Don't emit warnings here.
868 (macro_build_lui, md_estimate_size_before_relax): ...or here.
869 (md_convert_frag): Check for cases where one macro alternative
870 needs a warning and the other doesn't. Emit a warning if the
871 longer sequence was chosen.
873 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
875 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
876 * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
877 the first sequence, the size of the second sequence, and a flag
878 that says whether we should warn.
879 (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
880 (RELAX_FIRST, RELAX_SECOND): New.
881 (mips_relax): New variable.
882 (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
883 (append_insn): Remove "place" argument. Use mips_relax.sequence
884 rather than "place" to check whether we're expanding the second
885 alternative of a relaxable macro. Remove redundant check for
886 branch relaxation. If generating a normal insn, and there
887 is not enough room in the current frag, call relax_close_frag()
888 to close it. Update mips_relax.sizes[]. Emit fixups for the
889 second version of a relaxable macro. Record the first relaxable
890 fixup in mips_relax. Remove tc_gen_reloc workaround.
891 (macro_build): Remove all uses of "place". Use mips_relax.sequence
892 in the same way as in append_insn.
893 (mips16_macro_build): Remove "place" argument.
894 (macro_build_lui): As for macro_build. Don't drop the add_symbol
895 when generating the second version of a relaxable macro.
896 (load_got_offset, add_got_offset): New functions.
897 (load_address, macro): Use new relaxation machinery. Remove
898 tc_gen_reloc workarounds.
899 (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
900 version of a relaxable macro is needed. Return -RELAX_SECOND if the
901 first version is needed.
902 (tc_gen_reloc): Remove relaxation handling.
903 (md_convert_frag): Go through the fixups for a relaxable macro and
904 mark those that belong to the unneeded alternative as done. If the
905 second alternative is needed, adjust the fixup addresses to account
906 for the deleted first alternative.
908 2004-01-23 Richard Sandiford <rsandifo@redhat.com>
910 * frags.h (frag_room): Declare.
911 * frags.c (frag_room): New function.
912 * doc/internals.texi: Document it.
914 2004-01-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
916 * config/tc-mips.c (append_insn): Don't do r3900 interlock
917 optimization for -mtune=r3900, as this will break on other CPUs.
919 2004-01-11 Tom Rix <tcrix@worldnet.att.net>
921 * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
922 be relaxed, use fixup.
923 (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
925 2004-01-19 Jakub Jelinek <jakub@redhat.com>
927 * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
930 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
932 * config/tc-mips.c (append_insn): Properly detect variant frags
933 that preclude swapping of relaxed branches. Correctly swap
934 instructions between frags when dealing with relaxed branches.
936 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
938 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
940 * aclocal.m4: Regenerate.
941 * configure: Regenerate.
943 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
945 * config/tc-h8300.c (build_bytes): Apply relaxation to bit
948 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
950 * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
951 reloc, reserve space for the delay slot as well as the jalr itself.
953 2004-01-09 Paul Brook <paul@codesourcery.com>
955 * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
956 (do_vfp_sp2_from_reg2): New function.
958 (do_vfp_dp_from_reg2): Check return values properly.
960 2004-01-08 Ian Lance Taylor <ian@wasabisystems.com>
962 * config/tc-mips.c (warn_nops): Remove static variable.
963 (macro): Remove test of warn_nops.
964 (md_shortops): Remove 'n'.
965 (md_parse_option): Remove 'n' case.
966 (md_show_usage): Remove -n.
967 * doc/as.texinfo (Overview): Remove MIPS -n option.
968 * doc/c-mips.texi (MIPS Opts): Remove mention -n.
969 * NEWS: Mention removal of MIPS -n option.
971 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
972 (cop_interlocks): Check ISA level.
973 (cop_mem_interlocks): Define.
974 (reg_needs_delay): Check cop_interlocks rather than
975 ISA_HAS_COPROC_DELAYS.
976 (append_insn): Likewise. Use cop_mem_interlocks rather than
977 directly checking mips_opts.isa.
978 (mips_emit_delays): Likewise.
980 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
982 * config/tc-ia64.c (unwind): Move next_slot_number and
983 next_slot_frag to ...
984 (unw_rec_list): Here.
985 (free_list_records): Removed.
986 (output_unw_records): Likewise.
987 (generate_unwind_image): Make it void.
988 (alloc_record): Initialize next_slot_number and next_slot_frag.
989 (slot_index): Take .org, .space and .align into account.
990 (fixup_unw_records): Don't set slot_number to 0. Use
991 list->next_slot_number and list->next_slot_frag instead of
992 unwind.next_slot_number and unwind.next_slot_frag.
993 (ia64_convert_frag): New.
994 (generate_unwind_image): Generate a rs_machine_dependent frag
996 (emit_one_bundle): Use list->next_slot_number and
997 list->next_slot_frag instead of unwind.next_slot_number and
998 unwind.next_slot_frag.
1000 * config/tc-ia64.h (md_convert_frag): Defined as
1002 (md_estimate_size_before_relax): Defined as (f)->fr_var.
1004 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1006 2003-12-19 Alexandre Oliva <aoliva@redhat.com>
1007 * config/tc-frv.h (md_apply_fix3): Don't define.
1008 * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo
1010 * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1011 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
1012 * config/tc-frv.c (line_separator_chars): Add `!'.
1013 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
1014 * config/tc-frv.c (md_assemble): Clear insn upfront.
1015 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1016 * config/tc-frv.c (OPTION_FDPIC): New macro.
1017 (md_longopts): Add mfdpic.
1018 (md_parse_option): Handle it.
1019 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1020 * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
1021 FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
1022 (frv_pic_ptr): Parse funcdesc.
1024 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1026 * doc/as.texinfo: Let texi2pod parse asconfig.texi and
1027 gasver.texi. Remove duplicate symbol definitions for texi2pod.
1029 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1031 * Makefile.am (Makefile): Move the dependency on
1032 $(BFDDIR)/configure.in to...
1033 (CONFIG_STATUS_DEPENDENCIES): ... here.
1034 (AUTOMAKE_OPTIONS): Require automake 1.8.
1035 * Makefile.in: Regenerate.
1036 * doc/Makefile.am (BASEDIR, BFDDIR): Define.
1037 (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
1038 $(BFDDIR)/configure.in here as well.
1039 * doc/Makefile.in: Regenerate.
1041 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1043 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
1044 * Makefile.in: Regenerate.
1045 * aclocal.m4: Regenerate.
1046 * doc/Makefile.am (install, install-info): Remove.
1047 (install-data-local): A new hook for install-info.
1048 (AUTOMAKE_OPTIONS): Require automake 1.8.
1049 * doc/Makefile.in: Regenerate.
1051 2004-01-02 Nutan Singh <nutan@kpitcummins.com>
1053 * doc/c-sh.texi: Update description about floating point behavior
1056 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1058 * configure.in: Add m68k-uClinux target.
1059 * configure: Regenerate.
1061 For older changes see ChangeLog-0203
1067 version-control: never