Patch from David Mosberger-Tang.
[binutils.git] / gas / ChangeLog
blobcb4ab6e93fc16c326ddfe490f5c46e73b6ee26b6
1 2004-05-06  David Mosberger-Tang  <davidm@hpl.hp.com>
3         * config/tc-ia64.c (dot_serialize): Declare.
4         (dot_serialize): New function.
5         (md_pseudo_table): Add ".serialize.data" and
6         ".serialize.instruction" directives.
8 2004-05-06  Nick Clifton  <nickc@redhat.com>
10         * messages (as_internal_value_out_of_range): Print a message about
11         a value being out of range.  Be consistent about whether the
12         values are printed in decimal or hexadecimal.
13         (as_warn_value_out_of_range): Generate a warning message about an
14         out of range value.
15         (as_bad_value_out_of_range): Generate an error message about an
16         out of range value.
17         * as.h: Prototype the new functions.
18         * config/tc-alpha.c (insert_operand): Use new function.
19         * config/tc-arc.c (arc_insert_operand): Likewise.
20         * config/tc-mn10200.c (mn10200_insert_operand): Likewise.
21         * config/tc-mn10300.c (mn10300_insert_operand): Likewise.
22         * config/tc-ppc.c (ppc_insert_operand): Likewise.
23         * config/tc-s390.c (s390_insert_operand): Likewise.
24         * config/tc-v850.c (v850_insert_operand): Likewise.
26 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
28         * configure.in: Set em=linux for frv-*-*linux*.
29         * configure: Rebuilt.
30         * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if...
31         (frv_md_fdpic_enabled): New.
32         * config/tc-frv.c (frv_md_fdpic_enabled): New.
33         (DEFAULT_FDPIC): New.
34         (frv_flags): Use DEFAULT_FDPIC.
35         (frv_pic_flag): Likewise.
36         (OPTION_NOPIC): New.
37         (md_longopts): Add -mnopic.
38         (md_parse_option): Handle it.
39         (md_show_usage): Add -mfdpic and -mnopic.
41 2004-05-05  Peter Barada  <peter@the-baradas.com>
43         * config/tc-m68k.c: Add find_cf_chip to print list of valid
44         chips for invalid coldfire instructions, rename selectors
45         for ColdFire sub-variants, add 521x,5249,547x,548x and aliases,
46         add current_chip to track which chip is referred to(including save/restore),
47         use current_chip to select control registers, not current_arch.
48         (md_show_usage): Add new chips.
49         * doc/c-m68k.texi: Document new command line switches.
51 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
53         * tc-s390.h (md_do_align, HANDLE_ALIGN): Remove.
54         (NOP_OPCODE): Define.
55         (s390_align_code): Remove prototype.
56         * tc-s390.c (s390_align_code): Remove.
58 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
60         * config/tc-ia64.c (make_unw_section_name): Removed.
61         (start_unwind_section): New function.
62         (generate_unwind_image): Take const segT instead of const
63         char *.
64         (dot_handlerdata): Adjusted.
65         (dot_endp): Likewise.
67 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
69         * config/obj-elf.c (obj_elf_change_section): Allow the
70         ".note.GNU-stack" section has SHF_EXECINSTR.
72 2004-05-02  H.J. Lu  <hongjiu.lu@intel.com>
74         * config/obj-elf.c (get_section): Return bfd_boolean.
75         (obj_elf_change_section): Call bfd_get_section_by_name_if
76         instead of bfd_map_over_sections.
78 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
80         * config/obj-elf.c (get_section): New function.
81         (obj_elf_change_section): Support multiple sections with same
82         name.
84 2004-04-30  Nick Clifton  <nickc@redhat.com>
86         * config/tc-arm.c (create_register_alias): Fix typo checking for
87         case sensitive register aliases.
88         (co_proc_number): Use error message string in all_reg_maps[]
89         array.
90         (cp_reg_required_here): Likewise.
91         (fp_reg_required_here): Likewise.
93 2004-04-29  Brian Ford  <ford@vss.fsi.com>
95         * dwarf2dbg.c (dwarf2_finish): Add SEC_DEBUGGING to section flags.
97 2004-04-28  Chris Demetriou  <cgd@broadcom.com>
99         * config/tc-mips.c (HAVE_32BIT_ADDRESSES, append_insn, macro_build)
100         (load_address, macro, mips_ip, md_parse_option)
101         (mips_force_relocation, mips_validate_fix, md_apply_fix3)
102         (s_change_sec, pic_need_relax, tc_gen_reloc): Remove all
103         embedded-PIC handling, and update comments.
104         (SWITCH_TABLE): Remove.
105         * config/tc-mips.h (DIFF_EXPR_OK): Delete.
106         (enum mips_pic_level): Remove EMBEDDED_PIC.
107         (EXTERN_FORCE_RELOC): Remove embedded-PIC handling.
108         (TC_FORCE_RELOCATION): Update comment.
109         * ecoff.c (ecoff_build_lineno): Add comment about some code that
110         might be safe to remove now that MIPS embedded-PIC is gone.
112 2004-04-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
114         * config/obj-som.c (obj_som_init_stab_section): Add new arguments in
115         call to obj_set_subsection_attributes.
116         (obj_som_init_stab_section): Likewise.
117         * config/tc-hppa.c (default_subspace_dict): Add comdat field.
118         (pa_def_subspaces): Provide comdat default.
119         (pa_subspace): Handle new "comdat" parameter.  Set SEC_LINK_ONCE and
120         not SEC_IS_COMMON if section is comdat, common or dup_common.  Update
121         calls to create_new_subspace and update_subspace to pass comdat flag.
122         (create_new_subspace, update_subspace): Add new comdat argument.  Use
123         it in calls to obj_set_subsection_attributes.
124         * doc/c-hppa.texi (.subspa, .nsubspa): Document new comdat parameter
125         and use of comdat, common and dup_comm parameters.
127 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
129         * config/obj-elf.c (obj_elf_change_section): Check if the old
130         group name is NULL before comparison.
132 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
134         * config/tc-mips.h (mips_dwarf2_addr_size): Prototype.
136 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
138         * config/tc-mips.c (s_mipsset): Set default CPU type for .set mipsN.
140 2004-04-23  Chris Demetriou  <cgd@broadcom.com>
142         * config/tc-mips.c (md_longopts): Remove -membedded-pic option.
143         (OPTION_MEMBEDDED_PIC): Remove.
144         (OPTION_TRAP, OPTION_BREAK, OPTION_EB, OPTION_EL)
145         (OPTION_FP32, OPTION_GP32, OPTION_CONSTRUCT_FLOATS)
146         (OPTION_NO_CONSTRUCT_FLOATS, OPTIONS_FP64, OPTION_GP64)
147         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH)
148         (OPTION_ELF_BASE): Renumber.
149         (md_parse_option): Remove OPTION_MEMBEDDED_PIC handling.
150         (md_show_usage): Remove mention of -membedded-pic.
151         * doc/as.texinfo: Remove mention of -membedded-pic.
153 2004-04-23  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
155         * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Remove.
156         * config/tc-mips.c (RDATA_SECTION_NAME, mips_target_format): Remove
157         a.out support.
158         (md_begin, mips_ip, md_parse_option, s_change_sec, s_option,
159         s_abicalls, nopic_need_relax, tc_gen_reloc): Remove uses of
160         USE_GLOBAL_POINTER_OPT.
162 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
164         * config/tc-mips.c (macro): One more use of load_delay_nop.
166 2004-04-22  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
168         * config/tc-mips.c (load_delay_nop): New function.
169         (load_address, macro): Use load_delay_nop() to build a nop
170         which can be omitted with gpr_interlocks.
172 2004-04-22  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
174         * config/tc-mips.c (hilo_interlocks, gpr_interlocks,
175         cop_interlocks): Remove superfluous CPU entries.
177 2004-04-22  Paul Brook  <paul@codesourcery.com>
179         * config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
181 2004-04-22  Peter Barada <peter@the-baradas.com>
183         * NEWS: Added support for EMAC instructions and MAC/EMAC
184         Motorola syntax.
185         * config/m68k-parse.h: Add ACC[123], ACCEXT{01,23}, MAC/EMAC
186         scale factor tokens, trailing_ampersand to mark mask addressing
187         for MAC/EMAC instructions.
188         * config/m68k-parse.y: Add options_ampersand clause, '<<',
189         '>>'.
190         (yylex): Handle '>', '<', and '&' following '+'.
191         * config/tc-m68k.c: Set mcfmac/mcfemac on appropriate ColdFire
192         architectures in archs[].  
193         (m68k-ip): Add '4', 'e', 'g', 'i', cases to handle mask addressing
194         for MAC/EMAC instructions, ACC[0123], ACCEXT{01,23}, and '<<'/'>>'
195         respectively.
196         (m68k_ip): Handle trailing '&' on MAC/EMAC insns.
197         (install_operand): Fix 'n' case, Add 'F', 'f', 'G', 'H', 'I', ']'
198         cases.
199         Add EMAC operands to init_table[].
201 2004-04-22  Bruno De Bus <bdebus@elis.ugent.be>
203         * config/tc-arm.h (enum mstate): Move here, add MAP_UNDEFINED
204         state.
205         (TC_SEGMENT_INFO_TYPE): Define to enum mstate.
206         * config/tc-arm.c (enum mstate): Delete from here.
207         (mapping_state): Remove the static mapstate variable and instead
208         store the state in the segment.  This allows a per-section mapping
209         state.  Handle and ignore MAP_UNDEFINED states.
210         (arm_elf_change_section): Get the current mapping state from the
211         new section.
212         (s_ltorg): Set the mapping state to MAP_DATA.
213         (arm_cleanup): Use arm_elf_change_section to get the mapping state
214         for each pool as it is emitted.
216 2004-04-22  Nick Clifton  <nickc@redhat.com>
218         * config/tc-arm.h: Formatting tidy ups.
220 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
222         * NEWS: Note that MIPS -membedded-pic option is deprecated.
224 2004-04-20  DJ Delorie  <dj@redhat.com>
226         * config/tc-i386.h [TE_PE] (TC_CONS_FIX_NEW): Define.
227         * config/tc-i386.c (md_pseudo_table) [TE_PE]: Add "secrel32".
228         [TE_PE] (O_secrel): Define.
229         [TE_PE] (x86_pe_cons_fix_new): New.
230         [TE_PE] (pe_directive_secrel): Likewise.
231         (tc_gen_reloc) [TE_PE]: Support BFD_RELOC_32_SECREL.
233 2004-04-19  Eric Christopher  <echristo@redhat.com>
235         * config/tc-mips.c (mips_dwarf2_addr_size): Revert part
236         of previous patch for fix in gcc.
238 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
240         * config/tc-xtensa.c (xg_assembler_literal): Fix a typo.
242 2004-04-19  Nathan Sidwell  <nathan@codesourcery.com>
244         * read.c (do_align): Call md_flush_pending_output, if defined.
246 2004-04-16  Alan Modra  <amodra@bigpond.net.au>
248         * expr.c (operand): Correct checks for ++ and --.
250 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
252         * config/tc-generic.c: Add some comments.
254 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
256         * doc/c-mips.texi (-m{no-,}fix-vr4120): Renamed from
257         -{no-}mfix-vr4122-bugs.
258         * config/tc-mips.c (mips_fix_vr4120): Renamed from mips_fix_4122_bugs.
259         (append_insn, mips_emit_delays): Update accordingly.
260         (OPTION_FIX_VR4120, OPTION_NO_FIX_VR4120): Renamed from *VR4122.
261         (md_longopts): Change -{no-,}mfix-vr4122-bugs to -m{no-,}fix-vr4120.
262         (md_parse_option): Update after above changes.
263         (md_show_usage): Add -mfix-vr4120.
265 2004-04-13  Bob Wilson  <bob.wilson@acm.org>
267         * doc/as.texinfo (Sub-Sections): Conditionalize COFF-specific use
268         of .section directive; add a reference to the ELF .subsection
269         directive.
271 2004-04-13  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
273         * config/tc-m32r.c (md_assemble): Fixed infinite loop bug
274         in parallel.
276 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
278         * Makefile.am: Remove mips from aout targets.
279         * Makefile.in: Regenerate.
280         * configure.in: Remove mips-dec-bsd* target.
281         * configure: Regenerate.
283 2004-04-07  Alan Modra  <amodra@bigpond.net.au>
285         PR 96
286         * config/tc-ppc.c (ppc_elf_suffix): Add valid32 and valid64 fields
287         to struct map_bfd.  Adjust MAP macro, and define MAP32, MAP64.
288         Update "mapping".  Restrict some @ modifiers to 32 bit.
290 2004-04-01  Asgari Jinia  <asgarij@kpitcummins.com>
291             Dhananjay Deshpande <dhananjayd@kpitcummins.com>
293         * config/tc-sh.c (dont_adjust_reloc_32): New variable.
294         (sh_fix_adjustable): Avoid adjusting BFD_RELOC_32 when
295         dont_adjust_reloc_32 is set.
296         (md_longopts): Add option -renesas.
297         (md_parse_option, md_show_usage): Likewise.
298         * doc/c-sh.texi: Likewise.
300 2004-04-01  Dave Korn  <dk@artimi.com>
302         * config/tc-dlx.c (md_assemble): set fx_no_overflow flag for
303         hi16 and lo16 fixS structs.
304         (md_assemble): generate bit_fixS for RELOC_DLX_LO16 in
305         exactly the same way as for RELOC_DLX_REL16.
306         (machine_ip): properly respect LO flag in the_insn and
307         output RELOC_DLX_LO16 rather than RELOC_DLX_16.
308         (md_apply_fix3): apply RELOC_DLX_LO16.
310 2004-03-30  Stan Shebs  <shebs@apple.com>
312         Remove long-obsolete MPW support.
313         * mpw-config.in, mpw-make.sed, mac-as.r: Remove files.
314         * configure.in: Remove mention of ppc-*-mpw* config.
315         * configure.in: Likewise.
317 2004-03-30  Nick Clifton  <nickc@redhat.com>
319         * config/tc-arm.c (meabi_flags): Make its use conditional upon
320         OBJ_ELF being defined.
322 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
324         * config/obj-aout.c (obj_aout_type): Remove #ifdef BFD_ASSEMBLER code.
326 2004-03-23  Paul Brook  <paul@codesourcery.com>
328         * config/tc-arm.c (meabi_flags): New variable.
329         (arm_parse_eabi): New function.
330         (md_begin): Set flags for EABI v3.
331         (arm_eabis): Add.
332         (arm_long_opts): Add meabi.
333         * doc/as.texinf <ARM>: Document -meabi.
334         * doc/c-arm.texi: Ditto.
336 2004-03-22  Bob Wilson  <bob.wilson@acm.org>
338         * config/tc-xtensa.c (xtensa_post_relax_hook): Create literal
339         tables even when use_literal_section flag is not set.
341 2004-03-22  Alan Modra  <amodra@bigpond.net.au>
343         * config/tc-sh.c: Remove trailing whitespace.
345 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
347         * doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
348         --mul-bug-abort and the default behavior.
349         * config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
350         (err_for_dangerous_mul_placement): New variable.
351         (STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
352         macros.
353         (md_cris_relax_table): Have placeholder for STATE_MUL.
354         (md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
355         (cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
356         case doing nothing.
357         (md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
358         STATE_BYTE)>: Ditto.
359         (md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
360         alignment and position of this frag, emit error message if
361         suspicious.
362         (md_assemble): For a multiply insn and when checking it,
363         transform the current frag into a special frag for that purpose.
364         (md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
365         OPTION_MULBUG_ABORT_ON>: Handle new options.
367 2004-03-19  Bob Wilson  <bob.wilson@acm.org>
369         * config/tc-xtensa.c (mark_literal_frags): New function.
370         (xtensa_move_literals): Call mark_literal_frags for all literal
371         segments, including init and fini literal segments.
372         (xtensa_post_relax_hook): Swap use of xt_insn_sec and xt_literal_sec.
374 2004-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
376         * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type.
377         (pa_comm): Set BSF_OBJECT in symbol flags.
379 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
381         * Makefile.am: Run "make dep-am".
382         * Makefile.in: Regenerate.
383         * doc/Makefile.in: Regenerate.
384         * config.in: Regenerate.
385         * po/gas.pot: Regenerate.
387 2004-03-18  Nathan Sidwell  <nathan@codesourcery.com>
389         * read.c (read_a_source_file): Use demand_empty_rest_of_line.
390         (demand_empty_rest_of_line): Issue an error here.
391         (ignore_rest_of_line): Silently skip to end.
392         (demand_copy_string): Issue an error, not warning.
393         (equals): Likewise.
394         * config/obj-elf.c (obj_elf_section_name): Likewise.
395         (obj_elf_section): Likewise.
396         * config/tc-arc.c (arc_extoper): Remove bogus NULL checks.
397         (arc_extinst): Likewise.
398         * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line.
399         (dot_spill): Likewise.
400         (dot_unwabi): Likewise.
401         (dot_prologue): Likewise.
403         * expr.c (operand): Reject ++ and --.
404         (operator): Likewise.
406 2004-03-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
408         * config/tc-sh.c: Include dw2gencfi.h.
409         (sh_cfi_frame_initial_instructions): New function.
410         (sh_regname_to_dw2regnum): Likewise.
411         * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Move to the end of
412         file.
413         (TARGET_USE_CFIPOP): Define.
414         (tc_cfi_frame_initial_instructions): Likewise.
415         (tc_regname_to_dw2regnum): Likewise.
416         (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Likewise.
417         * Makefile.am: Update dependencies.
418         * Makefile.in: Regenerate.
420 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
422         * configure.in: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
423         * configure: Regenerate.
425 2004-03-12  Bob Wilson  <bob.wilson@acm.org>
427         * read.c (s_leb128): Call md_flush_pending_output.
429 2004-03-12  Michal Ludvig  <mludvig@suse.cz>
431         * config/tc-i386.c (output_insn): Handle PadLock instructions.
432         * config/tc-i386.h (CpuPadLock): New define.
433         (CpuUnknownFlags): Added CpuPadLock.
435 2004-03-07  Andreas Schwab  <schwab@suse.de>
437         * doc/c-hppa.texi (HPPA Directives): Fix typo.
439 2004-03-07  Richard Henderson  <rth@redhat.com>
441         * dw2gencfi.c (output_cie): Align length to 4 byte boundary.
442         (cfi_finish): Likewise for fde.
444 2004-03-05  H.J. Lu  <hongjiu.lu@intel.com>
446         * config/tc-ia64.c (md_assemble): Properly handle NULL
447         align_frag.
448         (ia64_handle_align): Don't abort if failed to add a stop bit.
450 2004-03-04  H.J. Lu  <hongjiu.lu@intel.com>
452         * Makefile.in: Regenerated.
453         * aclocal.m4: Likewise.
454         * configure: Likewise.
455         * doc/Makefile.in: Likewise.
457 2004-03-03  H.J. Lu  <hongjiu.lu@intel.com>
459         * config/tc-ia64.c (dot_align): New.
460         (ia64_do_align): Make it static.
461         (md_pseudo_table): Use "dot_align" for "align".
462         (ia64_md_do_align): Don't set align_frag here.
463         (ia64_handle_align): Add a stop bit to the previous bundle if
464         needed.
466         * config/tc-ia64.h (ia64_do_align): Removed.
468 2003-03-03  Andrew Stubbs  <andrew.stubbs@superh.com>
470         * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and
471         -isa=sh4-nommu-nofpu options. Adjust help messages accordingly.
472         (sh_elf_final_processing): Output BFD type sh4_nofpu if that is
473         the most general type or the user specifically requested it.
474         (md_assemble): Add a new error message for when an instruction
475         is understood, but is not allowed due to an -isa option.
477 2004-03-02  H.J. Lu  <hongjiu.lu@intel.com>
479         * config/tc-ia64.c (align_frag): New.
480         (md_assemble): Set the tc_frag_data field in align_frag for
481         IA64_OPCODE_FIRST instructions.
482         (ia64_md_do_align): Set align_frag.
483         (ia64_handle_align): Add a stop bit if needed.
485         * config/tc-ia64.h (TC_FRAG_TYPE): New.
486         (TC_FRAG_INIT): New.
488 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
490         * config/tc-frv.c (fr400_audio): New variable.
491         (md_parse_option, md_show_usage): Add -mcpu=fr405 and -mcpu=fr450.
492         (md_parse_option): Set fr400_audio for -mcpu=fr400 and -mcpu=fr405.
493         (target_implements_insn_p): New function.
494         (md_assemble): Report an error if the processor doesn't implement
495         the instruction.
497 2004-02-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
499         * config/tc-m32r.c (md_longopts): Added -no-bitinst option.
500         (md_parse_option): Ditto.
501         (OPTION_NO_SPECIAL_M32R): Added.
502         (md_show_usage): Document it.
503         (enable_speial_m32r): Changed a default value from 0 to 1.
504         * doc/c-m32r.texi: Document the -no-bitinst option.
506 2004-02-27  Nick Clifton  <nickc@redhat.com>
508         * config/tc-sh.c (get_operand): Revert previous delta.
509         (tc_gen_reloc): Check for an unknown reloc type before processing
510         the addend.
512 2004-02-27  Hannes Reinecke  <hare@suse.de>
514         * config/tc-s390.c (s390_insn): Correct range check for opcode in
515         .insn pseudo operation.
517 2004-02-27  Anil Paranjpe  <anilp1@kpitcummins.com>
519         * config/tc-sh.c (get_operand):  In case of #Imm, check has been
520         added for wrong syntax.
522 2004-02-26  Eric Christopher  <echristo@redhat.com>
524         * config/tc-mips.c (mips_dwarf2_addr_size): New.
525         * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
527 2004-02-26  Andrew Stubbs <andrew.stubbs@superh.com>
529         * config/tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01
530         nibble types to assembler.
532 2004-02-25  Fred Fish  <fnf@redhat.com>
534         * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
536 2004-02-20  James E Wilson  <wilson@specifixinc.com>
538         * config/tc-ia64.c (slot_index): New arg before_relax.  Use instead of
539         finalize_syms.
540         (fixup_unw_records): New arg before_relax.  Pass to slot_index.
541         (ia64_estimate_size_before_relax): New.
542         (ia64_convert_frag): Pass 0 to fixup_unw_records.  Add comment.
543         (generate_unwind_image): Pass 1 to fixup_unw_records.
544         * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare.
545         (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
547 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
549         * stabs.c (generate_asm_file): Avoid warning about use of
550         uninitialized variable.
552 2004-02-18  David Mosberger  <davidm@hpl.hp.com>
554         * config/tc-ia64.c (ia64_flush_insns): In addition to prologue,
555         body, and endp, allow unwind records which do not have a "t"
556         (time/instruction) field.
558 2004-02-17  Petko Manolov  <petkan@nucleusys.com>
560         * config/tc-arm.c (do_mav_dspsc_1): Correct offset of CRn.
561         (do_mav_dspsc_2): Likewise.
562         Fix accumulator registers move opcodes.
564 2004-02-13  Hannes Reinecke  <hare@suse.de>
565             Jakub Jelinek  <jakub@redhat.com>
567         * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
569 2004-02-10  Steve Ellcey  <sje@cup.hp.com>
571         * config/tc-ia64.h (ia64_frob_symbol): New declaration.
572         (tc_frob_symbol): New macro definition.
573         * config/tc-ia64.c (ia64_frob_symbol): New routine.
575 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
577         * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident as
578         read-only.
580 2004-02-09  Nathan Sidwell  <nathan@codesourcery.com>
582         * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...
583         (TC_CASE_SENSITIVE): ... this.
584         * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE.
585         * doc/internals.texi (TC_CASE_SENSITIVE): Document.
587 2004-02-06  James E Wilson  <wilson@specifixinc.com>
589         * config/tc-ia64.c (dot_endp): Delete call to output_endp.
590         (generate_unwind_image): Re-add it here.
592 2004-02-06  Nathan Sidwell  <nathan@codesourcery.com>
594         * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';'
595         * read.h (SKIP_WHITESPACE): Turn into an expression.
596         * read.c (read_a_source_file): A pseudo is removed by having a
597         NULL handler.
599 2004-02-05  James E Wilson  <wilson@specifixinc.com>
601         * config/tc-ia64.c (output_endp): New.
602         (count_bits): Delete.
603         (ia64_flush_insns, process_one_record, optimize_unw_records): Handle
604         endp unwind records.
605         (fixup_unw_records): Handle endp unwind records.  Delete code for
606         shortening prologue regions not followed by a body record.
607         (dot_endp): Call add_unwind_entry to emit endp unwind record.
608         * config/tc-ia64.h (unw_record_type): Add endp.
610 2004-02-03  James E Wilson  <wilson@specifixinc.com>
612         * config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to
613         fill padding bytes with zeroes.
614         (emit_one_bundle): New locals last_ptr, end_ptr.  Rewrite code that
615         sets unwind_record slot_number and slot_frag fields.
617 2004-02-02  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
619         * config/tc-mips.c (add_got_offset_hilo): New function.
620         (macro): Use load_register() and add_got_offset_hilo() to load
621         constants instead of hardcoding code sequences throughout.
623 2004-01-28  H.J. Lu  <hongjiu.lu@intel.com>
625         * config/tc-ia64.c (emit_one_bundle): Add proper indentation.
627 2004-01-26  Bernardo Innocenti  <bernie@develer.com>
629         * config/tc-m68k.h (EXTERN_FORCE_RELOC): Handle m68k-uclinux specially,
630         like m68k-elf.
631         * config/tc-m68k.c (RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead
632         of hard-coded test for TARGET_OS=elf.
634 2004-01-24  Chris Demetriou  <cgd@broadcom.com>
636         * config/tc-mips.c (hilo_interlocks): Change definition
637         so that MIPS32, MIPS64 and later ISAs are included, along with
638         the already-included machines.  Update comments.
640 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
642         * config/tc-arm.c (tc_gen_reloc): Improve error message for
643         undefined local labels.
645 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
647         * config/tc-mips.c (load_address, macro): Update comments about
648         NewABI GP relaxation.
650 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
652         * config/tc-mips.c (macro_build): Remove place and counter arguments.
653         (mips_build_lui, macro_build_ldst_constoffset): Likewise.
654         (mips16_macro_build, macro_build_jalr): Remove counter argument.
655         (set_at, load_register, load_address, move_register): Likewise.
656         (load_got_offset, add_got_offset): Likewise.
657         Update all calls and tidy accordingly.
659 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
661         * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
662         (RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
663         (RELAX_USE_SECOND): Bump to 0x10000.
664         (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
665         (mips_macro_warning): New variable.
666         (md_assemble): Wrap macro expansion in macro_start() and macro_end().
667         (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
668         (relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
669         of RELAX_ENCODE.
670         (append_insn): Update mips_macro_warning.sizes.
671         (macro_start, macro_warning, macro_end): New functions.
672         (macro_build): Don't emit warnings here.
673         (macro_build_lui, md_estimate_size_before_relax): ...or here.
674         (md_convert_frag): Check for cases where one macro alternative
675         needs a warning and the other doesn't.  Emit a warning if the
676         longer sequence was chosen.
678 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
680         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.
681         * config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of
682         the first sequence, the size of the second sequence, and a flag
683         that says whether we should warn.
684         (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete.
685         (RELAX_FIRST, RELAX_SECOND): New.
686         (mips_relax): New variable.
687         (relax_close_frag, relax_start, relax_switch, relax_end): New fns.
688         (append_insn): Remove "place" argument.  Use mips_relax.sequence
689         rather than "place" to check whether we're expanding the second
690         alternative of a relaxable macro.  Remove redundant check for
691         branch relaxation.  If generating a normal insn, and there
692         is not enough room in the current frag, call relax_close_frag()
693         to close it.  Update mips_relax.sizes[].  Emit fixups for the
694         second version of a relaxable macro.  Record the first relaxable
695         fixup in mips_relax.  Remove tc_gen_reloc workaround.
696         (macro_build): Remove all uses of "place".  Use mips_relax.sequence
697         in the same way as in append_insn.
698         (mips16_macro_build): Remove "place" argument.
699         (macro_build_lui): As for macro_build.  Don't drop the add_symbol
700         when generating the second version of a relaxable macro.
701         (load_got_offset, add_got_offset): New functions.
702         (load_address, macro): Use new relaxation machinery.  Remove
703         tc_gen_reloc workarounds.
704         (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second
705         version of a relaxable macro is needed.  Return -RELAX_SECOND if the
706         first version is needed.
707         (tc_gen_reloc): Remove relaxation handling.
708         (md_convert_frag): Go through the fixups for a relaxable macro and
709         mark those that belong to the unneeded alternative as done.  If the
710         second alternative is needed, adjust the fixup addresses to account
711         for the deleted first alternative.
713 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
715         * frags.h (frag_room): Declare.
716         * frags.c (frag_room): New function.
717         * doc/internals.texi: Document it.
719 2004-01-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
721         * config/tc-mips.c (append_insn): Don't do r3900 interlock
722         optimization for -mtune=r3900, as this will break on other CPUs.
724 2004-01-11  Tom Rix   <tcrix@worldnet.att.net>
726         * config/tc-m68hc11.c (build_indexed_byte): movb and movw cannot
727         be relaxed, use fixup.
728         (md_apply_fix3): Use 5 bit reloc from movb and movw fixup.
730 2004-01-19  Jakub Jelinek  <jakub@redhat.com>
732         * config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for single
733         precision operands.
735 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
737         * config/tc-mips.c (append_insn): Properly detect variant frags
738         that preclude swapping of relaxed branches.  Correctly swap
739         instructions between frags when dealing with relaxed branches.
741 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
743         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
744         throughout.
745         * aclocal.m4: Regenerate.
746         * configure: Regenerate.
748 2004-01-12  Anil Paranjpe  <anilp1@KPITCummins.com>
750         * config/tc-h8300.c (build_bytes): Apply relaxation to bit
751         manipulation insns.
753 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
755         * config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR
756         reloc, reserve space for the delay slot as well as the jalr itself.
758 2004-01-09  Paul Brook  <paul@codesourcery.com>
760         * config/tc-arm.c (do_vfp_reg2_from_sp2): Rename from do_vfp_sp_reg2.
761         (do_vfp_sp2_from_reg2): New function.
762         (insns): Use them.
763         (do_vfp_dp_from_reg2): Check return values properly.
765 2004-01-08  Ian Lance Taylor  <ian@wasabisystems.com>
767         * config/tc-mips.c (warn_nops): Remove static variable.
768         (macro): Remove test of warn_nops.
769         (md_shortops): Remove 'n'.
770         (md_parse_option): Remove 'n' case.
771         (md_show_usage): Remove -n.
772         * doc/as.texinfo (Overview): Remove MIPS -n option.
773         * doc/c-mips.texi (MIPS Opts): Remove mention -n.
774         * NEWS: Mention removal of MIPS -n option.
776         * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.
777         (cop_interlocks): Check ISA level.
778         (cop_mem_interlocks): Define.
779         (reg_needs_delay): Check cop_interlocks rather than
780         ISA_HAS_COPROC_DELAYS.
781         (append_insn): Likewise.  Use cop_mem_interlocks rather than
782         directly checking mips_opts.isa.
783         (mips_emit_delays): Likewise.
785 2004-01-07  H.J. Lu  <hongjiu.lu@intel.com>
787         * config/tc-ia64.c (unwind): Move next_slot_number and
788         next_slot_frag to ...
789         (unw_rec_list): Here.
790         (free_list_records): Removed.
791         (output_unw_records): Likewise.
792         (generate_unwind_image): Make it void.
793         (alloc_record): Initialize next_slot_number and next_slot_frag.
794         (slot_index): Take .org, .space and .align into account.
795         (fixup_unw_records): Don't set slot_number to 0. Use
796         list->next_slot_number and list->next_slot_frag instead of
797         unwind.next_slot_number and unwind.next_slot_frag.
798         (ia64_convert_frag): New.
799         (generate_unwind_image): Generate a rs_machine_dependent frag
800         for unwind record.
801         (emit_one_bundle): Use list->next_slot_number and
802         list->next_slot_frag instead of unwind.next_slot_number and
803         unwind.next_slot_frag.
805         * config/tc-ia64.h (md_convert_frag): Defined as
806         ia64_convert_frag.
807         (md_estimate_size_before_relax): Defined as (f)->fr_var.
809 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
811         2003-12-19  Alexandre Oliva  <aoliva@redhat.com>
812         * config/tc-frv.h (md_apply_fix3): Don't define.
813         * config/tc-frv.c (md_apply_fix3): New.  Shift/truncate %hi/%lo
814         operands.
815         * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
816         2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
817         * config/tc-frv.c (line_separator_chars): Add `!'.
818         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
819         * config/tc-frv.c (md_assemble): Clear insn upfront.
820         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
821         * config/tc-frv.c (OPTION_FDPIC): New macro.
822         (md_longopts): Add mfdpic.
823         (md_parse_option): Handle it.
824         2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
825         * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12,
826         FRV_OPERAND_S12>: Use reloc type encoded in fix-up.
827         (frv_pic_ptr): Parse funcdesc.
829 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
831         * doc/as.texinfo: Let texi2pod parse asconfig.texi and
832         gasver.texi.  Remove duplicate symbol definitions for texi2pod.
834 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
836         * Makefile.am (Makefile): Move the dependency on
837         $(BFDDIR)/configure.in to...
838         (CONFIG_STATUS_DEPENDENCIES): ... here.
839         (AUTOMAKE_OPTIONS): Require automake 1.8.
840         * Makefile.in: Regenerate.
841         * doc/Makefile.am (BASEDIR, BFDDIR): Define.
842         (CONFIG_STATUS_DEPENDENCIES): Add a dependency on
843         $(BFDDIR)/configure.in here as well.
844         * doc/Makefile.in: Regenerate.
846 2004-01-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
848         * Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.
849         * Makefile.in: Regenerate.
850         * aclocal.m4: Regenerate.
851         * doc/Makefile.am (install, install-info): Remove.
852         (install-data-local): A new hook for install-info.
853         (AUTOMAKE_OPTIONS): Require automake 1.8.
854         * doc/Makefile.in: Regenerate.
856 2004-01-02  Nutan Singh <nutan@kpitcummins.com>
858         * doc/c-sh.texi: Update description about floating point behavior
859         of SH family.
861 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
863         * configure.in: Add m68k-uClinux target.
864         * configure: Regenerate.
866 For older changes see ChangeLog-0203
868 Local Variables:
869 mode: change-log
870 left-margin: 8
871 fill-column: 74
872 version-control: never
873 End: