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