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