OSDN Git Service

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