Add support for h8300hn and h8300sn
[binutils.git] / gas / ChangeLog
blob285877d74d8e7c0c3e42865e4e3841c7724b51b1
1 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com> 
3         * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
4         (md_pseudo_table): Add h8300hn, h8300sn.
5         * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
6         * doc/c-h8300.texi : Add documentation for new machine directives.
8 2003-04-24  Nick Clifton  <nickc@redhat.com>
10         * config/tc-ppc.c (ppc_symbol_chars): Define.
11         * config/tc-ppc.h (tc_symbol_chars): Define.
13 2003-04-23  J"orn Rennecke <joern.rennecke@superh.com>
15         * config/tc-sh.c: Amend comment to refer to SuperH.
16         * config/tc-sh.h: Likewise.
17         (LISTING_HEADER): Amend to refer to SuperH.
18         * config/tc-sh64.c: Change comment to refer to SuperH.
19         * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
20         * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
21         * doc/c-sh.texi: Amend to refer to SuperH.
22         Add SuperH architecture documentation references.
23         * doc/c-sh64.texi: Change to refer to SuperH.
25 2003-04-23  H.J. Lu <hjl@gnu.org>
27         * app.c (do_scrub_chars): More checks for valid labels.
29 2003-04-22  H.J. Lu <hjl@gnu.org>
31         * app.c (do_scrub_chars): Check for valid label.
33 2003-04-22  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
35         * doc/as.texinfo: Replace references to Mitsubishi M32R with
36         references to Renesas M32R.
37         * doc/c-m32r.texi: Likewise.
39 2003-04-21  Richard Henderson  <rth@redhat.com>
41         * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
42         (out_file_list): Assign non-null filename after generating error.
44 2003-04-18  Jakub Jelinek  <jakub@redhat.com>
46         * ehopt.c (check_eh_frame): For aug_size == 0
47         in state_seeing_aug_size state skip the state_skipping_aug
48         state.
50 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
52         * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
53         'Renesas'.
54         * doc/c-h8500.texi: Likewise.
55         * doc/c-sh.texi: Likewise.
56         * doc/c-sh64.texi: Likewise.
57         * doc/h8.texi: Likewise.
58         * config/tc-h8300.c: Likewise.
59         * config/tc-h8300.h: Likewise.
60         * config/tc-h8500.c: Likewise.
61         * config/tc-h8500.h: Likewise.
62         * config/tc-sh.c: Likewise.
63         * config/tc-sh.h: Likewise.
64         * config/tc-sh64.c: Likewise.
65         * config/tc-sh64.h: Likewise.
67 2003-04-10  Alexandre Oliva  <aoliva@redhat.com>
69         * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
70         * config/tc-mips.c: Use signed add for n32 address arithmetic.
71         (append_insn): When filling delay slots with instructions
72         that have fixups that tc_gen_reloc might consider modifyable
73         in variant frags, start a new frag.
74         (load_address): Generate GOT_DISP with of without offset
75         depending on whether symbol is local.  For -xgot, use
76         GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
77         (macro) <M_DLA_AB, M_LA_AB>: Likewise.
78         <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
79         CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
80         <ld_st>: In NewABI with small got, always use
81         GOT_PAGE/GOT_OFST, with the latter in the load/store
82         instruction.  With big got, use GOT_HI16/GOT_LO16 or
83         GOT_PAGE/GOT_OFST.
84         (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
85         Add tc_frag_data.tc_fr_offset to addends.  Decay CALL16,
86         GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
87         (md_convert_frag): Use memmove for safe copying of overlapping
88         regions.
90 2003-04-09  Stephane Carrez  <stcarrez@nerim.fr>
92         * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
93         -mlong, -mshort-double and -mlong-double options; use table @code.
94         (M68HC11-Syntax): Update to document 68HC12 operands.
95         (M68HC11-Modifiers): New section for operand modifiers.
96         (M68HC11-Directives): New section for specific assembler directives.
97         (M68HC11-Branch): Fix Overfull hbox error.
99 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
101         * config/tc-mips.c (macro): Add comments explaining the rationale
102         for Chris' change.
104 2003-04-09  Chris Demetriou  <cgd@broadcom.com>
106         * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
107         constant address that Alexandre took out by accident.  Reject
108         64-bit addresses that are not sign extensions of 32 bits only if
109         we don't support 64-bit address constants.
111 2003-04-09  Alan Modra  <amodra@bigpond.net.au>
113         * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
115 2003-04-08  Nick Clifton  <nickc@redhat.com>
117         * as.c (perform_an_assembly_pass): If using cgen, call
118         gas_cgen_begin.
119         * cgen.c (gas_cgen_begin): New function.  If
120         flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
121         otherwise call cgen_clear_signed_overflow_ok.
122         * cgen.h: Prototype gas_cgen_begin.
124 2003-04-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
126         * write.c (write_relocs): Remove unused variable.
128 2003-04-06  Chris Demetriou  <cgd@broadcom.com>
130         * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
131         (macro): Use new macro to decide whether to emit constant address
132         as 32 or 64 bits if addresses are 32-bit wide but registers are
133         64-bit wide.
135 2003-04-05  Stephane Carrez  <stcarrez@nerim.fr>
137         * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
138         (M6811_OP_PAGE_ADDR): New internal define.
139         (get_operand): New modifier %page and %addr to obtain page and 
140         address part of a far-function.
141         (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't 
142         complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
143         relocs.
144         (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
145         (find_opcode): Add comment.
146         (md_estimate_size_before_relax): Force relocation of
147         STATE_UNDEXED_OFFSET types when the symbol is not absolute.
148         (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
149         instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
150         on the symbol itself so that DWARF2 strings are merged correctly.
152 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
154         * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
155         default tic4x target format to 'coff2-tic4x'.
156         * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
157         s/c3x/tic3x/
158         * config/tc-tic4x.h: Ditto
160 2003-04-03  Nick Clifton  <nickc@redhat.com>
162         * NEWS: Mention support for Xtensa architecture.
164 2003-04-02  Philip Blundell  <philb@gnu.org>
166         * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
168 2003-04-02  Chris Demetriou  <cgd@broadcom.com>
170         * config/tc-mips.c (macro2): Adjust implementation of
171         M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
172         in the case where the source and destination registers
173         are the same.
175 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
177         * Makefile.am (CPU_TYPES): Add xtensa.
178         (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
179         (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
180         (xtensa-relax.o): New target.
181         Run "make dep-am".
182         * Makefile.in: Regenerate.
183         * configure.in: Handle xtensa-*-*.  Add xtensa-relax.o to
184         extra_objects for xtensa targets.
185         * configure: Regenerate.
186         * write.c (write_object_file): Add new md_post_relax_hook.
187         * config/tc-xtensa.c: New file.
188         * config/tc-xtensa.h: Likewise.
189         * config/xtensa-istack.h: Likewise.
190         * config/xtensa-relax.c: Likewise.
191         * config/xtensa-relax.h: Likewise.
192         * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
193         * doc/Makefile.in: Regenerate.
194         * doc/all.texi: Set new XTENSA variable.
195         * doc/as.texinfo: Set new Xtensa variable.  Describe
196         Xtensa-specific options.  Define line comment character for
197         Xtensa.  Add Xtensa processors to list of ELF targets where
198         alignment is specified in bytes.  Add new Xtensa-Dependent node.
199         Add acknowledgements for those contributing to the Xtensa port.
200         * doc/internals.texi: Describe new md_post_relax_hook.
201         * doc/c-xtensa.texi: New file.
204 2003-04-01  Nick Clifton  <nickc@redhat.com>
205             Richard Earnshaw  <rearnsha@arm.com>
207         * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
208         (ARM_ARCH_IWMMXT): Simplify.
209         (insns): Place iwmmx instructions in correct place in table.
210         (arm_add_note): New function: Add a note entry to a .note section.
211         (md_begin): Make the default architecture be unknown.
212         Suppress the creation of an arm note section.
214 2003-03-26  Eric Christopher  <echristo@redhat.com>
216         * config/tc-mips.c (nopic_need_relax): Check for
217         S_IS_EXTERN.
219 2003-03-25  Stan Cox   <scox@redhat.com>
220             Nick Clifton  <nickc@redhat.com>
222         Contribute support for Intel's iWMMXt chip - an ARM variant:
224         * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
225         WC_PREFIX, REG_TYPE_IWMMXT): New constants.
226         (enum wreg_type, enum iwmmxt_insn_type): New types.
227         (wr_register, wc_register, wcg_register): New macros.
228         (iwmmxt_table): New variable.
229         (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
230         do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
231         do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
232         do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
233         do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
234         do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
235         do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
236         cp_byte_address_offset, cp_byte_address_required_here,
237         check_iwmmxt_insn): New functions.
238         (asm_opcode_insns): Add iWMMXt instructions.
239         (md_begin): Set the mach value for iWMMXt targets.  Create a note
240         section to identify iwmmxt binaries.
241         (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
242         * doc/c-arm.texi: Document the support for the iWMMXt.
243         * NEWS: Mention new support.
245 2003-03-24  Daniel NĂ©ri  <dne@mayonnaise.net>
247         * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
248         * doc/all.texi: Likewise.
249         * doc/c-tic54x.texi: Likewise.
251 2003-03-21  Andreas Schwab  <schwab@suse.de>
253         * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
254         avoid aliasing issue.
256 2003-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
258         * config/tc-s390.c (s390_arch_size): Initialize to zero.
259         (current_arch_mask): Rename to current_mode_mask.
260         (current_arch_requested): Remove variable.
261         (current_cpu): New variable.
262         (init_default_arch): Set defaults values for s390_arch_size,
263         current_mode_mask and current_cpu.
264         (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
265         (md_begin): Replace current_arch_mask by current_cpu.
266         (md_assemble): Adapt check and error message to current_mode_mask and
267         current_cpu.
269 2003-03-09  James E Wilson  <wilson@tuliptree.org>
271         * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
272         * read.c (get_line_sb): Return end of line character or '\n' if
273         it is zero or non-existent.
275 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
277         * config/tc-mips.c (mips_validate_fix): New function.
278         * config/tc-mips.h (TC_VALIDATE_FIX): Define.
279         (mips_validate_fix): Declare.
281 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
283         * Reverted 2003-03-02's patch.
285 2003-03-11  Steve Ellcey  <sje@cup.hp.com>
287         * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
288         (TC_DWARF2_EMIT_OFFSET): Provide default.
289         (out_debug_aranges, out_debug_info): Use it.
290         * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
291         (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
292         (ia64_gen_real_reloc_type): ... here.
293         * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
295 2003-03-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
297         * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
298         (s_mips_ent): Likewise.
300 2003-03-04  Dmitry Diky  <diwil@mail.ru>
302         * config/tc-msp430.c (mcu_types): Add recently announced x1122
303         and x1123 devices, add missed x437.
304         (md_show_usage): Sort device list.
306 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
308         * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
309         (md_begin): Use preset_target_arch.
310         (md_longopts): Make isa option unconditional.
311         (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
312         set preset_target_arch.
313         (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
314         by -S_GET_VALUE  (fixP->fx_subsy).
315         (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
316         and the addend is 0.
317         Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
318         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
320 2003-03-02  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
322         * config/tc-mips.c (append_insn): Add handling of
323         BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
324         BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
325         misaligned address and reange overflow.
326         (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
327         earlier warnings about misaligned address and reange overflow.
328         (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
329         (md_apply_fix): Likewise. Fix warning output.
330         (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
331         Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
332         (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
334 2003-02-21  Nick Clifton  <nickc@redhat.com>
336         * NEWS: Mention availability of test generator program.
338 2003-02-21  Miles Bader  <miles@gnu.org>
340         * config/tc-v850.c (system_registers): Add v850e debug registers.
341         (system_register_name): Accept up to 27 (the last v850e sys register).
343 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
345         * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
346         relevant to both COFF and ELF.  Fix obvious typos and texinfo bugs.
347         Capitalize section headings consistently.  Format index entries more
348         consistently.  Unconditionalize text about whether text and data
349         sections are alterable.  Use @ifnottex for alternatives to @tex output
350         so that HTML works.  Clean up COFF vs. ELF descriptions of .section,
351         .size and .type directives.  Be more polite about bad bug reports.
352         Move FDL into a separate file.
353         * doc/fdl.texi: New file.
355 2003-02-21  Richard Sandiford  <rsandifo@redhat.com>
357         * config/tc-mips.c (prev_reloc_op_frag): New variable.
358         (macro): Check it to decide whether a new frag is needed.
359         (my_getSmallExpression): Set it.
361 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
363         * cgen.c: Fix typo: intial -> initial.
365 2003-02-19  Jie Zhang  <zhangjie@magima.com.cn>
367         * app.c (do_scrub_chars): Handle '||' in two states.
369 2003-02-13  Alan Modra  <amodra@bigpond.net.au>
371         * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
372         * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
374 2003-02-11  Uwe Stieber  <uwe@wwws.de>
376         * configure.in: Add support for kaOS as cross build target system.
377         * configure: Regenerated.
379 2003-02-10  Nick Clifton  <nickc@redhat.com>
381         * config/tc-arm.c (md_begin): If the Maverick co-processor is
382         selected, set the EF_ARM_MAVERICK_FLOAT flag and
383         bfd_mach_arm_ep9312 machine number.
385 2003-02-08  Richard Sandiford  <rsandifo@redhat.com>
387         * config/tc-mips.c (reloc_needs_lo_p): New function.
388         (fixup_has_matching_lo_p): New function.
389         (append_insn): Use reloc_needs_lo_p to check whether a relocation
390         might need a matching %lo().  Reuse the head of mips_hi_fixup_list
391         if that fixup already has a matching %lo().  Don't call frag_wane here.
392         (macro): Call frag_wane here if the last unmatched hi was in the
393         current frag.
394         (pic_need_relax): New function, split out from...
395         (md_estimate_size_before_relax): ...here.
396         (mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
397         whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
399 2003-02-07  Richard Sandiford  <rsandifo@redhat.com>
401         * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
403 2003-02-06  Alan Modra  <amodra@bigpond.net.au>
405         * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
406         x@toc+off works.
408 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
410         * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
411         (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
412         accept x@got+off etc.
413         (md_assemble): Handle TLS relocs.
414         (ppc_force_relocation): Force for all TLS relocs.
415         (ppc_fix_adjustable): Likewise.
416         (md_apply_fix3): Handle TLS relocs.
418 2003-02-04  Alan Modra  <amodra@bigpond.net.au>
420         * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
421         SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
423 2003-02-02  Richard Sandiford  <rsandifo@redhat.com>
425         * config/tc-mips.c (enum small_ex_type): Remove.
426         (imm_unmatched_hi): Remove.
427         (md_assemble): Remove use of imm_unmatched_hi.  Remove the last
428         argument from calls to append_insn.
429         (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
430         instead.
431         (macro_build): Update append_insn calls.
432         (mips16_macro_build, macro_build_lui): Likewise.
433         (mips_ip): Rework handling of small expressions.  Move explicit
434         relocation handling into my_getSmallExpression.  Assume that the
435         value of 'o' operands is zero if there is only one bracketed
436         expression left.
437         (percent_op): Make constant.  Record the BFD relocation code
438         associated with each operator.
439         (my_getSmallParser, my_getPercentOp): Remove.
440         (parse_relocation): New function.
441         (my_getSamllExpression): Rework.  Fill in relocations here
442         rather than in mips_ip.
444 2003-01-29  Nick Clifton  <nickc@redhat.com>
446         * config/tc-i386.c (line_comment_chars): Add '#'.  This makes the
447         assembler's handling of # <linenum> "<filename>" directives work.
449 2003-01-28  Jakub Jelinek  <jakub@redhat.com>
451         * dwarf2dbg.c: Include filenames.h.
452         (struct file_entry): Make filename const char *.
453         (dirs, dirs_in_use, dirs_allocated): New variables.
454         (get_filenum): Add NUM argument.  Build directory table.
455         (dwarf2_where): Adjust caller.
456         (dwarf2_directive_file): Use get_filenum to allocate
457         slot in file and directory tables.
458         (dwarf2_directive_loc): Recreate full filename from
459         directory and filename part if needed for listing.
460         (out_file_list): Output directory table.
461         Output main source file dirname before its filename.
463 2003-01-28    Dmitry Diky <diwil@mail.ru>
465         * config/tc-msp430.c: Replace occurences of 'tolower' with
466         'TOLOWER'.
468 2003-01-27  David Mosberger  <davidm@hpl.hp.com>
470         * config/tc-ia64.c (dot_vframesp): Correct error message.
471         (dot_vframepsp): Ditto.
473 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
475         * configure.in (em): Set to irix on all Irix systems.
476         * configure: Rebuilt.
477         * config/te-irix.h: New file.
478         * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
479         whether to use Irix-specific 64-bit format.
481 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
483         * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
485 2003-01-25  Jakub Jelinek  <jakub@redhat.com>
487         * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
488         (tc_gen_reloc): Handle TLS relocs.
489         (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
490         * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
491         relocs.
492         * config/obj-elf.c (obj_elf_section_word): Handle tls.
493         (obj_elf_type): Handle tls_object.
495 2003-01-24  Martin Schwidefsky  <schwidefsky@de.ibm.com>
497         * config/tc-s390.c (s390_tls_suffix): New function.
498         (elf_suffix_type): Add suffix enums for TLS relocations.
499         (s390_elf_suffix): Add suffix strings for TLS relocations.
500         (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
501         bfd relocations.
502         (md_gather_operands): Map new instruction operand/elf suffix
503         combinations for TLS to bfd relocations.
504         (tc_s390_fix_adjustable): Add new TLS relocations.
505         (tc_s390_force_relocation): Likewise.
506         (md_apply_fix3): Likewise.
508 2003-01-24  Alan Modra  <amodra@bigpond.net.au>
510         * as.h: Update copyright date.
511         * symbols.c: Likewise.
512         * config/tc-d10v.h: Likewise.
513         * config/tc-fr30.h: Likewise.
514         * config/tc-i960.h: Likewise.
515         * config/tc-mips.h: Likewise.
517         * config/tc-hppa.h (DIFF_EXPR_OK): Define.
518         (MD_APPLY_SYM_VALUE): Move.
520 2003-01-23  Nick Clifton  <nickc@redhat.com>
522         NEWS: Announce sh2e support.
524         * Add sh2e support:
526         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
528                 * config/tc-sh.c (md_show_usage): Added sh2e next to
529                 sh3e.
530                 (sh_elf_final_processing): Handle arch_sh2e.
532 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
534         * symbols.c (S_FORCE_RELOC): Add "strict" param.
535         * symbols.h (S_FORCE_RELOC): Likewise.
536         * config/obj-aout.h (S_FORCE_RELOC): Likewise.
537         * config/obj-bout.h (S_FORCE_RELOC): Likewise.
538         * config/obj-coff.h (S_FORCE_RELOC): Likewise.
539         * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
540         * config/obj-vms.h (S_FORCE_RELOC): Likewise.
541         * write.c (generic_force_reloc): New function.
542         (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
543         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
544         (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
545         * as.h (generic_force_reloc): Declare.
546         * doc/internals.texi (S_FORCE_RELOC): Update.
547         (TC_FORCE_RELOCATION_SUB_SAME): Update.
549         * config/tc-alpha.c (alpha_force_relocation): Adjust to use
550         generic_force_reloc.
551         (alpha_fix_adjustable): Likewise.
552         * config/tc-arm.c (arm_force_relocation): Likewise.
553         * config/tc-cris.c (md_cris_force_relocation): Likewise.
554         * config/tc-frv.c (frv_force_relocation): Likewise.
555         * config/tc-i386.c (md_apply_fix3): Likewise.
556         * config/tc-ia64.c (ia64_force_relocation): Likewise.
557         * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
558         * config/tc-m32r.c (m32r_force_relocation): Likewise.
559         * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
560         * config/tc-mcore.c (mcore_force_relocation): Likewise.
561         * config/tc-mips.c (mips_force_relocation): Likewise.
562         * config/tc-mmix.c (mmix_force_relocation): Likewise.
563         * config/tc-ppc.c (ppc_force_relocation): Likewise.
564         * config/tc-s390.c (tc_s390_force_relocation): Likewise.
565         * config/tc-sh.c (sh_force_relocation): Likewise.
566         (md_pcrel_from_section): Likewise.
567         * config/tc-sparc.c (tc_gen_reloc): Likewise.
568         * config/tc-v850.c (v850_force_relocation): Likewise.
569         * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
570         * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
571         * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
572         * config/tc-sparc.h (tc_fix_adjustable): Likewise.
574         * config/tc-d10v.c (d10v_force_relocation): Delete.
575         * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
576         * config/tc-dlx.c (md_dlx_force_relocation): Delete.
577         * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
578         * config/tc-fr30.c (fr30_force_relocation): Delete.
579         * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
580         * config/tc-mn10300.c (mn10300_force_relocation): Delete.
581         * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
582         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
583         * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
584         * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
585         * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
586         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
587         * config/tc-openrisc.c (openrisc_force_relocation): Delete.
588         * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
589         * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
590         * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
591         * config/tc-i386.c (i386_force_relocation): Delete.
592         * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
593         BFD_ASSEMBLER.
594         (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
595         * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
596         * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
597         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
598         S_FORCE_RELOC.
599         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
600         * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
602 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
604         * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
605         sh64_elf_section_data.
606         * config/tc-sh64.h: Include elf32-sh64.h.
607         * config/tc-m68hc11.c: Don't include stdio.h.
608         (md_show_usage): Fix missing continuation.
609         * Makefile.am: Run "make dep-am".
610         * Makefile.in: Regenerate.
612 2003-01-22  Nick Clifton  <nickc@redhat.com>
614         * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
616 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
618         * configure.in: Handle *-*-aros*.
619         * configure:    Regenerated from configure.in.
621 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
623         * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
624         gotplt and pltoff relocations.
625         (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
626         (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
627         gotplt and pltoff to bfd relocations.
628         (md_gather_operands): Map new instruction operand/elf suffix
629         combinations to bfd relocations.
630         (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
631         to the list of unadjustable relocations.
632         (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
633         and pltoff relocations.
634         (md_apply_fix3): Add the new relocations.
636 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
638         * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
639         with a subsy symbol.
641 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
643         * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
644         of relocs for memory bank addressing.
646 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
648         * config/tc-m68hc11.c (md_show_usage): Update usage.
649         (md_parse_option): Recognize -m68hcs12.
650         (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
651         HCS12.
652         * doc/as.texinfo (Overview): Document new option -m68hcs12.
654 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
656         * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
658 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
660         * Makefile.am: Run "make dep-am".
661         * Makefile.in: Regenerate.
662         * po/POTFILES.in: Regenerate.
664 2003-01-11  Alan Modra  <amodra@bigpond.net.au>
666         * read.c (get_absolute_expr): New, split out from..
667         (get_absolute_expression): ..here.
668         * read.h (get_absolute_expr): Declare.
669         * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
670         Trim size to arch bits_per_address, and test for negative input
671         via get_absolute_expr.
673 2003-01-07  DJ Delorie  <dj@redhat.com>
675         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
676         on operand type.
677         (xstormy16_md_apply_fix3): Use adjustment.
679 2003-01-02  Ben Elliston  <bje@redhat.com>
681         * configure.in: Add iq2000-elf target.
682         * configure: Regenerate.
683         * config/tc-iq2000.c: New file.
684         * config/tc-iq2000.h: Likewise.
685         * po/gas.pot: Regenerate.
687 2003-01-02  Chris Demetriou  <cgd@broadcom.com>
689         * config/tc-mips.c: Update copyright years to include 2003.
690         (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
691         Additionally, clean up their code slightly and clean up their
692         comments some more.
694         * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
696 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
698         * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
699         $(CPU_DOCS)".
700         * doc/Makefile.in: Regenerate.
702 2003-01-01  John David Anglin  <dave.anglin@nrc.ca>
704         * config/obj-elf.c (special_sections): Work around HP's incorrect usage
705         of .init and .fini sections for array initializers and finalizers.
707 2002-12-31  Chris Demetriou  <cgd@broadcom.com>
709         * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
710         the "+D" operand, which will be used only by the disassembler.
712 2002-12-30  Chris Demetriou  <cgd@broadcom.com>
714         * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
715         CPU variants.
716         * configure: Regenerate.
717         * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
718         (macro_build): Handle "K" operand.
719         (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
720         CPU_HAS_DROR and CPU_HAS_ROR are currently used.
721         (mips_ip): New variable "lastpos", and implement "+A", "+B",
722         and "+C" operands for MIPS32 Release 2 ins/ext instructions.
723         Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
724         (validate_mips_insn): Implement "+" as a way to extend the
725         allowed operands, and implement "K", "+A", "+B", and "+C"
726         operands.
727         (OPTION_MIPS32R2): New define.
728         (md_longopts): Add entry for OPTION_MIPS32R2.
729         (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
730         (md_parse_option): Handle OPTION_MIPS32R2.
731         (s_mipsset): Reimplement handling of ".set mipsN" options
732         and add support for ".set mips32r2".
733         (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
734         (md_show_usage): Document "-mips32r2" option.
735         * doc/as.texinfo: Document "-mips32r2" option.
736         * doc/c-mips.texi: Likewise.
738 2002-12-30    Dmitry Diky <diwil@mail.ru>
740         * configure.in: Add msp430 target.
741         * configure: Regenerate.
742         * Makefile.am: Add msp430 target.
743         * Makefile.in: Regenerate.
744         * config/tc-msp430.c: New file: msp430 assembler.
745         * config/tc-msp430.h: New file: target macros for msp430.
746         * doc/Makefile.am: Add msp430 target.
747         * doc/Makefile.in: Regenerate.
748         * doc/as.texinfo: Include msp430 documenation.
749         * doc/all.texi: Enable msp430 documentation.
750         * doc/c-msp430.texi: New file: document msp430 specific features
751         of the assembler.
753 2002-12-25  Alexandre Oliva  <aoliva@redhat.com>
755         * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
756         (dwarf2_finish): Use it.
757         * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
758         * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
760 2002-12-20  DJ Delorie  <dj@redhat.com>
762         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
763         BFD_RELOC_XSTORMY16_12.
765 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
767         * doc/as.texinfo (Invoking): Typo fix.
768         * config/tc-tic54x.c (encode_operand): Comment typo fix.
770 2002-12-18  Kazu Hirata  <kazu@cs.umass.edu>
772         * doc/c-alpha.texi: Fix typos.
773         * doc/c-arm.texi: Likewise.
774         * doc/c-d10v.texi: Likewise.
775         * doc/c-i370.texi: Likewise.
776         * doc/c-i960.texi: Likewise.
777         * doc/c-ia64.texi: Likewise.
778         * doc/c-mmix.texi: Likewise.
779         * doc/c-ns32k.texi: Likewise.
780         * doc/c-pdp11.texi: Likewise.
781         * doc/c-pj.texi: Likewise.
782         * doc/c-sh64.texi: Likewise.
783         * doc/c-sparc.texi: Likewise.
784         * doc/c-tic54x.texi: Likewise.
785         * doc/c-v850.texi: Likewise.
786         * doc/c-vax.texi: Likewise.
787         * doc/internals.texi: Likewise.
789 2002-12-18  Chris Demetriou  <cgd@broadcom.com>
791         * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
792         use hardware rotate ops as appropriate.  In M_DROL_I, M_DROR_I,
793         M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
794         arrange not to issue warnings about use of AT when AT is not
795         actually used.
797 2002-12-17  Nick Clifton  <nickc@redhat.com>
799         * as.c (std_longopts): Duplicate --keep-locals entry in order to
800         prevent it being confused with -k.
802 2002-12-16  Andrew MacLeod  <amacleod@redhat.com>
804         * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
805         has already been set up, use it.
807 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
809         * ChangeLog-9295: Fix a typo.
810         * README: Likewise.
811         * config/tc-d10v.c: Fix a comment typo.
812         * config/tc-dlx.c: Likewise.
813         * config/tc-h8300.h: Likewise.
814         * config/tc-h8500.h: Likewise.
815         * config/tc-mips.c: Likewise.
816         * config/tc-s390.c: Likewise.
817         * config/tc-sh.h: Likewise.
818         * config/tc-tic80.h: Likewise.
819         * config/tc-w65.h: Likewise.
820         * config/tc-z8k.c: Likewise.
821         * config/tc-z8k.h: Likewise.
822         * testsuite/gas/h8300/cmpsi2.s: Likewise.
824 2002-12-16  Alan Modra  <amodra@bigpond.net.au>
826         * config/tc-d30v.c (check_range): Warning fixes, formatting.
827         Simplify sign extension.  Remove redundant unsigned < 0 test.
828         * config/tc-i960.c (md_ri_to_chars): Prototype.
829         * config/tc-mcore.c (md_pseudo_table): Fix typo.
830         (dump_literals): Init brarsym, and test later instead of isforce.
832         * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
833         (parse): Constify line and lineptr.
834         (md_begin): Calculate endop here.
836 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
838         * config/obj-vms.c: Formatting.  Include fnctl.h.
839         (Create_VMS_Object_File): Fix creat call for sane unix systems.
840         (Object_Record_Offset): Make it a size_t.
841         (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
842         (VMS_TBT_Routine_End <Size>): Make var unsigned long.
843         (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
844         (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
845         (vms_fixup_data_section <data_size>): Add here instead.
846         * config/e-criself.c: Fix typo in last change.
848 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
850         * write.c (write_object_file): Fix signed/unsigned warning.
851         * config/e-crisaout.c (crisaout_bfd_name): Prototype.
852         * config/e-criself.c (criself_bfd_name): Prototype.
853         * config/obj-aout.c (s_sect): Remove unused function.
854         * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
855         * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
856         (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
857         * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
858         * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
859         (VMS_RSYM_Parse <Current_Routine>): Likewise.
860         (vms_fixup_text_section <text_siz>): Likewise.
861         (synthesize_data_segment <data_size>): Likewise.
862         (vms_fixup_xtors_section <sect_no>): Likewise.
863         (structure_count): Don't use implicit int type.
864         * config/tc-a29k.c (insert_sreg): Prototype.
865         (define_some_regs): Prototype, make static.
866         (parse_operand): Likewise.
867         (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
868         (md_show_usage <stream>): Likewise.
869         (md_section_align <segment>): Likewise.
870         (md_convert_frag <all args>): Likewise.
871         (md_estimate_size_before_relax <all args>): Likewise.
872         (md_apply_fix3): Don't cast valP pointer type.  Fix bogus >>='s.
873         * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
874         * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
875         (md_undefined_symbol <name>): Likewise.
876         (md_convert_frag <all args>): Likewise.
877         (write_long <opcode>): Likewise.
878         (tc_gen_reloc <seg>): Likewise.
879         (md_estimate_size_before_relax <all args>): Likewise.
880         (md_apply_fix3 <seg>): Likewise.
881         (s_d30v_align <ignore>): Likewise.
882         (build_insn): Correct format string.
883         (md_apply_fix3): Likewise.
884         * config/tc-fr30.c (md_parse_option <c,arg>):  Add ATTRIBUTE_UNUSED.
885         (md_undefined_symbol <name>): Likewise.
886         (md_convert_frag <all args>): Likewise.
887         (md_cgen_lookup_reloc <insn>): Likewise.
888         (md_begin): Delete unused vars.
889         (md_assemble): Likewise.
890         (md_estimate_size_before_relax): Likewise.
891         (fr30_relax_frag): #if 0 out, seems unused.
892         (md_atof): Remove declaration of atof_ieee.
893         (restore_colon): Prototype.
894         * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
895         (frv_find_in_vliw): Likewise.
896         (frv_debug_tomcat): Likewise.
897         (frv_adjust_vliw_count): Likewise.
898         (frv_tomcat_shuffle): Likewise.
899         (frv_tomcat_analyze_vliw_chains): Likewise.  Correct args to
900         frv_find_in_vliw call.
901         (md_atof): Remove declaration of atof_ieee.
902         * config/tc-h8500.c (cons): Delete declaration.
903         (md_begin <opcode>): Constify.
904         (displacement_size, immediate_size, absolute_size): Remove.
905         (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
906         (tc_crawl_symbol_chain <headers>): Likewise.
907         (md_undefined_symbol <name>): Likewise.
908         (tc_headers_hook <headers>): Likewise.
909         (md_parse_option <c,arg>): Likewise.
910         (md_show_usage <stream>): Likewise.
911         (md_convert_frag <headers, seg>): Likewise.
912         (tc_coff_symbol_emit_hook <ignore>): Likewise.
913         (md_atof): Remove declaration of atof_ieee.
914         (tc_aout_fix_to_chars): Remove unused function.
915         (parse_reg): Prototype.
916         (parse_exp): Prototype.
917         (skip_colonthing): Prototype.  Use &&, not & in logical expressions.
918         (parse_reglist): Prototype.
919         (get_operand): Prototype.
920         (get_operands): Prototype.
921         (get_specific): Prototype.  Make "this_index" signed.
922         (check): Prototype, make static.
923         (insert): Prototype
924         (build_relaxable_instruction): Prototype, make static.
925         (build_bytes): Prototype.
926         (wordify_scb): Prototype.
927         * config/tc-h8500.h (start_label): Declare.
928         (tc_coff_sizemachdep): Declare.
929         * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
930         (i370_rmode <unused>): Likewise.
931         (i370_csect <unused>): Likewise.
932         (i370_dc <unused>): Likewise.
933         (i370_ds <unused>): Likewise.
934         (i370_elf_lcomm <unused>): Likewise.
935         (i370_ltorg <ignore>): Likewise.
936         (i370_using <ignore>): Likewise.
937         (i370_drop <ignore>): Likewise.
938         (i370_byte <ignore>): Likewise.
939         (i370_tc <ignore>): Likewise.
940         (md_estimate_size_before_relax <fragp, seg>): Likewise.
941         (md_convert_frag <all args>): Likewise.
942         (md_undefined_symbol <name>): Likewise.
943         (md_pcrel_from_section <sec>): Likewise.
944         (tc_gen_reloc <seg>): Likewise.
945         (i370_section_letter): #if 0 unused functions.
946         (i370_section_word, i370_section_type, i370_section_flags): Likewise.
947         (symbol_locate): Prototype.
948         * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
949         (md_number_to_disp, md_number_to_field): Remove.
950         (md_apply_fix3): Correct format string and cast "fup".
951         * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
952         (s_endian <ignore>): Likewise.
953         (md_undefined_symbol <name>): Likewise.
954         (tc_crawl_symbol_chain <headers>): Likewise.
955         (tc_set_bal_of_call): Likewise.
956         (tc_coff_symbol_emit_hook <symbolP>): Likewise.
957         (i960_handle_align <fragp>): Likewise.
958         (i960_validate_fix <this_segment_type>): Likewise
959         (tc_gen_reloc <section>): Likewise.
960         (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
961         (struct memS, struct regop): Forward declare.
962         (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
963         get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
964         parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
965         reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
966         targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
967         (md_chars_to_number, md_number_to_imm): Make static, prototype.
968         (md_number_to_field): Likewise.
969         (md_number_to_disp): Remove unused function.
970         (md_atof): Remove declaration of atof_ieee.
971         (md_apply_fix3): Correct md_number_to_imm call.
972         * config/tc-ip2k.c (md_assemble): Warning fix.
973         * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
974         (fill_insn <ignore>): Likewise.
975         (debug_sym <ignore>): Likewise.
976         (md_undefined_symbol <name>): Likewise.
977         (m32r_scomm <ignore>): Likewise.
978         (md_convert_frag <abfd>): Likewise.
979         (md_cgen_lookup_reloc <insn>): Likewise.
980         (m32r_record_hi16 <seg>): Likewise.
981         (md_estimate_size_before_relax): #if 0 old_fr_fix.
982         (allow_m32rx): Prototype.
983         (first_writes_to_seconds_operands): Prototype.
984         (writes_to_pc): Prototype.
985         (can_make_parallel): Prototype.
986         (make_parallel): Prototype.
987         (target_make_parallel): Prototype.
988         (assemble_two_insns): Prototype.
989         (m32r_record_hi16): Prototype.
990         (md_atof): Remove declaration of atof_ieee.
991         * config/tc-m32r.h (m32r_fix_adjustable): Declare.
992         (m32r_force_relocation): Prototype.
993         (m32r_elf_section_change_hook): Prototype.
994         * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
995         (md_show_usage): Fix signed/unsigned warning.
996         * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
997         (calcop): Ditto for reg_prefix var.
998         (hexval): Add cast to fix signed/unsigned warning.
999         (md_number_to_disp): Delete unused function.
1000         (md_number_to_field): Likewise.
1001         (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1002         (match_name): Prototype.
1003         (get_bf2): Prototype.
1004         (get_bf_offset_expression): Prototype.
1005         * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1006         (md_undefined_symbol <ignore>): Likewise.
1007         (md_create_short_jump <all args>): Likewise.
1008         (md_create_long_jump <all args>): Likewise.
1009         (md_convert_frag <abfd, sec>): Likewise.
1010         (md_apply_fix3 <segment>): Likewise.
1011         (md_section_align <segment>): Likewise.
1012         (md_pcrel_from_section <sec>): Likewise.
1013         (tc_gen_reloc <section>): Likewise.
1014         (reg_m, reg_n, immediate): Delete unused vars.
1015         (dump_literals): Fix signed/unsigned warning.
1016         (enter_literal): Likewise.
1017         (parse_imm): Likewise.  Also fix format string.
1018         (parse_mem): Remove unused var.
1019         (md_assemble <LS>): Abort on unexpected inst.
1020         (md_atof): Remove declaration of atof_ieee.
1021         (md_parse_option): Remove unused vars.
1022         (md_apply_fix3): Fix format strings, cast args.
1023         (tc_gen_reloc): Delete unused var.
1024         * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1025         * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1026         (md_undefined_symbol <name>): Likewise.
1027         (md_convert_frag <abfd>): Likewise.
1028         (tc_gen_reloc <seg>): Likewise.
1029         (check_operand <insn>): Likewise.
1030         (md_convert_frag): Fix format strings.
1031         (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1032         * config/tc-openrisc.c (ignore_pseudo): Prototype.
1033         (md_atof): Remove declaration of atof_ieee.
1034         * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1035         (md_apply_fix3): Fix bogus >>='s.
1036         (md_undefined_symbol): Delete unused var.
1037         * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1038         (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1039         (fake_opcode): Adjust for pj_opc_int_t change.
1040         (md_begin): Likewise.
1041         (md_assemble): Likewise.
1042         (ipush_code): Correct parse_exp_save_ilp call.  Test pending_reloc
1043         instead of non-existent third arg of parse_exp_save_ilp.
1044         (md_parse_option): Correct "little" and "big" calls.
1045         * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1046         (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1047         (tc_gen_reloc <section>): Likewise.
1048         * config/tc-tic30.c: #include stdarg.h or varargs.h.
1049         (debug): Rewrite using VA_* macros.
1050         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1051         (md_convert_frag): Likewise.
1052         (md_parse_option): Likewise.
1053         (md_show_usage): Likewise.
1054         (md_undefined_symbol): Likewise.
1055         (tc_gen_reloc): Likewise.
1056         (md_operand): Likewise.
1057         (tc_aout_pre_write_hook): Delete.
1058         (struct tic30_insn): Make "operands" unsigned.
1059         (struct tic30_par_insn): Likewise.
1060         (md_assemble): Likewise for "count", "i" and "numops".
1061         (tic30_parallel_insn): Likewise for vars here.
1062         (tic30_operand): Likewise.  Remove useless unsigned >= 0 comparison.
1063         * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1064         * config/tc-tic80.c (obj_coff_section): Delete declaration.
1065         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1066         (md_undefined_symbol): Likewise.
1067         (md_parse_option): Likewise.
1068         (md_convert_frag): Likewise.
1069         (tc_coff_symbol_emit_hook): Likewise.
1070         (md_atof): Remove declaration of atof_ieee.
1071         (const_overflow): Warning fixes, tidy.
1072         (get_operands): Delete unused vars.
1073         (internal_error_a): Adjust format string to expect a long for arg.
1074         (find_opcode): Warning fixes, simplify.
1075         (build_insn): Cast internal_error_a arg.
1076         (md_begin): Likewise.
1077         (md_apply_fix3): Likewise.
1078         (md_assemble): Delete unused var.
1079         * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1080         * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1081         (whatreg, parse_reg, parse_exp): Make static, prototype.
1082         (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1083         (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1084         (get_operand, get_operands, get_specific, newfix): Likewise.
1085         (apply_fix, build_bytes): Likewise.
1086         (md_atof): Remove declaration of atof_ieee.
1087         (tc_aout_fix_to_chars): Delete.
1088         (md_begin): Constify "opcode".  Don't try to init opcode->idx.
1089         Fix s_unseg call.
1090         (md_parse_option): Fix s_segm and s_unseg calls.
1092 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1094         * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1095         Adjust callers.
1096         (RELAX_BRANCH_RELOC_S2): Delete.
1097         (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1098         Do not handle BFD_RELOC_16_PCREL.
1099         (macro_build, mips_ip): Likewise.
1100         (md_pcrel_from): Return 4 for undefined symbols regardless of
1101         mips_pic.
1102         (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1103         Don't dereference howto if no such relocation is available.
1104         Do not apply hack for in-place zero addend in NEWABI.
1105         (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1107 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
1108             Alan Modra  <amodra@bigpond.net.au>
1110         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1111         (TC_LINKRELAX_FIXUP): Add comments.
1113 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
1115         * config/tc-mn10300.c (set_arch_mach): Change argument type to
1116         avoid warnings.
1117         (r_register_name, xr_register_name): Add prototype declarations.
1119 2002-12-08  H.J. Lu <hjl@gnu.org>
1121         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1122         copied from tc-i386.c.
1124 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
1126         Fix Bug savannah/1825:
1127         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1128         (md_relax_table): Define specific relax for PC-rel offsets.
1129         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1130         (m68hc11_relax_frag): Handle the new relax code.
1131         (md_convert_frag): Likewise.
1132         (md_estimate_size_before_relax): Likewise.
1134 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
1136         * subsegs.c (section_symbol): Use the symbol, not the section, name.
1138 2002-12-05  Richard Henderson  <rth@redhat.com>
1140         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1141         (ia64_gen_real_reloc_type): Handle it.
1142         (pseudo_func): Add @ltoffx.
1143         (md_begin): Build .<ltoffx>.
1144         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1146 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
1148         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1149         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1150         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1151         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1152         COFF to call arm_force_relocation.
1154 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
1156         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1157         instruction.
1158         (emit_one_bundle): Handle "hint" instruction.
1159         (operand_match): Match IA64_OPND_AR_CSD.
1161 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
1163         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
1164         inside #if.
1166 2002-12-03  Nick Clifton  <nickc@redhat.com>
1168         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1169         .PPC.EMB.apuinfo sections.
1171 2002-12-03  Richard Henderson  <rth@redhat.com>
1173         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1175 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
1177         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
1178         (cons, s_align_bytes): Delete declaration.
1179         (relax): Delete.
1180         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
1181         strings common.
1182         (dot): Delete unused function.
1183         (w65_expression): Remove unused arg.
1184         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
1185         call.
1186         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
1187         parse_exp call.
1188         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
1189         value.
1190         (check): Remove unused function.
1191         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
1192         on unhandled switch case.
1193         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
1194         "opcode".
1195         (tc_crawl_symbol_chain): Delete unused function.
1196         (tc_headers_hook): Likewise.
1197         (tc_Nout_fix_to_chars): Likewise.
1198         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1199         (md_parse_option): Likewise.
1200         (md_convert_frag): Likewise.
1201         (tc_coff_symbol_emit_hook): Likewise.
1202         (md_show_usage): Likewise.
1203         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1204         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1205         (w65_expression): Declare.
1207         * po/POTFILES.in: Regenerate.
1209         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1210         and ARM_ADRL_IMMEDIATE.
1212 2002-12-02  Nick Clifton  <nickc@redhat.com>
1214         * gasp.c: Delete.  It has been deprecated.
1215         * NEWS: Mention that gasp has been removed.
1216         * Makefile.am: Remove references to gasp.
1217         * makefile.vms: Likewise.
1218         * mpw-make.sed: Likewise.
1219         * Makeile.in: Regenerate.
1220         * doc/gasp.texi: Delete.
1221         * doc/Makefile.am: Remove references to gasp.texi.
1222         * doc/Makefile.in: Regenerate.
1223         * macro.c: Delete references to gasp.
1224         Remove use of comment_char function parameter as it is no longer
1225         needed.
1226         * macro.h: Update prototypes to remove comment_char parameter.
1227         Fix formatting.
1228         * read.c (read_a_source_file, s_irp): Remove comment_char
1229         parameter from invocation of functions in macro.c
1231 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
1233         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1235 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1237         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1238         (tc_gen_reloc): Mark section param as not used.
1240 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1242         Fix Bug savannah/1825:
1243         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1244         that are not pc-relative.
1245         (m68hc11_relax_frag): Declare.
1247         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1248         the offsetable indexed addressing modes (n,r).
1249         (build_insn): Cleanup some locals.
1250         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1251         relaxation of difference between two symbols of same section.
1252         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1253         only when this is a PC-relative operand and the offset is not absolute.
1254         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1255         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1256         be handled by m68hc11_relax_frag.
1258 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1260         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1261         (32-bit int, 64-bit double).
1262         (md_longopts): New options -mshort, -mlong, -mshort-double and
1263         -mlong-double to control the ABI.
1264         (md_show_usage): Update.
1265         (md_parse_option): Handle new options.
1266         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1268 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1270         * symbols.c (report_op_error): New function, broken out of ...
1271         (resolve_symbol_value): ... here. Use for both monadic and dyadic
1272         operators.
1274 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1276         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1277         for BFD_RELOC_32_PLT_PCREL.
1279 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
1281         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1282         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1283         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1284         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1285         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1286         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1287         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1288         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1289         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1290         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1291         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1292         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1293         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1294         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1295         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
1296         TRUE/FALSE.  Formatting.
1298 2002-11-29  Nick Clifton  <nickc@redhat.com>
1300         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1301         assume a value of zero.
1302         (do_bkpt): Likewise.
1304 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1306         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1307         for TLS relocations.
1309 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
1311         * config/tc-ia64.c (md_apply_fix3): Add default case.
1313 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1315         * symbols.c (S_SET_THREAD_LOCAL): New function.
1316         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1317         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1318         for TLS relocations.
1319         * config/tc-ia64.c (md_apply_fix3): Likewise.
1320         * config/tc-alpha.c (md_apply_fix3): Likewise.
1322 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1324         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1325         to entsize.
1327 2002-11-26  DJ Delorie  <dj@redhat.com.
1329         * dwarf2dbg.c (scale_addr_delta): New.
1330         (size_inc_line_addr): Use it.
1331         (emit_inc_line_addr): Use it.
1333 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
1335         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1336         (md_assemble): Don't pass on branches to constants as relaxable.
1337         Tweak comment.
1339 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
1341         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1343 2002-11-21  Randolph Chung  <randolph@tausq.org>
1345         * config/tc-hppa.h (tc_frob_symbol):  Frob undefined unused symbols
1346         only if they have default visibility.
1348 2002-11-21  Richard Henderson  <rth@redhat.com>
1350         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1351         S_IS_DEFINED test.
1353 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
1355         * config/tc-mcore.c (mcore_pool_count): New function.
1356         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1358 2002-11-20  Klee Dienes  <kdienes@apple.com>
1360         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
1361         coalesce the name fields to use the same pointer.
1363         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
1364         the name fields to use the same pointer.
1365         (get_specific): Check for opcodes with the same name using strcmp
1366         as well as comparing the pointer.
1368 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
1370         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1371         fx_subsy non-NULL.
1373 2002-11-19  Richard Henderson  <rth@redhat.com>
1375         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1376         visibility portion of st_other.
1378 2002-11-19  Klee Dienes  <kdienes@apple.com>
1380         * config/tc-h8300.c (struct h8_instruction): New type, used to
1381         wrap h8_opcodes with length, noperands, idx, and size fields
1382         (computed at run-time).
1383         (h8_instructions): New variable.
1384         (md_begin): Allocate the storage for h8_instructions.  Fill
1385         h8_instructions with pointers to the appropriate opcode and the
1386         correct value for the additional fields.
1387         (clever_message): Update to use h8_instructions instead of
1388         h8_opcodes.
1389         (build_bytes): Ditto.
1390         (get_specific): Ditto.
1391         (md_assemble): Ditto.
1393 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1395         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1396         adjustments to symbols in merge sections.
1398 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
1400         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1402 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
1404         * dwarf2dbg.h (dwarf2_format): New enum.
1405         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1406         (out_debug_line, out_debug_info): Add code for handling 64-bit
1407         DWARF 2 formats.
1408         * config/tc-mips.h (mips_dwarf2_format): Declare.
1409         * config/tc-mips.c (mips_dwarf2_format): New function.
1410         * doc/internals.texi (DWARF2_FORMAT): Document.
1412 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
1414         * config/tc-mips.c (s_change_section): Make sure input buffer
1415         is not accessed past the end.  Don't hand
1416         obj_elf_change_section a pointer into the input buffer.
1418 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
1420         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1421         GOT_LO16 on NEWABI.
1423 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1425         * config/tc-tic4x.c: Fixed proper commandline
1426         parameters. Added support for new opcode-list format. General
1427         error message fixups.
1428         (c4x_inst_add): Reject insn not for our CPU
1429         (md_begin): Added matrix for setting the proper opcode-level &
1430         device-flags according to cpu type and revision. Rewrite the
1431         opcode hasher.
1432         (c4x_operand_parse): Fix opcode bug
1433         (c4x_operands_match): New function argument. Added dry-run
1434         mechanism, that is optional error generation. Added constraint 'i'
1435         and 'j'.
1436         (c4x_insn_check): Added new function for post-verification of the
1437         generated insn.
1438         (md_assemble): Check all opcodes before croaking because of an
1439         argument mismatch. Need this to be able to fully support
1440         ortogonally arguments.
1441         (md_parse_options): Revised commandprompt swicthes and added new
1442         ones.
1443         (md_show_usage): Complete rewrite of printout.
1445 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
1447         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1448           (c4x_operands_match): Added check for 8-bits LDF insn. Give
1449           warning when using constant direct bigger than 2^16. Add the new
1450           arguments.
1452 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1454         * configure.in: Use .gdbinit under Cygwin.
1455         * configure: Regenerate.
1457 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1459         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1460         STRICT_PE_FORMAT.
1462 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
1464         * config/tc-tic4x.c: Declare as many functions as possible as
1465         static. Maintenance on the general indenting. Removed unnecessary
1466         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1467         function. Add support for new DSP, TMS320VC33. Fix bug for
1468         converting flonum constants.
1469         (c4x_do_align): Add proper align handling. Setup align to insert
1470         NOP's.
1471         (c4x_gen_to_words): Support for extended TI type floats.
1472         (md_atof): Proper dumping of multiple-word littlenums.
1473         (c4x_atof): Added support for extended TI type floats.
1474         (c4x_stringer): Added new function to handle compact strings.
1475         (c4x_emit_char): Added new function argument to handle custom
1476         length inserts, like single-byte strings.
1477         * config/tc-tic4x.h: Add proper align handling with NOP's.
1478         * Makefile.am: Added tic4x dependecy
1479         * Makefile.in: Regenerate
1481 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
1483         * macro.c (get_any_string): Correct logic for not going beyond end
1484         of in->ptr[].
1486 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
1488         * config/tc-mmix.c (get_putget_operands): Mark both possible
1489         operands as invalid at beginning.
1491         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1492         Initialize target of fixup to zero.
1494 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
1496         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1497         NEWABI, but we should still emit HI16_S for non-PIC n32.
1499 2002-11-06  Richard Henderson  <rth@redhat.com>
1501         * config/tc-alpha.c (alpha_validate_fix): Move code ...
1502         (alpha_fix_adjustable): ... here.
1503         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1505 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
1507         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1508         of a label.
1510 2002-11-05  H.J. Lu <hjl@gnu.org>
1512         * config/tc-mips.c (support_64bit_objects): Check *l before it
1513         is freed.
1515 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
1517         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1518         SEC_LOAD flags for sections marked as 's'.
1520 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
1522         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1523         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1524         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1525         default.
1527         * dep-in.sed: Fix typo.
1529 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
1531         * configure.in: Update ARM CPU patterns.
1532         * configure: Regenerated.
1534 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
1536         * itbl-lex.l: Use #include <> for generated headers.
1537         * itbl-ops.c: Likewise.
1539 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
1541         * doc/gasp.texi: Fix typo in deprecation note.
1543 2002-10-23  Nick Clifton  <nickc@redhat.com>
1545         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1546         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1548 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
1550         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1551         (tc_frob_file_before_adjust): Don't define.
1552         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1553         function.
1554         (mmix_frob_file_before_adjust): Remove ineffective function.
1556 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
1558         * config/tc-cris.c (SIMPLE_EXPR): New macro.
1559         (cris_relax_frag): New function.
1560         (md_estimate_size_before_relax) <case ENCODE_RELAX
1561         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1562         expressions that will become absolute expressions to relaxation.
1563         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1564         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
1565         value, not distance to symbol.
1566         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1567         Ditto.  Correct placement of fixup.
1568         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1569         (gen_bdap): Ditto.
1570         * config/tc-cris.h (cris_relax_frag): Declare.
1571         (md_relax_frag): Define.
1573 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
1575         * config/obj-elf.c (special_sections): Use correct types for init
1576         array sections.
1577         (obj_elf_change_section): Don't mess with init array section type.
1579 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
1581         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1582         for relocs against symbols in a merged section.
1584 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
1586         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1587         table as register names.
1589 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
1591         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1592         for option -m31.
1594 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1596         * expr.c (operand): Add support for n.nn flonums.
1598 2002-10-17  Johannes Stezenbach  <js@convergence.de>
1600         * itbl-parse.y (entry): Provide empty action.
1602 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
1604         * configure.in (BFDVER_H): Set and subst.
1605         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1606         * Makefile.am: Run "make dep-am".
1607         (BFDVER_H): Define.
1608         * configure: Regenerate.
1609         * Makefile.in: Regenerate.
1610         * doc/Makefile.in: Regenerate.
1612 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
1614         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1615         (MD_APPLY_SYM_VALUE): Define for PE too.
1617 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
1619         * Makefile.am: Run "make dep-am".
1620         (CPU_OBJ_VALID): sh64 coff is invalid.
1621         * as.c: #include "bfdver.h".
1622         * Makefile.in: Regenerate.
1623         * config.in: Regenerate.
1625 2002-10-14  Momchil Velikov  <velco@fadata.bg>
1627         * config/tc-v850.c (CHECK_): Remove token pasting operator.
1629 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
1631         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1632         * configure: Regenerate.
1634 2002-10-13  Eric Christopher  <echristo@redhat.com>
1635             Alexandre Oliva  <aoliva@redhat.com>
1637         * config/tc-mips.c (s_gpdword): New function.
1638         (mips_pseudo_table): Add .gpdword.
1639         (mips_need_elf_addend_fixup): never for NEWABI.
1640         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1641         GPREL32 as done.
1642         (s_cpadd): Generate .cpadd on NEWABI.
1644 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
1646         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1648 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
1650         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1651         (md_relax_frag): Adjust macro.
1652         * config/tc-mips.c (mips_relax_branch): New variable.
1653         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1654         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1655         (RELAX_MIPS16_P): Adjust.
1656         (append_insn): Emit branch to non-constant in a frag_var if
1657         branch-relaxation is desirable and possible.
1658         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1659         (OPTION_ELF_BASE): Adjust.
1660         (md_parse_option): Handle new options.
1661         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1662         branch relaxation.
1663         (relaxed_branch_length): New function.
1664         (md_estimate_size_before_relax): Handle branch frags.
1665         (mips_relax_frag): Likewise.
1666         (md_convert_frag): Handle branch frags.  Warn if branch is
1667         relaxed.
1669 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1671         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1672         emitted.
1673         (md_apply_fix3): Add TLS relocs.
1674         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1675         @DTPOFF.
1677 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
1678             Alan Modra  <amodra@bigpond.net.au>
1680         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1681         (md_estimate_size_before_relax): Likewise for 8 bit branches.
1683 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
1685         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1686         inside loop.
1688 2002-10-09  Richard Shann <richard.shann@superh.com>
1689             Stephen Clarke <stephen.clarke@superh.com>
1691         * config/tc-sh64.c (sh64_target_format): Add support for sh64
1692         Linux environment.
1694 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1696         * contig/tc-sh.c (sh_local_pcrel): New.
1697         (sh_force_relocation): Use sh_local_pcrel.
1698         (md_pcrel_from_section): Check the relocation type whether it
1699         should be resolved locally. Use S_FORCE_RELOC.
1701 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
1703         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1704         (TC_FORCE_RELOCATION): Tidy arg.
1706 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
1707             Ken Raeburn  <raeburn@cygnus.com>
1708             Aldy Hernandez  <aldyh@redhat.com>
1709             DJ Delorie  <dj@redhat.com>
1710             Michael Meissner  <meissner@redhat.com>
1711             Eric Christopher  <echristo@redhat.com>
1712             Richard Sandiford  <rsandifo@redhat.com>
1714         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1715         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
1716         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1717         (hilo_interlocks): True for CPU_VR5500.
1718         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1719         (mips_fix_vr4122_bugs): New.
1720         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1721         (mips_emit_delays): Likewise.
1722         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1723         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1724         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1725         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1726         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1727         (OPTION_ELF_BASE): Bump.
1728         (md_parse_option): Handle the new options.
1729         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1730         vr5400 and vr5500.
1732 2002-09-29  H.J. Lu <hjl@gnu.org>
1734         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1735         twice if howto->pcrel_offset is true.
1737 2002-09-28  Matt Thomas  <matt@3am-software.com>
1738             Jason Thorpe  <thorpej@wasabisystems.com>
1740         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1741         convert undefined references to GOT32/PLT32 if PIC code is
1742         requested.  Fix comment.
1744 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1746         * config/tc-sh.c (sh_force_relocation): Return 0 for
1747         some PC relative relocations when not relaxing.
1749 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
1751         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1752         Define them if not BFD_ASSEMBLER.
1753         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1754         @tlsld.
1755         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1756         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1757         (tc_gen_reloc): Handle x86-64 TLS relocs.
1759 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
1761         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1762         fixups to current or absolute section.
1764 2002-09-26  Jim Wilson  <wilson@redhat.com>
1766         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1767         and frag_more.
1769 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1771         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1772         capable configuration.
1773         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1774         generation.
1775         (mips_ip): Likewise.
1777 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1779         * config/tc-mips.c (append_insn): Fix jump overflow check.
1781 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
1783         * config/tc-i386.c (process_operands): Warn about "lea" segment
1784         overrides.
1786 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
1788         * write.c: Delete set_segment_vma and prototype. Update all callers.
1790 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
1792         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1793         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
1794         Rename "fseg" to "sym_seg".
1795         * Makefile.am: Run "make dep-am".
1796         * Makefile.in: Regenerate.
1797         * doc/Makefile.in: Regenerate.
1799 2002-09-20  Nick Clifton  <nickc@redhat.com>
1801         * symbols.c (colon): Do not allow symbols to be created in the
1802         absolute section if WORKING_DOT_WORD is not defined and
1803         new_broken_words would require a new frag to be created.
1805 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
1807         * expr.c (expr): Simplify foo-foo here.
1808         (clean_up_expression): Remove O_subtract code.
1810         * write.h (struct fix): Add fx_dot_value.
1811         (dot_value): Declare.
1812         * write.c (dot_value): New var.
1813         (fix_new_internal): Save dot_value as fx_dot_value.
1814         (fixup_segment): Adjust fx_offset using fx_dot_value.
1815         * expr.c (expr): Update dot_value.
1817 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
1819         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1820         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1821         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1822         if not defined.
1823         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1824         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1825         BFD_RELOC_386_TLS_GOTIE.
1827 2002-09-19  Richard Henderson  <rth@redhat.com>
1829         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1830         branch type relocs.
1831         (alpha_force_relocation): Don't special-case branch type relocs.
1833 2002-09-19  Nick Clifton  <nickc@redhat.com>
1835         * config/tc-m68k.c (select_control_regs): Handle situation where
1836         architecture has not yet been selected.
1838 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
1840         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1841         (IS_SEXT_16BIT_NUM): New macro.
1842         (macro_build_ldst_constoffset): New function, to build a set of
1843         instructions to do a load or store from a constant offset relative
1844         to a given register.
1845         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1846         .cprestore pseudo-op.
1848 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
1850         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1852 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1854         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1856 2002-09-17  Stan Cox  <scox@redhat.com>
1858         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1859         (macro): Likewise for la.  Likewise for ld.
1860         (mips_after_parse_args): Make -xgot optional, not the default.
1861         (md_apply_fix3): Allow composite relocation to set up gp.
1862         (tc_gen_reloc): Allow relaxing for newabi.
1863         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1864         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1866 2002-09-17  Nick Clifton  <nickc@redhat.com>
1868         * config/tc-arm.c (md_apply_fix3): Note that an implemented
1869         BFD_RELOC_ARM_IMMEDIATE has been done.
1870         (tc_gen_reloc): Do not issue reloc number of unimplemented
1871         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1872         their name is already in the error message - plus remove them
1873         from the default case.
1875         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1876         behavior of instructions.
1878 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
1880         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1881         Convert functions to K&R format.
1883 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1885         * config/tc-mips.c (pdr_seg): Define only for ELF.
1886         (s_change_section): Remove unused variable. Don't use for nonELF.
1888 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1890         * config/obj-elf.c (obj_elf_change_section): Move prototype to
1891         obj-elf.h
1892         * config/obj-elf.h (obj_elf_change_section): Likewise.
1894 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
1896         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1897         (out_debug_info): Likewise.
1899 2002-09-16  Bruno Haible  <bruno@clisp.org>
1901         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1902         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1903         * config/tc-i386.c (i386_target_format): Likewise.
1904         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1905         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1907 2002-09-13  Nick Clifton  <nickc@redhat.com>
1909         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1910         when deciding if any operands have been skipped.
1912 2002-09-11  Nick Clifton  <nickc@redhat.com>
1914         * NEWS: New TI port supports both C4x and C3x series of DSPs.
1916         * po/tr.po: Updated Turkish translation.
1918 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1920         * config/tc-i386.c (md_apply_fix3): Allow addend for
1921         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1922         BFD_RELOC_386_TLS_LE_32.
1924 2002-09-05  Jeff Law  <law@redhat.com>
1926         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1927         marker relocations such as ENTRY/EXIT.
1928         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1929         to both OBJ_ELF and OBJ_SOM.
1931 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
1933         * doc/internals.texi (md_apply_fix3): Expand.
1934         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1935         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1936         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1937         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1938         EXTERN_FORCE_RELOC): Document.
1939         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1940         * as.h: Don't include struc-symbol.h for arc.
1941         (IS_ELF): Define.
1942         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1943         subtract absolute symbol.
1944         * obj.h (struct format_ops): Add frob_file_before_fix.
1945         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1946         * symbols.c (S_FORCE_RELOC): New function.
1947         * symbols.h (S_FORCE_RELOC): Declare.
1948         * write.c (TC_FORCE_RELOCATION): Change default.
1949         (TC_FORCE_RELOCATION_ABS): Define.
1950         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1951         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1952         (TC_FORCE_RELOCATION_SECTION): Don't define.
1953         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1954         (TC_FORCE_RELOCATION_SUB_ABS): Define.
1955         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1956         (TC_VALIDATE_FIX_SUB): Define.
1957         (TC_FIX_ADJUSTABLE): Don't define.
1958         (MD_APPLY_SYM_VALUE): Define this instead.
1959         (abs_section_sym): New variable.
1960         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
1961         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
1962         Don't put the absolute section sym on fixups here.
1963         (fix_segment): New function.
1964         (write_relocs): Don't call fixup_segment from here.
1965         (write_object_file): Instead call tc_frob_file_before_fix,
1966         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1967         Don't output the absolute section symbol.
1968         (fixup_segment): Rewrite.
1969         * write.h (abs_section_sym): Declare.
1970         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1971         obj_aout_frob_file.
1972         (aout_format_ops): Adjust to suit.
1973         * config/obj-aout.h (obj_frob_file): Don't define.
1974         (obj_frob_file_before_fix): Define.
1975         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1976         (S_FORCE_RELOC): Define.
1977         * config/obj-bout.h (S_FORCE_RELOC): Define.
1978         * config/obj-coff.c (coff_format_ops): Init new field.
1979         * config/obj-coff.h: Formatting fixes.
1980         (obj_sec_sym_ok_for_reloc): Define.
1981         (S_FORCE_RELOC): Define.
1982         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1983         (ecoff_frob_file): .. from here.
1984         (ecoff_format_ops): Add new function.
1985         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1986         (obj_frob_file_before_fix): Define.
1987         * config/obj-elf.c (elf_format_ops): Init new field.
1988         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1989         * config/obj-ieee.h: Formatting fixes.
1990         (S_FORCE_RELOC): Define.
1991         * config/obj-multi.h (obj_frob_file_before_fix): Define.
1992         * config/obj-vms.h (S_FORCE_RELOC): Define.
1993         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1994         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1995         for BFD_RELOC_32 and BFD_RELOC_64.
1996         (alpha_fix_adjustable): Remove extern and weak tests.
1997         (alpha_before_fix): Rename from alpha_adjust_symtab.
1998         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1999         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2000         (TC_VALIDATE_FIX): Tweak param name.
2001         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2002         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2003         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2004         (MD_APPLY_SYM_VALUE): Define.
2005         (tc_adjust_symtab): Don't define.
2006         (alpha_adjust_symtab): Don't declare.
2007         (tc_frob_file_before_fix): Define.
2008         (alpha_before_fix): Declare.
2009         (TC_INIT_FIX_DATA): Tweak param names.
2010         * config/tc-arc.c: Include "struc-symbol.h".
2011         (md_pcrel_from): Remove undefined sym fudge.
2012         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2013         Don't set fx_addnumber.
2014         (tc_gen_reloc): Remove spurious fx_addnumber comment.
2015         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2016         (EXTERN_FORCE_RELOC): Define.
2017         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2018         (tc_gen_reloc): Fudge ARM_GOTPC addend.
2019         (arm_validate_fix): Return void.
2020         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2021         Add plt and got reloc tests.
2022         (arm_force_relocation): Call S_FORCE_RELOC.
2023         * config/tc-arm.h (struct fix): Forward declare.
2024         (TC_VALIDATE_FIX): No longer set add_symbolP.
2025         (arm_validate_fix): Adjust declaration.
2026         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2027         (TC_FORCE_RELOCATION): Tweak param name.
2028         (TC_INIT_FIX_DATA): Likewise.
2029         (obj_fix_adjustable): Don't define.
2030         (tc_fix_adjustable): Call arm_fix_adjustable.
2031         (TC_FIX_ADJUSTABLE): Don't define.
2032         (MD_APPLY_SYM_VALUE): Define.
2033         (EXTERN_FORCE_RELOC): Define.
2034         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2035         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2036         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2037         Remove *valP fudges and code to subtract abs sym.  Don't set
2038         fx_addnumber.
2039         * config/tc-avr.h: Formatting.
2040         (EXTERN_FORCE_RELOC): Define.
2041         (MD_APPLY_SYM_VALUE): Define.
2042         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2043         (md_apply_fix3): Remove code to subtract abs sym.
2044         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
2045         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2046         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2047         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2048         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2049         (tc_fix_adjustable): Remove extern, weak tests.
2050         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2051         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
2052         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
2053         and code to subtract abs sym.
2054         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2055         (d10v_force_relocation): Call S_FORCE_RELOC.
2056         * config/tc-d10v.h: Don't include write.h.
2057         (struct fix): Instead, forward declare.
2058         (MD_PCREL_FROM_SECTION): Tweak param names.
2059         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2060         (d10v_fix_adjustable): Likewise.
2061         (obj_fix_adjustable): Don't define.
2062         (tc_fix_adjustable): Define.
2063         (TC_FORCE_RELOCATION): Tweak param name.
2064         (MD_APPLY_SYM_VALUE): Define.
2065         (EXTERN_FORCE_RELOC): Define.
2066         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2067         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
2068         and code to subtract abs sym.
2069         * config/tc-d30v.h: Don't include write.h.
2070         (struct fix): Instead, forward declare.
2071         (MD_PCREL_FROM_SECTION): Tweak param names.
2072         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2073         (MD_APPLY_SYM_VALUE): Define.
2074         (EXTERN_FORCE_RELOC): Define.
2075         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2076         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2077         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2078         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2079         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2080         Don't use fx_addnumber.
2081         * config/tc-dlx.h: Don't include write.h.
2082         (md_convert_frag): We're not alpha twice over.
2083         (EXTERN_FORCE_RELOC): Define.
2084         (obj_fix_adjustable): Don't define.
2085         (tc_fix_adjustable): Define.
2086         (TC_FIX_ADJUSTABLE): Don't define.
2087         (MD_APPLY_SYM_VALUE): Define.
2088         (LOCAL_LABELS_DOLLAR): Undef always.
2089         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2090         (fr30_fix_adjustable): Remove extern, weak tests.
2091         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2092         (obj_fix_adjustable): Don't define.
2093         (tc_fix_adjustable): Define.
2094         (struct fix): Forward declare.
2095         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
2096         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2097         (frv_fix_adjustable): Don't do extern, weak tests.
2098         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2099         (TC_FIX_ADJUSTABLE): Don't define.
2100         (obj_fix_adjustable): Don't define.
2101         (tc_fix_adjustable): Define.
2102         (struct fix): Forward declare.
2103         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
2104         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2105         * config/tc-h8300.h (struct fix): Forward declare.
2106         (EXTERN_FORCE_RELOC): Define.
2107         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2108         (hppa_fix_adjustable): Don't test extern or weak.  Don't
2109         symbol_mark_used_in_reloc.
2110         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2111         and S_IS_WEAK.
2112         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2113         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2114         (TC_FORCE_RELOCATION_SECTION): Don't define.
2115         (MD_APPLY_SYM_VALUE): Define.
2116         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2117         to subtract abs sym.
2118         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2119         (MD_APPLY_SYM_VALUE): Define.
2120         (MD_PCREL_FROM_SECTION): Tweak param name.
2121         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2122         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2123         (i386_force_relocation): New function.
2124         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2125         (TC_VALIDATE_FIX): Likewise.
2126         (TC_FIX_ADJUSTABLE): Don't define.
2127         (MD_APPLY_SYM_VALUE): Define.
2128         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2129         (i386_force_relocation): Declare.
2130         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2131         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2132         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2133         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2134         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2135         (EXTERN_FORCE_RELOC): Define.
2136         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
2137         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
2138         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
2139         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2140         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2141         Remove #if 0 code.  Invert return boolean.
2142         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2143         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2144         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2145         (tc_coff_sizemachdep): Prototype.
2146         (i960_handle_align): Likewise.
2147         (i960_validate_fix): Adjust declaration.
2148         (reloc_callj): Likewise.
2149         (EXTERN_FORCE_RELOC): Define.
2150         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2151         (TC_FORCE_RELOCATION_ABS): Define.
2152         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2153         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2154         (TC_FIX_ADJUSTABLE): Don't define.
2155         (MD_APPLY_SYM_VALUE): Define.
2156         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2157         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2158         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2159         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2160         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2161         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2162         (MD_APPLY_SYM_VALUE): Define.
2163         (EXTERN_FORCE_RELOC): Define.
2164         (TC_FORCE_RELOCATION): Tweak param name.
2165         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2166         (m32r_fix_adjustable): Don't test extern, weak.
2167         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2168         (MD_APPLY_SYM_VALUE): Define.
2169         (obj_fix_adjustable): Don't define.
2170         (tc_fix_adjustable): Define.
2171         (tc_frob_file): Don't define.
2172         (tc_frob_file_before_fix): Define.
2173         (EXTERN_FORCE_RELOC): Define.
2174         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
2175         BFD_RELOC_VTABLE_ENTRY address.
2176         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2177         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2178         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2179         Remove duplicated fx_done code.
2180         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2181         (EXTERN_FORCE_RELOC): Define.
2182         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2183         relaxable_symbol.
2184         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2185         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2186         (TC_FIX_ADJUSTABLE): Don't define.
2187         (EXTERN_FORCE_RELOC): Define.
2188         (MD_APPLY_SYM_VALUE): Define.
2189         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2190         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2191         Remove fx_addsy tests.
2192         (mcore_force_relocation): Call S_FORCE_RELOC.
2193         (mcore_fix_adjustable): Don't test fx_addsy.
2194         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2195         (EXTERN_FORCE_RELOC): Define.
2196         (obj_fix_adjustable): Don't define.
2197         (tc_fix_adjustable): Define.
2198         (MD_APPLY_SYM_VALUE): Define.
2199         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2200         (mips_pic): No longer static.
2201         (mips_force_relocation): Call S_FORCE_RELOC.
2202         (mips_fix_adjustable): Remove extern, weak tests.
2203         * config/tc-mips.h (enum mips_pic_level): Declare.
2204         (mips_pic): Declare.
2205         (tc_frob_file): Don't define.
2206         (tc_frob_file_before_fix): Define this instead.
2207         (EXTERN_FORCE_RELOC): Define.
2208         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2209         with reg_section tests.  Set fx_done instead of calling
2210         symbol_clear_used_in_reloc on bad relocs.
2211         (tc_gen_reloc): Zero fx_addsy on bad relocs.
2212         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
2213         (mmix_adjust_symtab): Simplify list handling.  Abort on any
2214         nonsense.
2215         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
2216         BFD_RELOC_MMIX_LOCAL.
2217         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
2218         (EXTERN_FORCE_RELOC): Define.
2219         (MD_PCREL_FROM_SECTION): Tweak param name.
2220         (tc_frob_file): Don't define.
2221         (tc_frob_file_before_fix): Define this instead.
2222         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2223         Remove SEC_CODE checks.
2224         (mn10300_fix_adjustable): Remove extern and weak tests.
2225         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2226         (TC_FORCE_RELOCATION): Tweak param name.
2227         (obj_fix_adjustable): Don't define.
2228         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2229         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2230         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2231         (openrisc_fix_adjustable): Don't test fx_addsy.
2232         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2233         (obj_fix_adjustable): Don't define.
2234         (tc_fix_adjustable): Define this instead.
2235         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2236         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2237         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2238         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2239         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2240         (MD_APPLY_SYM_VALUE): Define.
2241         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2242         Don't subtract symbol value.
2243         * config/tc-pj.h (md_pcrel_from): Tweak param name.
2244         (EXTERN_FORCE_RELOC): Define.
2245         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2246         (MD_APPLY_SYM_VALUE): Define.
2247         (obj_fix_adjustable): Don't define.
2248         (tc_fix_adjustable): Define this instead.
2249         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2250         section sym.
2251         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2252         (ppc_force_relocation <elf version>): New.
2253         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2254         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
2255         comments.  Don't subtract fx_subsy as that is already done.
2256         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2257         (MD_PCREL_FROM_SECTION): Likewise.
2258         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2259         ppc_force_relocation.
2260         (TC_FORCE_RELOCATION_SECTION): Delete.
2261         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2262         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2263         (MD_APPLY_SYM_VALUE): Define.
2264         * config/tc-s390.c: #include "dwarf2dbg.h".
2265         (s390_insn): Remove excess parens.
2266         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2267         (tc_s390_force_relocation): Call S_FORCE_RELOC.
2268         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
2269         non-NULL.  Don't subtract off fx_addsy value.
2270         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2271         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2272         (TC_FIX_ADJUSTABLE): Don't define.
2273         (MD_APPLY_SYM_VALUE): Define.
2274         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2275         (SWITCH_TABLE): Likewise.
2276         (sh_force_relocation): Call S_FORCE_RELOC.
2277         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2278         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2279         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2280         fx_addnumber is zero on entry.  Save val in fx_addnumber.
2281         (tc_gen_reloc): Don't subtract fx_subsy.
2282         * config/tc-sh.h (struct fix): Move.
2283         (obj_fix_adjustable): Don't define.
2284         (tc_fix_adjustable): Define this instead.
2285         (TC_FIX_ADJUSTABLE): Don't define.
2286         (MD_APPLY_SYM_VALUE): Define.
2287         (SWITCH_TABLE_CONS): Define.
2288         (SWITCH_TABLE): Define.
2289         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2290         (TC_VALIDATE_FIX_SUB): Define.
2291         (MD_PCREL_FROM_SECTION): Tweak param name.
2292         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2293         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2294         (TC_FORCE_RELOCATION_SUB_ABS): Define.
2295         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2296         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2297         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2298         (TC_VALIDATE_FIX_SUB): Define.
2299         (MD_PCREL_FROM_SECTION): Tweak param name.
2300         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2301         (tc_gen_reloc): Use S_FORCE_RELOC.
2302         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2303         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2304         (TC_FORCE_RELOCATION_ABS): Define this instead.
2305         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2306         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2307         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
2308         (MD_APPLY_SYM_VALUE): Define.
2309         (TC_FIX_DATA_PRINT): Tweak param name.
2310         * config/tc-tic30.c (USE_STDOUT): Don't define.
2311         (md_parse_option): Remove stupid debug code.
2312         (tc_gen_reloc): Don't use fx_addnumber.
2313         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2314         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
2315         * config/tc-v850.h (obj_fix_adjustable): Don't define.
2316         (tc_fix_adjustable): Define this instead.
2317         (TC_FIX_ADJUSTABLE): Don't define.
2318         (MD_APPLY_SYM_VALUE): Define this instead.
2319         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2320         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2321         (TC_FIX_ADJUSTABLE): Don't define.
2322         (MD_APPLY_SYM_VALUE): Define this instead.
2323         (tc_fix_adjustable): Remove extern and weak tests.
2324         * config/tc-w65.h (struct fix): Forward declare.
2325         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2326         S_FORCE_RELOC.
2327         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
2328         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
2329         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2330         absolute symbol.
2331         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2332         (MD_APPLY_SYM_VALUE): Define.
2333         (obj_fix_adjustable): Don't define.
2334         (tc_fix_adjustable): Define this instead.
2335         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
2337 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
2339         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2340         (ppc_fix_adjustable <coff version>): Cleanup.
2342         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2343         (md_parse_option): No -a64 without BFD64.
2344         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2345         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2347 2002-09-04  Nick Clifton  <nickc@redhat.com>
2349         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2350         instructions into the hash table if the target cpu is the BookE32.
2352 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
2354         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2355         ATTRIBUTE_UNUSED.
2357 2000-08-28  Catherine Moore  <clm@redhat.com>
2359         * tc-v850.c (v850_relax): Declare.
2360         (v850_longcode): New routine.
2361         (v850_handle_align): New routine.
2362         (md_pseudo_table):  Add longcall and longjump.
2363         (md_parse_option): Check for relax option.
2364         (tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
2365         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2366         (md_apply_fix3): Likewise.
2367         (v850_force_relocation): Likewise.
2368         (v850_comm): Change the current section.
2369         (md_assemble):  Ensure that the correct value is put in the
2370         fixup.
2371         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2372         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2373         Remove redundant v850ea support.
2374         * tc-v850.h (HANDLE_ALIGN): Define.
2375         (v850_handle_align): Declare.
2376         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2378 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
2380         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2381         * configure: Regenerate.
2382         * NEWS: Mention new port.
2384 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2386         * config/obj-coff.c: Add sdef definition.
2387         * config/obj-coff.h: Add tic4x include file and set
2388         target format.
2389         * config/tc-tic4x.c: New file.
2390         * config/tc-tic4x.h: New file.
2392 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
2394         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2395         (TC_ADJUST_RELOC_COUNT): Tweak param name.
2396         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2397         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2398         (RELOC_ENUM): Define.
2399         (fix_new_internal): Use RELOC_ENUM.
2400         (fix_new, fix_new_exp): Likewise.
2401         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
2402         Replace gotos with continue.
2403         (write_relocs): Formatting.  Avoid symbol loops in
2404         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
2405         errors, and error number in other cases.
2406         (fixup_segment): Remove param names from prototype.  Rename
2407         "this_segment_type" to "this_segment".  Update linkrelax comment.
2408         Remove "size, "place" and "where" local vars.  Formatting.  Update
2409         "no symbol" comment.  Remove #if 0 and #if 1.
2411         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
2413 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
2415         * dwarf2dbg.c: Always include dwarf2dbg.h.
2416         (dwarf2_directive_file): Adjust dummy version args.
2417         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2418         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2419         when symbol values differ.
2420         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2421         (pseudo_set <O_subtract>): Remove unnecessary segment test.
2422         * config/obj-bout.c (obj_pseudo_table): Warning fix.
2424 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
2426         * config/tc-w65.c (md_section_align): Fix typo.
2427         (md_parse_option): Return 0, not 1.
2429 2002-08-22  Nick Clifton  <nickc@redhat.com>
2431         * doc/as.texinfo (Section): Note that if '@' is a comment
2432         character then another symbol is used to prefix the section's
2433         type.
2435 2002-08-22  Christian Groessler <chris@groessler.org>
2437         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2438         "case 0" case.
2440 2002-08-12  Graeme Peterson  <gp@qnx.com>
2442         * configure.in: Add support for sh-**-nto* target.
2443         * configure: Regenerate.
2445 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
2447         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2449 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2451         * config/tc-ppc.c (ppc_cleanup): Do something only if format
2452         is ELF.
2453         (ppc_apuinfo_section_add): Define only if format is ELF.
2454         (md_assemble): Emit APUinfo section only if format is ELF.
2455         Fix formatting.
2457 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
2459         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2460         * config/tc-frv.c: Likewise.
2461         * config/tc-hppa.c: Likewise.
2462         * config/tc-ia64.c: Likewise.
2463         * config/tc-ip2k.c: Likewise.
2464         * config/tc-m68hc11.c: Likewise.
2465         * config/tc-m68k.c: Likewise.
2466         * config/tc-mmix.c: Likewise.
2467         * config/tc-mn10300.c: Likewise.
2468         * config/tc-sh.c: Likewise.
2469         * config/tc-sparc.c: Likewise.
2470         * config/tc-v850.c: Likewise.
2472 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
2474         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2475         by zero.
2477 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2479         From matthew green  <mrg@redhat.com>
2481         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2482         PPC_OPCODE_PPC is, except for BookE architectures.
2483         (md_parse_option): Add support for -mspe.
2484         (md_show_usage): Add -mspe.
2485         (md_parse_option): Add support for -me500 and
2486         -me500x2 to generate code for Motorola e500 core complex.
2487         (md_show_usage): Add -me500 and -me500x2.
2489         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2490         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2491         PPC_APUINFO_BRLOCK): New macros.
2493         (ppc_cleanup): New function.
2494         (ppc_apuinfo_section_add): New function.
2495         (APUID): New macro.
2496         (md_assemble): Collect info and write the APUinfo section.
2498         * config/tc-ppc.h (md_cleanup): Define.
2499         (ppc_cleanup): Export.
2500         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2502 2002-08-17  Stan Cox  <scox@redhat.com>
2504         * config/obj-elf.c (obj_elf_change_section): Make non-static.
2505         config/tc-mips.c (s_change_section): New function to support
2506         IRIX .section pseudo-op.
2508 2002-08-16  Nick Clifton  <nickc@redhat.com>
2510         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2512 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
2514         * config/tc-mips.c (macro_build_jalr): Make sure we generate
2515         the fix-up against on the right frag.
2516         (s_cpsetup): Likewise.  Parse third argument as expression, to
2517         handle global symbols and forward/backward labels correctly.
2519 2002-08-14  Nick Clifton  <nickc@redhat.com>
2521         * read.c (stringer): Catch attempts to create strings in the abs
2522         section.
2524         * config/tc-alpha.c: Fix compiling for COFF targets.
2525         Some minor formatting tidyups.
2527 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2529         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2530         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2531         according to the reloc.
2532         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2533         (TC_FORCE_RELOCATION): Define.
2534         (tc_m68hc11_force_relocation): Declare.
2536         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2537         (s_m68hc11_relax): New function for relax group.
2538         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2539         beginning of jump instruction.
2540         (md_pcrel_from): Rename from md_pcrel_from_section and fix
2541         address computation.
2542         (tc-gen_reloc): Update.
2543         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2544         PC-relative fixup.
2545         (tc_m68hc11_force_relocation): New function, handle new relocs.
2546         (tc_m68hc11_fix_adjustable): New to make sure there are enough
2547         reloc for the linker relax pass.
2548         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2549         and VTABLE relocs.
2551 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2553         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2554         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2555         (s_m68hc11_mode): New function for .mode pseudo op.
2556         (s_m68hc11_mark_symbol): New function for .far and .interrupt
2557         pseudo op.
2558         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2559         (m68hc11_elf_final_processing): Declare.
2561 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2563         * config/tc-m68hc11.c (md_begin): Take into account additional
2564         page operand for call instruction.
2565         (print_opcode_format): Likewise.
2566         (check_range): Likewise for page range checking.
2567         (get_operand): Don't skip a possible comma in operands.
2568         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2569         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2570         (fixup24): New to handle call reloc.
2571         (build_insn): Handle missing page operand for call instruction.
2572         (find): Likewise.
2573         (md_apply_fix3): Take into account new relocs.
2574         (get_operand): Fix the mode for indexed indirect addressing.
2575         (build_indexed_byte): Fix post index byte for indexed indirect mode.
2577 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
2579         * config/tc-mips.c (mips_ip): Don't work out the value of
2580         constant %hi()s here.
2582 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
2584         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2585         for ELF, and don't bother checking ELF relocs when non-ELF.
2586         (i386_immediate): Allow absolute_section expressions for aout.
2587         (i386_displacement): Likewise.  Also test bfd_is_com_section.
2588         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2589         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2590         not when fx_addsy.  Remove dead code.
2592 2002-08-09  Graeme Peterson  <gp@qnx.com>
2594         * configure.in: Add support for ppc-*-nto* target.
2595         * configure: Regenerate.
2597 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
2599         * config/tc-i386.h: Reorganize.
2601 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2603         * config/tc-mips.c (macro): Handle a register plus a 16-bit
2604         immediate offset in "dla" and "la" expansions.
2606 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
2608         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
2609         Remove "bfd_gas=yes" from target table when covered later.
2610         Consolidate some entries.
2611         * configure: Regenerate
2613 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2615         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2616         at start of insn, pass it to output_disp and output_imm.
2617         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
2618         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2619         properly addend.
2620         (output_imm): Added arguments.  Compute properly addend for
2621         R_386_GOTPC.
2622         (md_apply_fix3): Remove R_386_GOTPC handling.
2624 2002-08-06  George France <france@handhelds.org>
2626         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
2627         and m21264b processor names and cpu types.
2628         * doc/c-alpha.texi: Documented new types.
2630 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
2632         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2634 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
2636         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2637         handling to BFD_RELOC_MIPS16_GPREL.
2639 2002-08-01  Nick Clifton  <nickc@redhat.com>
2641         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2642         pool is computed using signed arithmetic so that proper sign
2643         extension is performed if X_add_number is a 64-bit integer.
2645 2002-08-01  H.J. Lu  <hjl@gnu.org>
2646             Daniel Jacobowitz  <drow@mvista.com>
2648         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2649         .debug_line section unless it has line information.
2651 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2653         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2654         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2655         Allow default displacement size to be an option "--disp-size-default".
2656         (md_number_to_disp): Make error messages include value. Use %d to
2657         print integers, not %s.
2658         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2659         get duplicate messages sometimes.
2660         (convert_iif): Grow frag to max possible instruction size. Avoid
2661         creating unnecessary fixes.
2662         (md_number_to_field) Add prototype.
2663         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2664         prototypes and make static.
2665         (struct addr_mode): Make mode and scaled_mode explicitly signed.
2666         (evaluate_expr): Use resultP argument instead of exprP global.
2667         (get_addr_mode): Quiten compiler warnings.
2668         (encode_operand): eliminate unused variables. Quiten compiler
2669         warnings. Eliminate nul character in format strings.
2670         (parse): argc is unsigned.
2671         (reloc): Type cast index to quieten compiler.
2672         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2673         (md_convert_frag): Note unused parameters. Remove unused
2674         variables.
2675         (md_create_long_jump, md_create_short_jump,
2676         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2677         unused parameters.
2679 2002-07-31  Nick Clifton  <nickc@redhat.com>
2681         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2682         of the PDP-11 and 2.11BSD a.out support.
2684 2002-07-31  Momchil Velikov  <velco@fadata.bg>
2686         * config/tc-v850.c (md_assemble): Fix range check for immediate
2687         operand.
2689 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
2691         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2692         to Broadcom SB-1 core support.
2694 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2696         * config/tc-mips.c (mips_target_format): Fix formatting.
2697         Add recognition of n32 ABI formats.
2699 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2701         * tc-mips.c (load_address): Don't clobber $at when loading a
2702         64-bit address in non-PIC code if noat is in effect.
2703         (macro): Likewise.
2705 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2707         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2708         used in division/multiply macro expansions similarly to how they
2709         are used in the variants with break instructions.
2710         (macro2): Likewise.
2712 2002-07-30  Graeme Peterson  <gp@qnx.com>
2714         * configure.in: Add support for arm-*-nto target.
2715         * configure: Regenerate.
2717 2002-07-30  Nick Clifton  <nickc@redhat.com>
2719         * config/tc-arm.c (struct literal_pool): Add fields to allow
2720         multiple literal pools to be maintained.
2721         (find_literal_pool): New function.
2722         (find_or_make_literal_pool): New function.
2723         (add_to_literal_pool): Use find_or_make_literal_pool.
2724         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2725         needed.
2726         (s_ltorg): Use find_literal_pool.
2727         (arm_cleanup): Dump all literal pools.
2728         * doc/c-arm.texi: Document new behaviour of only dumping literal
2729         pools upon request.
2731 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
2733         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2734         rather than PPC_OPCODE_32 for powerpc64*.
2736 2002-07-25  Nick Clifton  <nickc@redhat.com>
2738         * po/es.po: Updated Spanish translation.
2739         * po/fr.po: Updated French translation.
2741 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
2743         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
2744         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2745         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2746         * configure, config.in: Regenerate.
2747         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2748         (mips_set_options): Remove "abi" field.
2749         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
2750         with mips_abi.
2751         (mips_cpu): Remove.
2752         (mips_arch_string, mips_arch_info): New vars.
2753         (mips_tune_string, mips_tune_info): New vars.
2754         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2755         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2756         (mips_isa_to_str, mips_cpu_to_str): Remove.
2757         (mips_ip): If the selected architecture is a generic ISA rather
2758         than a processor, only mention the ISA level in error messages.
2759         (OPTION_MCPU): Remove.
2760         (OPTION_FP64): New.
2761         (md_longopts): Add -mfp64, remove -mcpu.
2762         (mips_set_option_string): New fn.
2763         (md_parse_option): Make -mipsN update file_mips_isa rather than
2764         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
2765         Don't let -mgp32 and -mfp32 change the ABI.
2766         (show): Move to end of file.  Constify string argument.
2767         (md_show_usage): Move to the end of the file.  Read available
2768         architectures from mips_cpu_info_table.
2769         (mips_set_architecture): New fn.
2770         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
2771         is an alias for -march=mipsN.  Don't change the ABI based on other
2772         flags.  Infer the register size from the ABI as well as the
2773         architecture.  Complain about more conflicting arguments.
2774         Unify logic with GCC.
2775         (s_mipsset): Don't change the ABI.
2776         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2777         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2778         "mipsN"-type entries.  Remove entries that vary only in the
2779         manufacturer's prefix, or that have "000" replaced by "k".
2780         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
2781         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2782         (mips_parse_cpu): New fn.
2783         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2784         (mips_cpu_info_from_isa): Minor formatting tweak.
2786 2002-07-24  Nick Clifton  <nickc@redhat.com>
2788         * po/sv.po: Updated Swedish translation.
2789         * po/es.po: Updated Spanish translation.
2791 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
2793         * Makefile.am: Run "make dep-am".
2794         * Makefile.in: Regenerate.
2795         * doc/Makefile.in: Regenerate.
2796         * config.in: Regenerate.
2797         * po/POTFILES.in: Regenerate.
2799 2002-07-23  Nick Clifton  <nickc@redhat.com>
2801         * po/fr.po: Updated French translation.
2803 2002-07-23  Nick Clifton  <nickc@redhat.com>
2805         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2806         GAS.
2808 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2810         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2811         instead of S_IS_EXTERN.
2812         (md_estimate_size_before_relax): Likewise.
2813         (mips_fix_adjustable): Likewise.
2815 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2817         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2819 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2820             Nick Clifton  <nickc@redhat.com>
2822         * cond.c (s_ifdef): Treat a referenced but not yet defined
2823         symbol as if it were undefined, in exactly the same way as
2824         .equiv.
2826         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2827         consider referenced bug not yet defined symbols to be
2828         undefined.
2830 2002-07-18  Denis Chertykov  <denisc@overta.ru>
2831             Frank Ch. Eigler  <fche@redhat.com>
2832             Alan Lehotsky  <alehotsky@cygnus.com>
2833             John Healy  <jhealy@redhat.com>
2834             Jeff Johnston  <jjohnstn@redhat.com>
2836         * configure.in: Add ip2k configuraton.
2837         * configure: Regenerate.
2838         * Makefile.am: Add ip2k configuraton.
2839         * Makefile.in: Regenerate.
2840         * configure: Regenerate.
2841         * Makefile.in: Regenerate.
2842         * config/tc-ip2k.c: New file.
2843         * config/tc-ip2k.h: New files.
2844         * NEWS: Mention new support.
2845         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2846         * doc/Makefile.in: Regenerate.
2847         * doc/all.texi: Set IP2K
2848         * doc/as.texinfo: Add IP2K description.
2849         * doc/c-ip2k.texi: New file.
2851 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2853         * NEWS: Reformat to match style of other NEWS files.
2855 2002-07-17  Jan Hubicka  <jh@suse.cz>
2857         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2859 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
2861         * config/tc-z8k.c (build_bytes): Correct order of memset args.
2863 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
2865         * NEWS: Add 'Changes in 2.13'.
2867 2002-07-15  Matt Fredette  <fredette@netbsd.org>
2869         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2871 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
2873         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2874         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
2875         not CODE_64BIT.
2877 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
2879         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2880         (ppc_frob_file_before_adjust): New function.
2881         * config/tc-ppc.h (tc_frob_symbol): Don't define.
2882         (ppc_elf_frob_symbol): Don't declare.
2883         (tc_frob_file_before_adjust): Define.
2884         (ppc_frob_file_before_adjust): Declare.
2886         * config/tc-ppc.c (md_pseudo_table): Warning fix.
2887         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2888         flags.
2889         (ppc_size): Delete.
2890         (ppc_xcoff64): Rename to ppc_obj64.
2891         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2892         (ppc_set_cpu): Set PPC_OPCODE_32 too.
2893         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2894         or bfd_mach_ppc.
2895         (ppc_target_format): Use ppc_obj64 to select format.
2896         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2897         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2898         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
2899         (tc_frob_symbol): Likewise.
2900         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
2901         BFD_DEFAULT_TARGET_SIZE.
2902         (ppc_tc): Likewise.
2903         (ppc_is_toc_sym): Likewise.
2904         (md_apply_fix3): Likewise.
2905         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2906         BFD_DEFAULT_TARGET_SIZE.
2907         (ELF_TC_SPECIAL_SECTIONS): Likewise.
2908         (tc_frob_symbol): Likewise.
2910 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2912         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2913         (mips_ip): Likewise.
2915 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
2917         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2918         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2919         (md_apply_fix3): Formatting.  Remove redundant test.
2920         (tc_gen_reloc): Remove redundant code.
2921         (tc_i386_force_relocation): Delete.  Movy body of function to..
2922         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2924 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
2926         * configure.in: Add hppa-*-openbsd* target, change
2927         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2928         with sparc64 cpu.
2929         * configure: Regenerate.
2931 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2933         * config/tc-mips.c (macro): Shift the 32-bit address range
2934         accessible with a lone "lui" down by 32768.
2936 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2938         * config/tc-mips.c (load_address): Use non-trapping "daddu"
2939         instead of "dadd" in address calculations.
2940         (macro): Likewise.
2942 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
2944         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2945         movzx fudges.
2946         (md_assemble): Instead, zap the suffix here.
2948 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
2950         * NEWS: Remove next release number until the release is actually
2951         upon us.
2953 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
2955         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2956         Run "make dep-am".
2957         * Makefile.in: Regenerate.
2959 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2961         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2962         to symbols in merge sections, even non pc-relative ones.
2964 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2966         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2968 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2970         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2971         .softregs and .eeprom.
2973 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
2975         * NEWS: Note the next release is 2.13.
2977 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
2979         * po/tr.po: New translation imported.
2981 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
2983         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2984         (ecoff_directive_def): Likewise.
2985         (ecoff_directive_tag): Likewise.
2986         * listing.c (file_info): Likewise.
2987         * hash.c (what): Likewise.
2989 2002-06-25  H.J. Lu <hjl@gnu.org>
2991         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2992         * Makefile.in: Regenerated.
2994 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
2996         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2997         (assemble_ppi): Generate warning if the same register is used
2998         twice as destination in the same padd / pmuls instruction.
3000 2002-06-18  Dave Brolley  <brolley@redhat.com>
3002         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3003         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3004         * configure.in: Support frv-*-*.
3005         * Makefile.am (CPU_TYPES): Add frv.
3006         (TARGET_CPU_CFILES): Add tc-frv.c.
3007         (TARGET_CPU_HFILES): Add tc-frv.h.
3008         (DEPTC_frv_coff): New variable.
3009         (DEPTC_frv_elf): New variable.
3010         (DEPOBJ_frv_coff): New variable.
3011         (DEPOBJ_frv_elf): New variable.
3012         (DEP_frv_coff): New variable.
3013         (DEP_frv_elf): New variable.
3014         * tc-frv.c: New file.
3015         * tc-frv.h: New file.
3017 2002-06-17  Catherine Moore <clm@redhat.com>
3019         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3021 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
3023         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3025 2002-06-17  Tom Rix <trix@redhat.com>
3027         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3029 2002-06-14  H.J. Lu  <hjl@gnu.org>
3030             Daniel Jacobowitz  <drow@mvista.com>
3032         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3033         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3034         * config/tc-mips.c (s_mips_file): Call s_app_file_string
3035         and new_logical_line for the first .file directive.
3036         * read.c (s_app_file_string): New function.
3037         (s_app_file): Call it.
3038         * read.h (s_app_file_string): Add declaration.
3040 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
3042         * configure.in: Remove MIPS_STABS_ELF.
3043         * configure: Regenerated.
3044         * config.in: Regenerated.
3045         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3046         for MIPS targets.
3047         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3048         ".extern".
3049         (pdr_seg): Declare unconditionally.
3050         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3051         (s_mips_end): Likewise.  Generate stabs function markers.
3052         (s_mips_ent): Generate stabs function markers.
3053         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3054         ELF.
3055         (s_mips_mask): Likewise.
3056         (mips_flag_mdebug): New.
3057         (md_longopts): Add "mdebug" and "no-mdebug".
3058         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3059         (mips_after_parse_args): Set mips_flag_mdebug.
3060         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3062 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3064         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3065         value twice for RELA relocations.
3067 2002-06-12  Ben Elliston  <bje@redhat.com>
3069         * symbols.c (resolve_symbol_value): Initialise final_val.
3071         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3073 2002-06-11  Tom Rix  <trix@redhat.com>
3075         * config/tc-ppc.c (ppc_subseg_align): Delete.
3076         (ppc_change_csect): Default csect align is 2.
3077         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3079 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3081         * config/tc-avr.c (mcu_types): Update.
3083 2002-06-08  Matt Thomas  <matt@3am-software.com>
3085         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3086         (vax-*-netbsd*): New targets.
3087         * configure: Regenerate.
3088         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3089         * config/tc-vax.c: Add support for ELF and PIC.
3090         (flag_want_pic): New flag.
3091         (float_cons): Fix prototype.
3092         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3093         (md_assemble): Introduce a new is_absolute local, and use it
3094         rather than repeating the test.  Make fatal errors actually
3095         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
3096         Add support for ELF.  Add support for PIC.
3097         (md_convert_frag): Adjust for BFD_ASSEMBLER.
3098         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3099         BFD_ASSEMBLER.
3100         (vax_reg_parse): Make the % register prefix mandatory for ELF,
3101         optional for a.out, and not allowed for VMS.  Adjust all callers.
3102         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3103         (md_create_long_jump): Likewise.
3104         (md_undefined_symbol): Likewise.
3105         (md_section_align): Likewise.
3106         (md_shortopts): Allow -k and -K for ELF.
3107         (md_parse_option): Set flag_want_pic if -k or -K.
3108         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3109         (tc_gen_reloc): New function if BFD_ASSEMBLER.
3110         * config/tc-vax.h (tc_headers_hook): Remove.
3111         (TARGET_FORMAT): Set according to object format and target
3112         environment.
3113         (BFD_ARCH, TARGET_ARCH): Define.
3114         (NO_RELOC): Adjust for BFD_ASSEMBLER.
3115         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3116         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3117         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3119 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
3121         * Makefile.am: Run "make dep-am".
3122         * Makefile.in: Regenerate.
3124         * as.c: Replace CONST with const.
3125         * write.c: Likewise.
3126         * config/obj-coff.c: Likewise.
3127         * config/tc-a29k.c: Likewise.
3128         * config/tc-arm.c: Likewise.
3129         * config/tc-dlx.c: Likewise.
3130         * config/tc-h8300.c: Likewise.
3131         * config/tc-h8500.c: Likewise.
3132         * config/tc-i370.c: Likewise.
3133         * config/tc-i860.c: Likewise.
3134         * config/tc-i960.c: Likewise.
3135         * config/tc-m68hc11.c: Likewise.
3136         * config/tc-m68k.c: Likewise.
3137         * config/tc-m88k.c: Likewise.
3138         * config/tc-mcore.c: Likewise.
3139         * config/tc-mips.c: Likewise.
3140         * config/tc-ns32k.c: Likewise.
3141         * config/tc-pdp11.c: Likewise.
3142         * config/tc-pj.c: Likewise.
3143         * config/tc-s390.c: Likewise.
3144         * config/tc-sh.c: Likewise.
3145         * config/tc-sparc.c: Likewise.
3146         * config/tc-tahoe.c: Likewise.
3147         * config/tc-tic80.c: Likewise.
3148         * config/tc-v850.c: Likewise.
3149         * config/tc-vax.c: Likewise.
3150         * config/tc-w65.c: Likewise.
3151         * config/tc-z8k.c: Likewise.
3153 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
3155         Based on patch from Matt Green:
3156         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3157         * config/tc-mips.c (s_mips_file): Renamed from s_file.
3158         (s_mips_loc): New function.
3159         (mips_nonecoff_pseudo_table): Call them.
3160         (append_insn): Call dwarf2_emit_insn.
3162 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3164         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3165         to -1.
3166         (file_ase_mips16): New veriable.
3167         (mips_eabi64): Remove.
3168         (CPU_HAS_MIPS16): New define.
3169         (CPU_HAS_MDMX): Fix data type.
3170         (md_begin): Code cleanup. Use file_ase_mips16.
3171         (mips_elf_final_processing): Handle mips16 header flag.
3172         Handle EABI flag without intermediate variable.
3174 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3176         * doc/as.texinfo: Update MIPS documentation.
3178 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3180         * config/tc-mips.c: Add define for $zero register.
3181         (md_begin): Add $zero as alias name for $0.
3182         (insn_uses_reg): Use ZERO define.
3183         (mips_ip): Add $zero as alias name for $0.
3184         (mips16_ip): Likewise.
3185         (s_cplocal): Demand empty rest of input line.
3186         (tc_get_register): Likewise. Add support for $kt0, kt1 register
3187         names. Use ZERO define. Fix input_line_pointer progress.
3189 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
3191         * symbols.c: Replace CONST by const throughout.
3192         (symbol_find_exact): Split out from..
3193         (symbol_find_base): ..here.
3194         * symbols.h: Replace CONST by const throughout.
3195         (symbol_find_exact): Declare.
3196         * config/obj-elf.c: #include "struc-symbol.h".
3197         (elf_frob_file): If group name matches an exported symbol, use that
3198         symbol for the signature and ".group" as the section name.
3200 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
3202         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3203         but warn about it.
3205 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
3207         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3208         and mips_opts.ase_mdmx if they are uninitialized.
3210 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3212         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3213         (hppa_force_relocation): Check if a stub just before the start symbol
3214         of the last call_info is reachable before forcing relocation.  Fix
3215         typo.
3217 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3219         * config/tc-mips.c (mips_after_parse_args): New function.
3220         (md_begin): Move processing of defaults to mips_after_parse_args.
3221         config/tc-mips.h (md_after_parse_args): Define.
3223 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3225         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3226         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3227         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3228         * configure: Regenerate.
3229         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3230         environment.
3232 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3234         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3236 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
3238         * config/obj-elf.c (obj_elf_change_section): Set and check elf
3239         linkonce flag.  Print all warnings.
3240         (obj_elf_section): Parse ",comdat" for groups.
3241         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
3242         consistency of comdat flag.
3244 2002-06-02  Richard Henderson  <rth@redhat.com>
3246         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3247         with LITERALs without sequence numbers.
3249 2002-06-01  Richard Henderson  <rth@redhat.com>
3251         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3252         Rename them LITUSE_ALPHA_*.
3254 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
3256         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3257         accept parentheses enclosed register lists.
3259 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
3261         * Makefile.am: Run "make dep-am".
3262         * Makefile.in: Regenerate.
3263         * po/POTFILES.in: Regenerate.
3265 2002-05-31  Graeme Peterson  <gp@qnx.com>
3267         * configure.in: Add i386-*-nto-qnx*.
3268         * configure: Regenerate.
3270 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3272         * config/tc-mips.c (mips_ip): Use unsigned long values for
3273         warning output.
3275 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3277         * config/tc-mips.c (s_cpsetup): Fix initialization of
3278         mips_cpreturn_register and mips_cpreturn_offset.
3280 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3282         * config/tc-mips.c (s_cpsetup): Fix comment.
3284 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3286         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3287         (mips_ip): Likewise.
3288         (mips16_ip): Likewise.
3289         (tc_get_register): Likewise.
3291 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
3292             Ed Satterthwaite  <ehs@broadcom.com>
3294         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3295         (mips_opts): Initialize "ase_mdmx" member.
3296         (file_ase_mdmx): New variable.
3297         (CPU_HAS_MDMX): New macro.
3298         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3299         based on command line options and configuration defaults.
3300         (macro_build): Note in comment that use of MDMX in macros is
3301         not currently allowed.
3302         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3303         "Z" MDMX operand types.
3304         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3305         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3306         types.
3307         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3308         Add support for "-mdmx" and "-no-mdmx" options.
3309         (OPTION_ELF_BASE): Move to accomodate new options.
3310         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3311         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3312         file_ase_mdmx was set.
3313         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3314         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3315         nomdmx" directives.
3317 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3319         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3320         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3321         command line switch conforming to gcc conventions.
3322         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3324 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3326         * config/tc-mips.c (macro_build_jalr): New Function.
3327         (md_begin): NewABI uses big GOTs.
3328         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3329         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3330         (load_address): Add some NewABI PIC support.
3331         (macro): Likewise.
3332         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3333         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3335 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3337         * config/tc-mips.c (load_address): Use mips_gp_register instead
3338         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3339         instead.
3340         (macro): Use mips_gp_register instead of hardcoded value.
3342 2002-05-30  Richard Henderson  <rth@redhat.com>
3344         * expr.h (operatorT): Add O_md17..O_md32.
3345         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3346         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3347         O_tprelhi, O_tprello, O_tprel): New.
3348         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3349         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3350         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3351         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3352         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
3353         (md_apply_fix3): Handle TLS relocations.
3354         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3355         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3356         associated TLS reloc.  Check lituse_tls relocs match up.
3357         (emit_insn): Handle TLS relocations.
3358         (ldX_op): Remove.
3360         * doc/c-alpha.texi: Add docs for tls relocations.
3362 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3364         * config/tc-mips.c (mips_gprel_offset): New variable.
3365         (s_gpvalue): Use it.
3367 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
3369         * gas/config/tc-d10v.c (check_resource_conflict): Only check
3370         write-write conflicts.
3371         (md_assemble): Reformat introductory comment.
3372         (parallel_ok): Prevent packing only if the first
3373         instruction cannot be packed.
3375 2002-05-30  Jason Eckhardt <jle@redhat.com>
3376             Tom Rix <trix@redhat.com>
3378         * config/tc-d10v.c (build_insn): Check for immediates.
3380 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3382         * config/tc-mips.c: Replace GP in comments by $gp.
3383         (mips_big_got): Initialize.
3384         (mips_trap): Initialize.
3385         (load_address): Use mips_gp_register instead of hardcoded value.
3386         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3387         (macro): Use mips_gp_register instead of hardcoded value.
3388         (macro2): Change load_address calls.
3389         (md_pcrel_from): Comment formatting.
3390         (s_cpload): Use mips_gp_register instead of hardcoded value.
3391         (s_cprestore): Likewise. Comment formatting.
3392         (s_gpword): Fix data type.
3393         (s_cpadd): Use mips_gp_register instead of hardcoded value.
3394         (nopic_need_relax): Replace GP in comments by $gp.
3395         (mips_elf_final_processing): Better comment.
3397 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
3399         * configure.in: Add DLX configuraton
3400         * Makefile.am: Add DLX configuraton
3401         * configure: Regenerate.
3402         * Makefile.in: Regenerate.
3403         * config/tc-dlx.c: New file.
3404         * config/tc-dlx.h: New files.
3405         * NEWS: Mention new support.
3407 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
3409         * config/obj-coff.c (write_object_file): Add missing semicolon.
3411 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3413         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3414         by the define. Remove superfluous check of mips_opts.mips16.
3415         (append_insn): Likewise. Canonicalize variable increments.
3416         (macro_build): Canonicalize variable increments.
3417         (macro_build_lui): Likewise.
3418         (load_register): Likewise.
3419         (load_address): Move pointer initialization.
3420         (macro): Move pointer to a more local scope. Canonicalize variable
3421         increments. Better comments. Replace magic constant for RA by the
3422         define.
3423         (macro2): Replace magic constant for RA by the define. Canonicalize
3424         variable increments.
3425         (mips_ip): Canonicalize variable increments.
3426         (mips16_ip): Replace magic constant for RA by the define.
3427         (my_getSmallParser): Canonicalize variable increments/decrements.
3428         (my_getPercentOp): Likewise.
3429         (my_getSmallExpression): Likewise.
3430         (s_align): Likewise.
3431         (s_mipsset): Likewise.
3432         (s_cpsetup): Likewise.
3433         (s_insn): Remove superfluous check of mips_opts.mips16.
3434         (s_mips_stab): Likewise.
3435         (mips_handle_align): Canonicalize variable increments.
3436         (s_mips_ent): Likewise.
3437         (s_mips_end): Add comment.
3439 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3441         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3442         * configure: Regenerate.
3444 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
3446         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3447         * Makefile.in: Regenerate.
3448         * dep-in.sed: Reorder to match OBJS in Makefile.am.
3449         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3450         * configure: Regenerate.
3451         * as.h: Use #include "" instead of <> for local header files.
3452         * flonum-konst.c: Likewise.
3453         * flonum-mult.c: Likewise.
3454         * gasp.c: Likewise.
3455         * listing.c: Likewise.
3456         * config/tc-ia64.h: Likewise.
3457         * config/tc-v850.h: Likewise.
3459 2002-05-24  TAMURA Kent <kent@netbsd.org>
3461         * configure.in: Add a target for i386-netbsdpe.
3462         * configure: Regenerate.
3464 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3466         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3467         (obj_elf_common): Call elf_common.
3468         (obj_elf_tls_common): New function.
3469         (elf_pseudo_tab): Support .tls_common.
3470         (special_sections): Add .tdata and .tbss.
3471         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3472         sections.
3473         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3474         (obj_elf_parse_section_letters): Include T in error message.
3475         * config/tc-ppc.c (ppc_section_letter): Likewise.
3476         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3477         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3478         SEC_MERGE.
3479         * config/tc-sparc.c (md_apply_fix3): Likewise.
3480         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3481         Define them if not BFD_ASSEMBLER.
3482         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3483         and @NTPOFF.
3484         (md_apply_fix3): Add TLS relocs.
3485         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3486         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3487         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3488         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3489         (ia64_elf_section_letter): Include T in error message.
3490         (md_begin): Support TLS operators.
3491         (md_operand): Likewise.
3492         (ia64_gen_real_reloc_type): Support TLS relocs.
3493         * write.c (adjust_reloc_syms): Don't change symbols in
3494         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3496 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
3498         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3499         round the relocation up rather than down.
3501 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
3503         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3504         flag.
3505         * doc/as.texinfo: Document that the COFF version of .section
3506         ignores the 'a' flag.
3508 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
3510         * config/tc-alpha.c (assemble_tokens): Protect use of
3511         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3513         * write.c (size_seg): Check adjustment to last frag.
3514         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3515         section alignment.
3516         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3517         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3518         (write_object_file): Invoke md_do_align if available, and use
3519         frag_align_code on text sections.
3520         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3521         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3522         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3523         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3524         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
3525         BFD_ASSEMBLER too.
3527 2002-05-22  H.J. Lu <hjl@gnu.org>
3529         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3530         for source file.
3532 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
3534         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3535         as ELF builds.
3537 2002-05-22  H.J. Lu <hjl@gnu.org>
3539         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3540         for one .loc for compiler.
3542 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3544         * config/tc-mips.c (macro): Relax warning, it's toot strict for
3545         embedded-PIC.
3547 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3549         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3550         Optimize the rotate by zero case.
3552 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
3554         * configure.in: Remove accidental enabling of bfd_gas=yes for
3555         sh-coff targets.
3556         * configure: Regenerate.
3558 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
3560         * app.c: Fix formatting.
3561         * as.c: Likewise.
3562         * ehopt.c: Likewise.
3563         * expr.c: Likewise.
3564         * input-file.c: Likewise.
3565         * listing.c: Likewise.
3566         * macro.h: Likewise.
3567         * stabs.c: Likewise.
3568         * symbols.c: Likewise.
3570 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
3572         * config/obj-generic.c: Delete file.
3573         * config/obj-generic.h: Likewise.
3575 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3577         * config/tc-avr.c (mcu_types): Update for new devices.
3579 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3581         * config/tc-mips.c (macro): Warn about wrong la/dla use.
3583 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3585         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3586         worked sometimes by accident. Fix copy&paste comment.
3588 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3590         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3591         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3592         (mips_elf_final_processing): Let n32 use .reginfo.
3594 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3596         * config/tc-mips.c (append_insn): Fix too small range of variable.
3598 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
3600         * config/tc-arm.c (arm_cleanup): Remove redundant call to
3601         listing_prev_line().
3603 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
3605         * config/tc-arm.c (md_assemble): Remove redundant call to
3606         listing_prev().
3608         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3609         loc_directive_seen.
3611         * stabs.c (s_stab_generic): Fix grammatical error in warning
3612         message.
3614 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
3616         * write.c (subsegs_finish): Don't specially align last subseg.
3618 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
3620         * stabs.c (s_stab_generic): Warn about a description field that is
3621         too big.
3623         * config/obj-coff.c: Fix compile time warnings when compiling
3624         without BFD_ASSEMBLER defined.
3625         Fix formatting.
3627         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3628         target.
3629         (md_pcrel_from_section): Use md_pcrel_from().
3631 2002-05-11  Bruno Haible  <bruno@clisp.org>
3633         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3634         by dwarf2_directive_loc, instead of calling dwarf2_where.
3636 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3638         * config/obj-coff.h: Fix formatting.
3639         * config/tc-mcore.c: Likewise.
3640         * config/tc-mn10300.c: Likewise.
3641         * config/tc-openrisc.c: Likewise.
3642         * config/tc-or32.c: Likewise.
3643         * config/tc-pdp11.c: Likewise.
3644         * config/tc-ppc.c: Likewise.
3645         * config/tc-ppc.h: Likewise.
3646         * config/tc-sh64.c: Likewise.
3647         * config/tc-sh.c: Likewise.
3648         * config/tc-tic54x.c: Likewise.
3649         * config/tc-xstormy16.c: Likewise.
3650         * config/tc-xstormy16.h: Likewise.
3652 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3654         * config/obj-coff.c: Fix formatting.
3655         * config/obj-elf.c: Likewise.
3656         * config/tc-alpha.c: Likewise.
3657         * config/tc-arm.c: Likewise.
3658         * config/tc-d10v.c: Likewise.
3659         * config/tc-d30v.c: Likewise.
3660         * config/tc-h8300.c: Likewise.
3661         * config/tc-hppa.c: Likewise.
3663 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
3665         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3666         reloc when no_cond_jump_promotion.
3668 2002-05-08  Jim Wilson  <wilson@redhat.com>
3670         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3671         current variable part of frag.
3673 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3675         * config/tc-mmix.c: Fix formatting.
3676         * config/tc-mmix.h: Likewise.
3678 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
3680         * configure: Regenerate.
3682 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3684         * config/tc-m68k.c: Fix formatting.
3686 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
3688         * Makefile.am: Honour DESTDIR.
3689         * Makefile.in: Regenerate.
3691 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
3693         * config/tc-ia64.c: Fix formatting.
3694         * config/tc-ia64.h: Likewise.
3696 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
3698         * config/tc-mips.c: Fix formatting.
3699         * config/tc-s390.c: Likewise.
3700         * config/tc-s390.h: Likewise.
3702 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
3704         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3705         information for instructions.
3707 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
3709         * as.h: Fix formatting.
3710         * cgen.c: Likewise.
3711         * cgen.h: Likewise.
3712         * dwarf2dbg.c: Likewise.
3713         * frags.h: Likewise.
3714         * gasp.c: Likewise.
3715         * macro.c: Likewise.
3716         * read.c: Likewise.
3717         * stabs.c: Likewise.
3718         * symbols.c: Likewise.
3720 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
3722         * app.c (mri_pseudo): Only declare for TC_M68K.
3724         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3725         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3726         BFD_RELOC_16_BASEREL.
3727         (md_assemble): Likewise.
3728         (md_apply_fix3): Likewise.
3730 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
3732         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3733         zero into an add of zero - it is not the same.
3735 2002-05-01  Arati Dikey <aratid@kpit.com>
3737         * tc-sh.c (get_specific): Generate warning if the same
3738         destination register is used in parallel instructions.
3740 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
3742         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3744 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
3746         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3747         backwards to prevent cascading errors.
3749 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
3751         * configure.in: Add support for powerpc-*-windiss.
3752         * configure: Regenerated.
3754 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
3756         * config/tc-s390.c (md_parse_option): Formatting.
3758         * config/tc-i386.c: Formatting fixes, add missing space in error
3759         message.
3761 2002-04-24  Christian Groessler <chris@groessler.org>
3763         * config/tc-z8k.c (build_bytes): Add support for new cases:
3764         CLASS_IGNORE and ARG_NIM4.
3765         (md_assemble): Prevent destruction of input_line_pointer if
3766         get_operands returns failure.
3768 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
3770         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3771         instructions to be generated by macros.
3773 2002-04-24  Andreas Schwab  <schwab@suse.de>
3775         * config/tc-i386.c (output_jump, output_disp)
3776         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3777         more.
3778         (md_apply_fix3): Remember addend value for rela relocations.
3779         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3781 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
3783         * config/tc-mips.c (macro_build): Add close-parenthesis missing
3784         from previous change.
3786 2002-04-22  Eric Christopher  <echristo@redhat.com>
3788         * config/tc-mips.c (macro_build): Add warning if macro instructions
3789         are expanded into a branch delay slot.
3791 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
3793         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3794         numbers, gdb relies on them to detect the start of the prologue.
3796 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3798         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3799         symbols in merge sections.
3801 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
3803         * as.c (main): Don't reference _bfd_chunksize.
3805 2002-04-15  Tom Rix  <trix@redhat.com>
3807         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3808         symbols in merge sections.
3810 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
3812         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3813         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3814         argument for the precision.
3815         (gen_to_words): Update accordingly.
3817 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
3819         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3820         BFD_VERSION_STRING unavailable.
3821         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3823 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
3825         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3826         symbol_used_in_reloc_p is true.
3828         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3829         endian hosts.
3831 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3833         * dep-in.sed: Cope with absolute paths.
3834         * Makefile.am (dep.sed): Subst TOPDIR.
3835         Run "make dep-am".
3836         * Makefile.in: Regenerate.
3838 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3840         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3841         (mips_ip): Remove unused variable.
3842         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3843         unsigned char with bfd_byte.
3844         (s_file): Remove unused variable.
3845         (s_mips_ent): Likewise.
3847 2002-04-03  Tom Rix  <trix@redhat.com>
3849         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3850         (build_insn): Same.
3851         (find_opcode): Fix warning in as_warn.
3852         * config/tc-d10v.h: Update Copyright.
3854 2002-04-03  Alan Matsuoka <alanm@redhat.com>
3855             Tom Rix  <trix@redhat.com>
3857         From Jeff Knaggs <jknaggs@redhat.com>
3858         * config/tc-d10v.c (check_resource_conflict): New function to
3859         check for resource conflicts.
3861         From Jason Eckhardt  <jle@redhat.com>
3862         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3863         imm3 fields.
3864         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3865         reserved control registers is used.
3866         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3867         imm3 fields.
3869         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
3870         * tc-d10v.c (parallel_ok): Prevent packing only if the first
3871         instruction cannot be packed.
3873         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
3874         * gas/config/tc-d10v.c (check_resource_conflict): Only check
3875         write-write conflicts.
3876         (md_assemble): Reformat introductory comment.
3877         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3878         arguments.
3880 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
3882         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3883         O_logical_not>): Derive final_seg from add_symbol.
3884         <O_multiply..O_logical_or>: More final_seg twiddles.
3886 2002-04-01  Jessica Han  <jessica@cup.hp.com>
3888         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3889         in 32-bit mode.
3891 2002-03-27  Andreas Schwab  <schwab@suse.de>
3893         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3894         field for pc-relative fixups.
3895         (output_disp): Likewise.
3896         (md_estimate_size_before_relax): Likewise.
3897         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3898         pc-relative fixups in 64bit mode.
3900 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
3902         * config/te-aix5.h: Typo fix.
3904 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
3906         * Makefile.am: Run "make dep-am".
3907         * Makefile.in: Regenerate.
3908         * doc/Makefile.in: Regenerate.
3910 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
3912         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3913         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3915 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3917         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3918         the EXTENDED bit here; report the estimate according to the
3919         current size.
3921 2002-03-18  Tom Rix  <trix@redhat.com>
3923         * configure.in: Add AIX 5 support.
3924         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3925         * config/te-aix5.h: New file. AIX 5 support.
3926         * configure: Regenerate.
3928 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
3930         * po/fr.po: Updated version.
3932 2002-03-16  Andreas Jaeger  <aj@suse.de>
3934         * doc/c-mips.texi (Machine Dependencies): Add new node.
3936 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
3938         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3939         (mips_opts): Initialize "ase_mips3d" member.
3940         (file_ase_mips3d): New variable.
3941         (CPU_HAS_MIPS3D): New macro.
3942         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3943         based on command line options and configuration defaults.
3944         (macro_build, mips_ip): Accept MIPS-3D instructions if
3945         mips_opts.ase_mips3d is set.
3946         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3947         Add support for "-mips3d" and "-no-mips3d" options.
3948         (OPTION_ELF_BASE): Move to accomodate new options.
3949         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3950         (mips_elf_final_processing): Add a comment indicating that a
3951         MIPS-3D ASE ELF header flag should be set, when one exists.
3952         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3953         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3954         nomips3d" directives.
3956 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
3958         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3959         a weak symbol in same section to be within reach.
3961 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
3963         * po/fr.po: Updated version.
3965 2002-03-12  Andreas Schwab  <schwab@suse.de>
3967         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3968         body record so that an error is given for misplaced .save
3969         pseudo-ops.
3971 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
3973         * config/tc-i386.h (REX_OPCODE): Define.
3974         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3975         (rex_byte): typedef to int.
3976         * config/tc-i386.c: Group prototypes and vars together.
3977         Formatting fixes.  Remove occurrences of "register" keyword.
3978         (true): Delete.
3979         (false): Delete.
3980         (mode_from_disp_size): Add INLINE keyword to prototype.
3981         (fits_in_signed_byte): Likewise.
3982         (fits_in_unsigned_byte): Likewise.
3983         (fits_in_unsigned_word): Likewise.
3984         (fits_in_signed_word): Likewise.
3985         (fits_in_unsigned_long): Likewise.
3986         (fits_in_signed_long): Likewise.
3987         (type_names): Constify.
3988         (intel_float_operand): Constify param.
3989         (add_prefix): Use REX_OPCODE.
3990         (md_assemble): Likewise.  Modify for changed rex_byte.
3991         (parse_insn): Split out of md_assemble.
3992         (parse_operands): Likewise.
3993         (swap_operands): Likewise.
3994         (optimize_imm): Likewise.
3995         (optimize_disp): Likewise.
3996         (match_template): Likewise.
3997         (check_string): Likewise.
3998         (process_suffix): Likewise.
3999         (check_byte_reg): Likewise.
4000         (check_long_reg): Likewise.
4001         (check_qword_reg): Likewise.
4002         (check_word_reg): Likewise.
4003         (finalize_imm): Likewise.
4004         (process_operands): Likewise.
4005         (build_modrm_byte): Likewise.
4006         (output_insn): Likewise.
4007         (output_branch): Likewise.
4008         (output_jump): Likewise.
4009         (output_interseg_jump): Likewise.
4010         (output_disp): Likewise.
4011         (output_imm): Likewise.
4013 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
4015         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4017 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
4019         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4020         relocs except when BFD64.
4022         * write.c (number_to_chars_bigendian): Don't abort when N is
4023         larger than sizeof (VAL).
4024         (number_to_chars_littleendian): Likewise.
4026 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4028         * config/tc-hppa.c (md_apply_fix3): Add cast.
4029         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4030         e_rrsel.
4032 2002-03-05  Paul Koning  <pkoning@equallogic.com>
4034         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4035         (parse_ac5): New function for parsing float regs in float operand.
4036         (parse_expression): Remove attempt to make literals be octal.
4037         (parse_op_no_deferred): Support float literals.
4038         (parse_op): Reject attempts to refer to float regs.
4039         (parse_fop): New function, like parse_op but for float operand.
4040         (md_assemble): Add cases to parse float operands.  Also fix
4041         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4043 2002-03-04  H.J. Lu <hjl@gnu.org>
4045         * config/obj-elf.c (special_section): Add .init_array,
4046         .fini_array and .preinit_array.
4048         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4049         .init_array and .fini_array.
4051 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
4053         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4054         visibility.
4055         (obj_frob_symbol): Copy visibility.
4057 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
4059         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4060         s_text.
4061         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4063 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
4065         * po/es.po: Updated.
4067 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
4069         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4070         only, undo the changes made on 2001-06-08, with the
4071         effect being that common or extern symbols are
4072         adjusted for embedded-PIC, but weak symbols are not.
4073         (md_estimate_size_before_relax: Likewise, with the effect
4074         that extern symbols are treated the same as weak symbols
4075         only if not embedded-PIC.
4076         (mips_fix_adjustable) Likewise, with the effect that
4077         weak or extern symbols are not adjusted for embedded-PIC.
4078         (md_apply_fix3): Tweak so that the case where value is zero
4079         is handled more correctly for embedded-PIC code.
4081 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
4083         * doc/as.texinfo (Overview): Add missing @ifset IA64
4085         * configure.in (LINGUAS): Add es.po.
4086         * configure: Regenerate.
4087         * po/es.po: New file.
4089 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4091         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4092         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4093         and NO_PIC cases. Code cleanup.
4094         (macro2): Fix handling of 64bit register loads.
4096 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
4098         * doc/as.texinfo: Add entry for IA64.
4099         * doc/c-ia64.texi: New file.
4101 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
4103         * config/tc-hppa.c: Update copyright date.
4105         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4106         Remove references to chip manufacturers.
4107         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4108         Correct comments.
4109         (md_show_usage): Remove references to chip manufacturers.  Mention
4110         -mpower4.
4111         (md_begin): Test power4 opcode flag bits.
4113 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
4115         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4116         count exceeds prologue count.
4117         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4118         (unwind.label_prologue_count): New member.
4120         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4122         (get_saved_prologue_count): New function.
4123         (save_prologue_count): New function.
4124         (free_saved_prologue_count): New function.
4125         (dot_label_state): Record state label by calling save_prologue_count().
4126         (dot_copy_state): Restore prologue count by calling
4127         get_saved_prologue_count().
4128         (generate_unwind_image): Free up list of saved prologue
4129         counts by calling free_saved_prologue_counts().
4131 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
4133         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4134         function declarations.
4136 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
4138         * NEWS: Note that GASP is now deprecated.
4139         * Makefile.am: Do not build gasp-new by default.
4140         * Makefile.in: Regenerate.
4141         * doc/Makefile.am: Do not install gasp.info.
4142         * doc/Makefile.in: Regenerate.
4143         * gas/gasp.texi: Note that gasp is now deprecated.
4145 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
4147         * NEWS: Mark 2.12 branch.
4149 2002-02-19  Tom Tromey  <tromey@redhat.com>
4151         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4153 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4155         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4156         option input.
4158 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4160         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4161         Make bit size independent of architecture switch.
4162         (md_begin): Add warning for -m64 with -Aesa.
4163         (s390_md_end): Use renamed architecture defines.
4165 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
4167         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4169 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
4171         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4172         instead of CRIS.
4174 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
4176         * config/tc-mips.c (md_estimate_size_before_relax): Really
4177         make sure we treat weak like extern only for ELF.  (Fixes
4178         patch from 2001-07-25.)
4180 2002-02-15  Ben Elliston  <bje@redhat.com>
4182         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4183         works as expected.
4185 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
4187         * NEWS: Mention support for MMIX.
4189 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
4191         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4192         a sequence of indpendent 'if' statements for easier debugging
4193         and future modification.
4195 2002-02-13  Matt Fredette  <fredette@netbsd.org>
4197         * config/tc-m68k.c (md_show_usage): No longer display a
4198         hard-coded "68020" for the default CPU, instead display the
4199         canonical name of the true, configured default CPU.
4200         (m68k_elf_final_processing): Mark objects for sub-68020
4201         CPUs with the new EF_M68000 flag.
4203 2002-02-13  Andreas Schwab  <schwab@suse.de>
4205         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4206         pc-relative relocations to merge sections in 64-bit mode.
4208 2002-02-13  Ben Elliston  <bje@redhat.com>
4210         * NEWS: Document floating point number handling in gasp.
4211         * gasp.c: Include <assert.h> and "xregex.h".
4212         (is_flonum): New function.
4213         (chew_flownum): Likewise.
4214         (change_base): Consume flonums from the input, where possible.
4215         * doc/gasp.texi (Constants): Document floating point numbers.
4217 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4219         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4220         that implicitly use LR and RR selectors.
4222 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
4224         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
4225         and `epsw' as available on AM33 and above only.
4226         (other_register_name): Add logic to handle machine type encoded in
4227         reg_number.
4229 2002-02-11  Tom Rix  <trix@redhat.com>
4231         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4232         xcoff64.
4234 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
4236         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4237         Use all over.
4239 2002-02-11  Jan Hubicka  <jh@suse.cz>
4241         * i386.c (md_assemble): Support 32bit address prefix.
4242         (i386_displacement): Likewise.
4243         (i386_index_check): Accept 32bit addressing in 64bit mode.
4245 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
4247         * config/tc-sh.c (dot): Removed unused function.
4249 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
4251         * Makefile.am: "make dep-am".
4252         * Makefile.in: Regenerate.
4253         * aclocal.m4: Regenerate.
4254         * config.in: Regenerate.
4255         * configure: Regenerate.
4256         * doc/Makefile.in: Regenerate.
4258 2002-02-10  Richard Henderson  <rth@redhat.com>
4260         * doc/c-alpha.texi: New file.
4261         * doc/Makefile.am (CPU_DOCS): Add it.
4262         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4264 2002-02-09  Richard Henderson  <rth@redhat.com>
4266         * config/tc-alpha.c (O_samegp): New.
4267         (USER_RELOC_P): Include it.
4268         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4269         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4270         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4271         (alpha_validate_fix): New.
4272         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4274 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
4276         * doc/c-cris.texi: New.
4277         * doc/all.texi: @set CRIS.
4278         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
4279         Include c-cris.texi.
4280         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4281         * doc/Makefile.in: Regenerate.
4283 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
4285         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4286         determine if a number is a sign-extended 32-bit number.
4287         (load_register): Use IS_SEXT_32BIT_NUM.
4288         (macro): Check if load/store macro handling is using a
4289         constant 32-bit address on 64-bit address systems, and if
4290         so optimize the generation of that address.
4292 2002-02-08  Richard Henderson  <rth@redhat.com>
4294         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4295         we've eliminated all foreign relocation types yet.
4296         (alpha_fix_adjustable): Likewise.
4298 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
4300         Contribute sh64-elf.
4301         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
4302                     Stephen Clarke <Stephen.Clarke@st.com>
4303         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4304         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
4305         * config/tc-sh.c (md_relax_table): Added default sizes for
4306         non-PC-relative UNDEF_MOVI, and relaxation sequences for
4307         MOVI_16, MOVI_32 and MOVI_48.
4308         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4309         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4310         and MOVI_16.
4311         (shmedia_md_estimate_size_before_relax): Remove redundant
4312         blocks.  Set fragP->fr_var even if relaxation type unchanged.
4313         Retain UNDEF_MOVI until expression decays to number.
4314         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4315         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4316         relocation types.  Take fixP->fx_addnumber into account too.
4317         (shmedia_md_apply_fix): Likewise.
4318         (shmedia_md_convert_frag): Likewise.
4319         (shmedia_build_Mytes): Likewise.
4320         (sh64_consume_datalabel): Complain about nested datalabel.
4321         Support PIC relocs.  Call sh_parse_name.
4322         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4323         in tc-sh.h to SHmedia reloc types.
4324         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4325         MOVI_GOTPC): New relaxation constants.
4326         (md_relax_table): Introduce relaxation directives for PIC-related
4327         constants.
4328         (sh_PIC_related_p): Handle datalabel.
4329         (sh_check_fixup): Choose SH5 PIC relocations.
4330         (sh_cons_fix_new): Added BDF_RELOC_64.
4331         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4332         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
4333         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4334         current ISA is SHmedia, get 7 bytes.
4335         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
4336         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4337         void function.
4338         * config/tc-sh64.c (shmedia_apply_fix): Rename to
4339         shmedia_apply_fix3 and make void.
4340         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
4341         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4342         as_bad.
4343         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
4344         * config/tc-sh64.h (md_parse_name): Take &c as argument.
4345         2001-03-14  DJ Delorie  <dj@redhat.com>
4346         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4347         * doc/Makefile.in(CPU_DOCS): Ditto.
4348         * doc/c-sh64.texi: New file.
4349         * doc/as.texinfo: Add SH64 support.
4350         2001-03-13  DJ Delorie  <dj@redhat.com>
4351         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4352         A_REUSE_PREV so that its purpose is more obvious.
4353         (shmedia_build_Mytes): Ditto.
4354         2001-03-07  DJ Delorie  <dj@redhat.com>
4355         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4356         before processing.
4357         (sh64_vtable_inherit): Ditto.
4358         (strip_datalabels): New, strip "datalabel" from given line.
4359         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4360         pseudos.
4361         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
4362         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4363         call ...
4364         (shmedia_build_Mytes): ... to here.
4365         2001-03-06  DJ Delorie  <dj@redhat.com>
4366         * config/tc-sh.c: Remove sh64-specific uaquad now that there
4367         is a generic one.
4368         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
4369         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4370         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4371         address by one in call to dwarf2_emit_insn.
4372         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
4373         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
4374         alignment handling broken by imported changes.
4375         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4376         (sh64_handle_align): Declare.
4377         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4378         (sh64_max_mem_for_rs_align_code): Declare.
4379         (enum sh64_isa_values): Moved here from tc-sh64.c.
4380         (md_do_align): Define.
4381         (sh64_do_align): Declare.
4382         (struct sh64_tc_frag_data): New.
4383         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
4384         changed.
4385         (TC_FRAG_INIT): Change to set new datatype.
4386         (struct sh64_segment_info_type): Rename member
4387         last_flushed_location to last_contents_mark.  All users changed.
4388         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4389         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4390         * config/tc-sh.c (md_pseudo_table): Add ".abi".
4391         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4392         of unsetting seen_insn.
4393         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4394         call sh64_update_contents_mark.
4395         (sh_handle_align): Remove HAVE_SH64-conditioned code.
4396         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4397         enum sh64_isa_values.
4398         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
4399         (emitting_crange): Boolean guard moved to file scope from function
4400         scope in sh64_set_contents_type.
4401         (s_sh64_abi): New.
4402         (sh64_update_contents_mark): New; most split out from
4403         sh64_flush_pending_output.
4404         (shmedia_md_end): Call sh64_update_contents_mark.  Set
4405         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4406         (sh64_do_align): New function.
4407         (sh64_max_mem_for_rs_align_code): New function.
4408         (sh64_handle_align): Rename from shmedia_do_align.  Make
4409         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
4410         four.  Change return-type to void.
4411         (shmedia_elf_new_section): Remove.
4412         (shmedia_md_assemble): Call sh64_update_contents_mark.
4413         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
4414         new frag.  Call sh64_update_contents_mark after making the new
4415         frag.
4416         (sh64_flush_pending_output): Just call sh64_update_contents_mark
4417         and sh_flush_pending_output.
4418         (sh64_flag_output): Also call md_flush_pending_output, but add
4419         condition on not emitting_crange.
4420         (sh64_tc_cons_fix_new): Remove.
4421         2001-01-12  Nick Clifton  <nickc@redhat.com>
4422         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4423         alignment handling scheme imported from sourceware.
4424         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
4425         * config/tc-sh64.h (TARGET_FORMAT): Define.
4426         (sh64_target_format): Prototype.
4427         * config/tc-sh64.c (sh64_target_mach): New function.
4428         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
4429         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4430         zero_address_frag instead of copying the frag of the symbol.
4431         (shmedia_frob_file_before_adjust): Ditto.
4432         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4433         to valueT to remove signedness.
4434         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
4435         headers to output_bfd.  Do not evaluate symbols if final is false;
4436         do emit fixups.
4437         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4438         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4439         to the current frag, call shmedia_md_convert_frag to emit fixups
4440         and make frag_wane neutralize the frag.  Update comments.
4441         * config/tc-sh.c (md_convert_frag): Change caller of
4442         shmedia_md_convert_frag.
4443         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
4444         * config/tc-sh64.h: Tweak comments and correct formatting.
4445         * config/tc-sh64.c: Ditto.
4446         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4447         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4448         for the no-relocation case.
4449         (shmedia_check_limits): Fix range check being off-by-one for PTA.
4450         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
4451         wrappers.
4452         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
4453         comment.
4454         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4455         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4456         expansion.
4457         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4458         Correct comment.
4459         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
4460         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4461         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4462         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4463         al>: Set lowest bit of field to relocate to 1 and rest to empty,
4464         if reloc is emitted.
4465         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
4466         New options plus bugfixes.
4467         * config/tc-sh.c (md_longopts): New options "-no-expand" and
4468         "-expand-pt32".
4469         (md_parse_option): Handle new options.
4470         (md_show_usage): Add blurb for new options.
4471         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4472         (sh64_expand, sh64_pt32): New variables.
4473         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4474         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4475         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
4476         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
4477         <resolved previously-pc-relative relocs>: Handle
4478         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4479         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4480         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4481         points to SHcompact code.
4482         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4483         SH64PCREL16)>: Check that ISA of what operand points at and
4484         PTA/PTB matches, or emit error.
4485         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4486         SHMEDIA_BFD_RELOC_PT.
4487         (shmedia_immediate_op): If pcrel, emit fixup also for constant
4488         operand.
4489         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4490         condition for MOVI expansion.
4491         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4492         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
4493         sh64_expand.
4494         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4495         fixup.
4496         (sh64_target_format): Error-check setting of sh64_pt32 and
4497         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
4498         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4499         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4500         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
4501         * config/tc-sh64.c: Improve comments.
4502         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
4503         not say the linker will check correctness of PTA/PTB expansion.
4504         (shmedia_md_end): Make non-static.
4505         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
4506         prototype.
4507         * config/tc-sh.c (sh_finalize): Remove.
4508         * config/tc-sh.h (md_end): Do not define.
4509         Remove prototype for sh_finalize.
4510         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
4511         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4512         sh64_section_data container when storing section type in tdata
4513         field in elf_section_data.
4514         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4515         EF_SH5.
4516         * Makefile.am: Update dependencies.
4517         * Makefile.in: Regenerate.
4518         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
4519         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4520         dwarf2_emit_insn call with test on debug_type.
4521         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
4522         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4523         CRT_SH5_ISA32 sticky for 64-bit.
4524         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
4525         Generate .crange sections when switching ISA mode or emitting
4526         constants in same section as code.
4527         * config/tc-sh64.c: Reformat structure definitions.
4528         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4529         variables.
4530         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
4531         to emit a .cranges descriptor when contents type changes.  Only
4532         emit error if changing contents type and -no-mix is in effect.
4533         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4534         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4535         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
4536         sh64_flush_last_crange over sections.
4537         When checking main symbol of datalabel symbol, check for
4538         STO_SH5_ISA32, not ISA type of section in definition.
4539         (shmedia_frob_file_before_adjust): Check main symbol for
4540         STO_SH5_ISA32; don't check ISA type of section in definition.
4541         (shmedia_frob_section_type): Adjust for .cranges; set section flag
4542         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4543         .cranges entries have been output.
4544         (shmedia_elf_new_section): Just call md_flush_pending_output.
4545         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4546         fix.  Do not set tc_segment_info_data.in_code for section.  Call
4547         sh64_set_contents_type for SHmedia code.
4548         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4549         false.  Call md_flush_pending_output.
4550         (sh64_target_format): Check that -no-mix and
4551         -shcompact-const-crange are used in sane combination with other
4552         options.
4553         (shmedia_md_pcrel_from_section): Check type of fix for how to
4554         adjust pc-relative.
4555         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4556         not ISA type of section in definition.
4557         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4558         hold contents-type state.
4559         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4560         (sh64_flush_pending_output): Declare.
4561         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4562         (sh64_tc_cons_fix_new): Declare.
4563         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4564         call sh64_flag_output.
4565         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
4566         call sh64_set_contents_type to mark SHcompact code and set
4567         seen_insn.
4568         (md_longopts): New options "-no-mix" and
4569         "-shcompact-const-crange".
4570         (md_parse_option): Handle new options.
4571         (md_show_usage): Add blurb for new options.
4572         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4573         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
4574         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4575         (sh64_last_insn_frag): New.
4576         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4577         to get frag for insn opcode for generating fixups; do not assume it
4578         is the same frag.
4579         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4580         for new insn.
4581         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4582         section.
4583         (TC_FRAG_TYPE): Define as fragS *.
4584         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4585         (sh64_last_insn_frag): Declare.
4586         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4587         not == NULL before dereferencing.
4588         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
4589         Get rid of BFD section flag and EF_SH64_ABI64.
4590         * config/tc-sh64.c (shmedia_frob_section_type): Use
4591         elf_section_data (sec)->tdata, not a specific BFD section flag, to
4592         communicate the section as containing SHmedia code.  Describe why.
4593         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
4594         EF_SH64 regardless of ABI.
4595         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4596         in error message.  Handle resolved expressions for
4597         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4598         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4599         (shmedia_check_limits): Handle BFD_RELOC_64.
4600         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4601         a STO_SH5_ISA32 symbol, only the BFD value.
4602         2000-12-11  Ben Elliston  <bje@redhat.com>
4603         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4604         dwarf2_generate_asm_lineno.
4605         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
4606         Handle PC-relative MOVI expansions with assembler relaxation.
4607         Generate PC-relative relocs from 16-bit PC-relative expressions.
4608         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4609         (shmedia_md_pcrel_from_section): ...here.
4610         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4611         turned completely resolved.  Adjust relocation type for 16-bit
4612         immediate operands that has turned PC-relative.  Adjust back for
4613         MD_PCREL_FROM_SECTION being applied twice.
4614         (shmedia_md_convert_frag): Always emit reloc for expression with
4615         global or weak symbol.  Handle relaxation result for PC-relative
4616         expressions.
4617         (shmedia_md_estimate_size_before_relax): An expression with a weak
4618         or global symbol can not be relaxed.  Break out tests for
4619         relaxable symbol into variable sym_relaxable.
4620         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4621         UNDEF_MOVI)>: Break out any PC-relative expression and change
4622         relaxation type.
4623         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4624         opjp.
4625         <case A_IMMS16>: Fix typo for initial minor relaxation type of
4626         MOVI expansion.  If X_op_symbol of the immediate expression is
4627         set, make an expression symbol for the argument to frag_var.
4628         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4629         relaxations.
4630         (END): Adjust for new relaxations.
4631         (md_relax_table): Add entries for new relaxations.
4632         2000-12-07  Ben Elliston  <bje@redhat.com>
4633         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4634         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
4635         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4636         SHORI operand offsets in PT/PTA/PTB expansions.
4637         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
4638         Implement DataLabel semantics.
4639         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4640         shmedia_frob_file_before_adjust.
4641         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4642         (DATALABEL_SUFFIX): Define.
4643         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4644         symbol list to update "datalabel" symbols to their main symbol
4645         counterparts.
4646         (shmedia_frob_file_before_adjust): New.
4647         (sh64_adjust_symtab): For remaining datalabel symbols, set to
4648         undefined and set STT_DATALABEL.
4649         (sh64_frob_label): Initialize TC symbol field.
4650         (sh64_consume_datalabel): Actually implement semantics.  New
4651         parameter operandf, call it instead of expression.
4652         (sh64_exclude_symbol): New.
4653         * config/tc-sh64.h (md_parse_name): Pass on the function operand
4654         to sh64_consume_datalabel.
4655         (tc_symbol_new_hook): Define to tc_frob_symbol.
4656         (TC_SYMFIELD_TYPE): Define to symbolS *.
4657         (tc_frob_symbol): Define to call sh64_exclude_symbol.
4658         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
4659         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4660         case.
4661         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4662         generating dwarf2 debug information.
4663         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
4664         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4665         elf64-sh64 for the 64-bit ABI.
4666         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4667         option.
4668         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
4669         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4670         case-insensitivity.
4671         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
4672         * config/tc-sh64.c: Tweak comments, formatting and error messages.
4673         (enum sh64_abi_values): New type.
4674         (enum sh64_isa_values): New type.
4675         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
4676         (seen_shcompact_mode, seen_shmedia_mode): Delete.
4677         (sh64_abi): Replace shmedia_64.
4678         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4679         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4680         (s_sh64_mode): Check validity for this target.
4681         (sh64_target_format): Initialize defaults for ISA and ABI.
4682         Fallback to old object format if no SH64 ISA or ABI has been
4683         specified.
4684         * config/tc-sh.c (md_parse_option): Check combinations for errors.
4685         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4686         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4687         * config/tc-sh64.h: Fix typo in comment.
4688         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
4689         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4690         <PT fixups for absolute values>: Size will be longest, not
4691         shortest.
4692         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
4693         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4694         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4695         and l1 to hold lowercase of two first characters.  Change all
4696         remaining TO_LOWER to tolower.
4697         * config/tc-sh64.c (TO_LOWER): Delete.
4698         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4699         (md_parse_name): Define.
4700         (sh64_consume_datalabel): Declare.
4701         (DOLLAR_DOT): Define.
4702         * config/tc-sh64.c (shmedia_parse_exp): New.
4703         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4704         (shmedia_parse_reg): Remove const from src
4705         parameter.
4706         (shmedia_get_operands): Ditto for args parameter and ptr variable.
4707         (shmedia_md_assemble): Ditto for op_end variable.
4708         (shmedia_get_operand): Ditto for ptr parameter and src variable.
4709         Use shmedia_parse_exp, not parse_exp.
4710         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4711         parameter.  All callers changed.
4712         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
4713         callers changed.
4714         (shmedia_parse_reg): Put first two character in local variables.
4715         Use tolower, not TO_LOWER.  If no register is found and argtype
4716         indicates a control register, scan shmedia_creg_table
4717         case-insensitive.
4718         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
4719         * Makefile.am (CPU_TYPES): Add sh64.
4720         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4721         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4722         Regenerate dependencies.
4723         * Makefile.in: Regenerate.
4724         * configure.in: Add support for sh64-*-elf*.
4725         * configure: Regenerate.
4726         * config/tc-sh64.h: New.
4727         * config/tc-sh64.c: New.
4728         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4729         .mode, .isa and .uaquad.
4730         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4731         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4732         [HAVE_SH64] (END): Define as 10.
4733         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4734         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4735         MOVI_64): Define.
4736         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4737         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4738         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4739         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4740         Define.
4741         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4742         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4743         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4744         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4745         SHmedia instructions.  Handle state-change after switching to
4746         SHcompact.
4747         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4748         (md_parse_option) [HAVE_SH64]: Parse new options.
4749         (md_show_usage) [HAVE_SH64]: Show usage of new options.
4750         (md_convert_frag) [HAVE_SH64] <default>: Call
4751         shmedia_md_convert_frag instead of abort.
4752         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4753         BFD_RELOC_SH_SHMEDIA_CODE.
4754         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4755         SHcompact or SHmedia code.
4756         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4757         shmedia_md_apply_fix instead of abort.
4758         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4759         result from calling shmedia_md_estimate_size_before_relax instead
4760         of calling abort.
4761         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4762         do the work.
4763         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4764         shmedia_init_reloc and do nothing more if it returns non-zero.
4765         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4766         * po/POTFILES.in: Regenerate.
4767         * po/gas.pot: Regenerate.
4769 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
4771         * config/tc-sh.c (parse_at): Install the correct version of
4772         2002-02-04's patch.
4774         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4775         assume fixP->fx_subsy is non-NULL.
4777 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
4779         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4780         A_DISP_PC_ABS, and adjust it by -4.
4781         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4782         expected.
4783         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4784         the operand type is not A_DISP_PC_ABS.
4786 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
4788         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4789         common and weak symbols.  Handle common and weak symbols as
4790         undefined symbols with regards to GREG handling and merging.
4791         (mmix_frob_file): Ditto.
4793 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
4795         * configure.in (hppa-*-netbsd*): New target.
4796         * configure: Regenerate.
4797         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4799 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
4801         * config/tc-v850.c: Add missing prototypes amd use old-style
4802         function definitions.
4803         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4804         (sdata_section tdata_section, zdata_section, sbss_section,
4805         tbss_section, zbss_section, rosdata_section, rozdata_section,
4806         scommon_section, tcommon_section, zcommon_section,
4807         call_table_data_section, call_table_text_section): Delete.
4808         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4809         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4810         v850_call_table_data, v850_call_table_text): Delete.
4811         (struct v850_seg_entry): New.
4812         (v850_seg_table): New.
4813         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4814         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4815         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4816         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4817         (do_v850_seg): New.
4818         (v850_seg): New.
4819         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
4820         recording of alignment.
4821         (md_pseudo_table): Use v850_seg.
4822         (md_begin): Don't init .call_table_data and .call_table_text here.
4823         Set v850_seg_table bss entry.
4825 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
4827         Support on-demand global register allocation by passing on
4828         base-plus-offset relocs to the linker.
4829         * config/tc-mmix.c: Tweak and fix typos in comments.
4830         (allocate_undefined_gregs_in_linker): New variable.
4831         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4832         (md_longopts): Add --linker-allocated-gregs.
4833         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4834         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4835         (md_show_usage): Update text for -x.  Add text for
4836         --linker-allocated-gregs.
4837         (tc_gen_reloc): Derive default value for addend from val and
4838         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
4839         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4840         GREG if allocate_undefined_gregs_in_linker.
4841         * doc/as.texinfo (Overview) <Target MMIX options>: Add
4842         --linker-allocated-gregs.
4843         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4844         --linker-allocated-gregs.  Mention that it's implied by -x.
4845         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4846         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4848         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4850 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
4852         * Makefile.am: Run "make dep-am"
4853         * Makefile.in: Regenerate.
4855 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
4857         * config/tc-or32.c: New file.
4858         * config/tc-or32.h: New file.
4859         * configure.in: Add support for or32 targets.
4860         * configure: Regenerate.
4861         * config/obj-coff.c: Add support for or32 targets.
4862         * config/obj-coff.h: Add support for or32 targets.
4863         * Makefile.am: Add support for or32 targets.
4864         * Makefile.in: Regenerate.
4865         * NEWS: Mention support for OpenRISC.
4866         * doc/Makefile.in: Regenerate.
4867         * po/POTFILES.in: Regenerate.
4868         * po/gas.pot: Regenerate.
4870 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
4872         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4873         and mod.
4875 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
4877         * config/tc-mips.c (tc_gen_reloc): Arrange for
4878         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4879         their LO16 parts, even for ELF.
4881 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
4883         * config/tc-i386.c: Protect definitions of true and false
4884         from redefinition.
4886 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
4888         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4889         made because of .weak, if they are neither defined nor used in any
4890         way.
4892 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
4894         * configure: Regenerated.
4896 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
4898         * doc/Makefile.am (install): Depend on install-info.
4899         * doc/Makefile.in: Regenerate.
4901 2002-01-26  Nick Clifton <nick@redhat.com>
4903         * po/fr.po: Updated version
4905 2002-01-24  Kazu Hirata  <kazu@hxi.com>
4907         * config/tc-h8300.c (check_operand): Don't print a warning
4908         when a valid 24-bit address is given to a 16-bit address
4909         operand.
4911 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4913         * config/tc-sh.c (sh_elf_suffix): Removed.
4914         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4915         sh_end_of_match, sh_parse_name): New functions.
4916         (sh_elf_cons): Simplify.
4917         (parse_exp): Reject misplaced PIC operands.
4918         (md_undefined_symbol): Simplify.
4919         (sh_fix_adjustable): Let @GOTOFF be adjusted.
4920         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4921         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4922         Complain if subsy remains at the end.
4923         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4924         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4926 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
4928         * config/tc-mn10300.c (xr_registers): Move `pc'...
4929         (other_registers): ... here.
4931 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
4933         * Makefile.am: Run "make dep-am".
4934         * Makefile.in: Regenerate.
4935         * gas/po/POTFILES.in: Regenerate.
4937 2002-01-21  DJ Delorie  <dj@redhat.com>
4939         * config/obj-coff.c (obj_coff_init_stab_section): Make the
4940         stabstr_name allocation permanent, as it will be referenced from
4941         the section hash.
4943 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
4945         * configure.in (ia64-*-netbsd*): New target.
4946         * configure: Regenerate.
4948 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
4950         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4951         to @dots call.
4952         <Detailed description, ARM options>: Ditto.
4953         * doc/c-arm.texi (ARM Options): Ditto.
4955 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4957         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4958         do_mia, do_mar and do_mra respectively.
4959         (do_mav_*): Renamed from do_c_*.
4960         (mav_reg_required_here, mav_parse_offset): Renamed from
4961         cirrus_reg_required_here and cirrus_parse_offset respectively.
4962         (MAV_MODE?): Renamed from CIRRUS_MODE?.
4964 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4965             Keith Walker  <keith.walker@arm.com>
4967         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4968         (insns): Add pattern for bxj instruction.
4969         (do_bxj): New function.
4970         (arm_cpus): Add arm926ej.
4971         (arm_archs): Add armv5tej.
4973 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4975         * doc/c-arm.texi: Add new fpe options to list of supported flags.
4977 2002-01-19  Keith Walker  <keith.walker@arm.com>
4979         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4981 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4983         * NEWS: Mention new ARM command-line options and VFP support.
4985         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
4986         uses changed.
4987         (ARM_CEXT_MAVERICK): Similarly.
4988         (ARM_ANY): Now means any core instruction.
4989         (CPU_DEFAULT): Default to ARM_ANY.
4990         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4991         (pic_code): Declare for all object types.  Make type int.
4992         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4993         (march_fpu_opt, mfpu_opt): Declare.
4994         (md_longopts): Tidy up conditional definitions.
4995         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4996         (arm_long_opts): New tables.
4997         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4998         (arm_parse_extension): New function.
4999         (md_parse_option): Rewrite using new table-driven system.
5000         (md_show_usage): Use new table-driven system.
5001         (md_begin): Calculate cpu_variant from command line option data.
5002         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5003         command-line options.
5004         * doc/c-arm.texi: Likewise.
5006 2002-01-18  Andreas Jaeger  <aj@suse.de>
5008         * as.c (parse_args): Update year.
5010 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
5012         * config/tc-tic54x.c (encode_address): Add a more informative
5013         warning about incorrect syntax.
5015 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
5017         * po/gas.pot: Regenerate.
5019 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
5021         * macro.c (get_any_string): Add no-c-format comment to prevent
5022         confusion when translating string.
5023         * gasp.c (get_any_string): Add no-c-format comment to prevent
5024         confusion when translating string.
5026 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5027             Johannes Stezenbach <js@convergence.de>
5028         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5029         matched before the shorter ones.
5030         (my_getSmallParser): Fix handling of nested parentheses in
5031         percent_op's. Code cleanup.
5032         (my_getPercentOp): New function, code from my_getSmallParser.
5033         (my_getSmallExpression): Fix handling of closing parentheses.
5034         Code cleanup. Better comments.
5036 2002-01-16  Nick Clifton <nickc@redhat.com>
5038         po/tr.po: New file: Turkish translation.
5039         configure.in (LINGUAS): Add "tr".
5040         configure: Regenerate.
5042 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
5044         Support for VFP instructions
5045         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5046         (cp_address_required_here): New argument wb_ok.  When false, do not
5047         accept write-back forms of addressing.  Change all callers.
5048         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5049         (FPU_VFP_EXT_V2): Define.
5050         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5051         Define in terms of above.
5052         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5053         (vfp_reg): New struct.
5054         (vfp_regs): New array of registers.
5055         (insns): Add VFP instructions.
5056         (sn_table): New array of VFP single-precision register names.
5057         (dn_table): New array of VFP double-precision register names.
5058         (all_reg_maps): Add the new register tables.
5059         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
5060         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5061         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5062         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5063         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5064         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5065         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5066         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5067         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5068         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5069         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5070         (do_vfp_sp_dp_cvt): New functions.
5071         (md_begin): Set soft-float flag for appropriate VFP work.
5072         (md_atof): Handle VFP-format doubles.
5073         (md_parse_option): Handle VFP command-line options.
5074         (md_show_usage): Display VFP command-line options.
5076 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
5078         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5079         various command line options.
5081 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
5083         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5084         vtinherit relocs.
5085         (xstormy16_md_apply_fix3): Do not return a value.
5087 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
5089         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5090         the -EL/-EB option that matches the target's endianness.
5091         (md_parse_option): Likewise.
5093 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
5095         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5096         is not dependent on ARM_BI_ENDIAN.
5098 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
5100         * tc-arm.c (all error messages): Normalize capitalization of messages.
5102         * tc-arm.h (md_operand): Delete define.
5103         * tc-arm.c (in_my_get_expression): New static variable.
5104         (my_get_expression): Set and clear it.
5105         (md_operand): New function.  If called from my_get_expression
5106         put the error in inst.error.
5107         (output_inst): Now takes argument of instruction being assembled.
5108         Print it out with any error message.
5109         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5110         with '=' syntax.
5111         (end_of_line): Don't update inst.error if it is already set.
5113 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
5115         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5116         op that can be translated into a mvn instruction.
5118 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
5120         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5121         setting default md.flags.
5122         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5123         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5124         * gas/config/tc-ia64.c (setup_unwind_header): Add support
5125         for 32 bit unwind info blocks.
5126         (generate_unwind_image): Add support for different types
5127         of unwind images (32 bits and/or big-endian).
5128         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5129         (ia64_target_format): Add support for hpux target formats.
5130         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5131         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5132         SHT_FINI_ARRAY elf section types.
5134 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
5136         * tc-arm.c (struct reg_entry): Move before prototypes.
5137         (int_register, cp_register, fp_register): Delete.
5138         (reg_table): Delete.  Replaced with ...
5139         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5140         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5141         (mav_dspsc_table): ... one table per register set.
5142         (arm_reg_hsh): Delete.
5143         (struct reg_map): New structure.
5144         (all_reg_maps): New array.
5145         (enum arm_reg_type): New enums.
5146         (build_reg_hsh): New function.
5147         (insert_reg_alias): Use hash table passed by caller.  Adjust all
5148         callers.
5149         (create_register_alias): New function, split out from ...
5150         (md_assemble): ... here.
5151         (md_begin): Build new register hash tables.
5152         (arm_reg_parse): New argument for the hash table to search.  Adjust all
5153         callers.
5154         (arm_reg_parse_any): New function.
5155         (co_proc_number): Look up the processor number in the processor hash
5156         table.
5157         (cirrus_regtype): Delete.
5158         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5159         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5160         (ARM_EXT_MAVERICKsc_register): Delete.
5161         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5162         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5163         functions.
5164         (do_c_triple_4, do_c_triple_5): Delete.
5165         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5166         (do_c_quad_6): Delete.
5167         (do_c_quad_6[ab]): New functions.
5168         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5169         arguments to use new register parsing methods.
5170         (cirrus_reg_required_here): Likewise.
5171         (insns): Reclassify cirrus maverick worker functions.
5172         (cirrus_valid_reg): Delete.
5174 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
5176         * configure.in (sh*le): Set cpu_type=sh and endian=little.
5177         (sh*-*-netbsdelf*): New target.
5178         * configure: Regenerate.
5179         * tc-sh.h: Update copyright years.
5180         (TARGET_FORMAT): Add version for TE_NetBSD.
5182 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
5184         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5185         negative.
5187 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
5189         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5190         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5192 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
5194         * tc-mips.c (mips_cprestore_valid): New flag.
5195         (mips_frame_reg_valid): New flag.
5196         (macro) [M_JAL_2]: Check both flags.
5197         [M_JAL_A]: Likewise.
5198         (s_cprestore): Set mips_cprestore_valid.
5199         (tc_get_register): If setting mips_frame_reg, set
5200         mips_frame_reg_valid and clear mips_cprestore_valid.
5201         (s_mips_ent): Clear both flags.
5202         (s_mips_end): Clear both flags.
5204 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
5206         * write.c (write_object_file): Make use of bfd_section_list_remove.
5207         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5208         * config/tc-mmix.c (mmix_frob_file): Likewise.
5210 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
5212         * configure.in (i386-*-netbsdelf*): Collapse target into...
5213         (i386-*-netbsd*): ...this.  Add support for x86-64.
5214         * configure: Regenerated.
5216 2002-01-03  matthew green  <mrg@redhat.com>
5218         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5220 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
5222         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5223         NULL frag link.
5225 For older changes see ChangeLog-0001
5227 Local Variables:
5228 mode: change-log
5229 left-margin: 8
5230 fill-column: 74
5231 version-control: never
5232 End: