ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): Initialize them.
[binutils.git] / gas / ChangeLog
blob2dc1b47766db37fabf91570f1fa76d7af0c06ddc
1 2003-03-24  Daniel NĂ©ri  <dne@mayonnaise.net>
3         * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
4         * doc/all.texi: Likewise.
5         * doc/c-tic54x.texi: Likewise.
6         
7 2003-03-21  Andreas Schwab  <schwab@suse.de>
9         * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
10         avoid aliasing issue.
12 2003-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14         * config/tc-s390.c (s390_arch_size): Initialize to zero.
15         (current_arch_mask): Rename to current_mode_mask.
16         (current_arch_requested): Remove variable.
17         (current_cpu): New variable.
18         (init_default_arch): Set defaults values for s390_arch_size,
19         current_mode_mask and current_cpu.
20         (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
21         (md_begin): Replace current_arch_mask by current_cpu.
22         (md_assemble): Adapt check and error message to current_mode_mask and
23         current_cpu.
25 2003-03-09  James E Wilson  <wilson@tuliptree.org>
27         * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
28         * read.c (get_line_sb): Return end of line character or '\n' if
29         it is zero or non-existent.
31 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
33         * config/tc-mips.c (mips_validate_fix): New function.
34         * config/tc-mips.h (TC_VALIDATE_FIX): Define.
35         (mips_validate_fix): Declare.
37 2003-03-12  Alexandre Oliva  <aoliva@redhat.com>
39         * Reverted 2003-03-02's patch.
41 2003-03-11  Steve Ellcey  <sje@cup.hp.com>
43         * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
44         (TC_DWARF2_EMIT_OFFSET): Provide default.
45         (out_debug_aranges, out_debug_info): Use it.
46         * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
47         (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
48         (ia64_gen_real_reloc_type): ... here.
49         * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
51 2003-03-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
53         * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
54         (s_mips_ent): Likewise.
56 2003-03-04  Dmitry Diky  <diwil@mail.ru>
58         * config/tc-msp430.c (mcu_types): Add recently announced x1122
59         and x1123 devices, add missed x437. 
60         (md_show_usage): Sort device list.
62 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
64         * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
65         (md_begin): Use preset_target_arch.
66         (md_longopts): Make isa option unconditional.
67         (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
68         set preset_target_arch.
69         (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
70         by -S_GET_VALUE  (fixP->fx_subsy).
71         (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
72         and the addend is 0.
73         Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
74         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
76 2003-03-02  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
78         * config/tc-mips.c (append_insn): Add handling of
79         BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
80         BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
81         misaligned address and reange overflow.
82         (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
83         earlier warnings about misaligned address and reange overflow.
84         (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
85         (md_apply_fix): Likewise. Fix warning output.
86         (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
87         Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
88         (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
90 2003-02-21  Nick Clifton  <nickc@redhat.com>
92         * NEWS: Mention availability of test generator program.
94 2003-02-21  Miles Bader  <miles@gnu.org>
96         * config/tc-v850.c (system_registers): Add v850e debug registers.
97         (system_register_name): Accept up to 27 (the last v850e sys register).
99 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
101         * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
102         relevant to both COFF and ELF.  Fix obvious typos and texinfo bugs.
103         Capitalize section headings consistently.  Format index entries more
104         consistently.  Unconditionalize text about whether text and data
105         sections are alterable.  Use @ifnottex for alternatives to @tex output
106         so that HTML works.  Clean up COFF vs. ELF descriptions of .section,
107         .size and .type directives.  Be more polite about bad bug reports.
108         Move FDL into a separate file.
109         * doc/fdl.texi: New file.
111 2003-02-21  Richard Sandiford  <rsandifo@redhat.com>
113         * config/tc-mips.c (prev_reloc_op_frag): New variable.
114         (macro): Check it to decide whether a new frag is needed.
115         (my_getSmallExpression): Set it.
117 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
119         * cgen.c: Fix typo: intial -> initial.
121 2003-02-19  Jie Zhang  <zhangjie@magima.com.cn>
123         * app.c (do_scrub_chars): Handle '||' in two states.
125 2003-02-13  Alan Modra  <amodra@bigpond.net.au>
127         * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
128         * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
130 2003-02-11  Uwe Stieber  <uwe@wwws.de>
132         * configure.in: Add support for kaOS as cross build target system.
133         * configure: Regenerated.
135 2003-02-10  Nick Clifton  <nickc@redhat.com>
137         * config/tc-arm.c (md_begin): If the Maverick co-processor is
138         selected, set the EF_ARM_MAVERICK_FLOAT flag and
139         bfd_mach_arm_ep9312 machine number.
141 2003-02-08  Richard Sandiford  <rsandifo@redhat.com>
143         * config/tc-mips.c (reloc_needs_lo_p): New function.
144         (fixup_has_matching_lo_p): New function.
145         (append_insn): Use reloc_needs_lo_p to check whether a relocation
146         might need a matching %lo().  Reuse the head of mips_hi_fixup_list
147         if that fixup already has a matching %lo().  Don't call frag_wane here.
148         (macro): Call frag_wane here if the last unmatched hi was in the
149         current frag.
150         (pic_need_relax): New function, split out from...
151         (md_estimate_size_before_relax): ...here.
152         (mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
153         whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
155 2003-02-07  Richard Sandiford  <rsandifo@redhat.com>
157         * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
159 2003-02-06  Alan Modra  <amodra@bigpond.net.au>
161         * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
162         x@toc+off works.
164 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
166         * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
167         (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
168         accept x@got+off etc.
169         (md_assemble): Handle TLS relocs.
170         (ppc_force_relocation): Force for all TLS relocs.
171         (ppc_fix_adjustable): Likewise.
172         (md_apply_fix3): Handle TLS relocs.
174 2003-02-04  Alan Modra  <amodra@bigpond.net.au>
176         * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
177         SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
179 2003-02-02  Richard Sandiford  <rsandifo@redhat.com>
181         * config/tc-mips.c (enum small_ex_type): Remove.
182         (imm_unmatched_hi): Remove.
183         (md_assemble): Remove use of imm_unmatched_hi.  Remove the last
184         argument from calls to append_insn.
185         (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
186         instead.
187         (macro_build): Update append_insn calls.
188         (mips16_macro_build, macro_build_lui): Likewise.
189         (mips_ip): Rework handling of small expressions.  Move explicit
190         relocation handling into my_getSmallExpression.  Assume that the
191         value of 'o' operands is zero if there is only one bracketed
192         expression left.
193         (percent_op): Make constant.  Record the BFD relocation code
194         associated with each operator.
195         (my_getSmallParser, my_getPercentOp): Remove.
196         (parse_relocation): New function.
197         (my_getSamllExpression): Rework.  Fill in relocations here
198         rather than in mips_ip.
200 2003-01-29  Nick Clifton  <nickc@redhat.com>
202         * config/tc-i386.c (line_comment_chars): Add '#'.  This makes the
203         assembler's handling of # <linenum> "<filename>" directives work.
205 2003-01-28  Jakub Jelinek  <jakub@redhat.com>
207         * dwarf2dbg.c: Include filenames.h.
208         (struct file_entry): Make filename const char *.
209         (dirs, dirs_in_use, dirs_allocated): New variables.
210         (get_filenum): Add NUM argument.  Build directory table.
211         (dwarf2_where): Adjust caller.
212         (dwarf2_directive_file): Use get_filenum to allocate
213         slot in file and directory tables.
214         (dwarf2_directive_loc): Recreate full filename from
215         directory and filename part if needed for listing.
216         (out_file_list): Output directory table.
217         Output main source file dirname before its filename.
219 2003-01-28    Dmitry Diky <diwil@mail.ru>
220         
221         * config/tc-msp430.c: Replace occurences of 'tolower' with
222         'TOLOWER'.
224 2003-01-27  David Mosberger  <davidm@hpl.hp.com>
226         * config/tc-ia64.c (dot_vframesp): Correct error message.
227         (dot_vframepsp): Ditto.
229 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
231         * configure.in (em): Set to irix on all Irix systems.
232         * configure: Rebuilt.
233         * config/te-irix.h: New file.
234         * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
235         whether to use Irix-specific 64-bit format.
237 2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
239         * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
241 2003-01-25  Jakub Jelinek  <jakub@redhat.com>
243         * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
244         (tc_gen_reloc): Handle TLS relocs.
245         (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
246         * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
247         relocs.
248         * config/obj-elf.c (obj_elf_section_word): Handle tls.
249         (obj_elf_type): Handle tls_object.
251 2003-01-24  Martin Schwidefsky  <schwidefsky@de.ibm.com>
253         * config/tc-s390.c (s390_tls_suffix): New function.
254         (elf_suffix_type): Add suffix enums for TLS relocations.
255         (s390_elf_suffix): Add suffix strings for TLS relocations.
256         (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
257         bfd relocations.
258         (md_gather_operands): Map new instruction operand/elf suffix
259         combinations for TLS to bfd relocations.
260         (tc_s390_fix_adjustable): Add new TLS relocations.
261         (tc_s390_force_relocation): Likewise.
262         (md_apply_fix3): Likewise.
264 2003-01-24  Alan Modra  <amodra@bigpond.net.au>
266         * as.h: Update copyright date.
267         * symbols.c: Likewise.
268         * config/tc-d10v.h: Likewise.
269         * config/tc-fr30.h: Likewise.
270         * config/tc-i960.h: Likewise.
271         * config/tc-mips.h: Likewise.
273         * config/tc-hppa.h (DIFF_EXPR_OK): Define.
274         (MD_APPLY_SYM_VALUE): Move.
276 2003-01-23  Nick Clifton  <nickc@redhat.com>
278         NEWS: Announce sh2e support.
280         * Add sh2e support:
282         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
284                 * config/tc-sh.c (md_show_usage): Added sh2e next to
285                 sh3e.
286                 (sh_elf_final_processing): Handle arch_sh2e.
288 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
290         * symbols.c (S_FORCE_RELOC): Add "strict" param.
291         * symbols.h (S_FORCE_RELOC): Likewise.
292         * config/obj-aout.h (S_FORCE_RELOC): Likewise.
293         * config/obj-bout.h (S_FORCE_RELOC): Likewise.
294         * config/obj-coff.h (S_FORCE_RELOC): Likewise.
295         * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
296         * config/obj-vms.h (S_FORCE_RELOC): Likewise.
297         * write.c (generic_force_reloc): New function.
298         (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
299         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
300         (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
301         * as.h (generic_force_reloc): Declare.
302         * doc/internals.texi (S_FORCE_RELOC): Update.
303         (TC_FORCE_RELOCATION_SUB_SAME): Update.
305         * config/tc-alpha.c (alpha_force_relocation): Adjust to use
306         generic_force_reloc.
307         (alpha_fix_adjustable): Likewise.
308         * config/tc-arm.c (arm_force_relocation): Likewise.
309         * config/tc-cris.c (md_cris_force_relocation): Likewise.
310         * config/tc-frv.c (frv_force_relocation): Likewise.
311         * config/tc-i386.c (md_apply_fix3): Likewise.
312         * config/tc-ia64.c (ia64_force_relocation): Likewise.
313         * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
314         * config/tc-m32r.c (m32r_force_relocation): Likewise.
315         * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
316         * config/tc-mcore.c (mcore_force_relocation): Likewise.
317         * config/tc-mips.c (mips_force_relocation): Likewise.
318         * config/tc-mmix.c (mmix_force_relocation): Likewise.
319         * config/tc-ppc.c (ppc_force_relocation): Likewise.
320         * config/tc-s390.c (tc_s390_force_relocation): Likewise.
321         * config/tc-sh.c (sh_force_relocation): Likewise.
322         (md_pcrel_from_section): Likewise.
323         * config/tc-sparc.c (tc_gen_reloc): Likewise.
324         * config/tc-v850.c (v850_force_relocation): Likewise.
325         * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
326         * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
327         * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
328         * config/tc-sparc.h (tc_fix_adjustable): Likewise.
330         * config/tc-d10v.c (d10v_force_relocation): Delete.
331         * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
332         * config/tc-dlx.c (md_dlx_force_relocation): Delete.
333         * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
334         * config/tc-fr30.c (fr30_force_relocation): Delete.
335         * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
336         * config/tc-mn10300.c (mn10300_force_relocation): Delete.
337         * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
338         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
339         * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
340         * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
341         * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
342         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
343         * config/tc-openrisc.c (openrisc_force_relocation): Delete.
344         * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
345         * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
346         * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
347         * config/tc-i386.c (i386_force_relocation): Delete.
348         * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
349         BFD_ASSEMBLER.
350         (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
351         * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
352         * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
353         * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
354         S_FORCE_RELOC.
355         (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
356         * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
358 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
360         * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
361         sh64_elf_section_data.
362         * config/tc-sh64.h: Include elf32-sh64.h.
363         * config/tc-m68hc11.c: Don't include stdio.h.
364         (md_show_usage): Fix missing continuation.
365         * Makefile.am: Run "make dep-am".
366         * Makefile.in: Regenerate.
368 2003-01-22  Nick Clifton  <nickc@redhat.com>
370         * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
372 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
374         * configure.in: Handle *-*-aros*.
375         * configure:    Regenerated from configure.in.
377 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
379         * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
380         gotplt and pltoff relocations.
381         (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
382         (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
383         gotplt and pltoff to bfd relocations.
384         (md_gather_operands): Map new instruction operand/elf suffix
385         combinations to bfd relocations.
386         (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
387         to the list of unadjustable relocations.
388         (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
389         and pltoff relocations.
390         (md_apply_fix3): Add the new relocations.
392 2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
394         * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
395         with a subsy symbol.
397 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
399         * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
400         of relocs for memory bank addressing.
402 2003-01-17  Stephane Carrez  <stcarrez@nerim.fr>
404         * config/tc-m68hc11.c (md_show_usage): Update usage.
405         (md_parse_option): Recognize -m68hcs12.
406         (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
407         HCS12.
408         * doc/as.texinfo (Overview): Document new option -m68hcs12.
410 2003-01-16  Jakub Jelinek  <jakub@redhat.com>
412         * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
414 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
416         * Makefile.am: Run "make dep-am".
417         * Makefile.in: Regenerate.
418         * po/POTFILES.in: Regenerate.
420 2003-01-11  Alan Modra  <amodra@bigpond.net.au>
422         * read.c (get_absolute_expr): New, split out from..
423         (get_absolute_expression): ..here.
424         * read.h (get_absolute_expr): Declare.
425         * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
426         Trim size to arch bits_per_address, and test for negative input
427         via get_absolute_expr.
429 2003-01-07  DJ Delorie  <dj@redhat.com>
431         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
432         on operand type.
433         (xstormy16_md_apply_fix3): Use adjustment.
435 2003-01-02  Ben Elliston  <bje@redhat.com>
437         * configure.in: Add iq2000-elf target.
438         * configure: Regenerate.
439         * config/tc-iq2000.c: New file.
440         * config/tc-iq2000.h: Likewise.
441         * po/gas.pot: Regenerate.
443 2003-01-02  Chris Demetriou  <cgd@broadcom.com>
445         * config/tc-mips.c: Update copyright years to include 2003.
446         (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
447         Additionally, clean up their code slightly and clean up their
448         comments some more.
450         * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
452 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
454         * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
455         $(CPU_DOCS)".
456         * doc/Makefile.in: Regenerate.
458 2003-01-01  John David Anglin  <dave.anglin@nrc.ca>
460         * config/obj-elf.c (special_sections): Work around HP's incorrect usage
461         of .init and .fini sections for array initializers and finalizers.
463 2002-12-31  Chris Demetriou  <cgd@broadcom.com>
465         * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
466         the "+D" operand, which will be used only by the disassembler.
468 2002-12-30  Chris Demetriou  <cgd@broadcom.com>
470         * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
471         CPU variants.
472         * configure: Regenerate.
473         * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
474         (macro_build): Handle "K" operand.
475         (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
476         CPU_HAS_DROR and CPU_HAS_ROR are currently used.
477         (mips_ip): New variable "lastpos", and implement "+A", "+B",
478         and "+C" operands for MIPS32 Release 2 ins/ext instructions.
479         Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
480         (validate_mips_insn): Implement "+" as a way to extend the
481         allowed operands, and implement "K", "+A", "+B", and "+C"
482         operands.
483         (OPTION_MIPS32R2): New define.
484         (md_longopts): Add entry for OPTION_MIPS32R2.
485         (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
486         (md_parse_option): Handle OPTION_MIPS32R2.
487         (s_mipsset): Reimplement handling of ".set mipsN" options
488         and add support for ".set mips32r2".
489         (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
490         (md_show_usage): Document "-mips32r2" option.
491         * doc/as.texinfo: Document "-mips32r2" option.
492         * doc/c-mips.texi: Likewise.
494 2002-12-30    Dmitry Diky <diwil@mail.ru>
496         * configure.in: Add msp430 target.
497         * configure: Regenerate.
498         * Makefile.am: Add msp430 target.
499         * Makefile.in: Regenerate.
500         * config/tc-msp430.c: New file: msp430 assembler.
501         * config/tc-msp430.h: New file: target macros for msp430.
502         * doc/Makefile.am: Add msp430 target.
503         * doc/Makefile.in: Regenerate.
504         * doc/as.texinfo: Include msp430 documenation.
505         * doc/all.texi: Enable msp430 documentation.
506         * doc/c-msp430.texi: New file: document msp430 specific features
507         of the assembler.
509 2002-12-25  Alexandre Oliva  <aoliva@redhat.com>
511         * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
512         (dwarf2_finish): Use it.
513         * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
514         * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
516 2002-12-20  DJ Delorie  <dj@redhat.com>
518         * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
519         BFD_RELOC_XSTORMY16_12.
521 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
523         * doc/as.texinfo (Invoking): Typo fix.
524         * config/tc-tic54x.c (encode_operand): Comment typo fix.
526 2002-12-18  Kazu Hirata  <kazu@cs.umass.edu>
528         * doc/c-alpha.texi: Fix typos.
529         * doc/c-arm.texi: Likewise.
530         * doc/c-d10v.texi: Likewise.
531         * doc/c-i370.texi: Likewise.
532         * doc/c-i960.texi: Likewise.
533         * doc/c-ia64.texi: Likewise.
534         * doc/c-mmix.texi: Likewise.
535         * doc/c-ns32k.texi: Likewise.
536         * doc/c-pdp11.texi: Likewise.
537         * doc/c-pj.texi: Likewise.
538         * doc/c-sh64.texi: Likewise.
539         * doc/c-sparc.texi: Likewise.
540         * doc/c-tic54x.texi: Likewise.
541         * doc/c-v850.texi: Likewise.
542         * doc/c-vax.texi: Likewise.
543         * doc/internals.texi: Likewise.
545 2002-12-18  Chris Demetriou  <cgd@broadcom.com>
547         * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
548         use hardware rotate ops as appropriate.  In M_DROL_I, M_DROR_I,
549         M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
550         arrange not to issue warnings about use of AT when AT is not
551         actually used.
553 2002-12-17  Nick Clifton  <nickc@redhat.com>
555         * as.c (std_longopts): Duplicate --keep-locals entry in order to
556         prevent it being confused with -k.
558 2002-12-16  Andrew MacLeod  <amacleod@redhat.com>
560         * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation 
561         has already been set up, use it.
563 2002-12-16  Kazu Hirata  <kazu@cs.umass.edu>
565         * ChangeLog-9295: Fix a typo.
566         * README: Likewise.
567         * config/tc-d10v.c: Fix a comment typo.
568         * config/tc-dlx.c: Likewise.
569         * config/tc-h8300.h: Likewise.
570         * config/tc-h8500.h: Likewise.
571         * config/tc-mips.c: Likewise.
572         * config/tc-s390.c: Likewise.
573         * config/tc-sh.h: Likewise.
574         * config/tc-tic80.h: Likewise.
575         * config/tc-w65.h: Likewise.
576         * config/tc-z8k.c: Likewise.
577         * config/tc-z8k.h: Likewise.
578         * testsuite/gas/h8300/cmpsi2.s: Likewise.
580 2002-12-16  Alan Modra  <amodra@bigpond.net.au>
582         * config/tc-d30v.c (check_range): Warning fixes, formatting.
583         Simplify sign extension.  Remove redundant unsigned < 0 test.
584         * config/tc-i960.c (md_ri_to_chars): Prototype.
585         * config/tc-mcore.c (md_pseudo_table): Fix typo.
586         (dump_literals): Init brarsym, and test later instead of isforce.
588         * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
589         (parse): Constify line and lineptr.
590         (md_begin): Calculate endop here.
592 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
594         * config/obj-vms.c: Formatting.  Include fnctl.h.
595         (Create_VMS_Object_File): Fix creat call for sane unix systems.
596         (Object_Record_Offset): Make it a size_t.
597         (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
598         (VMS_TBT_Routine_End <Size>): Make var unsigned long.
599         (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
600         (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
601         (vms_fixup_data_section <data_size>): Add here instead.
602         * config/e-criself.c: Fix typo in last change.
604 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
606         * write.c (write_object_file): Fix signed/unsigned warning.
607         * config/e-crisaout.c (crisaout_bfd_name): Prototype.
608         * config/e-criself.c (criself_bfd_name): Prototype.
609         * config/obj-aout.c (s_sect): Remove unused function.
610         * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
611         * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
612         (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
613         * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
614         * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
615         (VMS_RSYM_Parse <Current_Routine>): Likewise.
616         (vms_fixup_text_section <text_siz>): Likewise.
617         (synthesize_data_segment <data_size>): Likewise.
618         (vms_fixup_xtors_section <sect_no>): Likewise.
619         (structure_count): Don't use implicit int type.
620         * config/tc-a29k.c (insert_sreg): Prototype.
621         (define_some_regs): Prototype, make static.
622         (parse_operand): Likewise.
623         (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
624         (md_show_usage <stream>): Likewise.
625         (md_section_align <segment>): Likewise.
626         (md_convert_frag <all args>): Likewise.
627         (md_estimate_size_before_relax <all args>): Likewise.
628         (md_apply_fix3): Don't cast valP pointer type.  Fix bogus >>='s.
629         * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
630         * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
631         (md_undefined_symbol <name>): Likewise.
632         (md_convert_frag <all args>): Likewise.
633         (write_long <opcode>): Likewise.
634         (tc_gen_reloc <seg>): Likewise.
635         (md_estimate_size_before_relax <all args>): Likewise.
636         (md_apply_fix3 <seg>): Likewise.
637         (s_d30v_align <ignore>): Likewise.
638         (build_insn): Correct format string.
639         (md_apply_fix3): Likewise.
640         * config/tc-fr30.c (md_parse_option <c,arg>):  Add ATTRIBUTE_UNUSED.
641         (md_undefined_symbol <name>): Likewise.
642         (md_convert_frag <all args>): Likewise.
643         (md_cgen_lookup_reloc <insn>): Likewise.
644         (md_begin): Delete unused vars.
645         (md_assemble): Likewise.
646         (md_estimate_size_before_relax): Likewise.
647         (fr30_relax_frag): #if 0 out, seems unused.
648         (md_atof): Remove declaration of atof_ieee.
649         (restore_colon): Prototype.
650         * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
651         (frv_find_in_vliw): Likewise.
652         (frv_debug_tomcat): Likewise.
653         (frv_adjust_vliw_count): Likewise.
654         (frv_tomcat_shuffle): Likewise.
655         (frv_tomcat_analyze_vliw_chains): Likewise.  Correct args to
656         frv_find_in_vliw call.
657         (md_atof): Remove declaration of atof_ieee.
658         * config/tc-h8500.c (cons): Delete declaration.
659         (md_begin <opcode>): Constify.
660         (displacement_size, immediate_size, absolute_size): Remove.
661         (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
662         (tc_crawl_symbol_chain <headers>): Likewise.
663         (md_undefined_symbol <name>): Likewise.
664         (tc_headers_hook <headers>): Likewise.
665         (md_parse_option <c,arg>): Likewise.
666         (md_show_usage <stream>): Likewise.
667         (md_convert_frag <headers, seg>): Likewise.
668         (tc_coff_symbol_emit_hook <ignore>): Likewise.
669         (md_atof): Remove declaration of atof_ieee.
670         (tc_aout_fix_to_chars): Remove unused function.
671         (parse_reg): Prototype.
672         (parse_exp): Prototype.
673         (skip_colonthing): Prototype.  Use &&, not & in logical expressions.
674         (parse_reglist): Prototype.
675         (get_operand): Prototype.
676         (get_operands): Prototype.
677         (get_specific): Prototype.  Make "this_index" signed.
678         (check): Prototype, make static.
679         (insert): Prototype
680         (build_relaxable_instruction): Prototype, make static.
681         (build_bytes): Prototype.
682         (wordify_scb): Prototype.
683         * config/tc-h8500.h (start_label): Declare.
684         (tc_coff_sizemachdep): Declare.
685         * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
686         (i370_rmode <unused>): Likewise.
687         (i370_csect <unused>): Likewise.
688         (i370_dc <unused>): Likewise.
689         (i370_ds <unused>): Likewise.
690         (i370_elf_lcomm <unused>): Likewise.
691         (i370_ltorg <ignore>): Likewise.
692         (i370_using <ignore>): Likewise.
693         (i370_drop <ignore>): Likewise.
694         (i370_byte <ignore>): Likewise.
695         (i370_tc <ignore>): Likewise.
696         (md_estimate_size_before_relax <fragp, seg>): Likewise.
697         (md_convert_frag <all args>): Likewise.
698         (md_undefined_symbol <name>): Likewise.
699         (md_pcrel_from_section <sec>): Likewise.
700         (tc_gen_reloc <seg>): Likewise.
701         (i370_section_letter): #if 0 unused functions.
702         (i370_section_word, i370_section_type, i370_section_flags): Likewise.
703         (symbol_locate): Prototype.
704         * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
705         (md_number_to_disp, md_number_to_field): Remove.
706         (md_apply_fix3): Correct format string and cast "fup".
707         * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
708         (s_endian <ignore>): Likewise.
709         (md_undefined_symbol <name>): Likewise.
710         (tc_crawl_symbol_chain <headers>): Likewise.
711         (tc_set_bal_of_call): Likewise.
712         (tc_coff_symbol_emit_hook <symbolP>): Likewise.
713         (i960_handle_align <fragp>): Likewise.
714         (i960_validate_fix <this_segment_type>): Likewise
715         (tc_gen_reloc <section>): Likewise.
716         (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
717         (struct memS, struct regop): Forward declare.
718         (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
719         get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
720         parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
721         reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
722         targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
723         (md_chars_to_number, md_number_to_imm): Make static, prototype.
724         (md_number_to_field): Likewise.
725         (md_number_to_disp): Remove unused function.
726         (md_atof): Remove declaration of atof_ieee.
727         (md_apply_fix3): Correct md_number_to_imm call.
728         * config/tc-ip2k.c (md_assemble): Warning fix.
729         * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
730         (fill_insn <ignore>): Likewise.
731         (debug_sym <ignore>): Likewise.
732         (md_undefined_symbol <name>): Likewise.
733         (m32r_scomm <ignore>): Likewise.
734         (md_convert_frag <abfd>): Likewise.
735         (md_cgen_lookup_reloc <insn>): Likewise.
736         (m32r_record_hi16 <seg>): Likewise.
737         (md_estimate_size_before_relax): #if 0 old_fr_fix.
738         (allow_m32rx): Prototype.
739         (first_writes_to_seconds_operands): Prototype.
740         (writes_to_pc): Prototype.
741         (can_make_parallel): Prototype.
742         (make_parallel): Prototype.
743         (target_make_parallel): Prototype.
744         (assemble_two_insns): Prototype.
745         (m32r_record_hi16): Prototype.
746         (md_atof): Remove declaration of atof_ieee.
747         * config/tc-m32r.h (m32r_fix_adjustable): Declare.
748         (m32r_force_relocation): Prototype.
749         (m32r_elf_section_change_hook): Prototype.
750         * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
751         (md_show_usage): Fix signed/unsigned warning.
752         * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
753         (calcop): Ditto for reg_prefix var.
754         (hexval): Add cast to fix signed/unsigned warning.
755         (md_number_to_disp): Delete unused function.
756         (md_number_to_field): Likewise.
757         (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
758         (match_name): Prototype.
759         (get_bf2): Prototype.
760         (get_bf_offset_expression): Prototype.
761         * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
762         (md_undefined_symbol <ignore>): Likewise.
763         (md_create_short_jump <all args>): Likewise.
764         (md_create_long_jump <all args>): Likewise.
765         (md_convert_frag <abfd, sec>): Likewise.
766         (md_apply_fix3 <segment>): Likewise.
767         (md_section_align <segment>): Likewise.
768         (md_pcrel_from_section <sec>): Likewise.
769         (tc_gen_reloc <section>): Likewise.
770         (reg_m, reg_n, immediate): Delete unused vars.
771         (dump_literals): Fix signed/unsigned warning.
772         (enter_literal): Likewise.
773         (parse_imm): Likewise.  Also fix format string.
774         (parse_mem): Remove unused var.
775         (md_assemble <LS>): Abort on unexpected inst.
776         (md_atof): Remove declaration of atof_ieee.
777         (md_parse_option): Remove unused vars.
778         (md_apply_fix3): Fix format strings, cast args.
779         (tc_gen_reloc): Delete unused var.
780         * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
781         * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
782         (md_undefined_symbol <name>): Likewise.
783         (md_convert_frag <abfd>): Likewise.
784         (tc_gen_reloc <seg>): Likewise.
785         (check_operand <insn>): Likewise.
786         (md_convert_frag): Fix format strings.
787         (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
788         * config/tc-openrisc.c (ignore_pseudo): Prototype.
789         (md_atof): Remove declaration of atof_ieee.
790         * config/tc-or32.c (parse_operand): Prototype non-BFD too.
791         (md_apply_fix3): Fix bogus >>='s.
792         (md_undefined_symbol): Delete unused var.
793         * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
794         (c_to_r, ipush_code, fake_opcode, alias): Likewise.
795         (fake_opcode): Adjust for pj_opc_int_t change.
796         (md_begin): Likewise.
797         (md_assemble): Likewise.
798         (ipush_code): Correct parse_exp_save_ilp call.  Test pending_reloc
799         instead of non-existent third arg of parse_exp_save_ilp.
800         (md_parse_option): Correct "little" and "big" calls.
801         * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
802         (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
803         (tc_gen_reloc <section>): Likewise.
804         * config/tc-tic30.c: #include stdarg.h or varargs.h.
805         (debug): Rewrite using VA_* macros.
806         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
807         (md_convert_frag): Likewise.
808         (md_parse_option): Likewise.
809         (md_show_usage): Likewise.
810         (md_undefined_symbol): Likewise.
811         (tc_gen_reloc): Likewise.
812         (md_operand): Likewise.
813         (tc_aout_pre_write_hook): Delete.
814         (struct tic30_insn): Make "operands" unsigned.
815         (struct tic30_par_insn): Likewise.
816         (md_assemble): Likewise for "count", "i" and "numops".
817         (tic30_parallel_insn): Likewise for vars here.
818         (tic30_operand): Likewise.  Remove useless unsigned >= 0 comparison.
819         * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
820         * config/tc-tic80.c (obj_coff_section): Delete declaration.
821         (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
822         (md_undefined_symbol): Likewise.
823         (md_parse_option): Likewise.
824         (md_convert_frag): Likewise.
825         (tc_coff_symbol_emit_hook): Likewise.
826         (md_atof): Remove declaration of atof_ieee.
827         (const_overflow): Warning fixes, tidy.
828         (get_operands): Delete unused vars.
829         (internal_error_a): Adjust format string to expect a long for arg.
830         (find_opcode): Warning fixes, simplify.
831         (build_insn): Cast internal_error_a arg.
832         (md_begin): Likewise.
833         (md_apply_fix3): Likewise.
834         (md_assemble): Delete unused var.
835         * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
836         * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
837         (whatreg, parse_reg, parse_exp): Make static, prototype.
838         (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
839         (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
840         (get_operand, get_operands, get_specific, newfix): Likewise.
841         (apply_fix, build_bytes): Likewise.
842         (md_atof): Remove declaration of atof_ieee.
843         (tc_aout_fix_to_chars): Delete.
844         (md_begin): Constify "opcode".  Don't try to init opcode->idx.
845         Fix s_unseg call.
846         (md_parse_option): Fix s_segm and s_unseg calls.
848 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
850         * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
851         Adjust callers.
852         (RELAX_BRANCH_RELOC_S2): Delete.
853         (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
854         Do not handle BFD_RELOC_16_PCREL.
855         (macro_build, mips_ip): Likewise.
856         (md_pcrel_from): Return 4 for undefined symbols regardless of
857         mips_pic.
858         (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
859         Don't dereference howto if no such relocation is available.
860         Do not apply hack for in-place zero addend in NEWABI.
861         (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
863 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>,
864             Alan Modra  <amodra@bigpond.net.au>
866         * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
867         (TC_LINKRELAX_FIXUP): Add comments.
869 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
871         * config/tc-mn10300.c (set_arch_mach): Change argument type to
872         avoid warnings.
873         (r_register_name, xr_register_name): Add prototype declarations.
875 2002-12-08  H.J. Lu <hjl@gnu.org>
877         * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
878         copied from tc-i386.c.
880 2002-12-08  Stephane Carrez  <stcarrez@nerim.fr>
882         Fix Bug savannah/1825:
883         * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
884         (md_relax_table): Define specific relax for PC-rel offsets.
885         (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
886         (m68hc11_relax_frag): Handle the new relax code.
887         (md_convert_frag): Likewise.
888         (md_estimate_size_before_relax): Likewise.
890 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
892         * subsegs.c (section_symbol): Use the symbol, not the section, name.
894 2002-12-05  Richard Henderson  <rth@redhat.com>
896         * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
897         (ia64_gen_real_reloc_type): Handle it.
898         (pseudo_func): Add @ltoffx.
899         (md_begin): Build .<ltoffx>.
900         (ia64_force_relocation): True for LTOFF22X and LDXMOV.
902 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
904         * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
905         Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
906         ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
907         * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
908         COFF to call arm_force_relocation.
910 2002-12-04  David Mosberger  <davidm@hpl.hp.com>
912         * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
913         instruction.
914         (emit_one_bundle): Handle "hint" instruction.
915         (operand_match): Match IA64_OPND_AR_CSD.
917 2002-12-04  Alan Modra  <amodra@bigpond.net.au>
919         * dwarf2dbg.c (scale_addr_delta): Correct parameter.  Move prototype
920         inside #if.
922 2002-12-03  Nick Clifton  <nickc@redhat.com>
924         * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
925         .PPC.EMB.apuinfo sections.
927 2002-12-03  Richard Henderson  <rth@redhat.com>
929         * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
931 2002-12-03  Alan Modra  <amodra@bigpond.net.au>
933         * config/tc-w65.c (s_longa): Prototype.  Make static, specify int arg.
934         (cons, s_align_bytes): Delete declaration.
935         (relax): Delete.
936         (md_begin): Constify "struct opinfo *" var.  Don't try to make "name"
937         strings common.
938         (dot): Delete unused function.
939         (w65_expression): Remove unused arg.
940         (parse_exp): Prototype.  Remove unused arg.  Adjust w65_expression
941         call.
942         (get_operands): Prototype.  Constify "struct opinfo *" arg.  Fix
943         parse_exp call.
944         (get_specific): Prototype.  Constify "struct opinfo *" arg and return
945         value.
946         (check): Remove unused function.
947         (build_Mytes): Prototype.  Constify "struct opinfo *" arg.  Abort
948         on unhandled switch case.
949         (md_assemble): Remove unused op_start, op_end, nlen, p vars.  Constify
950         "opcode".
951         (tc_crawl_symbol_chain): Delete unused function.
952         (tc_headers_hook): Likewise.
953         (tc_Nout_fix_to_chars): Likewise.
954         (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
955         (md_parse_option): Likewise.
956         (md_convert_frag): Likewise.
957         (tc_coff_symbol_emit_hook): Likewise.
958         (md_show_usage): Likewise.
959         * config/tc-w65.h (tc_coff_sizemachdep): Declare.
960         (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
961         (w65_expression): Declare.
963         * po/POTFILES.in: Regenerate.
965         * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
966         and ARM_ADRL_IMMEDIATE.
968 2002-12-02  Nick Clifton  <nickc@redhat.com>
970         * gasp.c: Delete.  It has been deprecated.
971         * NEWS: Mention that gasp has been removed.
972         * Makefile.am: Remove references to gasp.
973         * makefile.vms: Likewise.
974         * mpw-make.sed: Likewise.
975         * Makeile.in: Regenerate.
976         * doc/gasp.texi: Delete.
977         * doc/Makefile.am: Remove references to gasp.texi.
978         * doc/Makefile.in: Regenerate.
979         * macro.c: Delete references to gasp.
980         Remove use of comment_char function parameter as it is no longer
981         needed.
982         * macro.h: Update prototypes to remove comment_char parameter.
983         Fix formatting.
984         * read.c (read_a_source_file, s_irp): Remove comment_char
985         parameter from invocation of functions in macro.c
987 2002-12-02  Hans-Peter Nilsson  <hp@axis.com>
989         * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
991 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
993         * config/tc-m68hc11.c (md_begin): Fix qsort warning.
994         (tc_gen_reloc): Mark section param as not used.
996 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
998         Fix Bug savannah/1825:
999         * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1000         that are not pc-relative.
1001         (m68hc11_relax_frag): Declare.
1003         * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1004         the offsetable indexed addressing modes (n,r).
1005         (build_insn): Cleanup some locals.
1006         (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1007         relaxation of difference between two symbols of same section.
1008         (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1009         only when this is a PC-relative operand and the offset is not absolute.
1010         (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1011         to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1012         be handled by m68hc11_relax_frag.
1014 2002-12-01  Stephane Carrez  <stcarrez@nerim.fr>
1016         * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1017         (32-bit int, 64-bit double).
1018         (md_longopts): New options -mshort, -mlong, -mshort-double and
1019         -mlong-double to control the ABI.
1020         (md_show_usage): Update.
1021         (md_parse_option): Handle new options.
1022         * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1024 2002-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1026         * symbols.c (report_op_error): New function, broken out of ...
1027         (resolve_symbol_value): ... here. Use for both monadic and dyadic
1028         operators.
1030 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1032         * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1033         for BFD_RELOC_32_PLT_PCREL.
1035 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
1037         * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1038         config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1039         config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1040         config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1041         config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1042         config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1043         config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1044         config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1045         config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1046         config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1047         config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1048         config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1049         config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1050         config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1051         TRUE, false with FALSE.  Simplify comparisons of bfd_boolean vars with
1052         TRUE/FALSE.  Formatting.
1054 2002-11-29  Nick Clifton  <nickc@redhat.com>
1056         * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1057         assume a value of zero.
1058         (do_bkpt): Likewise.
1060 2002-11-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1062         * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1063         for TLS relocations.
1065 2002-11-29  Jakub Jelinek  <jakub@redhat.com>
1067         * config/tc-ia64.c (md_apply_fix3): Add default case.
1069 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1071         * symbols.c (S_SET_THREAD_LOCAL): New function.
1072         * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1073         * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1074         for TLS relocations.
1075         * config/tc-ia64.c (md_apply_fix3): Likewise.
1076         * config/tc-alpha.c (md_apply_fix3): Likewise.
1078 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
1080         * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1081         to entsize.
1083 2002-11-26  DJ Delorie  <dj@redhat.com.
1085         * dwarf2dbg.c (scale_addr_delta): New.
1086         (size_inc_line_addr): Use it.
1087         (emit_inc_line_addr): Use it.
1089 2002-11-26  Hans-Peter Nilsson  <hp@axis.com>
1091         * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1092         (md_assemble): Don't pass on branches to constants as relaxable.
1093         Tweak comment.
1095 2002-11-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
1097         * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1099 2002-11-21  Randolph Chung  <randolph@tausq.org>
1101         * config/tc-hppa.h (tc_frob_symbol):  Frob undefined unused symbols
1102         only if they have default visibility.
1104 2002-11-21  Richard Henderson  <rth@redhat.com>
1106         * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1107         S_IS_DEFINED test.
1109 2002-11-21  Alan Modra  <amodra@bigpond.net.au>
1111         * config/tc-mcore.c (mcore_pool_count): New function.
1112         (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1114 2002-11-20  Klee Dienes  <kdienes@apple.com>
1116         * config/tc-mcore.c (md_begin): Use a const iterator.  Don't
1117         coalesce the name fields to use the same pointer.
1119         * config/tc-sh.c (md_begin): Use a const iterator.  Don't coalesce
1120         the name fields to use the same pointer.
1121         (get_specific): Check for opcodes with the same name using strcmp
1122         as well as comparing the pointer.
1124 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
1126         * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1127         fx_subsy non-NULL.
1129 2002-11-19  Richard Henderson  <rth@redhat.com>
1131         * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1132         visibility portion of st_other.
1134 2002-11-19  Klee Dienes  <kdienes@apple.com>
1136         * config/tc-h8300.c (struct h8_instruction): New type, used to
1137         wrap h8_opcodes with length, noperands, idx, and size fields
1138         (computed at run-time).
1139         (h8_instructions): New variable.
1140         (md_begin): Allocate the storage for h8_instructions.  Fill
1141         h8_instructions with pointers to the appropriate opcode and the
1142         correct value for the additional fields.
1143         (clever_message): Update to use h8_instructions instead of
1144         h8_opcodes.
1145         (build_bytes): Ditto.
1146         (get_specific): Ditto.
1147         (md_assemble): Ditto.
1149 2002-11-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1151         * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1152         adjustments to symbols in merge sections.
1154 2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
1156         * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1158 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
1160         * dwarf2dbg.h (dwarf2_format): New enum.
1161         * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1162         (out_debug_line, out_debug_info): Add code for handling 64-bit
1163         DWARF 2 formats.
1164         * config/tc-mips.h (mips_dwarf2_format): Declare.
1165         * config/tc-mips.c (mips_dwarf2_format): New function.
1166         * doc/internals.texi (DWARF2_FORMAT): Document.
1168 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>
1170         * config/tc-mips.c (s_change_section): Make sure input buffer
1171         is not accessed past the end.  Don't hand
1172         obj_elf_change_section a pointer into the input buffer.
1174 2002-11-18  Alexandre Oliva  <aoliva@redhat.com>, Chris Demetriou  <cgd@broadcom.com>
1176         * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1177         GOT_LO16 on NEWABI.
1179 2002-11-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1181         * config/tc-tic4x.c: Fixed proper commandline
1182         parameters. Added support for new opcode-list format. General
1183         error message fixups.
1184         (c4x_inst_add): Reject insn not for our CPU
1185         (md_begin): Added matrix for setting the proper opcode-level &
1186         device-flags according to cpu type and revision. Rewrite the
1187         opcode hasher.
1188         (c4x_operand_parse): Fix opcode bug
1189         (c4x_operands_match): New function argument. Added dry-run
1190         mechanism, that is optional error generation. Added constraint 'i'
1191         and 'j'.
1192         (c4x_insn_check): Added new function for post-verification of the
1193         generated insn.
1194         (md_assemble): Check all opcodes before croaking because of an
1195         argument mismatch. Need this to be able to fully support
1196         ortogonally arguments.
1197         (md_parse_options): Revised commandprompt swicthes and added new
1198         ones.
1199         (md_show_usage): Complete rewrite of printout.
1201 2002-11-16  Svein E. Seldal  <Svein.Seldal@solidas.com>
1203         * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1204           (c4x_operands_match): Added check for 8-bits LDF insn. Give
1205           warning when using constant direct bigger than 2^16. Add the new
1206           arguments.
1208 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1210         * configure.in: Use .gdbinit under Cygwin.
1211         * configure: Regenerate.
1213 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1215         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1216         STRICT_PE_FORMAT.
1218 2002-11-11  Svein E. Seldal  <Svein.Seldal@solidas.com>
1220         * config/tc-tic4x.c: Declare as many functions as possible as
1221         static. Maintenance on the general indenting. Removed unnecessary
1222         pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1223         function. Add support for new DSP, TMS320VC33. Fix bug for
1224         converting flonum constants.
1225         (c4x_do_align): Add proper align handling. Setup align to insert
1226         NOP's.
1227         (c4x_gen_to_words): Support for extended TI type floats.
1228         (md_atof): Proper dumping of multiple-word littlenums.
1229         (c4x_atof): Added support for extended TI type floats.
1230         (c4x_stringer): Added new function to handle compact strings.
1231         (c4x_emit_char): Added new function argument to handle custom
1232         length inserts, like single-byte strings.
1233         * config/tc-tic4x.h: Add proper align handling with NOP's.
1234         * Makefile.am: Added tic4x dependecy
1235         * Makefile.in: Regenerate
1237 2002-11-11  Hans-Peter Nilsson  <hp@bitrange.com>
1239         * macro.c (get_any_string): Correct logic for not going beyond end
1240         of in->ptr[].
1242 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
1244         * config/tc-mmix.c (get_putget_operands): Mark both possible
1245         operands as invalid at beginning.
1247         * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1248         Initialize target of fixup to zero.
1250 2002-11-07  Alexandre Oliva  <aoliva@redhat.com>
1252         * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1253         NEWABI, but we should still emit HI16_S for non-PIC n32.
1255 2002-11-06  Richard Henderson  <rth@redhat.com>
1257         * config/tc-alpha.c (alpha_validate_fix): Move code ...
1258         (alpha_fix_adjustable): ... here.
1259         * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1261 2002-11-07  Eric Kohl  <ekohl@rz-online.de>
1263         * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1264         of a label.
1266 2002-11-05  H.J. Lu <hjl@gnu.org>
1268         * config/tc-mips.c (support_64bit_objects): Check *l before it
1269         is freed.
1271 2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
1273         * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1274         SEC_LOAD flags for sections marked as 's'.
1276 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
1278         * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1279         (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1280         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1281         default.
1283         * dep-in.sed: Fix typo.
1285 2002-10-30  Daniel Jacobowitz  <drow@mvista.com>
1287         * configure.in: Update ARM CPU patterns.
1288         * configure: Regenerated.
1290 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
1292         * itbl-lex.l: Use #include <> for generated headers.
1293         * itbl-ops.c: Likewise.
1295 2002-10-28  Daniel Jacobowitz  <drow@mvista.com>
1297         * doc/gasp.texi: Fix typo in deprecation note.
1299 2002-10-23  Nick Clifton  <nickc@redhat.com>
1301         * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1302         _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1304 2002-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
1306         * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1307         (tc_frob_file_before_adjust): Don't define.
1308         * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1309         function.
1310         (mmix_frob_file_before_adjust): Remove ineffective function.
1312 2002-10-23  Hans-Peter Nilsson  <hp@axis.com>
1314         * config/tc-cris.c (SIMPLE_EXPR): New macro.
1315         (cris_relax_frag): New function.
1316         (md_estimate_size_before_relax) <case ENCODE_RELAX
1317         (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1318         expressions that will become absolute expressions to relaxation.
1319         (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1320         STATE_WORD)>: Expect only absolute expressions.  Use the symbol
1321         value, not distance to symbol.
1322         <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1323         Ditto.  Correct placement of fixup.
1324         (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1325         (gen_bdap): Ditto.
1326         * config/tc-cris.h (cris_relax_frag): Declare.
1327         (md_relax_frag): Define.
1329 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
1331         * config/obj-elf.c (special_sections): Use correct types for init
1332         array sections.
1333         (obj_elf_change_section): Don't mess with init array section type.
1335 2002-10-21  Richard Sandiford  <rsandifo@redhat.com>
1337         * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1338         for relocs against symbols in a merged section.
1340 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
1342         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1343         table as register names.
1345 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
1347         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1348         for option -m31.
1350 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
1352         * expr.c (operand): Add support for n.nn flonums.
1354 2002-10-17  Johannes Stezenbach  <js@convergence.de>
1356         * itbl-parse.y (entry): Provide empty action.
1358 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
1360         * configure.in (BFDVER_H): Set and subst.
1361         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1362         * Makefile.am: Run "make dep-am".
1363         (BFDVER_H): Define.
1364         * configure: Regenerate.
1365         * Makefile.in: Regenerate.
1366         * doc/Makefile.in: Regenerate.
1368 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
1370         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1371         (MD_APPLY_SYM_VALUE): Define for PE too.
1373 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
1375         * Makefile.am: Run "make dep-am".
1376         (CPU_OBJ_VALID): sh64 coff is invalid.
1377         * as.c: #include "bfdver.h".
1378         * Makefile.in: Regenerate.
1379         * config.in: Regenerate.
1381 2002-10-14  Momchil Velikov  <velco@fadata.bg>
1383         * config/tc-v850.c (CHECK_): Remove token pasting operator.
1385 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
1387         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1388         * configure: Regenerate.
1390 2002-10-13  Eric Christopher  <echristo@redhat.com>
1391             Alexandre Oliva  <aoliva@redhat.com>
1393         * config/tc-mips.c (s_gpdword): New function.
1394         (mips_pseudo_table): Add .gpdword.
1395         (mips_need_elf_addend_fixup): never for NEWABI.
1396         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1397         GPREL32 as done.
1398         (s_cpadd): Generate .cpadd on NEWABI.
1400 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
1402         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1404 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
1406         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1407         (md_relax_frag): Adjust macro.
1408         * config/tc-mips.c (mips_relax_branch): New variable.
1409         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1410         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1411         (RELAX_MIPS16_P): Adjust.
1412         (append_insn): Emit branch to non-constant in a frag_var if
1413         branch-relaxation is desirable and possible.
1414         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1415         (OPTION_ELF_BASE): Adjust.
1416         (md_parse_option): Handle new options.
1417         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1418         branch relaxation.
1419         (relaxed_branch_length): New function.
1420         (md_estimate_size_before_relax): Handle branch frags.
1421         (mips_relax_frag): Likewise.
1422         (md_convert_frag): Handle branch frags.  Warn if branch is
1423         relaxed.
1425 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1427         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1428         emitted.
1429         (md_apply_fix3): Add TLS relocs.
1430         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1431         @DTPOFF.
1433 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
1434             Alan Modra  <amodra@bigpond.net.au>
1436         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1437         (md_estimate_size_before_relax): Likewise for 8 bit branches.
1439 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
1441         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1442         inside loop.
1444 2002-10-09  Richard Shann <richard.shann@superh.com>
1445             Stephen Clarke <stephen.clarke@superh.com>
1447         * config/tc-sh64.c (sh64_target_format): Add support for sh64
1448         Linux environment.
1450 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1452         * contig/tc-sh.c (sh_local_pcrel): New.
1453         (sh_force_relocation): Use sh_local_pcrel.
1454         (md_pcrel_from_section): Check the relocation type whether it
1455         should be resolved locally. Use S_FORCE_RELOC.
1457 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
1459         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1460         (TC_FORCE_RELOCATION): Tidy arg.
1462 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
1463             Ken Raeburn  <raeburn@cygnus.com>
1464             Aldy Hernandez  <aldyh@redhat.com>
1465             DJ Delorie  <dj@redhat.com>
1466             Michael Meissner  <meissner@redhat.com>
1467             Eric Christopher  <echristo@redhat.com>
1468             Richard Sandiford  <rsandifo@redhat.com>
1470         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1471         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
1472         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1473         (hilo_interlocks): True for CPU_VR5500.
1474         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1475         (mips_fix_vr4122_bugs): New.
1476         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1477         (mips_emit_delays): Likewise.
1478         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1479         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1480         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1481         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1482         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1483         (OPTION_ELF_BASE): Bump.
1484         (md_parse_option): Handle the new options.
1485         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1486         vr5400 and vr5500.
1488 2002-09-29  H.J. Lu <hjl@gnu.org>
1490         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1491         twice if howto->pcrel_offset is true.
1493 2002-09-28  Matt Thomas  <matt@3am-software.com>
1494             Jason Thorpe  <thorpej@wasabisystems.com>
1496         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1497         convert undefined references to GOT32/PLT32 if PIC code is
1498         requested.  Fix comment.
1500 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1502         * config/tc-sh.c (sh_force_relocation): Return 0 for
1503         some PC relative relocations when not relaxing.
1505 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
1507         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1508         Define them if not BFD_ASSEMBLER.
1509         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1510         @tlsld.
1511         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1512         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1513         (tc_gen_reloc): Handle x86-64 TLS relocs.
1515 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
1517         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1518         fixups to current or absolute section.
1520 2002-09-26  Jim Wilson  <wilson@redhat.com>
1522         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1523         and frag_more.
1525 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1527         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1528         capable configuration.
1529         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1530         generation.
1531         (mips_ip): Likewise.
1533 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1535         * config/tc-mips.c (append_insn): Fix jump overflow check.
1537 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
1539         * config/tc-i386.c (process_operands): Warn about "lea" segment
1540         overrides.
1542 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
1544         * write.c: Delete set_segment_vma and prototype. Update all callers.
1546 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
1548         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1549         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
1550         Rename "fseg" to "sym_seg".
1551         * Makefile.am: Run "make dep-am".
1552         * Makefile.in: Regenerate.
1553         * doc/Makefile.in: Regenerate.
1555 2002-09-20  Nick Clifton  <nickc@redhat.com>
1557         * symbols.c (colon): Do not allow symbols to be created in the
1558         absolute section if WORKING_DOT_WORD is not defined and
1559         new_broken_words would require a new frag to be created.
1561 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
1563         * expr.c (expr): Simplify foo-foo here.
1564         (clean_up_expression): Remove O_subtract code.
1566         * write.h (struct fix): Add fx_dot_value.
1567         (dot_value): Declare.
1568         * write.c (dot_value): New var.
1569         (fix_new_internal): Save dot_value as fx_dot_value.
1570         (fixup_segment): Adjust fx_offset using fx_dot_value.
1571         * expr.c (expr): Update dot_value.
1573 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
1575         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1576         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1577         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1578         if not defined.
1579         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1580         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1581         BFD_RELOC_386_TLS_GOTIE.
1583 2002-09-19  Richard Henderson  <rth@redhat.com>
1585         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1586         branch type relocs.
1587         (alpha_force_relocation): Don't special-case branch type relocs.
1589 2002-09-19  Nick Clifton  <nickc@redhat.com>
1591         * config/tc-m68k.c (select_control_regs): Handle situation where
1592         architecture has not yet been selected.
1594 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
1596         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1597         (IS_SEXT_16BIT_NUM): New macro.
1598         (macro_build_ldst_constoffset): New function, to build a set of
1599         instructions to do a load or store from a constant offset relative
1600         to a given register.
1601         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1602         .cprestore pseudo-op.
1604 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
1606         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1608 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1610         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1612 2002-09-17  Stan Cox  <scox@redhat.com>
1614         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1615         (macro): Likewise for la.  Likewise for ld.
1616         (mips_after_parse_args): Make -xgot optional, not the default.
1617         (md_apply_fix3): Allow composite relocation to set up gp.
1618         (tc_gen_reloc): Allow relaxing for newabi.
1619         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1620         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1622 2002-09-17  Nick Clifton  <nickc@redhat.com>
1624         * config/tc-arm.c (md_apply_fix3): Note that an implemented
1625         BFD_RELOC_ARM_IMMEDIATE has been done.
1626         (tc_gen_reloc): Do not issue reloc number of unimplemented
1627         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1628         their name is already in the error message - plus remove them
1629         from the default case.
1631         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1632         behavior of instructions.
1634 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
1636         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1637         Convert functions to K&R format.
1639 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1641         * config/tc-mips.c (pdr_seg): Define only for ELF.
1642         (s_change_section): Remove unused variable. Don't use for nonELF.
1644 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1646         * config/obj-elf.c (obj_elf_change_section): Move prototype to
1647         obj-elf.h
1648         * config/obj-elf.h (obj_elf_change_section): Likewise.
1650 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
1652         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1653         (out_debug_info): Likewise.
1655 2002-09-16  Bruno Haible  <bruno@clisp.org>
1657         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1658         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1659         * config/tc-i386.c (i386_target_format): Likewise.
1660         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1661         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1663 2002-09-13  Nick Clifton  <nickc@redhat.com>
1665         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1666         when deciding if any operands have been skipped.
1668 2002-09-11  Nick Clifton  <nickc@redhat.com>
1670         * NEWS: New TI port supports both C4x and C3x series of DSPs.
1672         * po/tr.po: Updated Turkish translation.
1674 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
1676         * config/tc-i386.c (md_apply_fix3): Allow addend for
1677         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1678         BFD_RELOC_386_TLS_LE_32.
1680 2002-09-05  Jeff Law  <law@redhat.com>
1682         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1683         marker relocations such as ENTRY/EXIT.
1684         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1685         to both OBJ_ELF and OBJ_SOM.
1687 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
1689         * doc/internals.texi (md_apply_fix3): Expand.
1690         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1691         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1692         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1693         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1694         EXTERN_FORCE_RELOC): Document.
1695         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1696         * as.h: Don't include struc-symbol.h for arc.
1697         (IS_ELF): Define.
1698         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1699         subtract absolute symbol.
1700         * obj.h (struct format_ops): Add frob_file_before_fix.
1701         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1702         * symbols.c (S_FORCE_RELOC): New function.
1703         * symbols.h (S_FORCE_RELOC): Declare.
1704         * write.c (TC_FORCE_RELOCATION): Change default.
1705         (TC_FORCE_RELOCATION_ABS): Define.
1706         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1707         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1708         (TC_FORCE_RELOCATION_SECTION): Don't define.
1709         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1710         (TC_FORCE_RELOCATION_SUB_ABS): Define.
1711         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1712         (TC_VALIDATE_FIX_SUB): Define.
1713         (TC_FIX_ADJUSTABLE): Don't define.
1714         (MD_APPLY_SYM_VALUE): Define this instead.
1715         (abs_section_sym): New variable.
1716         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
1717         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
1718         Don't put the absolute section sym on fixups here.
1719         (fix_segment): New function.
1720         (write_relocs): Don't call fixup_segment from here.
1721         (write_object_file): Instead call tc_frob_file_before_fix,
1722         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1723         Don't output the absolute section symbol.
1724         (fixup_segment): Rewrite.
1725         * write.h (abs_section_sym): Declare.
1726         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1727         obj_aout_frob_file.
1728         (aout_format_ops): Adjust to suit.
1729         * config/obj-aout.h (obj_frob_file): Don't define.
1730         (obj_frob_file_before_fix): Define.
1731         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1732         (S_FORCE_RELOC): Define.
1733         * config/obj-bout.h (S_FORCE_RELOC): Define.
1734         * config/obj-coff.c (coff_format_ops): Init new field.
1735         * config/obj-coff.h: Formatting fixes.
1736         (obj_sec_sym_ok_for_reloc): Define.
1737         (S_FORCE_RELOC): Define.
1738         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1739         (ecoff_frob_file): .. from here.
1740         (ecoff_format_ops): Add new function.
1741         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1742         (obj_frob_file_before_fix): Define.
1743         * config/obj-elf.c (elf_format_ops): Init new field.
1744         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1745         * config/obj-ieee.h: Formatting fixes.
1746         (S_FORCE_RELOC): Define.
1747         * config/obj-multi.h (obj_frob_file_before_fix): Define.
1748         * config/obj-vms.h (S_FORCE_RELOC): Define.
1749         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1750         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1751         for BFD_RELOC_32 and BFD_RELOC_64.
1752         (alpha_fix_adjustable): Remove extern and weak tests.
1753         (alpha_before_fix): Rename from alpha_adjust_symtab.
1754         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1755         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1756         (TC_VALIDATE_FIX): Tweak param name.
1757         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1758         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1759         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1760         (MD_APPLY_SYM_VALUE): Define.
1761         (tc_adjust_symtab): Don't define.
1762         (alpha_adjust_symtab): Don't declare.
1763         (tc_frob_file_before_fix): Define.
1764         (alpha_before_fix): Declare.
1765         (TC_INIT_FIX_DATA): Tweak param names.
1766         * config/tc-arc.c: Include "struc-symbol.h".
1767         (md_pcrel_from): Remove undefined sym fudge.
1768         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1769         Don't set fx_addnumber.
1770         (tc_gen_reloc): Remove spurious fx_addnumber comment.
1771         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1772         (EXTERN_FORCE_RELOC): Define.
1773         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1774         (tc_gen_reloc): Fudge ARM_GOTPC addend.
1775         (arm_validate_fix): Return void.
1776         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1777         Add plt and got reloc tests.
1778         (arm_force_relocation): Call S_FORCE_RELOC.
1779         * config/tc-arm.h (struct fix): Forward declare.
1780         (TC_VALIDATE_FIX): No longer set add_symbolP.
1781         (arm_validate_fix): Adjust declaration.
1782         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1783         (TC_FORCE_RELOCATION): Tweak param name.
1784         (TC_INIT_FIX_DATA): Likewise.
1785         (obj_fix_adjustable): Don't define.
1786         (tc_fix_adjustable): Call arm_fix_adjustable.
1787         (TC_FIX_ADJUSTABLE): Don't define.
1788         (MD_APPLY_SYM_VALUE): Define.
1789         (EXTERN_FORCE_RELOC): Define.
1790         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1791         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1792         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1793         Remove *valP fudges and code to subtract abs sym.  Don't set
1794         fx_addnumber.
1795         * config/tc-avr.h: Formatting.
1796         (EXTERN_FORCE_RELOC): Define.
1797         (MD_APPLY_SYM_VALUE): Define.
1798         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1799         (md_apply_fix3): Remove code to subtract abs sym.
1800         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
1801         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1802         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1803         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1804         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1805         (tc_fix_adjustable): Remove extern, weak tests.
1806         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1807         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
1808         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
1809         and code to subtract abs sym.
1810         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1811         (d10v_force_relocation): Call S_FORCE_RELOC.
1812         * config/tc-d10v.h: Don't include write.h.
1813         (struct fix): Instead, forward declare.
1814         (MD_PCREL_FROM_SECTION): Tweak param names.
1815         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1816         (d10v_fix_adjustable): Likewise.
1817         (obj_fix_adjustable): Don't define.
1818         (tc_fix_adjustable): Define.
1819         (TC_FORCE_RELOCATION): Tweak param name.
1820         (MD_APPLY_SYM_VALUE): Define.
1821         (EXTERN_FORCE_RELOC): Define.
1822         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1823         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
1824         and code to subtract abs sym.
1825         * config/tc-d30v.h: Don't include write.h.
1826         (struct fix): Instead, forward declare.
1827         (MD_PCREL_FROM_SECTION): Tweak param names.
1828         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1829         (MD_APPLY_SYM_VALUE): Define.
1830         (EXTERN_FORCE_RELOC): Define.
1831         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1832         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1833         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1834         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1835         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1836         Don't use fx_addnumber.
1837         * config/tc-dlx.h: Don't include write.h.
1838         (md_convert_frag): We're not alpha twice over.
1839         (EXTERN_FORCE_RELOC): Define.
1840         (obj_fix_adjustable): Don't define.
1841         (tc_fix_adjustable): Define.
1842         (TC_FIX_ADJUSTABLE): Don't define.
1843         (MD_APPLY_SYM_VALUE): Define.
1844         (LOCAL_LABELS_DOLLAR): Undef always.
1845         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1846         (fr30_fix_adjustable): Remove extern, weak tests.
1847         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1848         (obj_fix_adjustable): Don't define.
1849         (tc_fix_adjustable): Define.
1850         (struct fix): Forward declare.
1851         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
1852         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1853         (frv_fix_adjustable): Don't do extern, weak tests.
1854         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1855         (TC_FIX_ADJUSTABLE): Don't define.
1856         (obj_fix_adjustable): Don't define.
1857         (tc_fix_adjustable): Define.
1858         (struct fix): Forward declare.
1859         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
1860         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1861         * config/tc-h8300.h (struct fix): Forward declare.
1862         (EXTERN_FORCE_RELOC): Define.
1863         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1864         (hppa_fix_adjustable): Don't test extern or weak.  Don't
1865         symbol_mark_used_in_reloc.
1866         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1867         and S_IS_WEAK.
1868         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1869         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1870         (TC_FORCE_RELOCATION_SECTION): Don't define.
1871         (MD_APPLY_SYM_VALUE): Define.
1872         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1873         to subtract abs sym.
1874         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1875         (MD_APPLY_SYM_VALUE): Define.
1876         (MD_PCREL_FROM_SECTION): Tweak param name.
1877         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1878         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1879         (i386_force_relocation): New function.
1880         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1881         (TC_VALIDATE_FIX): Likewise.
1882         (TC_FIX_ADJUSTABLE): Don't define.
1883         (MD_APPLY_SYM_VALUE): Define.
1884         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1885         (i386_force_relocation): Declare.
1886         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1887         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1888         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1889         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1890         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1891         (EXTERN_FORCE_RELOC): Define.
1892         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
1893         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
1894         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
1895         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1896         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1897         Remove #if 0 code.  Invert return boolean.
1898         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1899         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1900         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1901         (tc_coff_sizemachdep): Prototype.
1902         (i960_handle_align): Likewise.
1903         (i960_validate_fix): Adjust declaration.
1904         (reloc_callj): Likewise.
1905         (EXTERN_FORCE_RELOC): Define.
1906         (TC_FORCE_RELOCATION_SUB_SAME): Define.
1907         (TC_FORCE_RELOCATION_ABS): Define.
1908         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1909         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1910         (TC_FIX_ADJUSTABLE): Don't define.
1911         (MD_APPLY_SYM_VALUE): Define.
1912         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1913         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1914         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1915         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1916         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1917         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1918         (MD_APPLY_SYM_VALUE): Define.
1919         (EXTERN_FORCE_RELOC): Define.
1920         (TC_FORCE_RELOCATION): Tweak param name.
1921         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1922         (m32r_fix_adjustable): Don't test extern, weak.
1923         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1924         (MD_APPLY_SYM_VALUE): Define.
1925         (obj_fix_adjustable): Don't define.
1926         (tc_fix_adjustable): Define.
1927         (tc_frob_file): Don't define.
1928         (tc_frob_file_before_fix): Define.
1929         (EXTERN_FORCE_RELOC): Define.
1930         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
1931         BFD_RELOC_VTABLE_ENTRY address.
1932         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1933         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1934         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1935         Remove duplicated fx_done code.
1936         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1937         (EXTERN_FORCE_RELOC): Define.
1938         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1939         relaxable_symbol.
1940         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1941         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1942         (TC_FIX_ADJUSTABLE): Don't define.
1943         (EXTERN_FORCE_RELOC): Define.
1944         (MD_APPLY_SYM_VALUE): Define.
1945         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1946         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1947         Remove fx_addsy tests.
1948         (mcore_force_relocation): Call S_FORCE_RELOC.
1949         (mcore_fix_adjustable): Don't test fx_addsy.
1950         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1951         (EXTERN_FORCE_RELOC): Define.
1952         (obj_fix_adjustable): Don't define.
1953         (tc_fix_adjustable): Define.
1954         (MD_APPLY_SYM_VALUE): Define.
1955         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1956         (mips_pic): No longer static.
1957         (mips_force_relocation): Call S_FORCE_RELOC.
1958         (mips_fix_adjustable): Remove extern, weak tests.
1959         * config/tc-mips.h (enum mips_pic_level): Declare.
1960         (mips_pic): Declare.
1961         (tc_frob_file): Don't define.
1962         (tc_frob_file_before_fix): Define this instead.
1963         (EXTERN_FORCE_RELOC): Define.
1964         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1965         with reg_section tests.  Set fx_done instead of calling
1966         symbol_clear_used_in_reloc on bad relocs.
1967         (tc_gen_reloc): Zero fx_addsy on bad relocs.
1968         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
1969         (mmix_adjust_symtab): Simplify list handling.  Abort on any
1970         nonsense.
1971         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
1972         BFD_RELOC_MMIX_LOCAL.
1973         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
1974         (EXTERN_FORCE_RELOC): Define.
1975         (MD_PCREL_FROM_SECTION): Tweak param name.
1976         (tc_frob_file): Don't define.
1977         (tc_frob_file_before_fix): Define this instead.
1978         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1979         Remove SEC_CODE checks.
1980         (mn10300_fix_adjustable): Remove extern and weak tests.
1981         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1982         (TC_FORCE_RELOCATION): Tweak param name.
1983         (obj_fix_adjustable): Don't define.
1984         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1985         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1986         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1987         (openrisc_fix_adjustable): Don't test fx_addsy.
1988         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1989         (obj_fix_adjustable): Don't define.
1990         (tc_fix_adjustable): Define this instead.
1991         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1992         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1993         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1994         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1995         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1996         (MD_APPLY_SYM_VALUE): Define.
1997         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1998         Don't subtract symbol value.
1999         * config/tc-pj.h (md_pcrel_from): Tweak param name.
2000         (EXTERN_FORCE_RELOC): Define.
2001         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2002         (MD_APPLY_SYM_VALUE): Define.
2003         (obj_fix_adjustable): Don't define.
2004         (tc_fix_adjustable): Define this instead.
2005         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2006         section sym.
2007         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2008         (ppc_force_relocation <elf version>): New.
2009         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2010         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
2011         comments.  Don't subtract fx_subsy as that is already done.
2012         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2013         (MD_PCREL_FROM_SECTION): Likewise.
2014         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2015         ppc_force_relocation.
2016         (TC_FORCE_RELOCATION_SECTION): Delete.
2017         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2018         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2019         (MD_APPLY_SYM_VALUE): Define.
2020         * config/tc-s390.c: #include "dwarf2dbg.h".
2021         (s390_insn): Remove excess parens.
2022         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2023         (tc_s390_force_relocation): Call S_FORCE_RELOC.
2024         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
2025         non-NULL.  Don't subtract off fx_addsy value.
2026         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2027         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2028         (TC_FIX_ADJUSTABLE): Don't define.
2029         (MD_APPLY_SYM_VALUE): Define.
2030         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2031         (SWITCH_TABLE): Likewise.
2032         (sh_force_relocation): Call S_FORCE_RELOC.
2033         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2034         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2035         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2036         fx_addnumber is zero on entry.  Save val in fx_addnumber.
2037         (tc_gen_reloc): Don't subtract fx_subsy.
2038         * config/tc-sh.h (struct fix): Move.
2039         (obj_fix_adjustable): Don't define.
2040         (tc_fix_adjustable): Define this instead.
2041         (TC_FIX_ADJUSTABLE): Don't define.
2042         (MD_APPLY_SYM_VALUE): Define.
2043         (SWITCH_TABLE_CONS): Define.
2044         (SWITCH_TABLE): Define.
2045         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2046         (TC_VALIDATE_FIX_SUB): Define.
2047         (MD_PCREL_FROM_SECTION): Tweak param name.
2048         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2049         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2050         (TC_FORCE_RELOCATION_SUB_ABS): Define.
2051         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2052         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2053         (TC_FORCE_RELOCATION_SUB_SAME): Define.
2054         (TC_VALIDATE_FIX_SUB): Define.
2055         (MD_PCREL_FROM_SECTION): Tweak param name.
2056         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2057         (tc_gen_reloc): Use S_FORCE_RELOC.
2058         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2059         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2060         (TC_FORCE_RELOCATION_ABS): Define this instead.
2061         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2062         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2063         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
2064         (MD_APPLY_SYM_VALUE): Define.
2065         (TC_FIX_DATA_PRINT): Tweak param name.
2066         * config/tc-tic30.c (USE_STDOUT): Don't define.
2067         (md_parse_option): Remove stupid debug code.
2068         (tc_gen_reloc): Don't use fx_addnumber.
2069         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2070         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
2071         * config/tc-v850.h (obj_fix_adjustable): Don't define.
2072         (tc_fix_adjustable): Define this instead.
2073         (TC_FIX_ADJUSTABLE): Don't define.
2074         (MD_APPLY_SYM_VALUE): Define this instead.
2075         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2076         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2077         (TC_FIX_ADJUSTABLE): Don't define.
2078         (MD_APPLY_SYM_VALUE): Define this instead.
2079         (tc_fix_adjustable): Remove extern and weak tests.
2080         * config/tc-w65.h (struct fix): Forward declare.
2081         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2082         S_FORCE_RELOC.
2083         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
2084         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
2085         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2086         absolute symbol.
2087         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2088         (MD_APPLY_SYM_VALUE): Define.
2089         (obj_fix_adjustable): Don't define.
2090         (tc_fix_adjustable): Define this instead.
2091         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
2093 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
2095         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2096         (ppc_fix_adjustable <coff version>): Cleanup.
2098         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2099         (md_parse_option): No -a64 without BFD64.
2100         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2101         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2103 2002-09-04  Nick Clifton  <nickc@redhat.com>
2105         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2106         instructions into the hash table if the target cpu is the BookE32.
2108 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
2110         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2111         ATTRIBUTE_UNUSED.
2113 2000-08-28  Catherine Moore  <clm@redhat.com>
2115         * tc-v850.c (v850_relax): Declare.
2116         (v850_longcode): New routine.
2117         (v850_handle_align): New routine.
2118         (md_pseudo_table):  Add longcall and longjump.
2119         (md_parse_option): Check for relax option.
2120         (tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
2121         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2122         (md_apply_fix3): Likewise.
2123         (v850_force_relocation): Likewise.
2124         (v850_comm): Change the current section.
2125         (md_assemble):  Ensure that the correct value is put in the
2126         fixup.
2127         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2128         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2129         Remove redundant v850ea support.
2130         * tc-v850.h (HANDLE_ALIGN): Define.
2131         (v850_handle_align): Declare.
2132         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2134 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
2136         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2137         * configure: Regenerate.
2138         * NEWS: Mention new port.
2140 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2142         * config/obj-coff.c: Add sdef definition.
2143         * config/obj-coff.h: Add tic4x include file and set
2144         target format.
2145         * config/tc-tic4x.c: New file.
2146         * config/tc-tic4x.h: New file.
2148 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
2150         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2151         (TC_ADJUST_RELOC_COUNT): Tweak param name.
2152         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2153         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2154         (RELOC_ENUM): Define.
2155         (fix_new_internal): Use RELOC_ENUM.
2156         (fix_new, fix_new_exp): Likewise.
2157         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
2158         Replace gotos with continue.
2159         (write_relocs): Formatting.  Avoid symbol loops in
2160         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
2161         errors, and error number in other cases.
2162         (fixup_segment): Remove param names from prototype.  Rename
2163         "this_segment_type" to "this_segment".  Update linkrelax comment.
2164         Remove "size, "place" and "where" local vars.  Formatting.  Update
2165         "no symbol" comment.  Remove #if 0 and #if 1.
2167         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
2169 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
2171         * dwarf2dbg.c: Always include dwarf2dbg.h.
2172         (dwarf2_directive_file): Adjust dummy version args.
2173         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2174         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2175         when symbol values differ.
2176         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2177         (pseudo_set <O_subtract>): Remove unnecessary segment test.
2178         * config/obj-bout.c (obj_pseudo_table): Warning fix.
2180 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
2182         * config/tc-w65.c (md_section_align): Fix typo.
2183         (md_parse_option): Return 0, not 1.
2185 2002-08-22  Nick Clifton  <nickc@redhat.com>
2187         * doc/as.texinfo (Section): Note that if '@' is a comment
2188         character then another symbol is used to prefix the section's
2189         type.
2191 2002-08-22  Christian Groessler <chris@groessler.org>
2193         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2194         "case 0" case.
2196 2002-08-12  Graeme Peterson  <gp@qnx.com>
2198         * configure.in: Add support for sh-**-nto* target.
2199         * configure: Regenerate.
2201 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
2203         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2205 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2207         * config/tc-ppc.c (ppc_cleanup): Do something only if format
2208         is ELF.
2209         (ppc_apuinfo_section_add): Define only if format is ELF.
2210         (md_assemble): Emit APUinfo section only if format is ELF.
2211         Fix formatting.
2213 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
2215         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2216         * config/tc-frv.c: Likewise.
2217         * config/tc-hppa.c: Likewise.
2218         * config/tc-ia64.c: Likewise.
2219         * config/tc-ip2k.c: Likewise.
2220         * config/tc-m68hc11.c: Likewise.
2221         * config/tc-m68k.c: Likewise.
2222         * config/tc-mmix.c: Likewise.
2223         * config/tc-mn10300.c: Likewise.
2224         * config/tc-sh.c: Likewise.
2225         * config/tc-sparc.c: Likewise.
2226         * config/tc-v850.c: Likewise.
2228 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
2230         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2231         by zero.
2233 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2235         From matthew green  <mrg@redhat.com>
2237         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2238         PPC_OPCODE_PPC is, except for BookE architectures.
2239         (md_parse_option): Add support for -mspe.
2240         (md_show_usage): Add -mspe.
2241         (md_parse_option): Add support for -me500 and
2242         -me500x2 to generate code for Motorola e500 core complex.
2243         (md_show_usage): Add -me500 and -me500x2.
2245         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2246         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2247         PPC_APUINFO_BRLOCK): New macros.
2249         (ppc_cleanup): New function.
2250         (ppc_apuinfo_section_add): New function.
2251         (APUID): New macro.
2252         (md_assemble): Collect info and write the APUinfo section.
2254         * config/tc-ppc.h (md_cleanup): Define.
2255         (ppc_cleanup): Export.
2256         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2258 2002-08-17  Stan Cox  <scox@redhat.com>
2260         * config/obj-elf.c (obj_elf_change_section): Make non-static.
2261         config/tc-mips.c (s_change_section): New function to support
2262         IRIX .section pseudo-op.
2264 2002-08-16  Nick Clifton  <nickc@redhat.com>
2266         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2268 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
2270         * config/tc-mips.c (macro_build_jalr): Make sure we generate
2271         the fix-up against on the right frag.
2272         (s_cpsetup): Likewise.  Parse third argument as expression, to
2273         handle global symbols and forward/backward labels correctly.
2275 2002-08-14  Nick Clifton  <nickc@redhat.com>
2277         * read.c (stringer): Catch attempts to create strings in the abs
2278         section.
2280         * config/tc-alpha.c: Fix compiling for COFF targets.
2281         Some minor formatting tidyups.
2283 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2285         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2286         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2287         according to the reloc.
2288         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2289         (TC_FORCE_RELOCATION): Define.
2290         (tc_m68hc11_force_relocation): Declare.
2292         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2293         (s_m68hc11_relax): New function for relax group.
2294         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2295         beginning of jump instruction.
2296         (md_pcrel_from): Rename from md_pcrel_from_section and fix
2297         address computation.
2298         (tc-gen_reloc): Update.
2299         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2300         PC-relative fixup.
2301         (tc_m68hc11_force_relocation): New function, handle new relocs.
2302         (tc_m68hc11_fix_adjustable): New to make sure there are enough
2303         reloc for the linker relax pass.
2304         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2305         and VTABLE relocs.
2307 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2309         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2310         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2311         (s_m68hc11_mode): New function for .mode pseudo op.
2312         (s_m68hc11_mark_symbol): New function for .far and .interrupt
2313         pseudo op.
2314         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2315         (m68hc11_elf_final_processing): Declare.
2317 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2319         * config/tc-m68hc11.c (md_begin): Take into account additional
2320         page operand for call instruction.
2321         (print_opcode_format): Likewise.
2322         (check_range): Likewise for page range checking.
2323         (get_operand): Don't skip a possible comma in operands.
2324         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2325         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2326         (fixup24): New to handle call reloc.
2327         (build_insn): Handle missing page operand for call instruction.
2328         (find): Likewise.
2329         (md_apply_fix3): Take into account new relocs.
2330         (get_operand): Fix the mode for indexed indirect addressing.
2331         (build_indexed_byte): Fix post index byte for indexed indirect mode.
2333 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
2335         * config/tc-mips.c (mips_ip): Don't work out the value of
2336         constant %hi()s here.
2338 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
2340         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2341         for ELF, and don't bother checking ELF relocs when non-ELF.
2342         (i386_immediate): Allow absolute_section expressions for aout.
2343         (i386_displacement): Likewise.  Also test bfd_is_com_section.
2344         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2345         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2346         not when fx_addsy.  Remove dead code.
2348 2002-08-09  Graeme Peterson  <gp@qnx.com>
2350         * configure.in: Add support for ppc-*-nto* target.
2351         * configure: Regenerate.
2353 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
2355         * config/tc-i386.h: Reorganize.
2357 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2359         * config/tc-mips.c (macro): Handle a register plus a 16-bit
2360         immediate offset in "dla" and "la" expansions.
2362 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
2364         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
2365         Remove "bfd_gas=yes" from target table when covered later.
2366         Consolidate some entries.
2367         * configure: Regenerate
2369 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
2371         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2372         at start of insn, pass it to output_disp and output_imm.
2373         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
2374         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2375         properly addend.
2376         (output_imm): Added arguments.  Compute properly addend for
2377         R_386_GOTPC.
2378         (md_apply_fix3): Remove R_386_GOTPC handling.
2380 2002-08-06  George France <france@handhelds.org>
2382         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
2383         and m21264b processor names and cpu types.
2384         * doc/c-alpha.texi: Documented new types.
2386 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
2388         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2390 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
2392         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2393         handling to BFD_RELOC_MIPS16_GPREL.
2395 2002-08-01  Nick Clifton  <nickc@redhat.com>
2397         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2398         pool is computed using signed arithmetic so that proper sign
2399         extension is performed if X_add_number is a 64-bit integer.
2401 2002-08-01  H.J. Lu  <hjl@gnu.org>
2402             Daniel Jacobowitz  <drow@mvista.com>
2404         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2405         .debug_line section unless it has line information.
2407 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2409         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2410         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2411         Allow default displacement size to be an option "--disp-size-default".
2412         (md_number_to_disp): Make error messages include value. Use %d to
2413         print integers, not %s.
2414         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2415         get duplicate messages sometimes.
2416         (convert_iif): Grow frag to max possible instruction size. Avoid
2417         creating unnecessary fixes.
2418         (md_number_to_field) Add prototype.
2419         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2420         prototypes and make static.
2421         (struct addr_mode): Make mode and scaled_mode explicitly signed.
2422         (evaluate_expr): Use resultP argument instead of exprP global.
2423         (get_addr_mode): Quiten compiler warnings.
2424         (encode_operand): eliminate unused variables. Quiten compiler
2425         warnings. Eliminate nul character in format strings.
2426         (parse): argc is unsigned.
2427         (reloc): Type cast index to quieten compiler.
2428         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2429         (md_convert_frag): Note unused parameters. Remove unused
2430         variables.
2431         (md_create_long_jump, md_create_short_jump,
2432         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2433         unused parameters.
2435 2002-07-31  Nick Clifton  <nickc@redhat.com>
2437         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2438         of the PDP-11 and 2.11BSD a.out support.
2440 2002-07-31  Momchil Velikov  <velco@fadata.bg>
2442         * config/tc-v850.c (md_assemble): Fix range check for immediate
2443         operand.
2445 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
2447         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2448         to Broadcom SB-1 core support.
2450 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2452         * config/tc-mips.c (mips_target_format): Fix formatting.
2453         Add recognition of n32 ABI formats.
2455 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2457         * tc-mips.c (load_address): Don't clobber $at when loading a
2458         64-bit address in non-PIC code if noat is in effect.
2459         (macro): Likewise.
2461 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2463         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2464         used in division/multiply macro expansions similarly to how they
2465         are used in the variants with break instructions.
2466         (macro2): Likewise.
2468 2002-07-30  Graeme Peterson  <gp@qnx.com>
2470         * configure.in: Add support for arm-*-nto target.
2471         * configure: Regenerate.
2473 2002-07-30  Nick Clifton  <nickc@redhat.com>
2475         * config/tc-arm.c (struct literal_pool): Add fields to allow
2476         multiple literal pools to be maintained.
2477         (find_literal_pool): New function.
2478         (find_or_make_literal_pool): New function.
2479         (add_to_literal_pool): Use find_or_make_literal_pool.
2480         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2481         needed.
2482         (s_ltorg): Use find_literal_pool.
2483         (arm_cleanup): Dump all literal pools.
2484         * doc/c-arm.texi: Document new behaviour of only dumping literal
2485         pools upon request.
2487 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
2489         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2490         rather than PPC_OPCODE_32 for powerpc64*.
2492 2002-07-25  Nick Clifton  <nickc@redhat.com>
2494         * po/es.po: Updated Spanish translation.
2495         * po/fr.po: Updated French translation.
2497 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
2499         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
2500         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2501         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2502         * configure, config.in: Regenerate.
2503         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2504         (mips_set_options): Remove "abi" field.
2505         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
2506         with mips_abi.
2507         (mips_cpu): Remove.
2508         (mips_arch_string, mips_arch_info): New vars.
2509         (mips_tune_string, mips_tune_info): New vars.
2510         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2511         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2512         (mips_isa_to_str, mips_cpu_to_str): Remove.
2513         (mips_ip): If the selected architecture is a generic ISA rather
2514         than a processor, only mention the ISA level in error messages.
2515         (OPTION_MCPU): Remove.
2516         (OPTION_FP64): New.
2517         (md_longopts): Add -mfp64, remove -mcpu.
2518         (mips_set_option_string): New fn.
2519         (md_parse_option): Make -mipsN update file_mips_isa rather than
2520         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
2521         Don't let -mgp32 and -mfp32 change the ABI.
2522         (show): Move to end of file.  Constify string argument.
2523         (md_show_usage): Move to the end of the file.  Read available
2524         architectures from mips_cpu_info_table.
2525         (mips_set_architecture): New fn.
2526         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
2527         is an alias for -march=mipsN.  Don't change the ABI based on other
2528         flags.  Infer the register size from the ABI as well as the
2529         architecture.  Complain about more conflicting arguments.
2530         Unify logic with GCC.
2531         (s_mipsset): Don't change the ABI.
2532         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2533         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2534         "mipsN"-type entries.  Remove entries that vary only in the
2535         manufacturer's prefix, or that have "000" replaced by "k".
2536         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
2537         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2538         (mips_parse_cpu): New fn.
2539         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2540         (mips_cpu_info_from_isa): Minor formatting tweak.
2542 2002-07-24  Nick Clifton  <nickc@redhat.com>
2544         * po/sv.po: Updated Swedish translation.
2545         * po/es.po: Updated Spanish translation.
2547 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
2549         * Makefile.am: Run "make dep-am".
2550         * Makefile.in: Regenerate.
2551         * doc/Makefile.in: Regenerate.
2552         * config.in: Regenerate.
2553         * po/POTFILES.in: Regenerate.
2555 2002-07-23  Nick Clifton  <nickc@redhat.com>
2557         * po/fr.po: Updated French translation.
2559 2002-07-23  Nick Clifton  <nickc@redhat.com>
2561         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2562         GAS.
2564 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2566         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2567         instead of S_IS_EXTERN.
2568         (md_estimate_size_before_relax): Likewise.
2569         (mips_fix_adjustable): Likewise.
2571 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2573         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2575 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2576             Nick Clifton  <nickc@redhat.com>
2578         * cond.c (s_ifdef): Treat a referenced but not yet defined
2579         symbol as if it were undefined, in exactly the same way as
2580         .equiv.
2582         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2583         consider referenced bug not yet defined symbols to be
2584         undefined.
2586 2002-07-18  Denis Chertykov  <denisc@overta.ru>
2587             Frank Ch. Eigler  <fche@redhat.com>
2588             Alan Lehotsky  <alehotsky@cygnus.com>
2589             John Healy  <jhealy@redhat.com>
2590             Jeff Johnston  <jjohnstn@redhat.com>
2592         * configure.in: Add ip2k configuraton.
2593         * configure: Regenerate.
2594         * Makefile.am: Add ip2k configuraton.
2595         * Makefile.in: Regenerate.
2596         * configure: Regenerate.
2597         * Makefile.in: Regenerate.
2598         * config/tc-ip2k.c: New file.
2599         * config/tc-ip2k.h: New files.
2600         * NEWS: Mention new support.
2601         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2602         * doc/Makefile.in: Regenerate.
2603         * doc/all.texi: Set IP2K
2604         * doc/as.texinfo: Add IP2K description.
2605         * doc/c-ip2k.texi: New file.
2607 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2609         * NEWS: Reformat to match style of other NEWS files.
2611 2002-07-17  Jan Hubicka  <jh@suse.cz>
2613         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2615 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
2617         * config/tc-z8k.c (build_bytes): Correct order of memset args.
2619 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
2621         * NEWS: Add 'Changes in 2.13'.
2623 2002-07-15  Matt Fredette  <fredette@netbsd.org>
2625         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2627 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
2629         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2630         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
2631         not CODE_64BIT.
2633 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
2635         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2636         (ppc_frob_file_before_adjust): New function.
2637         * config/tc-ppc.h (tc_frob_symbol): Don't define.
2638         (ppc_elf_frob_symbol): Don't declare.
2639         (tc_frob_file_before_adjust): Define.
2640         (ppc_frob_file_before_adjust): Declare.
2642         * config/tc-ppc.c (md_pseudo_table): Warning fix.
2643         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2644         flags.
2645         (ppc_size): Delete.
2646         (ppc_xcoff64): Rename to ppc_obj64.
2647         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2648         (ppc_set_cpu): Set PPC_OPCODE_32 too.
2649         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2650         or bfd_mach_ppc.
2651         (ppc_target_format): Use ppc_obj64 to select format.
2652         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2653         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2654         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
2655         (tc_frob_symbol): Likewise.
2656         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
2657         BFD_DEFAULT_TARGET_SIZE.
2658         (ppc_tc): Likewise.
2659         (ppc_is_toc_sym): Likewise.
2660         (md_apply_fix3): Likewise.
2661         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2662         BFD_DEFAULT_TARGET_SIZE.
2663         (ELF_TC_SPECIAL_SECTIONS): Likewise.
2664         (tc_frob_symbol): Likewise.
2666 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2668         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2669         (mips_ip): Likewise.
2671 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
2673         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2674         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2675         (md_apply_fix3): Formatting.  Remove redundant test.
2676         (tc_gen_reloc): Remove redundant code.
2677         (tc_i386_force_relocation): Delete.  Movy body of function to..
2678         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2680 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
2682         * configure.in: Add hppa-*-openbsd* target, change
2683         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2684         with sparc64 cpu.
2685         * configure: Regenerate.
2687 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2689         * config/tc-mips.c (macro): Shift the 32-bit address range
2690         accessible with a lone "lui" down by 32768.
2692 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2694         * config/tc-mips.c (load_address): Use non-trapping "daddu"
2695         instead of "dadd" in address calculations.
2696         (macro): Likewise.
2698 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
2700         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2701         movzx fudges.
2702         (md_assemble): Instead, zap the suffix here.
2704 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
2706         * NEWS: Remove next release number until the release is actually
2707         upon us.
2709 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
2711         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2712         Run "make dep-am".
2713         * Makefile.in: Regenerate.
2715 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2717         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2718         to symbols in merge sections, even non pc-relative ones.
2720 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2722         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2724 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2726         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2727         .softregs and .eeprom.
2729 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
2731         * NEWS: Note the next release is 2.13.
2733 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
2735         * po/tr.po: New translation imported.
2737 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
2739         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2740         (ecoff_directive_def): Likewise.
2741         (ecoff_directive_tag): Likewise.
2742         * listing.c (file_info): Likewise.
2743         * hash.c (what): Likewise.
2745 2002-06-25  H.J. Lu <hjl@gnu.org>
2747         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2748         * Makefile.in: Regenerated.
2750 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
2752         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2753         (assemble_ppi): Generate warning if the same register is used
2754         twice as destination in the same padd / pmuls instruction.
2756 2002-06-18  Dave Brolley  <brolley@redhat.com>
2758         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2759         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2760         * configure.in: Support frv-*-*.
2761         * Makefile.am (CPU_TYPES): Add frv.
2762         (TARGET_CPU_CFILES): Add tc-frv.c.
2763         (TARGET_CPU_HFILES): Add tc-frv.h.
2764         (DEPTC_frv_coff): New variable.
2765         (DEPTC_frv_elf): New variable.
2766         (DEPOBJ_frv_coff): New variable.
2767         (DEPOBJ_frv_elf): New variable.
2768         (DEP_frv_coff): New variable.
2769         (DEP_frv_elf): New variable.
2770         * tc-frv.c: New file.
2771         * tc-frv.h: New file.
2773 2002-06-17  Catherine Moore <clm@redhat.com>
2775         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2777 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
2779         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2781 2002-06-17  Tom Rix <trix@redhat.com>
2783         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2785 2002-06-14  H.J. Lu  <hjl@gnu.org>
2786             Daniel Jacobowitz  <drow@mvista.com>
2788         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2789         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2790         * config/tc-mips.c (s_mips_file): Call s_app_file_string
2791         and new_logical_line for the first .file directive.
2792         * read.c (s_app_file_string): New function.
2793         (s_app_file): Call it.
2794         * read.h (s_app_file_string): Add declaration.
2796 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
2798         * configure.in: Remove MIPS_STABS_ELF.
2799         * configure: Regenerated.
2800         * config.in: Regenerated.
2801         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2802         for MIPS targets.
2803         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2804         ".extern".
2805         (pdr_seg): Declare unconditionally.
2806         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2807         (s_mips_end): Likewise.  Generate stabs function markers.
2808         (s_mips_ent): Generate stabs function markers.
2809         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2810         ELF.
2811         (s_mips_mask): Likewise.
2812         (mips_flag_mdebug): New.
2813         (md_longopts): Add "mdebug" and "no-mdebug".
2814         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2815         (mips_after_parse_args): Set mips_flag_mdebug.
2816         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2818 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2820         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2821         value twice for RELA relocations.
2823 2002-06-12  Ben Elliston  <bje@redhat.com>
2825         * symbols.c (resolve_symbol_value): Initialise final_val.
2827         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2829 2002-06-11  Tom Rix  <trix@redhat.com>
2831         * config/tc-ppc.c (ppc_subseg_align): Delete.
2832         (ppc_change_csect): Default csect align is 2.
2833         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2835 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2837         * config/tc-avr.c (mcu_types): Update.
2839 2002-06-08  Matt Thomas  <matt@3am-software.com>
2841         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2842         (vax-*-netbsd*): New targets.
2843         * configure: Regenerate.
2844         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2845         * config/tc-vax.c: Add support for ELF and PIC.
2846         (flag_want_pic): New flag.
2847         (float_cons): Fix prototype.
2848         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2849         (md_assemble): Introduce a new is_absolute local, and use it
2850         rather than repeating the test.  Make fatal errors actually
2851         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
2852         Add support for ELF.  Add support for PIC.
2853         (md_convert_frag): Adjust for BFD_ASSEMBLER.
2854         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2855         BFD_ASSEMBLER.
2856         (vax_reg_parse): Make the % register prefix mandatory for ELF,
2857         optional for a.out, and not allowed for VMS.  Adjust all callers.
2858         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2859         (md_create_long_jump): Likewise.
2860         (md_undefined_symbol): Likewise.
2861         (md_section_align): Likewise.
2862         (md_shortopts): Allow -k and -K for ELF.
2863         (md_parse_option): Set flag_want_pic if -k or -K.
2864         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2865         (tc_gen_reloc): New function if BFD_ASSEMBLER.
2866         * config/tc-vax.h (tc_headers_hook): Remove.
2867         (TARGET_FORMAT): Set according to object format and target
2868         environment.
2869         (BFD_ARCH, TARGET_ARCH): Define.
2870         (NO_RELOC): Adjust for BFD_ASSEMBLER.
2871         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2872         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2873         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2875 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
2877         * Makefile.am: Run "make dep-am".
2878         * Makefile.in: Regenerate.
2880         * as.c: Replace CONST with const.
2881         * write.c: Likewise.
2882         * config/obj-coff.c: Likewise.
2883         * config/tc-a29k.c: Likewise.
2884         * config/tc-arm.c: Likewise.
2885         * config/tc-dlx.c: Likewise.
2886         * config/tc-h8300.c: Likewise.
2887         * config/tc-h8500.c: Likewise.
2888         * config/tc-i370.c: Likewise.
2889         * config/tc-i860.c: Likewise.
2890         * config/tc-i960.c: Likewise.
2891         * config/tc-m68hc11.c: Likewise.
2892         * config/tc-m68k.c: Likewise.
2893         * config/tc-m88k.c: Likewise.
2894         * config/tc-mcore.c: Likewise.
2895         * config/tc-mips.c: Likewise.
2896         * config/tc-ns32k.c: Likewise.
2897         * config/tc-pdp11.c: Likewise.
2898         * config/tc-pj.c: Likewise.
2899         * config/tc-s390.c: Likewise.
2900         * config/tc-sh.c: Likewise.
2901         * config/tc-sparc.c: Likewise.
2902         * config/tc-tahoe.c: Likewise.
2903         * config/tc-tic80.c: Likewise.
2904         * config/tc-v850.c: Likewise.
2905         * config/tc-vax.c: Likewise.
2906         * config/tc-w65.c: Likewise.
2907         * config/tc-z8k.c: Likewise.
2909 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
2911         Based on patch from Matt Green:
2912         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2913         * config/tc-mips.c (s_mips_file): Renamed from s_file.
2914         (s_mips_loc): New function.
2915         (mips_nonecoff_pseudo_table): Call them.
2916         (append_insn): Call dwarf2_emit_insn.
2918 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2920         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2921         to -1.
2922         (file_ase_mips16): New veriable.
2923         (mips_eabi64): Remove.
2924         (CPU_HAS_MIPS16): New define.
2925         (CPU_HAS_MDMX): Fix data type.
2926         (md_begin): Code cleanup. Use file_ase_mips16.
2927         (mips_elf_final_processing): Handle mips16 header flag.
2928         Handle EABI flag without intermediate variable.
2930 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2932         * doc/as.texinfo: Update MIPS documentation.
2934 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2936         * config/tc-mips.c: Add define for $zero register.
2937         (md_begin): Add $zero as alias name for $0.
2938         (insn_uses_reg): Use ZERO define.
2939         (mips_ip): Add $zero as alias name for $0.
2940         (mips16_ip): Likewise.
2941         (s_cplocal): Demand empty rest of input line.
2942         (tc_get_register): Likewise. Add support for $kt0, kt1 register
2943         names. Use ZERO define. Fix input_line_pointer progress.
2945 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2947         * symbols.c: Replace CONST by const throughout.
2948         (symbol_find_exact): Split out from..
2949         (symbol_find_base): ..here.
2950         * symbols.h: Replace CONST by const throughout.
2951         (symbol_find_exact): Declare.
2952         * config/obj-elf.c: #include "struc-symbol.h".
2953         (elf_frob_file): If group name matches an exported symbol, use that
2954         symbol for the signature and ".group" as the section name.
2956 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
2958         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2959         but warn about it.
2961 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
2963         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2964         and mips_opts.ase_mdmx if they are uninitialized.
2966 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2968         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2969         (hppa_force_relocation): Check if a stub just before the start symbol
2970         of the last call_info is reachable before forcing relocation.  Fix
2971         typo.
2973 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2975         * config/tc-mips.c (mips_after_parse_args): New function.
2976         (md_begin): Move processing of defaults to mips_after_parse_args.
2977         config/tc-mips.h (md_after_parse_args): Define.
2979 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2981         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2982         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2983         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2984         * configure: Regenerate.
2985         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2986         environment.
2988 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2990         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2992 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
2994         * config/obj-elf.c (obj_elf_change_section): Set and check elf
2995         linkonce flag.  Print all warnings.
2996         (obj_elf_section): Parse ",comdat" for groups.
2997         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
2998         consistency of comdat flag.
3000 2002-06-02  Richard Henderson  <rth@redhat.com>
3002         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3003         with LITERALs without sequence numbers.
3005 2002-06-01  Richard Henderson  <rth@redhat.com>
3007         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3008         Rename them LITUSE_ALPHA_*.
3010 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
3012         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3013         accept parentheses enclosed register lists.
3015 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
3017         * Makefile.am: Run "make dep-am".
3018         * Makefile.in: Regenerate.
3019         * po/POTFILES.in: Regenerate.
3021 2002-05-31  Graeme Peterson  <gp@qnx.com>
3023         * configure.in: Add i386-*-nto-qnx*.
3024         * configure: Regenerate.
3026 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3028         * config/tc-mips.c (mips_ip): Use unsigned long values for
3029         warning output.
3031 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3033         * config/tc-mips.c (s_cpsetup): Fix initialization of
3034         mips_cpreturn_register and mips_cpreturn_offset.
3036 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3038         * config/tc-mips.c (s_cpsetup): Fix comment.
3040 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3042         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3043         (mips_ip): Likewise.
3044         (mips16_ip): Likewise.
3045         (tc_get_register): Likewise.
3047 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
3048             Ed Satterthwaite  <ehs@broadcom.com>
3050         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3051         (mips_opts): Initialize "ase_mdmx" member.
3052         (file_ase_mdmx): New variable.
3053         (CPU_HAS_MDMX): New macro.
3054         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3055         based on command line options and configuration defaults.
3056         (macro_build): Note in comment that use of MDMX in macros is
3057         not currently allowed.
3058         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3059         "Z" MDMX operand types.
3060         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3061         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3062         types.
3063         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3064         Add support for "-mdmx" and "-no-mdmx" options.
3065         (OPTION_ELF_BASE): Move to accomodate new options.
3066         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3067         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3068         file_ase_mdmx was set.
3069         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3070         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3071         nomdmx" directives.
3073 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3075         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3076         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3077         command line switch conforming to gcc conventions.
3078         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3080 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3082         * config/tc-mips.c (macro_build_jalr): New Function.
3083         (md_begin): NewABI uses big GOTs.
3084         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3085         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3086         (load_address): Add some NewABI PIC support.
3087         (macro): Likewise.
3088         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3089         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3091 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3093         * config/tc-mips.c (load_address): Use mips_gp_register instead
3094         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3095         instead.
3096         (macro): Use mips_gp_register instead of hardcoded value.
3098 2002-05-30  Richard Henderson  <rth@redhat.com>
3100         * expr.h (operatorT): Add O_md17..O_md32.
3101         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3102         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3103         O_tprelhi, O_tprello, O_tprel): New.
3104         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3105         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3106         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3107         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3108         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
3109         (md_apply_fix3): Handle TLS relocations.
3110         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3111         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3112         associated TLS reloc.  Check lituse_tls relocs match up.
3113         (emit_insn): Handle TLS relocations.
3114         (ldX_op): Remove.
3116         * doc/c-alpha.texi: Add docs for tls relocations.
3118 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3120         * config/tc-mips.c (mips_gprel_offset): New variable.
3121         (s_gpvalue): Use it.
3123 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
3125         * gas/config/tc-d10v.c (check_resource_conflict): Only check
3126         write-write conflicts.
3127         (md_assemble): Reformat introductory comment.
3128         (parallel_ok): Prevent packing only if the first
3129         instruction cannot be packed.
3131 2002-05-30  Jason Eckhardt <jle@redhat.com>
3132             Tom Rix <trix@redhat.com>
3134         * config/tc-d10v.c (build_insn): Check for immediates.
3136 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3138         * config/tc-mips.c: Replace GP in comments by $gp.
3139         (mips_big_got): Initialize.
3140         (mips_trap): Initialize.
3141         (load_address): Use mips_gp_register instead of hardcoded value.
3142         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3143         (macro): Use mips_gp_register instead of hardcoded value.
3144         (macro2): Change load_address calls.
3145         (md_pcrel_from): Comment formatting.
3146         (s_cpload): Use mips_gp_register instead of hardcoded value.
3147         (s_cprestore): Likewise. Comment formatting.
3148         (s_gpword): Fix data type.
3149         (s_cpadd): Use mips_gp_register instead of hardcoded value.
3150         (nopic_need_relax): Replace GP in comments by $gp.
3151         (mips_elf_final_processing): Better comment.
3153 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
3155         * configure.in: Add DLX configuraton
3156         * Makefile.am: Add DLX configuraton
3157         * configure: Regenerate.
3158         * Makefile.in: Regenerate.
3159         * config/tc-dlx.c: New file.
3160         * config/tc-dlx.h: New files.
3161         * NEWS: Mention new support.
3163 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
3165         * config/obj-coff.c (write_object_file): Add missing semicolon.
3167 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3169         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3170         by the define. Remove superfluous check of mips_opts.mips16.
3171         (append_insn): Likewise. Canonicalize variable increments.
3172         (macro_build): Canonicalize variable increments.
3173         (macro_build_lui): Likewise.
3174         (load_register): Likewise.
3175         (load_address): Move pointer initialization.
3176         (macro): Move pointer to a more local scope. Canonicalize variable
3177         increments. Better comments. Replace magic constant for RA by the
3178         define.
3179         (macro2): Replace magic constant for RA by the define. Canonicalize
3180         variable increments.
3181         (mips_ip): Canonicalize variable increments.
3182         (mips16_ip): Replace magic constant for RA by the define.
3183         (my_getSmallParser): Canonicalize variable increments/decrements.
3184         (my_getPercentOp): Likewise.
3185         (my_getSmallExpression): Likewise.
3186         (s_align): Likewise.
3187         (s_mipsset): Likewise.
3188         (s_cpsetup): Likewise.
3189         (s_insn): Remove superfluous check of mips_opts.mips16.
3190         (s_mips_stab): Likewise.
3191         (mips_handle_align): Canonicalize variable increments.
3192         (s_mips_ent): Likewise.
3193         (s_mips_end): Add comment.
3195 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3197         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3198         * configure: Regenerate.
3200 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
3202         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3203         * Makefile.in: Regenerate.
3204         * dep-in.sed: Reorder to match OBJS in Makefile.am.
3205         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3206         * configure: Regenerate.
3207         * as.h: Use #include "" instead of <> for local header files.
3208         * flonum-konst.c: Likewise.
3209         * flonum-mult.c: Likewise.
3210         * gasp.c: Likewise.
3211         * listing.c: Likewise.
3212         * config/tc-ia64.h: Likewise.
3213         * config/tc-v850.h: Likewise.
3215 2002-05-24  TAMURA Kent <kent@netbsd.org>
3217         * configure.in: Add a target for i386-netbsdpe.
3218         * configure: Regenerate.
3220 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3222         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3223         (obj_elf_common): Call elf_common.
3224         (obj_elf_tls_common): New function.
3225         (elf_pseudo_tab): Support .tls_common.
3226         (special_sections): Add .tdata and .tbss.
3227         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3228         sections.
3229         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3230         (obj_elf_parse_section_letters): Include T in error message.
3231         * config/tc-ppc.c (ppc_section_letter): Likewise.
3232         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3233         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3234         SEC_MERGE.
3235         * config/tc-sparc.c (md_apply_fix3): Likewise.
3236         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3237         Define them if not BFD_ASSEMBLER.
3238         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3239         and @NTPOFF.
3240         (md_apply_fix3): Add TLS relocs.
3241         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3242         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3243         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3244         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3245         (ia64_elf_section_letter): Include T in error message.
3246         (md_begin): Support TLS operators.
3247         (md_operand): Likewise.
3248         (ia64_gen_real_reloc_type): Support TLS relocs.
3249         * write.c (adjust_reloc_syms): Don't change symbols in
3250         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3252 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
3254         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3255         round the relocation up rather than down.
3257 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
3259         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3260         flag.
3261         * doc/as.texinfo: Document that the COFF version of .section
3262         ignores the 'a' flag.
3264 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
3266         * config/tc-alpha.c (assemble_tokens): Protect use of
3267         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3269         * write.c (size_seg): Check adjustment to last frag.
3270         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3271         section alignment.
3272         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3273         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3274         (write_object_file): Invoke md_do_align if available, and use
3275         frag_align_code on text sections.
3276         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3277         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3278         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3279         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3280         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
3281         BFD_ASSEMBLER too.
3283 2002-05-22  H.J. Lu <hjl@gnu.org>
3285         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3286         for source file.
3288 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
3290         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3291         as ELF builds.
3293 2002-05-22  H.J. Lu <hjl@gnu.org>
3295         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3296         for one .loc for compiler.
3298 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3300         * config/tc-mips.c (macro): Relax warning, it's toot strict for
3301         embedded-PIC.
3303 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3305         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3306         Optimize the rotate by zero case.
3308 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
3310         * configure.in: Remove accidental enabling of bfd_gas=yes for
3311         sh-coff targets.
3312         * configure: Regenerate.
3314 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
3316         * app.c: Fix formatting.
3317         * as.c: Likewise.
3318         * ehopt.c: Likewise.
3319         * expr.c: Likewise.
3320         * input-file.c: Likewise.
3321         * listing.c: Likewise.
3322         * macro.h: Likewise.
3323         * stabs.c: Likewise.
3324         * symbols.c: Likewise.
3326 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
3328         * config/obj-generic.c: Delete file.
3329         * config/obj-generic.h: Likewise.
3331 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3333         * config/tc-avr.c (mcu_types): Update for new devices.
3335 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3337         * config/tc-mips.c (macro): Warn about wrong la/dla use.
3339 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3341         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3342         worked sometimes by accident. Fix copy&paste comment.
3344 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3346         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3347         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3348         (mips_elf_final_processing): Let n32 use .reginfo.
3350 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3352         * config/tc-mips.c (append_insn): Fix too small range of variable.
3354 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
3356         * config/tc-arm.c (arm_cleanup): Remove redundant call to
3357         listing_prev_line().
3359 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
3361         * config/tc-arm.c (md_assemble): Remove redundant call to
3362         listing_prev().
3364         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3365         loc_directive_seen.
3367         * stabs.c (s_stab_generic): Fix grammatical error in warning
3368         message.
3370 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
3372         * write.c (subsegs_finish): Don't specially align last subseg.
3374 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
3376         * stabs.c (s_stab_generic): Warn about a description field that is
3377         too big.
3379         * config/obj-coff.c: Fix compile time warnings when compiling
3380         without BFD_ASSEMBLER defined.
3381         Fix formatting.
3383         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3384         target.
3385         (md_pcrel_from_section): Use md_pcrel_from().
3387 2002-05-11  Bruno Haible  <bruno@clisp.org>
3389         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3390         by dwarf2_directive_loc, instead of calling dwarf2_where.
3392 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3394         * config/obj-coff.h: Fix formatting.
3395         * config/tc-mcore.c: Likewise.
3396         * config/tc-mn10300.c: Likewise.
3397         * config/tc-openrisc.c: Likewise.
3398         * config/tc-or32.c: Likewise.
3399         * config/tc-pdp11.c: Likewise.
3400         * config/tc-ppc.c: Likewise.
3401         * config/tc-ppc.h: Likewise.
3402         * config/tc-sh64.c: Likewise.
3403         * config/tc-sh.c: Likewise.
3404         * config/tc-tic54x.c: Likewise.
3405         * config/tc-xstormy16.c: Likewise.
3406         * config/tc-xstormy16.h: Likewise.
3408 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3410         * config/obj-coff.c: Fix formatting.
3411         * config/obj-elf.c: Likewise.
3412         * config/tc-alpha.c: Likewise.
3413         * config/tc-arm.c: Likewise.
3414         * config/tc-d10v.c: Likewise.
3415         * config/tc-d30v.c: Likewise.
3416         * config/tc-h8300.c: Likewise.
3417         * config/tc-hppa.c: Likewise.
3419 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
3421         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3422         reloc when no_cond_jump_promotion.
3424 2002-05-08  Jim Wilson  <wilson@redhat.com>
3426         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3427         current variable part of frag.
3429 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3431         * config/tc-mmix.c: Fix formatting.
3432         * config/tc-mmix.h: Likewise.
3434 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
3436         * configure: Regenerate.
3438 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3440         * config/tc-m68k.c: Fix formatting.
3442 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
3444         * Makefile.am: Honour DESTDIR.
3445         * Makefile.in: Regenerate.
3447 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
3449         * config/tc-ia64.c: Fix formatting.
3450         * config/tc-ia64.h: Likewise.
3452 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
3454         * config/tc-mips.c: Fix formatting.
3455         * config/tc-s390.c: Likewise.
3456         * config/tc-s390.h: Likewise.
3458 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
3460         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3461         information for instructions.
3463 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
3465         * as.h: Fix formatting.
3466         * cgen.c: Likewise.
3467         * cgen.h: Likewise.
3468         * dwarf2dbg.c: Likewise.
3469         * frags.h: Likewise.
3470         * gasp.c: Likewise.
3471         * macro.c: Likewise.
3472         * read.c: Likewise.
3473         * stabs.c: Likewise.
3474         * symbols.c: Likewise.
3476 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
3478         * app.c (mri_pseudo): Only declare for TC_M68K.
3480         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3481         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3482         BFD_RELOC_16_BASEREL.
3483         (md_assemble): Likewise.
3484         (md_apply_fix3): Likewise.
3486 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
3488         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3489         zero into an add of zero - it is not the same.
3491 2002-05-01  Arati Dikey <aratid@kpit.com>
3493         * tc-sh.c (get_specific): Generate warning if the same
3494         destination register is used in parallel instructions.
3496 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
3498         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3500 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
3502         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3503         backwards to prevent cascading errors.
3505 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
3507         * configure.in: Add support for powerpc-*-windiss.
3508         * configure: Regenerated.
3510 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
3512         * config/tc-s390.c (md_parse_option): Formatting.
3514         * config/tc-i386.c: Formatting fixes, add missing space in error
3515         message.
3517 2002-04-24  Christian Groessler <chris@groessler.org>
3519         * config/tc-z8k.c (build_bytes): Add support for new cases:
3520         CLASS_IGNORE and ARG_NIM4.
3521         (md_assemble): Prevent destruction of input_line_pointer if
3522         get_operands returns failure.
3524 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
3526         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3527         instructions to be generated by macros.
3529 2002-04-24  Andreas Schwab  <schwab@suse.de>
3531         * config/tc-i386.c (output_jump, output_disp)
3532         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3533         more.
3534         (md_apply_fix3): Remember addend value for rela relocations.
3535         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3537 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
3539         * config/tc-mips.c (macro_build): Add close-parenthesis missing
3540         from previous change.
3542 2002-04-22  Eric Christopher  <echristo@redhat.com>
3544         * config/tc-mips.c (macro_build): Add warning if macro instructions
3545         are expanded into a branch delay slot.
3547 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
3549         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3550         numbers, gdb relies on them to detect the start of the prologue.
3552 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3554         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3555         symbols in merge sections.
3557 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
3559         * as.c (main): Don't reference _bfd_chunksize.
3561 2002-04-15  Tom Rix  <trix@redhat.com>
3563         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3564         symbols in merge sections.
3566 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
3568         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3569         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3570         argument for the precision.
3571         (gen_to_words): Update accordingly.
3573 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
3575         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3576         BFD_VERSION_STRING unavailable.
3577         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3579 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
3581         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3582         symbol_used_in_reloc_p is true.
3584         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3585         endian hosts.
3587 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3589         * dep-in.sed: Cope with absolute paths.
3590         * Makefile.am (dep.sed): Subst TOPDIR.
3591         Run "make dep-am".
3592         * Makefile.in: Regenerate.
3594 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3596         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3597         (mips_ip): Remove unused variable.
3598         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3599         unsigned char with bfd_byte.
3600         (s_file): Remove unused variable.
3601         (s_mips_ent): Likewise.
3603 2002-04-03  Tom Rix  <trix@redhat.com>
3605         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3606         (build_insn): Same.
3607         (find_opcode): Fix warning in as_warn.
3608         * config/tc-d10v.h: Update Copyright.
3610 2002-04-03  Alan Matsuoka <alanm@redhat.com>
3611             Tom Rix  <trix@redhat.com>
3613         From Jeff Knaggs <jknaggs@redhat.com>
3614         * config/tc-d10v.c (check_resource_conflict): New function to
3615         check for resource conflicts.
3617         From Jason Eckhardt  <jle@redhat.com>
3618         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3619         imm3 fields.
3620         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3621         reserved control registers is used.
3622         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3623         imm3 fields.
3625         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
3626         * tc-d10v.c (parallel_ok): Prevent packing only if the first
3627         instruction cannot be packed.
3629         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
3630         * gas/config/tc-d10v.c (check_resource_conflict): Only check
3631         write-write conflicts.
3632         (md_assemble): Reformat introductory comment.
3633         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3634         arguments.
3636 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
3638         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3639         O_logical_not>): Derive final_seg from add_symbol.
3640         <O_multiply..O_logical_or>: More final_seg twiddles.
3642 2002-04-01  Jessica Han  <jessica@cup.hp.com>
3644         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3645         in 32-bit mode.
3647 2002-03-27  Andreas Schwab  <schwab@suse.de>
3649         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3650         field for pc-relative fixups.
3651         (output_disp): Likewise.
3652         (md_estimate_size_before_relax): Likewise.
3653         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3654         pc-relative fixups in 64bit mode.
3656 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
3658         * config/te-aix5.h: Typo fix.
3660 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
3662         * Makefile.am: Run "make dep-am".
3663         * Makefile.in: Regenerate.
3664         * doc/Makefile.in: Regenerate.
3666 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
3668         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3669         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3671 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
3673         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3674         the EXTENDED bit here; report the estimate according to the
3675         current size.
3677 2002-03-18  Tom Rix  <trix@redhat.com>
3679         * configure.in: Add AIX 5 support.
3680         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3681         * config/te-aix5.h: New file. AIX 5 support.
3682         * configure: Regenerate.
3684 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
3686         * po/fr.po: Updated version.
3688 2002-03-16  Andreas Jaeger  <aj@suse.de>
3690         * doc/c-mips.texi (Machine Dependencies): Add new node.
3692 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
3694         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3695         (mips_opts): Initialize "ase_mips3d" member.
3696         (file_ase_mips3d): New variable.
3697         (CPU_HAS_MIPS3D): New macro.
3698         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3699         based on command line options and configuration defaults.
3700         (macro_build, mips_ip): Accept MIPS-3D instructions if
3701         mips_opts.ase_mips3d is set.
3702         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3703         Add support for "-mips3d" and "-no-mips3d" options.
3704         (OPTION_ELF_BASE): Move to accomodate new options.
3705         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3706         (mips_elf_final_processing): Add a comment indicating that a
3707         MIPS-3D ASE ELF header flag should be set, when one exists.
3708         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3709         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3710         nomips3d" directives.
3712 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
3714         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3715         a weak symbol in same section to be within reach.
3717 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
3719         * po/fr.po: Updated version.
3721 2002-03-12  Andreas Schwab  <schwab@suse.de>
3723         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3724         body record so that an error is given for misplaced .save
3725         pseudo-ops.
3727 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
3729         * config/tc-i386.h (REX_OPCODE): Define.
3730         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3731         (rex_byte): typedef to int.
3732         * config/tc-i386.c: Group prototypes and vars together.
3733         Formatting fixes.  Remove occurrences of "register" keyword.
3734         (true): Delete.
3735         (false): Delete.
3736         (mode_from_disp_size): Add INLINE keyword to prototype.
3737         (fits_in_signed_byte): Likewise.
3738         (fits_in_unsigned_byte): Likewise.
3739         (fits_in_unsigned_word): Likewise.
3740         (fits_in_signed_word): Likewise.
3741         (fits_in_unsigned_long): Likewise.
3742         (fits_in_signed_long): Likewise.
3743         (type_names): Constify.
3744         (intel_float_operand): Constify param.
3745         (add_prefix): Use REX_OPCODE.
3746         (md_assemble): Likewise.  Modify for changed rex_byte.
3747         (parse_insn): Split out of md_assemble.
3748         (parse_operands): Likewise.
3749         (swap_operands): Likewise.
3750         (optimize_imm): Likewise.
3751         (optimize_disp): Likewise.
3752         (match_template): Likewise.
3753         (check_string): Likewise.
3754         (process_suffix): Likewise.
3755         (check_byte_reg): Likewise.
3756         (check_long_reg): Likewise.
3757         (check_qword_reg): Likewise.
3758         (check_word_reg): Likewise.
3759         (finalize_imm): Likewise.
3760         (process_operands): Likewise.
3761         (build_modrm_byte): Likewise.
3762         (output_insn): Likewise.
3763         (output_branch): Likewise.
3764         (output_jump): Likewise.
3765         (output_interseg_jump): Likewise.
3766         (output_disp): Likewise.
3767         (output_imm): Likewise.
3769 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
3771         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3773 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
3775         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3776         relocs except when BFD64.
3778         * write.c (number_to_chars_bigendian): Don't abort when N is
3779         larger than sizeof (VAL).
3780         (number_to_chars_littleendian): Likewise.
3782 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3784         * config/tc-hppa.c (md_apply_fix3): Add cast.
3785         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3786         e_rrsel.
3788 2002-03-05  Paul Koning  <pkoning@equallogic.com>
3790         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3791         (parse_ac5): New function for parsing float regs in float operand.
3792         (parse_expression): Remove attempt to make literals be octal.
3793         (parse_op_no_deferred): Support float literals.
3794         (parse_op): Reject attempts to refer to float regs.
3795         (parse_fop): New function, like parse_op but for float operand.
3796         (md_assemble): Add cases to parse float operands.  Also fix
3797         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3799 2002-03-04  H.J. Lu <hjl@gnu.org>
3801         * config/obj-elf.c (special_section): Add .init_array,
3802         .fini_array and .preinit_array.
3804         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3805         .init_array and .fini_array.
3807 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
3809         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3810         visibility.
3811         (obj_frob_symbol): Copy visibility.
3813 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3815         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3816         s_text.
3817         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3819 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
3821         * po/es.po: Updated.
3823 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
3825         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3826         only, undo the changes made on 2001-06-08, with the
3827         effect being that common or extern symbols are
3828         adjusted for embedded-PIC, but weak symbols are not.
3829         (md_estimate_size_before_relax: Likewise, with the effect
3830         that extern symbols are treated the same as weak symbols
3831         only if not embedded-PIC.
3832         (mips_fix_adjustable) Likewise, with the effect that
3833         weak or extern symbols are not adjusted for embedded-PIC.
3834         (md_apply_fix3): Tweak so that the case where value is zero
3835         is handled more correctly for embedded-PIC code.
3837 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
3839         * doc/as.texinfo (Overview): Add missing @ifset IA64
3841         * configure.in (LINGUAS): Add es.po.
3842         * configure: Regenerate.
3843         * po/es.po: New file.
3845 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3847         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3848         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3849         and NO_PIC cases. Code cleanup.
3850         (macro2): Fix handling of 64bit register loads.
3852 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
3854         * doc/as.texinfo: Add entry for IA64.
3855         * doc/c-ia64.texi: New file.
3857 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
3859         * config/tc-hppa.c: Update copyright date.
3861         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3862         Remove references to chip manufacturers.
3863         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3864         Correct comments.
3865         (md_show_usage): Remove references to chip manufacturers.  Mention
3866         -mpower4.
3867         (md_begin): Test power4 opcode flag bits.
3869 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
3871         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3872         count exceeds prologue count.
3873         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3874         (unwind.label_prologue_count): New member.
3876         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3878         (get_saved_prologue_count): New function.
3879         (save_prologue_count): New function.
3880         (free_saved_prologue_count): New function.
3881         (dot_label_state): Record state label by calling save_prologue_count().
3882         (dot_copy_state): Restore prologue count by calling
3883         get_saved_prologue_count().
3884         (generate_unwind_image): Free up list of saved prologue
3885         counts by calling free_saved_prologue_counts().
3887 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
3889         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3890         function declarations.
3892 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
3894         * NEWS: Note that GASP is now deprecated.
3895         * Makefile.am: Do not build gasp-new by default.
3896         * Makefile.in: Regenerate.
3897         * doc/Makefile.am: Do not install gasp.info.
3898         * doc/Makefile.in: Regenerate.
3899         * gas/gasp.texi: Note that gasp is now deprecated.
3901 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
3903         * NEWS: Mark 2.12 branch.
3905 2002-02-19  Tom Tromey  <tromey@redhat.com>
3907         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3909 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3911         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3912         option input.
3914 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3916         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3917         Make bit size independent of architecture switch.
3918         (md_begin): Add warning for -m64 with -Aesa.
3919         (s390_md_end): Use renamed architecture defines.
3921 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
3923         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3925 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
3927         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3928         instead of CRIS.
3930 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
3932         * config/tc-mips.c (md_estimate_size_before_relax): Really
3933         make sure we treat weak like extern only for ELF.  (Fixes
3934         patch from 2001-07-25.)
3936 2002-02-15  Ben Elliston  <bje@redhat.com>
3938         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3939         works as expected.
3941 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
3943         * NEWS: Mention support for MMIX.
3945 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
3947         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3948         a sequence of indpendent 'if' statements for easier debugging
3949         and future modification.
3951 2002-02-13  Matt Fredette  <fredette@netbsd.org>
3953         * config/tc-m68k.c (md_show_usage): No longer display a
3954         hard-coded "68020" for the default CPU, instead display the
3955         canonical name of the true, configured default CPU.
3956         (m68k_elf_final_processing): Mark objects for sub-68020
3957         CPUs with the new EF_M68000 flag.
3959 2002-02-13  Andreas Schwab  <schwab@suse.de>
3961         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3962         pc-relative relocations to merge sections in 64-bit mode.
3964 2002-02-13  Ben Elliston  <bje@redhat.com>
3966         * NEWS: Document floating point number handling in gasp.
3967         * gasp.c: Include <assert.h> and "xregex.h".
3968         (is_flonum): New function.
3969         (chew_flownum): Likewise.
3970         (change_base): Consume flonums from the input, where possible.
3971         * doc/gasp.texi (Constants): Document floating point numbers.
3973 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3975         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3976         that implicitly use LR and RR selectors.
3978 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
3980         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
3981         and `epsw' as available on AM33 and above only.
3982         (other_register_name): Add logic to handle machine type encoded in
3983         reg_number.
3985 2002-02-11  Tom Rix  <trix@redhat.com>
3987         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3988         xcoff64.
3990 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
3992         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3993         Use all over.
3995 2002-02-11  Jan Hubicka  <jh@suse.cz>
3997         * i386.c (md_assemble): Support 32bit address prefix.
3998         (i386_displacement): Likewise.
3999         (i386_index_check): Accept 32bit addressing in 64bit mode.
4001 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
4003         * config/tc-sh.c (dot): Removed unused function.
4005 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
4007         * Makefile.am: "make dep-am".
4008         * Makefile.in: Regenerate.
4009         * aclocal.m4: Regenerate.
4010         * config.in: Regenerate.
4011         * configure: Regenerate.
4012         * doc/Makefile.in: Regenerate.
4014 2002-02-10  Richard Henderson  <rth@redhat.com>
4016         * doc/c-alpha.texi: New file.
4017         * doc/Makefile.am (CPU_DOCS): Add it.
4018         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4020 2002-02-09  Richard Henderson  <rth@redhat.com>
4022         * config/tc-alpha.c (O_samegp): New.
4023         (USER_RELOC_P): Include it.
4024         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4025         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4026         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4027         (alpha_validate_fix): New.
4028         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4030 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
4032         * doc/c-cris.texi: New.
4033         * doc/all.texi: @set CRIS.
4034         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
4035         Include c-cris.texi.
4036         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4037         * doc/Makefile.in: Regenerate.
4039 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
4041         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4042         determine if a number is a sign-extended 32-bit number.
4043         (load_register): Use IS_SEXT_32BIT_NUM.
4044         (macro): Check if load/store macro handling is using a
4045         constant 32-bit address on 64-bit address systems, and if
4046         so optimize the generation of that address.
4048 2002-02-08  Richard Henderson  <rth@redhat.com>
4050         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4051         we've eliminated all foreign relocation types yet.
4052         (alpha_fix_adjustable): Likewise.
4054 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
4056         Contribute sh64-elf.
4057         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
4058                     Stephen Clarke <Stephen.Clarke@st.com>
4059         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4060         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
4061         * config/tc-sh.c (md_relax_table): Added default sizes for
4062         non-PC-relative UNDEF_MOVI, and relaxation sequences for
4063         MOVI_16, MOVI_32 and MOVI_48.
4064         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4065         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4066         and MOVI_16.
4067         (shmedia_md_estimate_size_before_relax): Remove redundant
4068         blocks.  Set fragP->fr_var even if relaxation type unchanged.
4069         Retain UNDEF_MOVI until expression decays to number.
4070         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4071         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4072         relocation types.  Take fixP->fx_addnumber into account too.
4073         (shmedia_md_apply_fix): Likewise.
4074         (shmedia_md_convert_frag): Likewise.
4075         (shmedia_build_Mytes): Likewise.
4076         (sh64_consume_datalabel): Complain about nested datalabel.
4077         Support PIC relocs.  Call sh_parse_name.
4078         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4079         in tc-sh.h to SHmedia reloc types.
4080         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4081         MOVI_GOTPC): New relaxation constants.
4082         (md_relax_table): Introduce relaxation directives for PIC-related
4083         constants.
4084         (sh_PIC_related_p): Handle datalabel.
4085         (sh_check_fixup): Choose SH5 PIC relocations.
4086         (sh_cons_fix_new): Added BDF_RELOC_64.
4087         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4088         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
4089         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4090         current ISA is SHmedia, get 7 bytes.
4091         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
4092         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4093         void function.
4094         * config/tc-sh64.c (shmedia_apply_fix): Rename to
4095         shmedia_apply_fix3 and make void.
4096         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
4097         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4098         as_bad.
4099         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
4100         * config/tc-sh64.h (md_parse_name): Take &c as argument.
4101         2001-03-14  DJ Delorie  <dj@redhat.com>
4102         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4103         * doc/Makefile.in(CPU_DOCS): Ditto.
4104         * doc/c-sh64.texi: New file.
4105         * doc/as.texinfo: Add SH64 support.
4106         2001-03-13  DJ Delorie  <dj@redhat.com>
4107         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4108         A_REUSE_PREV so that its purpose is more obvious.
4109         (shmedia_build_Mytes): Ditto.
4110         2001-03-07  DJ Delorie  <dj@redhat.com>
4111         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4112         before processing.
4113         (sh64_vtable_inherit): Ditto.
4114         (strip_datalabels): New, strip "datalabel" from given line.
4115         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4116         pseudos.
4117         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
4118         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4119         call ...
4120         (shmedia_build_Mytes): ... to here.
4121         2001-03-06  DJ Delorie  <dj@redhat.com>
4122         * config/tc-sh.c: Remove sh64-specific uaquad now that there
4123         is a generic one.
4124         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
4125         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4126         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4127         address by one in call to dwarf2_emit_insn.
4128         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
4129         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
4130         alignment handling broken by imported changes.
4131         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4132         (sh64_handle_align): Declare.
4133         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4134         (sh64_max_mem_for_rs_align_code): Declare.
4135         (enum sh64_isa_values): Moved here from tc-sh64.c.
4136         (md_do_align): Define.
4137         (sh64_do_align): Declare.
4138         (struct sh64_tc_frag_data): New.
4139         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
4140         changed.
4141         (TC_FRAG_INIT): Change to set new datatype.
4142         (struct sh64_segment_info_type): Rename member
4143         last_flushed_location to last_contents_mark.  All users changed.
4144         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4145         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4146         * config/tc-sh.c (md_pseudo_table): Add ".abi".
4147         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4148         of unsetting seen_insn.
4149         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4150         call sh64_update_contents_mark.
4151         (sh_handle_align): Remove HAVE_SH64-conditioned code.
4152         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4153         enum sh64_isa_values.
4154         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
4155         (emitting_crange): Boolean guard moved to file scope from function
4156         scope in sh64_set_contents_type.
4157         (s_sh64_abi): New.
4158         (sh64_update_contents_mark): New; most split out from
4159         sh64_flush_pending_output.
4160         (shmedia_md_end): Call sh64_update_contents_mark.  Set
4161         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4162         (sh64_do_align): New function.
4163         (sh64_max_mem_for_rs_align_code): New function.
4164         (sh64_handle_align): Rename from shmedia_do_align.  Make
4165         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
4166         four.  Change return-type to void.
4167         (shmedia_elf_new_section): Remove.
4168         (shmedia_md_assemble): Call sh64_update_contents_mark.
4169         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
4170         new frag.  Call sh64_update_contents_mark after making the new
4171         frag.
4172         (sh64_flush_pending_output): Just call sh64_update_contents_mark
4173         and sh_flush_pending_output.
4174         (sh64_flag_output): Also call md_flush_pending_output, but add
4175         condition on not emitting_crange.
4176         (sh64_tc_cons_fix_new): Remove.
4177         2001-01-12  Nick Clifton  <nickc@redhat.com>
4178         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4179         alignment handling scheme imported from sourceware.
4180         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
4181         * config/tc-sh64.h (TARGET_FORMAT): Define.
4182         (sh64_target_format): Prototype.
4183         * config/tc-sh64.c (sh64_target_mach): New function.
4184         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
4185         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4186         zero_address_frag instead of copying the frag of the symbol.
4187         (shmedia_frob_file_before_adjust): Ditto.
4188         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4189         to valueT to remove signedness.
4190         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
4191         headers to output_bfd.  Do not evaluate symbols if final is false;
4192         do emit fixups.
4193         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4194         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4195         to the current frag, call shmedia_md_convert_frag to emit fixups
4196         and make frag_wane neutralize the frag.  Update comments.
4197         * config/tc-sh.c (md_convert_frag): Change caller of
4198         shmedia_md_convert_frag.
4199         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
4200         * config/tc-sh64.h: Tweak comments and correct formatting.
4201         * config/tc-sh64.c: Ditto.
4202         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4203         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4204         for the no-relocation case.
4205         (shmedia_check_limits): Fix range check being off-by-one for PTA.
4206         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
4207         wrappers.
4208         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
4209         comment.
4210         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4211         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4212         expansion.
4213         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4214         Correct comment.
4215         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
4216         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4217         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4218         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4219         al>: Set lowest bit of field to relocate to 1 and rest to empty,
4220         if reloc is emitted.
4221         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
4222         New options plus bugfixes.
4223         * config/tc-sh.c (md_longopts): New options "-no-expand" and
4224         "-expand-pt32".
4225         (md_parse_option): Handle new options.
4226         (md_show_usage): Add blurb for new options.
4227         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4228         (sh64_expand, sh64_pt32): New variables.
4229         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4230         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4231         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
4232         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
4233         <resolved previously-pc-relative relocs>: Handle
4234         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4235         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4236         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4237         points to SHcompact code.
4238         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4239         SH64PCREL16)>: Check that ISA of what operand points at and
4240         PTA/PTB matches, or emit error.
4241         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4242         SHMEDIA_BFD_RELOC_PT.
4243         (shmedia_immediate_op): If pcrel, emit fixup also for constant
4244         operand.
4245         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4246         condition for MOVI expansion.
4247         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4248         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
4249         sh64_expand.
4250         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4251         fixup.
4252         (sh64_target_format): Error-check setting of sh64_pt32 and
4253         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
4254         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4255         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4256         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
4257         * config/tc-sh64.c: Improve comments.
4258         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
4259         not say the linker will check correctness of PTA/PTB expansion.
4260         (shmedia_md_end): Make non-static.
4261         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
4262         prototype.
4263         * config/tc-sh.c (sh_finalize): Remove.
4264         * config/tc-sh.h (md_end): Do not define.
4265         Remove prototype for sh_finalize.
4266         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
4267         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4268         sh64_section_data container when storing section type in tdata
4269         field in elf_section_data.
4270         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4271         EF_SH5.
4272         * Makefile.am: Update dependencies.
4273         * Makefile.in: Regenerate.
4274         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
4275         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4276         dwarf2_emit_insn call with test on debug_type.
4277         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
4278         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4279         CRT_SH5_ISA32 sticky for 64-bit.
4280         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
4281         Generate .crange sections when switching ISA mode or emitting
4282         constants in same section as code.
4283         * config/tc-sh64.c: Reformat structure definitions.
4284         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4285         variables.
4286         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
4287         to emit a .cranges descriptor when contents type changes.  Only
4288         emit error if changing contents type and -no-mix is in effect.
4289         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4290         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4291         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
4292         sh64_flush_last_crange over sections.
4293         When checking main symbol of datalabel symbol, check for
4294         STO_SH5_ISA32, not ISA type of section in definition.
4295         (shmedia_frob_file_before_adjust): Check main symbol for
4296         STO_SH5_ISA32; don't check ISA type of section in definition.
4297         (shmedia_frob_section_type): Adjust for .cranges; set section flag
4298         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4299         .cranges entries have been output.
4300         (shmedia_elf_new_section): Just call md_flush_pending_output.
4301         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4302         fix.  Do not set tc_segment_info_data.in_code for section.  Call
4303         sh64_set_contents_type for SHmedia code.
4304         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4305         false.  Call md_flush_pending_output.
4306         (sh64_target_format): Check that -no-mix and
4307         -shcompact-const-crange are used in sane combination with other
4308         options.
4309         (shmedia_md_pcrel_from_section): Check type of fix for how to
4310         adjust pc-relative.
4311         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4312         not ISA type of section in definition.
4313         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4314         hold contents-type state.
4315         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4316         (sh64_flush_pending_output): Declare.
4317         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4318         (sh64_tc_cons_fix_new): Declare.
4319         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4320         call sh64_flag_output.
4321         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
4322         call sh64_set_contents_type to mark SHcompact code and set
4323         seen_insn.
4324         (md_longopts): New options "-no-mix" and
4325         "-shcompact-const-crange".
4326         (md_parse_option): Handle new options.
4327         (md_show_usage): Add blurb for new options.
4328         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4329         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
4330         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4331         (sh64_last_insn_frag): New.
4332         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4333         to get frag for insn opcode for generating fixups; do not assume it
4334         is the same frag.
4335         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4336         for new insn.
4337         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4338         section.
4339         (TC_FRAG_TYPE): Define as fragS *.
4340         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4341         (sh64_last_insn_frag): Declare.
4342         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4343         not == NULL before dereferencing.
4344         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
4345         Get rid of BFD section flag and EF_SH64_ABI64.
4346         * config/tc-sh64.c (shmedia_frob_section_type): Use
4347         elf_section_data (sec)->tdata, not a specific BFD section flag, to
4348         communicate the section as containing SHmedia code.  Describe why.
4349         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
4350         EF_SH64 regardless of ABI.
4351         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4352         in error message.  Handle resolved expressions for
4353         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4354         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4355         (shmedia_check_limits): Handle BFD_RELOC_64.
4356         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4357         a STO_SH5_ISA32 symbol, only the BFD value.
4358         2000-12-11  Ben Elliston  <bje@redhat.com>
4359         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4360         dwarf2_generate_asm_lineno.
4361         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
4362         Handle PC-relative MOVI expansions with assembler relaxation.
4363         Generate PC-relative relocs from 16-bit PC-relative expressions.
4364         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4365         (shmedia_md_pcrel_from_section): ...here.
4366         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4367         turned completely resolved.  Adjust relocation type for 16-bit
4368         immediate operands that has turned PC-relative.  Adjust back for
4369         MD_PCREL_FROM_SECTION being applied twice.
4370         (shmedia_md_convert_frag): Always emit reloc for expression with
4371         global or weak symbol.  Handle relaxation result for PC-relative
4372         expressions.
4373         (shmedia_md_estimate_size_before_relax): An expression with a weak
4374         or global symbol can not be relaxed.  Break out tests for
4375         relaxable symbol into variable sym_relaxable.
4376         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4377         UNDEF_MOVI)>: Break out any PC-relative expression and change
4378         relaxation type.
4379         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4380         opjp.
4381         <case A_IMMS16>: Fix typo for initial minor relaxation type of
4382         MOVI expansion.  If X_op_symbol of the immediate expression is
4383         set, make an expression symbol for the argument to frag_var.
4384         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4385         relaxations.
4386         (END): Adjust for new relaxations.
4387         (md_relax_table): Add entries for new relaxations.
4388         2000-12-07  Ben Elliston  <bje@redhat.com>
4389         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4390         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
4391         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4392         SHORI operand offsets in PT/PTA/PTB expansions.
4393         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
4394         Implement DataLabel semantics.
4395         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4396         shmedia_frob_file_before_adjust.
4397         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4398         (DATALABEL_SUFFIX): Define.
4399         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4400         symbol list to update "datalabel" symbols to their main symbol
4401         counterparts.
4402         (shmedia_frob_file_before_adjust): New.
4403         (sh64_adjust_symtab): For remaining datalabel symbols, set to
4404         undefined and set STT_DATALABEL.
4405         (sh64_frob_label): Initialize TC symbol field.
4406         (sh64_consume_datalabel): Actually implement semantics.  New
4407         parameter operandf, call it instead of expression.
4408         (sh64_exclude_symbol): New.
4409         * config/tc-sh64.h (md_parse_name): Pass on the function operand
4410         to sh64_consume_datalabel.
4411         (tc_symbol_new_hook): Define to tc_frob_symbol.
4412         (TC_SYMFIELD_TYPE): Define to symbolS *.
4413         (tc_frob_symbol): Define to call sh64_exclude_symbol.
4414         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
4415         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4416         case.
4417         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4418         generating dwarf2 debug information.
4419         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
4420         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4421         elf64-sh64 for the 64-bit ABI.
4422         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4423         option.
4424         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
4425         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4426         case-insensitivity.
4427         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
4428         * config/tc-sh64.c: Tweak comments, formatting and error messages.
4429         (enum sh64_abi_values): New type.
4430         (enum sh64_isa_values): New type.
4431         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
4432         (seen_shcompact_mode, seen_shmedia_mode): Delete.
4433         (sh64_abi): Replace shmedia_64.
4434         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4435         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4436         (s_sh64_mode): Check validity for this target.
4437         (sh64_target_format): Initialize defaults for ISA and ABI.
4438         Fallback to old object format if no SH64 ISA or ABI has been
4439         specified.
4440         * config/tc-sh.c (md_parse_option): Check combinations for errors.
4441         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4442         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4443         * config/tc-sh64.h: Fix typo in comment.
4444         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
4445         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4446         <PT fixups for absolute values>: Size will be longest, not
4447         shortest.
4448         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
4449         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4450         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4451         and l1 to hold lowercase of two first characters.  Change all
4452         remaining TO_LOWER to tolower.
4453         * config/tc-sh64.c (TO_LOWER): Delete.
4454         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4455         (md_parse_name): Define.
4456         (sh64_consume_datalabel): Declare.
4457         (DOLLAR_DOT): Define.
4458         * config/tc-sh64.c (shmedia_parse_exp): New.
4459         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4460         (shmedia_parse_reg): Remove const from src
4461         parameter.
4462         (shmedia_get_operands): Ditto for args parameter and ptr variable.
4463         (shmedia_md_assemble): Ditto for op_end variable.
4464         (shmedia_get_operand): Ditto for ptr parameter and src variable.
4465         Use shmedia_parse_exp, not parse_exp.
4466         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4467         parameter.  All callers changed.
4468         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
4469         callers changed.
4470         (shmedia_parse_reg): Put first two character in local variables.
4471         Use tolower, not TO_LOWER.  If no register is found and argtype
4472         indicates a control register, scan shmedia_creg_table
4473         case-insensitive.
4474         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
4475         * Makefile.am (CPU_TYPES): Add sh64.
4476         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4477         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4478         Regenerate dependencies.
4479         * Makefile.in: Regenerate.
4480         * configure.in: Add support for sh64-*-elf*.
4481         * configure: Regenerate.
4482         * config/tc-sh64.h: New.
4483         * config/tc-sh64.c: New.
4484         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4485         .mode, .isa and .uaquad.
4486         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4487         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4488         [HAVE_SH64] (END): Define as 10.
4489         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4490         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4491         MOVI_64): Define.
4492         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4493         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4494         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4495         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4496         Define.
4497         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4498         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4499         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4500         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4501         SHmedia instructions.  Handle state-change after switching to
4502         SHcompact.
4503         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4504         (md_parse_option) [HAVE_SH64]: Parse new options.
4505         (md_show_usage) [HAVE_SH64]: Show usage of new options.
4506         (md_convert_frag) [HAVE_SH64] <default>: Call
4507         shmedia_md_convert_frag instead of abort.
4508         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4509         BFD_RELOC_SH_SHMEDIA_CODE.
4510         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4511         SHcompact or SHmedia code.
4512         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4513         shmedia_md_apply_fix instead of abort.
4514         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4515         result from calling shmedia_md_estimate_size_before_relax instead
4516         of calling abort.
4517         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4518         do the work.
4519         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4520         shmedia_init_reloc and do nothing more if it returns non-zero.
4521         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4522         * po/POTFILES.in: Regenerate.
4523         * po/gas.pot: Regenerate.
4525 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
4527         * config/tc-sh.c (parse_at): Install the correct version of
4528         2002-02-04's patch.
4530         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4531         assume fixP->fx_subsy is non-NULL.
4533 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
4535         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4536         A_DISP_PC_ABS, and adjust it by -4.
4537         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4538         expected.
4539         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4540         the operand type is not A_DISP_PC_ABS.
4542 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
4544         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4545         common and weak symbols.  Handle common and weak symbols as
4546         undefined symbols with regards to GREG handling and merging.
4547         (mmix_frob_file): Ditto.
4549 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
4551         * configure.in (hppa-*-netbsd*): New target.
4552         * configure: Regenerate.
4553         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4555 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
4557         * config/tc-v850.c: Add missing prototypes amd use old-style
4558         function definitions.
4559         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4560         (sdata_section tdata_section, zdata_section, sbss_section,
4561         tbss_section, zbss_section, rosdata_section, rozdata_section,
4562         scommon_section, tcommon_section, zcommon_section,
4563         call_table_data_section, call_table_text_section): Delete.
4564         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4565         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4566         v850_call_table_data, v850_call_table_text): Delete.
4567         (struct v850_seg_entry): New.
4568         (v850_seg_table): New.
4569         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4570         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4571         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4572         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4573         (do_v850_seg): New.
4574         (v850_seg): New.
4575         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
4576         recording of alignment.
4577         (md_pseudo_table): Use v850_seg.
4578         (md_begin): Don't init .call_table_data and .call_table_text here.
4579         Set v850_seg_table bss entry.
4581 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
4583         Support on-demand global register allocation by passing on
4584         base-plus-offset relocs to the linker.
4585         * config/tc-mmix.c: Tweak and fix typos in comments.
4586         (allocate_undefined_gregs_in_linker): New variable.
4587         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4588         (md_longopts): Add --linker-allocated-gregs.
4589         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4590         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4591         (md_show_usage): Update text for -x.  Add text for
4592         --linker-allocated-gregs.
4593         (tc_gen_reloc): Derive default value for addend from val and
4594         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
4595         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4596         GREG if allocate_undefined_gregs_in_linker.
4597         * doc/as.texinfo (Overview) <Target MMIX options>: Add
4598         --linker-allocated-gregs.
4599         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4600         --linker-allocated-gregs.  Mention that it's implied by -x.
4601         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4602         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4604         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4606 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
4608         * Makefile.am: Run "make dep-am"
4609         * Makefile.in: Regenerate.
4611 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
4613         * config/tc-or32.c: New file.
4614         * config/tc-or32.h: New file.
4615         * configure.in: Add support for or32 targets.
4616         * configure: Regenerate.
4617         * config/obj-coff.c: Add support for or32 targets.
4618         * config/obj-coff.h: Add support for or32 targets.
4619         * Makefile.am: Add support for or32 targets.
4620         * Makefile.in: Regenerate.
4621         * NEWS: Mention support for OpenRISC.
4622         * doc/Makefile.in: Regenerate.
4623         * po/POTFILES.in: Regenerate.
4624         * po/gas.pot: Regenerate.
4626 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
4628         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4629         and mod.
4631 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
4633         * config/tc-mips.c (tc_gen_reloc): Arrange for
4634         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4635         their LO16 parts, even for ELF.
4637 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
4639         * config/tc-i386.c: Protect definitions of true and false
4640         from redefinition.
4642 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
4644         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4645         made because of .weak, if they are neither defined nor used in any
4646         way.
4648 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
4650         * configure: Regenerated.
4652 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
4654         * doc/Makefile.am (install): Depend on install-info.
4655         * doc/Makefile.in: Regenerate.
4657 2002-01-26  Nick Clifton <nick@redhat.com>
4659         * po/fr.po: Updated version
4661 2002-01-24  Kazu Hirata  <kazu@hxi.com>
4663         * config/tc-h8300.c (check_operand): Don't print a warning
4664         when a valid 24-bit address is given to a 16-bit address
4665         operand.
4667 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
4669         * config/tc-sh.c (sh_elf_suffix): Removed.
4670         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4671         sh_end_of_match, sh_parse_name): New functions.
4672         (sh_elf_cons): Simplify.
4673         (parse_exp): Reject misplaced PIC operands.
4674         (md_undefined_symbol): Simplify.
4675         (sh_fix_adjustable): Let @GOTOFF be adjusted.
4676         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4677         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4678         Complain if subsy remains at the end.
4679         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4680         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4682 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
4684         * config/tc-mn10300.c (xr_registers): Move `pc'...
4685         (other_registers): ... here.
4687 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
4689         * Makefile.am: Run "make dep-am".
4690         * Makefile.in: Regenerate.
4691         * gas/po/POTFILES.in: Regenerate.
4693 2002-01-21  DJ Delorie  <dj@redhat.com>
4695         * config/obj-coff.c (obj_coff_init_stab_section): Make the
4696         stabstr_name allocation permanent, as it will be referenced from
4697         the section hash.
4699 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
4701         * configure.in (ia64-*-netbsd*): New target.
4702         * configure: Regenerate.
4704 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
4706         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4707         to @dots call.
4708         <Detailed description, ARM options>: Ditto.
4709         * doc/c-arm.texi (ARM Options): Ditto.
4711 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4713         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4714         do_mia, do_mar and do_mra respectively.
4715         (do_mav_*): Renamed from do_c_*.
4716         (mav_reg_required_here, mav_parse_offset): Renamed from
4717         cirrus_reg_required_here and cirrus_parse_offset respectively.
4718         (MAV_MODE?): Renamed from CIRRUS_MODE?.
4720 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4721             Keith Walker  <keith.walker@arm.com>
4723         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4724         (insns): Add pattern for bxj instruction.
4725         (do_bxj): New function.
4726         (arm_cpus): Add arm926ej.
4727         (arm_archs): Add armv5tej.
4729 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4731         * doc/c-arm.texi: Add new fpe options to list of supported flags.
4733 2002-01-19  Keith Walker  <keith.walker@arm.com>
4735         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4737 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
4739         * NEWS: Mention new ARM command-line options and VFP support.
4741         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
4742         uses changed.
4743         (ARM_CEXT_MAVERICK): Similarly.
4744         (ARM_ANY): Now means any core instruction.
4745         (CPU_DEFAULT): Default to ARM_ANY.
4746         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4747         (pic_code): Declare for all object types.  Make type int.
4748         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4749         (march_fpu_opt, mfpu_opt): Declare.
4750         (md_longopts): Tidy up conditional definitions.
4751         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4752         (arm_long_opts): New tables.
4753         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4754         (arm_parse_extension): New function.
4755         (md_parse_option): Rewrite using new table-driven system.
4756         (md_show_usage): Use new table-driven system.
4757         (md_begin): Calculate cpu_variant from command line option data.
4758         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4759         command-line options.
4760         * doc/c-arm.texi: Likewise.
4762 2002-01-18  Andreas Jaeger  <aj@suse.de>
4764         * as.c (parse_args): Update year.
4766 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
4768         * config/tc-tic54x.c (encode_address): Add a more informative
4769         warning about incorrect syntax.
4771 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
4773         * po/gas.pot: Regenerate.
4775 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
4777         * macro.c (get_any_string): Add no-c-format comment to prevent
4778         confusion when translating string.
4779         * gasp.c (get_any_string): Add no-c-format comment to prevent
4780         confusion when translating string.
4782 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4783             Johannes Stezenbach <js@convergence.de>
4784         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4785         matched before the shorter ones.
4786         (my_getSmallParser): Fix handling of nested parentheses in
4787         percent_op's. Code cleanup.
4788         (my_getPercentOp): New function, code from my_getSmallParser.
4789         (my_getSmallExpression): Fix handling of closing parentheses.
4790         Code cleanup. Better comments.
4792 2002-01-16  Nick Clifton <nickc@redhat.com>
4794         po/tr.po: New file: Turkish translation.
4795         configure.in (LINGUAS): Add "tr".
4796         configure: Regenerate.
4798 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
4800         Support for VFP instructions
4801         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4802         (cp_address_required_here): New argument wb_ok.  When false, do not
4803         accept write-back forms of addressing.  Change all callers.
4804         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4805         (FPU_VFP_EXT_V2): Define.
4806         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4807         Define in terms of above.
4808         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4809         (vfp_reg): New struct.
4810         (vfp_regs): New array of registers.
4811         (insns): Add VFP instructions.
4812         (sn_table): New array of VFP single-precision register names.
4813         (dn_table): New array of VFP double-precision register names.
4814         (all_reg_maps): Add the new register tables.
4815         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
4816         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4817         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4818         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4819         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4820         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4821         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4822         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4823         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4824         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4825         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4826         (do_vfp_sp_dp_cvt): New functions.
4827         (md_begin): Set soft-float flag for appropriate VFP work.
4828         (md_atof): Handle VFP-format doubles.
4829         (md_parse_option): Handle VFP command-line options.
4830         (md_show_usage): Display VFP command-line options.
4832 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
4834         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4835         various command line options.
4837 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
4839         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4840         vtinherit relocs.
4841         (xstormy16_md_apply_fix3): Do not return a value.
4843 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
4845         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4846         the -EL/-EB option that matches the target's endianness.
4847         (md_parse_option): Likewise.
4849 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
4851         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4852         is not dependent on ARM_BI_ENDIAN.
4854 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
4856         * tc-arm.c (all error messages): Normalize capitalization of messages.
4858         * tc-arm.h (md_operand): Delete define.
4859         * tc-arm.c (in_my_get_expression): New static variable.
4860         (my_get_expression): Set and clear it.
4861         (md_operand): New function.  If called from my_get_expression
4862         put the error in inst.error.
4863         (output_inst): Now takes argument of instruction being assembled.
4864         Print it out with any error message.
4865         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4866         with '=' syntax.
4867         (end_of_line): Don't update inst.error if it is already set.
4869 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
4871         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4872         op that can be translated into a mvn instruction.
4874 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
4876         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4877         setting default md.flags.
4878         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4879         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4880         * gas/config/tc-ia64.c (setup_unwind_header): Add support
4881         for 32 bit unwind info blocks.
4882         (generate_unwind_image): Add support for different types
4883         of unwind images (32 bits and/or big-endian).
4884         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4885         (ia64_target_format): Add support for hpux target formats.
4886         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4887         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4888         SHT_FINI_ARRAY elf section types.
4890 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
4892         * tc-arm.c (struct reg_entry): Move before prototypes.
4893         (int_register, cp_register, fp_register): Delete.
4894         (reg_table): Delete.  Replaced with ...
4895         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4896         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4897         (mav_dspsc_table): ... one table per register set.
4898         (arm_reg_hsh): Delete.
4899         (struct reg_map): New structure.
4900         (all_reg_maps): New array.
4901         (enum arm_reg_type): New enums.
4902         (build_reg_hsh): New function.
4903         (insert_reg_alias): Use hash table passed by caller.  Adjust all
4904         callers.
4905         (create_register_alias): New function, split out from ...
4906         (md_assemble): ... here.
4907         (md_begin): Build new register hash tables.
4908         (arm_reg_parse): New argument for the hash table to search.  Adjust all
4909         callers.
4910         (arm_reg_parse_any): New function.
4911         (co_proc_number): Look up the processor number in the processor hash
4912         table.
4913         (cirrus_regtype): Delete.
4914         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4915         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4916         (ARM_EXT_MAVERICKsc_register): Delete.
4917         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4918         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4919         functions.
4920         (do_c_triple_4, do_c_triple_5): Delete.
4921         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4922         (do_c_quad_6): Delete.
4923         (do_c_quad_6[ab]): New functions.
4924         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4925         arguments to use new register parsing methods.
4926         (cirrus_reg_required_here): Likewise.
4927         (insns): Reclassify cirrus maverick worker functions.
4928         (cirrus_valid_reg): Delete.
4930 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
4932         * configure.in (sh*le): Set cpu_type=sh and endian=little.
4933         (sh*-*-netbsdelf*): New target.
4934         * configure: Regenerate.
4935         * tc-sh.h: Update copyright years.
4936         (TARGET_FORMAT): Add version for TE_NetBSD.
4938 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
4940         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4941         negative.
4943 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
4945         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4946         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4948 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
4950         * tc-mips.c (mips_cprestore_valid): New flag.
4951         (mips_frame_reg_valid): New flag.
4952         (macro) [M_JAL_2]: Check both flags.
4953         [M_JAL_A]: Likewise.
4954         (s_cprestore): Set mips_cprestore_valid.
4955         (tc_get_register): If setting mips_frame_reg, set
4956         mips_frame_reg_valid and clear mips_cprestore_valid.
4957         (s_mips_ent): Clear both flags.
4958         (s_mips_end): Clear both flags.
4960 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
4962         * write.c (write_object_file): Make use of bfd_section_list_remove.
4963         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4964         * config/tc-mmix.c (mmix_frob_file): Likewise.
4966 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
4968         * configure.in (i386-*-netbsdelf*): Collapse target into...
4969         (i386-*-netbsd*): ...this.  Add support for x86-64.
4970         * configure: Regenerated.
4972 2002-01-03  matthew green  <mrg@redhat.com>
4974         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4976 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
4978         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4979         NULL frag link.
4981 For older changes see ChangeLog-0001
4983 Local Variables:
4984 mode: change-log
4985 left-margin: 8
4986 fill-column: 74
4987 version-control: never
4988 End: