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