* configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
[binutils.git] / gas / ChangeLog
blobda45ddfcadbcf999ed0184b534a84ed74b3b78d4
1 2004-06-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3         * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
4         comparison in .insn pseudo operation.
6 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
8         * config/obj-coff.c (coff_adjust_section_syms): Use
9         bfd_get_section_size instead of bfd_get_section_size_before_reloc.
10         (coff_frob_section): Likewise.
11         * config/tc-mips.c (md_apply_fix3): Likewise.
12         * config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
13         (elf_frob_file_after_relocs): Likewise.
15 2004-06-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17         * config/tc-hppa.c (log2): Rename to exact_log2.
18         (pa_next_subseg): Delete unused function.
19         (create_new_space): Mark unused arguments with ATTRIBUTE_UNUSED.
20         (create_new_subspace): Likewise.
22         Bug gas/213
23         * config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
24         labels.  Fix warning.
26 2004-05-28  DJ Delorie  <dj@redhat.com>
28         * config/tc-mn10300.h (tc_fix_adjustable): Define.
29         * config/tc-mn10300.c (mn10300_fix_adjustable): Don't adjust debug
30         or non-merged symbols.
32 2004-05-28  H.J. Lu  <hongjiu.lu@intel.com>
34         * config/tc-ia64.c (remove_marked_resource): Save, clear and
35         restore the old slot when inserting srlz.i/srlz.d.
37 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
39         * Makefile.am: Regenerate dependecies.
40         * Makefile.in: Regenerate.
41         * config/tc-sh.c (valid_arch): Make unsigned.
42         (preset_target_arch): Likewise.
43         (md_begin): Use new architecture flags system.
44         (get_specific): Likewise.
45         (assemble_ppi): Likewise.
46         (md_assemble): Likewise. Also fix error check for bad opcodes.
47         (md_parse_option): Likewise. Also generate -isa values according
48         to the table in bfd/cpu-sh.c instead of just constants. Also
49         allow <arch>-up ISA variants.
50         (sh_elf_final_processing): Replace if-else chain with a call to
51         sh_find_elf_flags().
52         * testsuite/gas/sh/arch: New directory.
53         * testsuite/gas/sh/arch/arch.exp: New test script.
54         * testsuite/gas/sh/arch/arch_expected.txt: New file.
55         * testsuite/gas/sh/arch/sh.s: New file.
56         * testsuite/gas/sh/arch/sh2.s: New file.
57         * testsuite/gas/sh/arch/sh-dsp.s: New file.
58         * testsuite/gas/sh/arch/sh2e.s: New file.
59         * testsuite/gas/sh/arch/sh3-nommu.s: New file.
60         * testsuite/gas/sh/arch/sh3.s: New file.
61         * testsuite/gas/sh/arch/sh3-dsp.s: New file.
62         * testsuite/gas/sh/arch/sh3e.s: New file.
63         * testsuite/gas/sh/arch/sh4-nommu-nofpu.s: New file.
64         * testsuite/gas/sh/arch/sh4-nofpu.s: New file.
65         * testsuite/gas/sh/arch/sh4.s: New file.
66         * testsuite/gas/sh/arch/sh4a-nofpu.s: New file.
67         * testsuite/gas/sh/arch/sh4al-dsp.s: New file.
68         * testsuite/gas/sh/arch/sh4a.s: New file.
70 2004-05-28  Peter Barada <peter@the-baradas.com>
72         * config/gc-m68k.c(m68k_ip): Convert mode 5 addressing
73         with zero offset into mode 2 addressing to save a word.
75 2004-05-27  H.J. Lu  <hongjiu.lu@intel.com>
77         * config/tc-ia64.c (ar_is_in_integer_unit): Removed.
78         (ar_is_only_in_integer_unit): New.
79         (ar_is_only_in_memory_unit): New.
80         (generate_unwind_image): Silence gcc on 32bit host.
81         (md_assemble): Use ar_is_only_in_integer_unit instead of
82         ar_is_in_integer_unit. Check AR access.
84 2004-05-27  Peter Barada  <peter@the-baradas.com>
86         * config/tc-m68k.c (md_begin): Sort the opcode table into
87         alphabetical order.
88         (m68k_compare_opcode): New function to do the sorting.
90 2004-05-24  Peter Barada  <peter@the-baradas.com>
92         * config/m68k-parse.y(operand): Allow for MAC/EMAC mask
93         addressing on MIT style operands.
94         * config/m68k-parse.y(yylex): Allow '-&' for predecrement
95         w/mask addressing.
96         * config/tc-m68k.c(install_operand): Comment 'G' and 'H' type
97         operands.
99 2004-05-23  Alan Modra  <amodra@bigpond.net.au>
101         * expr.c (operand, operator): Don't reject '++' and '--'.
103 2004-05-20  Richard Sandiford  <rsandifo@redhat.com>
105         * config/tc-mips.c (append_insn): Use ISA-encoded addresses in MIPS16
106         dwarf tables.
108 2004-05-17  Adam Nemet  <anemet@lnxw.com> 
110         * configure.in: Add ppc-*-lynxos*.  Update i386-*-lynxos* to ELF.
111         * configure: Regenerate.
113 2004-05-13  Paul Brook  <paul@codesourcery.com>
115         * dw2gencfi.c (output_cie):  Handle dwarf3 format CIE entries.
117 2004-05-13  Joel Sherrill <joel@oarcorp.com>
119         * configure.in (or32-*-rtems*): Switch to elf.
120         * configure: Regenerate.
122 2004-05-13  Nick Clifton  <nickc@redhat.com>
124         * po/fr.po: Updated French translation.
126 2004-05-11  Nick Clifton  <nickc@redhat.com>
128         * doc/as.texinfo (Section): Document G and T flags to .section
129         directive.  Document the extra arguments that the G flag
130         requires.  Document the #tls flag.
132 2004-05-11  H.J. Lu  <hongjiu.lu@intel.com>
134         * subsegs.c (section_symbol): Create a new section symbol if
135         the existing one doesn't match.
136         * symbols.c (symbol_set_bfdsym): Don't reset BFD section symbol.
138 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
140         * config/tc-mips.c (append_insn, mips_emit_delays): Extend -mfix-vr4120
141         to cope with VR4181A errata MD(1) and MD(4).
143 2004-05-07  Brian Ford  <ford@vss.fsi.com>
145         * NEWS: Mention .secrel32 for pe[i]-i386.
147 2004-05-07  Alexandre Oliva  <aoliva@redhat.com>
149         * config/tc-frv.h (MAX_MEM_FOR_RS_ALIGN_CODE): New.
150         (HANDLE_ALIGN): New.
152 2004-05-06  Daniel Jacobowitz  <dan@debian.org>
154         * Makefile.am (DIST_SUBDIRS): Define.
155         * aclocal.m4: Regenerate with automake 1.8.4.
156         * Makefile.in: Likewise.
157         * doc/Makefile.in: Likewise.
159 2004-05-06  David Mosberger-Tang  <davidm@hpl.hp.com>
161         * config/tc-ia64.c (dot_serialize): Declare.
162         (dot_serialize): New function.
163         (md_pseudo_table): Add ".serialize.data" and
164         ".serialize.instruction" directives.
166 2004-05-06  Nick Clifton  <nickc@redhat.com>
168         * messages (as_internal_value_out_of_range): Print a message about
169         a value being out of range.  Be consistent about whether the
170         values are printed in decimal or hexadecimal.
171         (as_warn_value_out_of_range): Generate a warning message about an
172         out of range value.
173         (as_bad_value_out_of_range): Generate an error message about an
174         out of range value.
175         * as.h: Prototype the new functions.
176         * config/tc-alpha.c (insert_operand): Use new function.
177         * config/tc-arc.c (arc_insert_operand): Likewise.
178         * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
179         * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
180         * config/tc-ppc.c (ppc_insert_operand): Likewise.
181         * config/tc-s390.c (s390_insert_operand): Likewise.
182         * config/tc-v850.c (v850_insert_operand): Likewise.
184 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
186         * configure.in: Set em=linux for frv-*-*linux*.
187         * configure: Rebuilt.
188         * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
189         (frv_md_fdpic_enabled): New.
190         * config/tc-frv.c (frv_md_fdpic_enabled): New.
191         (DEFAULT_FDPIC): New.
192         (frv_flags): Use DEFAULT_FDPIC.
193         (frv_pic_flag): Likewise.
194         (OPTION_NOPIC): New.
195         (md_longopts): Add -mnopic.
196         (md_parse_option): Handle it.
197         (md_show_usage): Add -mfdpic and -mnopic.
199 2004-05-05  Peter Barada  <peter@the-baradas.com>
201         * config/tc-m68k.c: Add find_cf_chip to print list of valid
202         chips for invalid coldfire instructions, rename selectors
203         for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
204         add current_chip to track which chip is referred to(including save/restore),
205         use current_chip to select control registers, not current_arch.
206         (md_show_usage): Add new chips.
207         * doc/c-m68k.texi: Document new command line switches.
209 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
211         * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
212         (NOP_OPCODE): Define.
213         (s390_align_code): Remove prototype.
214         * tc-s390.c (s390_align_code): Remove.
216 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
218         * config/tc-ia64.c (make_unw_section_name): Removed.
219         (start_unwind_section): New function.
220         (generate_unwind_image): Take const segT instead of const
221         char *.
222         (dot_handlerdata): Adjusted.
223         (dot_endp): Likewise.
225 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
227         * config/obj-elf.c (obj_elf_change_section): Allow the
228         ".note.GNU-stack" section has SHF_EXECINSTR.
230 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
232         * config/obj-elf.c (get_section): Return bfd_boolean.
233         (obj_elf_change_section): Call bfd_get_section_by_name_if
234         instead of bfd_map_over_sections.
236 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
238         * config/obj-elf.c (get_section): New function.
239         (obj_elf_change_section): Support multiple sections with same
240         name.
242 2004-04-30  Nick Clifton  <nickc@redhat.com>
244         * config/tc-arm.c (create_register_alias): Fix typo checking for
245         case sensitive register aliases.
246         (co_proc_number): Use error message string in all_reg_maps[]
247         array.
248         (cp_reg_required_here): Likewise.
249         (fp_reg_required_here): Likewise.
251 2004-04-29  Brian Ford  <ford@vss.fsi.com>
253         * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
255 2004-04-28  Chris Demetriou  <cgd@broadcom.com>
257         * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
258         (load_address, macro, mips_ip, md_parse_option)
259         (mips_force_relocation, mips_validate_fix, md_apply_fix3)
260         (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
261         embedded-PIC handling, and update comments.
262         (SWITCH_TABLE): Remove.
263         * config/tc-mips.h (DIFF_EXPR_OK): Delete.
264         (enum mips_pic_level): Remove EMBEDDED_PIC.
265         (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
266         (TC_FORCE_RELOCATION): Update comment.
267         * ecoff.c (ecoff_build_lineno): Add comment about some code that
268         might be safe to remove now that MIPS embedded-PIC is gone.
270 2004-04-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
272         * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
273         call to obj_set_subsection_attributes.
274         (obj_som_init_stab_section): Likewise.
275         * config/tc-hppa.c (default_subspace_dict): Add comdat field.
276         (pa_def_subspaces): Provide comdat default.
277         (pa_subspace): Handle new "comdat" parameter.  Set SEC_LINK_ONCE and
278         not SEC_IS_COMMON if section is comdat, common or dup_common.  Update
279         calls to create_new_subspace and update_subspace to pass comdat flag.
280         (create_new_subspace, update_subspace): Add new comdat argument.  Use
281         it in calls to obj_set_subsection_attributes.
282         * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
283         and use of comdat, common and dup_comm parameters.
285 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
287         * config/obj-elf.c (obj_elf_change_section): Check if the old
288         group name is NULL before comparison.
290 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
292         * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
294 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
296         * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
298 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
300         * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
301         (OPTION_MEMBEDDED_PIC): Remove.
302         (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
303         (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
304         (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
305         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
306         (OPTION_ELF_BASE): Renumber.
307         (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
308         (md_show_usage): Remove mention of -membedded-pic.
309         * doc/as.texinfo: Remove mention of -membedded-pic.
311 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
313         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
314         * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
315         a.out support.
316         (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
317         s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
318         USE_GLOBAL_POINTER_OPT.
320 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
322         * config/tc-mips.c (macro): One more use of load_delay_nop.
324 2004-04-22  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
326         * config/tc-mips.c (load_delay_nop): New function.
327         (load_address, macro): Use load_delay_nop() to build a nop
328         which can be omitted with gpr_interlocks.
330 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
332         * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
333         cop_interlocks): Remove superfluous CPU entries.
335 2004-04-22  Paul Brook  <paul@codesourcery.com>
337         * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
339 2004-04-22  Peter Barada <peter@the-baradas.com>
341         * NEWS: Added support for EMAC instructions and MAC/EMAC
342         Motorola syntax.
343         * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
344         scale factor tokens, trailing_ampersand to mark mask addressing
345         for MAC/EMAC instructions.
346         * config/m68k-parse.y: Add options_ampersand clause, '<<',
347         '>>'.
348         (yylex): Handle '>', '<', and '&' following '+'.
349         * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
350         architectures in archs[].  
351         (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
352         for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
353         respectively.
354         (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
355         (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
356         cases.
357         Add EMAC operands to init_table[].
359 2004-04-22  Bruno De Bus <bdebus@elis.ugent.be>
361         * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
362         state.
363         (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
364         * config/tc-arm.c (enum mstate): Delete from here.
365         (mapping_state): Remove the static mapstate variable and instead
366         store the state in the segment.  This allows a per-section mapping
367         state.  Handle and ignore MAP_UNDEFINED states.
368         (arm_elf_change_section): Get the current mapping state from the
369         new section.
370         (s_ltorg): Set the mapping state to MAP_DATA.
371         (arm_cleanup): Use arm_elf_change_section to get the mapping state
372         for each pool as it is emitted.
374 2004-04-22  Nick Clifton  <nickc@redhat.com>
376         * config/tc-arm.h: Formatting tidy ups.
378 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
380         * NEWS: Note that MIPS -membedded-pic option is deprecated.
382 2004-04-20  DJ Delorie  <dj@redhat.com>
384         * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
385         * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
386         [TE_PE] (O_secrel): Define.
387         [TE_PE] (x86_pe_cons_fix_new): New.
388         [TE_PE] (pe_directive_secrel): Likewise.
389         (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
391 2004-04-19  Eric Christopher  <echristo@redhat.com>
393         * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
394         of previous patch for fix in gcc.
396 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
398         * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
400 2004-04-19  Nathan Sidwell  <nathan@codesourcery.com>
402         * read.c (do_align): Call md_flush_pending_output, if defined.
404 2004-04-16  Alan Modra  <amodra@bigpond.net.au>
406         * expr.c (operand): Correct checks for ++ and --.
408 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
410         * config/tc-generic.c: Add some comments.
412 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
414         * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
415         -{no-}mfix-vr4122-bugs.
416         * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
417         (append_insn, mips_emit_delays): Update accordingly.
418         (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
419         (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
420         (md_parse_option): Update after above changes.
421         (md_show_usage): Add -mfix-vr4120.
423 2004-04-13  Bob Wilson  <bob.wilson@acm.org>
425         * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
426         of .section directive; add a reference to the ELF .subsection
427         directive.
429 2004-04-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
431         * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
432         in parallel.
434 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
436         * Makefile.am: Remove mips from aout targets.
437         * Makefile.in: Regenerate.
438         * configure.in: Remove mips-dec-bsd* target.
439         * configure: Regenerate.
441 2004-04-07  Alan Modra  <amodra@bigpond.net.au>
443         PR 96
444         * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
445         to struct map_bfd.  Adjust MAP macro, and define MAP32, MAP64.
446         Update "mapping".  Restrict some @ modifiers to 32 bit.
448 2004-04-01  Asgari Jinia  <asgarij@kpitcummins.com>
449             Dhananjay Deshpande <dhananjayd@kpitcummins.com>
451         * config/tc-sh.c (dont_adjust_reloc_32): New variable.
452         (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
453         dont_adjust_reloc_32 is set.
454         (md_longopts): Add option -renesas.
455         (md_parse_option, md_show_usage): Likewise.
456         * doc/c-sh.texi: Likewise.
458 2004-04-01  Dave Korn  <dk@artimi.com>
460         * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
461         hi16 and lo16 fixS structs.
462         (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
463         exactly the same way as for RELOC_DLX_REL16.
464         (machine_ip): properly respect LO flag in the_insn and
465         output RELOC_DLX_LO16 rather than RELOC_DLX_16.
466         (md_apply_fix3): apply RELOC_DLX_LO16.
468 2004-03-30  Stan Shebs  <shebs@apple.com>
470         Remove long-obsolete MPW support.
471         * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
472         * configure.in: Remove mention of ppc-*-mpw* config.
473         * configure.in: Likewise.
475 2004-03-30  Nick Clifton  <nickc@redhat.com>
477         * config/tc-arm.c (meabi_flags): Make its use conditional upon
478         OBJ_ELF being defined.
480 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
482         * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
484 2004-03-23  Paul Brook  <paul@codesourcery.com>
486         * config/tc-arm.c (meabi_flags): New variable.
487         (arm_parse_eabi): New function.
488         (md_begin): Set flags for EABI v3.
489         (arm_eabis): Add.
490         (arm_long_opts): Add meabi.
491         * doc/as.texinf <ARM>: Document -meabi.
492         * doc/c-arm.texi: Ditto.
494 2004-03-22  Bob Wilson  <bob.wilson@acm.org>
496         * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
497         tables even when use_literal_section flag is not set.
499 2004-03-22  Alan Modra  <amodra@bigpond.net.au>
501         * config/tc-sh.c: Remove trailing whitespace.
503 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
505         * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
506         --mul-bug-abort and the default behavior.
507         * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
508         (err_for_dangerous_mul_placement): New variable.
509         (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
510         macros.
511         (md_cris_relax_table): Have placeholder for STATE_MUL.
512         (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
513         (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
514         case doing nothing.
515         (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
516         STATE_BYTE)>: Ditto.
517         (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
518         alignment and position of this frag, emit error message if
519         suspicious.
520         (md_assemble): For a multiply insn and when checking it,
521         transform the current frag into a special frag for that purpose.
522         (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
523         OPTION_MULBUG_ABORT_ON>: Handle new options.
525 2004-03-19  Bob Wilson  <bob.wilson@acm.org>
527         * config/tc-xtensa.c (mark_literal_frags): New function.
528         (xtensa_move_literals): Call mark_literal_frags for all literal
529         segments, including init and fini literal segments.
530         (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
532 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
534         * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
535         (pa_comm): Set BSF_OBJECT in symbol flags.
537 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
539         * Makefile.am: Run "make dep-am".
540         * Makefile.in: Regenerate.
541         * doc/Makefile.in: Regenerate.
542         * config.in: Regenerate.
543         * po/gas.pot: Regenerate.
545 2004-03-18  Nathan Sidwell  <nathan@codesourcery.com>
547         * read.c (read_a_source_file): Use demand_empty_rest_of_line.
548         (demand_empty_rest_of_line): Issue an error here.
549         (ignore_rest_of_line): Silently skip to end.
550         (demand_copy_string): Issue an error, not warning.
551         (equals): Likewise.
552         * config/obj-elf.c (obj_elf_section_name): Likewise.
553         (obj_elf_section): Likewise.
554         * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
555         (arc_extinst): Likewise.
556         * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
557         (dot_spill): Likewise.
558         (dot_unwabi): Likewise.
559         (dot_prologue): Likewise.
561         * expr.c (operand): Reject ++ and --.
562         (operator): Likewise.
564 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
566         * config/tc-sh.c: Include dw2gencfi.h.
567         (sh_cfi_frame_initial_instructions): New function.
568         (sh_regname_to_dw2regnum): Likewise.
569         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
570         file.
571         (TARGET_USE_CFIPOP): Define.
572         (tc_cfi_frame_initial_instructions): Likewise.
573         (tc_regname_to_dw2regnum): Likewise.
574         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
575         * Makefile.am: Update dependencies.
576         * Makefile.in: Regenerate.
578 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
580         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
581         * configure: Regenerate.
583 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
585         * read.c (s_leb128): Call md_flush_pending_output.
587 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
589         * config/tc-i386.c (output_insn): Handle PadLock instructions.
590         * config/tc-i386.h (CpuPadLock): New define.
591         (CpuUnknownFlags): Added CpuPadLock.
593 2004-03-07  Andreas Schwab  <schwab@suse.de>
595         * doc/c-hppa.texi (HPPA Directives): Fix typo.
597 2004-03-07  Richard Henderson  <rth@redhat.com>
599         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
600         (cfi_finish): Likewise for fde.
602 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
604         * config/tc-ia64.c (md_assemble): Properly handle NULL
605         align_frag.
606         (ia64_handle_align): Don't abort if failed to add a stop bit.
608 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
610         * Makefile.in: Regenerated.
611         * aclocal.m4: Likewise.
612         * configure: Likewise.
613         * doc/Makefile.in: Likewise.
615 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
617         * config/tc-ia64.c (dot_align): New.
618         (ia64_do_align): Make it static.
619         (md_pseudo_table): Use "dot_align" for "align".
620         (ia64_md_do_align): Don't set align_frag here.
621         (ia64_handle_align): Add a stop bit to the previous bundle if
622         needed.
624         * config/tc-ia64.h (ia64_do_align): Removed.
626 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
628         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
629         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
630         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
631         the most general type or the user specifically requested it.
632         (md_assemble): Add a new error message for when an instruction
633         is understood, but is not allowed due to an -isa option.
635 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
637         * config/tc-ia64.c (align_frag): New.
638         (md_assemble): Set the tc_frag_data field in align_frag for
639         IA64_OPCODE_FIRST instructions.
640         (ia64_md_do_align): Set align_frag.
641         (ia64_handle_align): Add a stop bit if needed.
643         * config/tc-ia64.h (TC_FRAG_TYPE): New.
644         (TC_FRAG_INIT): New.
646 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
648         * config/tc-frv.c (fr400_audio): New variable.
649         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
650         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
651         (target_implements_insn_p): New function.
652         (md_assemble): Report an error if the processor doesn't implement
653         the instruction.
655 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
657         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
658         (md_parse_option): Ditto.
659         (OPTION_NO_SPECIAL_M32R): Added.
660         (md_show_usage): Document it.
661         (enable_speial_m32r): Changed a default value from 0 to 1.
662         * doc/c-m32r.texi: Document the -no-bitinst option.
664 2004-02-27  Nick Clifton  <nickc@redhat.com>
666         * config/tc-sh.c (get_operand): Revert previous delta.
667         (tc_gen_reloc): Check for an unknown reloc type before processing
668         the addend.
670 2004-02-27  Hannes Reinecke  <hare@suse.de>
672         * config/tc-s390.c (s390_insn): Correct range check for opcode in
673         .insn pseudo operation.
675 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
677         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
678         added for wrong syntax.
680 2004-02-26  Eric Christopher  <echristo@redhat.com>
682         * config/tc-mips.c (mips_dwarf2_addr_size): New.
683         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
685 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
687         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
688         nibble types to assembler.
690 2004-02-25  Fred Fish  <fnf@redhat.com>
692         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
694 2004-02-20  James E Wilson  <wilson@specifixinc.com>
696         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
697         finalize_syms.
698         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
699         (ia64_estimate_size_before_relax): New.
700         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
701         (generate_unwind_image): Pass 1 to fixup_unw_records.
702         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
703         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
705 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
707         * stabs.c (generate_asm_file): Avoid warning about use of
708         uninitialized variable.
710 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
712         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
713         body, and endp, allow unwind records which do not have a "t"
714         (time/instruction) field.
716 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
718         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
719         (do_mav_dspsc_2): Likewise.
720         Fix accumulator registers move opcodes.
722 2004-02-13  Hannes Reinecke  <hare@suse.de>
723             Jakub Jelinek  <jakub@redhat.com>
725         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
727 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
729         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
730         (tc_frob_symbol): New macro definition.
731         * config/tc-ia64.c (ia64_frob_symbol): New routine.
733 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
735         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
736         read-only.
738 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
740         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
741         (TC_CASE_SENSITIVE): ... this.
742         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
743         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
745 2004-02-06  James E Wilson  <wilson@specifixinc.com>
747         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
748         (generate_unwind_image): Re-add it here.
750 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
752         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
753         * read.h (SKIP_WHITESPACE): Turn into an expression.
754         * read.c (read_a_source_file): A pseudo is removed by having a
755         NULL handler.
757 2004-02-05  James E Wilson  <wilson@specifixinc.com>
759         * config/tc-ia64.c (output_endp): New.
760         (count_bits): Delete.
761         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
762         endp unwind records.
763         (fixup_unw_records): Handle endp unwind records.  Delete code for
764         shortening prologue regions not followed by a body record.
765         (dot_endp): Call add_unwind_entry to emit endp unwind record.
766         * config/tc-ia64.h (unw_record_type): Add endp.
768 2004-02-03  James E Wilson  <wilson@specifixinc.com>
770         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
771         fill padding bytes with zeroes.
772         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
773         sets unwind_record slot_number and slot_frag fields.
775 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
777         * config/tc-mips.c (add_got_offset_hilo): New function.
778         (macro): Use load_register() and add_got_offset_hilo() to load
779         constants instead of hardcoding code sequences throughout.
781 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
783         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
785 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
787         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
788         like m68k-elf.
789         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
790         of hard-coded test for TARGET_OS=elf.
792 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
794         * config/tc-mips.c (hilo_interlocks): Change definition
795         so that MIPS32, MIPS64 and later ISAs are included, along with
796         the already-included machines.  Update comments.
798 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
800         * config/tc-arm.c (tc_gen_reloc): Improve error message for
801         undefined local labels.
803 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
805         * config/tc-mips.c (load_address, macro): Update comments about
806         NewABI GP relaxation.
808 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
810         * config/tc-mips.c (macro_build): Remove place and counter arguments.
811         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
812         (mips16_macro_build, macro_build_jalr): Remove counter argument.
813         (set_at, load_register, load_address, move_register): Likewise.
814         (load_got_offset, add_got_offset): Likewise.
815         Update all calls and tidy accordingly.
817 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
819         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
820         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
821         (RELAX_USE_SECOND): Bump to 0x10000.
822         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
823         (mips_macro_warning): New variable.
824         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
825         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
826         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
827         of RELAX_ENCODE.
828         (append_insn): Update mips_macro_warning.sizes.
829         (macro_start, macro_warning, macro_end): New functions.
830         (macro_build): Don't emit warnings here.
831         (macro_build_lui, md_estimate_size_before_relax): ...or here.
832         (md_convert_frag): Check for cases where one macro alternative
833         needs a warning and the other doesn't.  Emit a warning if the
834         longer sequence was chosen.
836 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
838         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
839         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
840         the first sequence, the size of the second sequence, and a flag
841         that says whether we should warn.
842         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
843         (RELAX_FIRST, RELAX_SECOND): New.
844         (mips_relax): New variable.
845         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
846         (append_insn): Remove "place" argument.  Use mips_relax.sequence
847         rather than "place" to check whether we're expanding the second
848         alternative of a relaxable macro.  Remove redundant check for
849         branch relaxation.  If generating a normal insn, and there
850         is not enough room in the current frag, call relax_close_frag()
851         to close it.  Update mips_relax.sizes[].  Emit fixups for the
852         second version of a relaxable macro.  Record the first relaxable
853         fixup in mips_relax.  Remove tc_gen_reloc workaround.
854         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
855         in the same way as in append_insn.
856         (mips16_macro_build): Remove "place" argument.
857         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
858         when generating the second version of a relaxable macro.
859         (load_got_offset, add_got_offset): New functions.
860         (load_address, macro): Use new relaxation machinery.  Remove
861         tc_gen_reloc workarounds.
862         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
863         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
864         first version is needed.
865         (tc_gen_reloc): Remove relaxation handling.
866         (md_convert_frag): Go through the fixups for a relaxable macro and
867         mark those that belong to the unneeded alternative as done.  If the
868         second alternative is needed, adjust the fixup addresses to account
869         for the deleted first alternative.
871 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
873         * frags.h (frag_room): Declare.
874         * frags.c (frag_room): New function.
875         * doc/internals.texi: Document it.
877 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
879         * config/tc-mips.c (append_insn): Don't do r3900 interlock
880         optimization for -mtune=r3900, as this will break on other CPUs.
882 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
884         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
885         be relaxed, use fixup.
886         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
888 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
890         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
891         precision operands.
893 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
895         * config/tc-mips.c (append_insn): Properly detect variant frags
896         that preclude swapping of relaxed branches.  Correctly swap
897         instructions between frags when dealing with relaxed branches.
899 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
901         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
902         throughout.
903         * aclocal.m4: Regenerate.
904         * configure: Regenerate.
906 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
908         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
909         manipulation insns.
911 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
913         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
914         reloc, reserve space for the delay slot as well as the jalr itself.
916 2004-01-09  Paul Brook  <paul@codesourcery.com>
918         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
919         (do_vfp_sp2_from_reg2): New function.
920         (insns): Use them.
921         (do_vfp_dp_from_reg2): Check return values properly.
923 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
925         * config/tc-mips.c (warn_nops): Remove static variable.
926         (macro): Remove test of warn_nops.
927         (md_shortops): Remove 'n'.
928         (md_parse_option): Remove 'n' case.
929         (md_show_usage): Remove -n.
930         * doc/as.texinfo (Overview): Remove MIPS -n option.
931         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
932         * NEWS: Mention removal of MIPS -n option.
934         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
935         (cop_interlocks): Check ISA level.
936         (cop_mem_interlocks): Define.
937         (reg_needs_delay): Check cop_interlocks rather than
938         ISA_HAS_COPROC_DELAYS.
939         (append_insn): Likewise.  Use cop_mem_interlocks rather than
940         directly checking mips_opts.isa.
941         (mips_emit_delays): Likewise.
943 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
945         * config/tc-ia64.c (unwind): Move next_slot_number and
946         next_slot_frag to ...
947         (unw_rec_list): Here.
948         (free_list_records): Removed.
949         (output_unw_records): Likewise.
950         (generate_unwind_image): Make it void.
951         (alloc_record): Initialize next_slot_number and next_slot_frag.
952         (slot_index): Take .org, .space and .align into account.
953         (fixup_unw_records): Don't set slot_number to 0. Use
954         list->next_slot_number and list->next_slot_frag instead of
955         unwind.next_slot_number and unwind.next_slot_frag.
956         (ia64_convert_frag): New.
957         (generate_unwind_image): Generate a rs_machine_dependent frag
958         for unwind record.
959         (emit_one_bundle): Use list->next_slot_number and
960         list->next_slot_frag instead of unwind.next_slot_number and
961         unwind.next_slot_frag.
963         * config/tc-ia64.h (md_convert_frag): Defined as
964         ia64_convert_frag.
965         (md_estimate_size_before_relax): Defined as (f)->fr_var.
967 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
969         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
970         * config/tc-frv.h (md_apply_fix3): Don't define.
971         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
972         operands.
973         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
974         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
975         * config/tc-frv.c (line_separator_chars): Add `!'.
976         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
977         * config/tc-frv.c (md_assemble): Clear insn upfront.
978         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
979         * config/tc-frv.c (OPTION_FDPIC): New macro.
980         (md_longopts): Add mfdpic.
981         (md_parse_option): Handle it.
982         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
983         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
984         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
985         (frv_pic_ptr): Parse funcdesc.
987 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
989         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
990         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
992 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
994         * Makefile.am (Makefile): Move the dependency on
995         $(BFDDIR)/configure.in to...
996         (CONFIG_STATUS_DEPENDENCIES): ... here.
997         (AUTOMAKE_OPTIONS): Require automake 1.8.
998         * Makefile.in: Regenerate.
999         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
1000         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
1001         $(BFDDIR)/configure.in here as well.
1002         * doc/Makefile.in: Regenerate.
1004 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1006         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
1007         * Makefile.in: Regenerate.
1008         * aclocal.m4: Regenerate.
1009         * doc/Makefile.am (install, install-info): Remove.
1010         (install-data-local): A new hook for install-info.
1011         (AUTOMAKE_OPTIONS): Require automake 1.8.
1012         * doc/Makefile.in: Regenerate.
1014 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
1016         * doc/c-sh.texi: Update description about floating point behavior
1017         of SH family.
1019 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1021         * configure.in: Add m68k-uClinux target.
1022         * configure: Regenerate.
1024 For older changes see ChangeLog-0203
1026 Local Variables:
1027 mode: change-log
1028 left-margin: 8
1029 fill-column: 74
1030 version-control: never
1031 End: