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