* config/tc-mips.c (md_begin): Add $fcc registers to the symbol
[external/binutils.git] / gas / ChangeLog
1 2002-10-18  Alexandre Oliva  <aoliva@redhat.com>
2
3         * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
4         table as register names.
5
6 2002-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
7
8         * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
9         for option -m31.
10
11 2002-10-18  Svein E. Seldal  <Svein.Seldal@solidas.com>
12
13         * expr.c (operand): Add support for n.nn flonums.
14
15 2002-10-17  Johannes Stezenbach  <js@convergence.de>
16
17         * itbl-parse.y (entry): Provide empty action.
18
19 2002-10-16  Alan Modra  <amodra@bigpond.net.au>
20
21         * configure.in (BFDVER_H): Set and subst.
22         * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
23         * Makefile.am: Run "make dep-am".
24         (BFDVER_H): Define.
25         * configure: Regenerate.
26         * Makefile.in: Regenerate.
27         * doc/Makefile.in: Regenerate.
28
29 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
30
31         * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
32         (MD_APPLY_SYM_VALUE): Define for PE too.
33
34 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
35
36         * Makefile.am: Run "make dep-am".
37         (CPU_OBJ_VALID): sh64 coff is invalid.
38         * as.c: #include "bfdver.h".
39         * Makefile.in: Regenerate.
40         * config.in: Regenerate.
41
42 2002-10-14  Momchil Velikov  <velco@fadata.bg>
43
44         * config/tc-v850.c (CHECK_): Remove token pasting operator.
45
46 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
47
48         * configure.in (mips64vr-elf, mips64vrel-elf): New config.
49         * configure: Regenerate.
50
51 2002-10-13  Eric Christopher  <echristo@redhat.com>
52             Alexandre Oliva  <aoliva@redhat.com>
53
54         * config/tc-mips.c (s_gpdword): New function.
55         (mips_pseudo_table): Add .gpdword.
56         (mips_need_elf_addend_fixup): never for NEWABI.
57         (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
58         GPREL32 as done.
59         (s_cpadd): Generate .cpadd on NEWABI.
60
61 2002-10-12  Elias Athanasopoulos  <eathan@otenet.gr>
62
63         * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
64
65 2002-10-12  Alexandre Oliva  <aoliva@redhat.com>
66
67         * config/tc-mips.h (mips_relax_frag): Take segment as argument.
68         (md_relax_frag): Adjust macro.
69         * config/tc-mips.c (mips_relax_branch): New variable.
70         (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
71         RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
72         (RELAX_MIPS16_P): Adjust.
73         (append_insn): Emit branch to non-constant in a frag_var if
74         branch-relaxation is desirable and possible.
75         (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
76         (OPTION_ELF_BASE): Adjust.
77         (md_parse_option): Handle new options.
78         (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
79         branch relaxation.
80         (relaxed_branch_length): New function.
81         (md_estimate_size_before_relax): Handle branch frags.
82         (mips_relax_frag): Likewise.
83         (md_convert_frag): Handle branch frags.  Warn if branch is
84         relaxed.
85
86 2002-10-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
87
88         * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
89         emitted.
90         (md_apply_fix3): Add TLS relocs.
91         (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
92         @DTPOFF.
93
94 2002-10-11  Michel Six  <msix@ccr.jussieu.fr>
95             Alan Modra  <amodra@bigpond.net.au>
96
97         * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
98         (md_estimate_size_before_relax): Likewise for 8 bit branches.
99
100 Thu Oct 10 14:31:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
101
102         * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
103         inside loop.
104
105 2002-10-09  Richard Shann <richard.shann@superh.com>
106             Stephen Clarke <stephen.clarke@superh.com>
107
108         * config/tc-sh64.c (sh64_target_format): Add support for sh64
109         Linux environment.
110
111 2002-10-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
112
113         * contig/tc-sh.c (sh_local_pcrel): New.
114         (sh_force_relocation): Use sh_local_pcrel.
115         (md_pcrel_from_section): Check the relocation type whether it
116         should be resolved locally. Use S_FORCE_RELOC.
117
118 2002-10-01  Alan Modra  <amodra@bigpond.net.au>
119
120         * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
121         (TC_FORCE_RELOCATION): Tidy arg.
122
123 2002-09-30  Gavin Romig-Koch  <gavin@redhat.com>
124             Ken Raeburn  <raeburn@cygnus.com>
125             Aldy Hernandez  <aldyh@redhat.com>
126             DJ Delorie  <dj@redhat.com>
127             Michael Meissner  <meissner@redhat.com>
128             Eric Christopher  <echristo@redhat.com>
129             Richard Sandiford  <rsandifo@redhat.com>
130
131         * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
132         vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
133         * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
134         (hilo_interlocks): True for CPU_VR5500.
135         (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
136         (mips_fix_vr4122_bugs): New.
137         (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
138         (mips_emit_delays): Likewise.
139         (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
140         [M_ROLI]: Likewise ror if CPU_HAS_ROR.
141         (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
142         (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
143         (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
144         (OPTION_ELF_BASE): Bump.
145         (md_parse_option): Handle the new options.
146         (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
147         vr5400 and vr5500.
148
149 2002-09-29  H.J. Lu <hjl@gnu.org>
150
151         * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
152         twice if howto->pcrel_offset is true.
153
154 2002-09-28  Matt Thomas  <matt@3am-software.com>
155             Jason Thorpe  <thorpej@wasabisystems.com>
156
157         * config/tc-vax.c (md_estimate_size_before_relax): Only try to
158         convert undefined references to GOT32/PLT32 if PIC code is
159         requested.  Fix comment.
160
161 2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
162
163         * config/tc-sh.c (sh_force_relocation): Return 0 for
164         some PC relative relocations when not relaxing.
165
166 2002-09-26  Jakub Jelinek  <jakub@redhat.com>
167
168         * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
169         Define them if not BFD_ASSEMBLER.
170         (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
171         @tlsld.
172         (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
173         BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
174         (tc_gen_reloc): Handle x86-64 TLS relocs.
175
176 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
177
178         * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
179         fixups to current or absolute section.
180
181 2002-09-26  Jim Wilson  <wilson@redhat.com>
182
183         * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
184         and frag_more.
185
186 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
187
188         * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
189         capable configuration.
190         (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
191         generation.
192         (mips_ip): Likewise.
193
194 2002-09-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
195
196         * config/tc-mips.c (append_insn): Fix jump overflow check.
197
198 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
199
200         * config/tc-i386.c (process_operands): Warn about "lea" segment
201         overrides.
202
203 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
204
205         * write.c: Delete set_segment_vma and prototype. Update all callers.
206
207 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
208
209         * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
210         S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
211         Rename "fseg" to "sym_seg".
212         * Makefile.am: Run "make dep-am".
213         * Makefile.in: Regenerate.
214         * doc/Makefile.in: Regenerate.
215
216 2002-09-20  Nick Clifton  <nickc@redhat.com>
217
218         * symbols.c (colon): Do not allow symbols to be created in the
219         absolute section if WORKING_DOT_WORD is not defined and
220         new_broken_words would require a new frag to be created.
221
222 2002-09-20  Alan Modra  <amodra@bigpond.net.au>
223
224         * expr.c (expr): Simplify foo-foo here.
225         (clean_up_expression): Remove O_subtract code.
226
227         * write.h (struct fix): Add fx_dot_value.
228         (dot_value): Declare.
229         * write.c (dot_value): New var.
230         (fix_new_internal): Save dot_value as fx_dot_value.
231         (fixup_segment): Adjust fx_offset using fx_dot_value.
232         * expr.c (expr): Update dot_value.
233
234 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
235
236         * config/tc-i386.c (tc_i386_fix_adjustable): Handle
237         BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
238         (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
239         if not defined.
240         (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
241         (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
242         BFD_RELOC_386_TLS_GOTIE.
243
244 2002-09-19  Richard Henderson  <rth@redhat.com>
245
246         * config/tc-alpha.c (md_pcrel_from): Only adjust special for
247         branch type relocs.
248         (alpha_force_relocation): Don't special-case branch type relocs.
249
250 2002-09-19  Nick Clifton  <nickc@redhat.com>
251
252         * config/tc-m68k.c (select_control_regs): Handle situation where
253         architecture has not yet been selected.
254
255 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
256
257         * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
258         (IS_SEXT_16BIT_NUM): New macro.
259         (macro_build_ldst_constoffset): New function, to build a set of
260         instructions to do a load or store from a constant offset relative
261         to a given register.
262         (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
263         .cprestore pseudo-op.
264
265 2002-09-18  Chris Demetriou  <cgd@broadcom.com>
266
267         * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
268
269 2002-09-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
270
271         * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
272
273 2002-09-17  Stan Cox  <scox@redhat.com>
274
275         * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
276         (macro): Likewise for la.  Likewise for ld.
277         (mips_after_parse_args): Make -xgot optional, not the default.
278         (md_apply_fix3): Allow composite relocation to set up gp.
279         (tc_gen_reloc): Allow relaxing for newabi.
280         Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
281         Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
282
283 2002-09-17  Nick Clifton  <nickc@redhat.com>
284
285         * config/tc-arm.c (md_apply_fix3): Note that an implemented
286         BFD_RELOC_ARM_IMMEDIATE has been done.
287         (tc_gen_reloc): Do not issue reloc number of unimplemented
288         BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
289         their name is already in the error message - plus remove them
290         from the default case.
291
292         * config/tc-arm.c (do_ldmstm): Warn about unpredictable
293         behavior of instructions.
294
295 2002-09-17  Svein E. Seldal  <Svein.Seldal@solidas.com>
296
297         * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
298         Convert functions to K&R format.
299
300 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
301
302         * config/tc-mips.c (pdr_seg): Define only for ELF.
303         (s_change_section): Remove unused variable. Don't use for nonELF.
304
305 2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
306
307         * config/obj-elf.c (obj_elf_change_section): Move prototype to
308         obj-elf.h
309         * config/obj-elf.h (obj_elf_change_section): Likewise.
310
311 2002-09-16  Elias Athanasopoulos  <eathan@otenet.gr>
312
313         * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
314         (out_debug_info): Likewise.
315
316 2002-09-16  Bruno Haible  <bruno@clisp.org>
317
318         * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
319         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
320         * config/tc-i386.c (i386_target_format): Likewise.
321         * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
322         (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
323
324 2002-09-13  Nick Clifton  <nickc@redhat.com>
325
326         * config/tc-ppc.c (md_assemble): Do not count FAKE operands
327         when deciding if any operands have been skipped.
328
329 2002-09-11  Nick Clifton  <nickc@redhat.com>
330
331         * NEWS: New TI port supports both C4x and C3x series of DSPs.
332
333         * po/tr.po: Updated Turkish translation.
334
335 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
336
337         * config/tc-i386.c (md_apply_fix3): Allow addend for
338         BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
339         BFD_RELOC_386_TLS_LE_32.
340
341 2002-09-05  Jeff Law  <law@redhat.com>
342
343         * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
344         marker relocations such as ENTRY/EXIT.
345         * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
346         to both OBJ_ELF and OBJ_SOM.
347
348 2002-09-05  Alan Modra  <amodra@bigpond.net.au>
349
350         * doc/internals.texi (md_apply_fix3): Expand.
351         (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
352         TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
353         TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
354         TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
355         EXTERN_FORCE_RELOC): Document.
356         (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
357         * as.h: Don't include struc-symbol.h for arc.
358         (IS_ELF): Define.
359         * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
360         subtract absolute symbol.
361         * obj.h (struct format_ops): Add frob_file_before_fix.
362         * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
363         * symbols.c (S_FORCE_RELOC): New function.
364         * symbols.h (S_FORCE_RELOC): Declare.
365         * write.c (TC_FORCE_RELOCATION): Change default.
366         (TC_FORCE_RELOCATION_ABS): Define.
367         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
368         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
369         (TC_FORCE_RELOCATION_SECTION): Don't define.
370         (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
371         (TC_FORCE_RELOCATION_SUB_ABS): Define.
372         (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
373         (TC_VALIDATE_FIX_SUB): Define.
374         (TC_FIX_ADJUSTABLE): Don't define.
375         (MD_APPLY_SYM_VALUE): Define this instead.
376         (abs_section_sym): New variable.
377         (adjust_reloc_syms): Use S_FORCE_RELOC.  Remove obj_fix_adjustable
378         call.  Don't symbol_mark_used_in_reloc here.  Simplify link_once tests.
379         Don't put the absolute section sym on fixups here.
380         (fix_segment): New function.
381         (write_relocs): Don't call fixup_segment from here.
382         (write_object_file): Instead call tc_frob_file_before_fix,
383         obj_frob_file_before_fix, and fix_segment prior to symbol table code.
384         Don't output the absolute section symbol.
385         (fixup_segment): Rewrite.
386         * write.h (abs_section_sym): Declare.
387         * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
388         obj_aout_frob_file.
389         (aout_format_ops): Adjust to suit.
390         * config/obj-aout.h (obj_frob_file): Don't define.
391         (obj_frob_file_before_fix): Define.
392         (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
393         (S_FORCE_RELOC): Define.
394         * config/obj-bout.h (S_FORCE_RELOC): Define.
395         * config/obj-coff.c (coff_format_ops): Init new field.
396         * config/obj-coff.h: Formatting fixes.
397         (obj_sec_sym_ok_for_reloc): Define.
398         (S_FORCE_RELOC): Define.
399         * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
400         (ecoff_frob_file): .. from here.
401         (ecoff_format_ops): Add new function.
402         * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
403         (obj_frob_file_before_fix): Define.
404         * config/obj-elf.c (elf_format_ops): Init new field.
405         * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
406         * config/obj-ieee.h: Formatting fixes.
407         (S_FORCE_RELOC): Define.
408         * config/obj-multi.h (obj_frob_file_before_fix): Define.
409         * config/obj-vms.h (S_FORCE_RELOC): Define.
410         * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
411         (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
412         for BFD_RELOC_32 and BFD_RELOC_64.
413         (alpha_fix_adjustable): Remove extern and weak tests.
414         (alpha_before_fix): Rename from alpha_adjust_symtab.
415         (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
416         * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
417         (TC_VALIDATE_FIX): Tweak param name.
418         (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
419         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
420         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
421         (MD_APPLY_SYM_VALUE): Define.
422         (tc_adjust_symtab): Don't define.
423         (alpha_adjust_symtab): Don't declare.
424         (tc_frob_file_before_fix): Define.
425         (alpha_before_fix): Declare.
426         (TC_INIT_FIX_DATA): Tweak param names.
427         * config/tc-arc.c: Include "struc-symbol.h".
428         (md_pcrel_from): Remove undefined sym fudge.
429         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
430         Don't set fx_addnumber.
431         (tc_gen_reloc): Remove spurious fx_addnumber comment.
432         * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
433         (EXTERN_FORCE_RELOC): Define.
434         * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
435         (tc_gen_reloc): Fudge ARM_GOTPC addend.
436         (arm_validate_fix): Return void.
437         (arm_fix_adjustable <elf version>): Remove extern and weak tests.
438         Add plt and got reloc tests.
439         (arm_force_relocation): Call S_FORCE_RELOC.
440         * config/tc-arm.h (struct fix): Forward declare.
441         (TC_VALIDATE_FIX): No longer set add_symbolP.
442         (arm_validate_fix): Adjust declaration.
443         (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
444         (TC_FORCE_RELOCATION): Tweak param name.
445         (TC_INIT_FIX_DATA): Likewise.
446         (obj_fix_adjustable): Don't define.
447         (tc_fix_adjustable): Call arm_fix_adjustable.
448         (TC_FIX_ADJUSTABLE): Don't define.
449         (MD_APPLY_SYM_VALUE): Define.
450         (EXTERN_FORCE_RELOC): Define.
451         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
452         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
453         * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
454         Remove *valP fudges and code to subtract abs sym.  Don't set
455         fx_addnumber.
456         * config/tc-avr.h: Formatting.
457         (EXTERN_FORCE_RELOC): Define.
458         (MD_APPLY_SYM_VALUE): Define.
459         * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
460         (md_apply_fix3): Remove code to subtract abs sym.
461         (md_cris_force_relocation): Update comment.  Call S_FORCE_RELOC.
462         * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
463         (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
464         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
465         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
466         (tc_fix_adjustable): Remove extern, weak tests.
467         * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
468         BFD_RELOC_VTABLE_INHERIT relocs.  Don't use fx_addnumber.
469         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
470         and code to subtract abs sym.
471         (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
472         (d10v_force_relocation): Call S_FORCE_RELOC.
473         * config/tc-d10v.h: Don't include write.h.
474         (struct fix): Instead, forward declare.
475         (MD_PCREL_FROM_SECTION): Tweak param names.
476         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
477         (d10v_fix_adjustable): Likewise.
478         (obj_fix_adjustable): Don't define.
479         (tc_fix_adjustable): Define.
480         (TC_FORCE_RELOCATION): Tweak param name.
481         (MD_APPLY_SYM_VALUE): Define.
482         (EXTERN_FORCE_RELOC): Define.
483         * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
484         (md_apply_fix3): Don't cast valP pointer type.  Remove *valP fudges
485         and code to subtract abs sym.
486         * config/tc-d30v.h: Don't include write.h.
487         (struct fix): Instead, forward declare.
488         (MD_PCREL_FROM_SECTION): Tweak param names.
489         (md_pcrel_from_section): Use "struct fix" instead of "fixS".
490         (MD_APPLY_SYM_VALUE): Define.
491         (EXTERN_FORCE_RELOC): Define.
492         * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
493         (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
494         (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
495         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
496         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
497         Don't use fx_addnumber.
498         * config/tc-dlx.h: Don't include write.h.
499         (md_convert_frag): We're not alpha twice over.
500         (EXTERN_FORCE_RELOC): Define.
501         (obj_fix_adjustable): Don't define.
502         (tc_fix_adjustable): Define.
503         (TC_FIX_ADJUSTABLE): Don't define.
504         (MD_APPLY_SYM_VALUE): Define.
505         (LOCAL_LABELS_DOLLAR): Undef always.
506         * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
507         (fr30_fix_adjustable): Remove extern, weak tests.
508         * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
509         (obj_fix_adjustable): Don't define.
510         (tc_fix_adjustable): Define.
511         (struct fix): Forward declare.
512         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.
513         * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
514         (frv_fix_adjustable): Don't do extern, weak tests.
515         * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
516         (TC_FIX_ADJUSTABLE): Don't define.
517         (obj_fix_adjustable): Don't define.
518         (tc_fix_adjustable): Define.
519         (struct fix): Forward declare.
520         (MD_PCREL_FROM_SECTION): Tweak param name.  Remove duplicate.\
521         * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
522         * config/tc-h8300.h (struct fix): Forward declare.
523         (EXTERN_FORCE_RELOC): Define.
524         * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
525         (hppa_fix_adjustable): Don't test extern or weak.  Don't
526         symbol_mark_used_in_reloc.
527         (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
528         and S_IS_WEAK.
529         * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
530         (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
531         (TC_FORCE_RELOCATION_SECTION): Don't define.
532         (MD_APPLY_SYM_VALUE): Define.
533         * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
534         to subtract abs sym.
535         * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
536         (MD_APPLY_SYM_VALUE): Define.
537         (MD_PCREL_FROM_SECTION): Tweak param name.
538         * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
539         (md_apply_fix3): Test fx_addsy, not fx_pcrel.
540         (i386_force_relocation): New function.
541         * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
542         (TC_VALIDATE_FIX): Likewise.
543         (TC_FIX_ADJUSTABLE): Don't define.
544         (MD_APPLY_SYM_VALUE): Define.
545         (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
546         (i386_force_relocation): Declare.
547         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
548         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
549         (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
550         * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
551         * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
552         (EXTERN_FORCE_RELOC): Define.
553         * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
554         (md_apply_fix3): Don't cast valP pointer type.  Move code here from
555         old fixup_segment.  No need to test fx_pcrel before setting fx_done.
556         (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
557         Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
558         Remove #if 0 code.  Invert return boolean.
559         * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
560         (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
561         (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
562         (tc_coff_sizemachdep): Prototype.
563         (i960_handle_align): Likewise.
564         (i960_validate_fix): Adjust declaration.
565         (reloc_callj): Likewise.
566         (EXTERN_FORCE_RELOC): Define.
567         (TC_FORCE_RELOCATION_SUB_SAME): Define.
568         (TC_FORCE_RELOCATION_ABS): Define.
569         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
570         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
571         (TC_FIX_ADJUSTABLE): Don't define.
572         (MD_APPLY_SYM_VALUE): Define.
573         * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
574         * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
575         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
576         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
577         * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
578         * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
579         (MD_APPLY_SYM_VALUE): Define.
580         (EXTERN_FORCE_RELOC): Define.
581         (TC_FORCE_RELOCATION): Tweak param name.
582         * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
583         (m32r_fix_adjustable): Don't test extern, weak.
584         * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
585         (MD_APPLY_SYM_VALUE): Define.
586         (obj_fix_adjustable): Don't define.
587         (tc_fix_adjustable): Define.
588         (tc_frob_file): Don't define.
589         (tc_frob_file_before_fix): Define.
590         (EXTERN_FORCE_RELOC): Define.
591         * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero.  Adjust
592         BFD_RELOC_VTABLE_ENTRY address.
593         (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
594         (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
595         (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
596         Remove duplicated fx_done code.
597         * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
598         (EXTERN_FORCE_RELOC): Define.
599         * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
600         relaxable_symbol.
601         * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
602         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
603         (TC_FIX_ADJUSTABLE): Don't define.
604         (EXTERN_FORCE_RELOC): Define.
605         (MD_APPLY_SYM_VALUE): Define.
606         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
607         * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
608         Remove fx_addsy tests.
609         (mcore_force_relocation): Call S_FORCE_RELOC.
610         (mcore_fix_adjustable): Don't test fx_addsy.
611         * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
612         (EXTERN_FORCE_RELOC): Define.
613         (obj_fix_adjustable): Don't define.
614         (tc_fix_adjustable): Define.
615         (MD_APPLY_SYM_VALUE): Define.
616         * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
617         (mips_pic): No longer static.
618         (mips_force_relocation): Call S_FORCE_RELOC.
619         (mips_fix_adjustable): Remove extern, weak tests.
620         * config/tc-mips.h (enum mips_pic_level): Declare.
621         (mips_pic): Declare.
622         (tc_frob_file): Don't define.
623         (tc_frob_file_before_fix): Define this instead.
624         (EXTERN_FORCE_RELOC): Define.
625         * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
626         with reg_section tests.  Set fx_done instead of calling
627         symbol_clear_used_in_reloc on bad relocs.
628         (tc_gen_reloc): Zero fx_addsy on bad relocs.
629         (mmix_force_relocation): Remove weak sym test.  Call S_FORCE_RELOC.
630         (mmix_adjust_symtab): Simplify list handling.  Abort on any
631         nonsense.
632         * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests.  Check
633         BFD_RELOC_MMIX_LOCAL.
634         (tc_frob_symbol): Keep user defined syms in reg_section.  Don't punt.
635         (EXTERN_FORCE_RELOC): Define.
636         (MD_PCREL_FROM_SECTION): Tweak param name.
637         (tc_frob_file): Don't define.
638         (tc_frob_file_before_fix): Define this instead.
639         * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
640         Remove SEC_CODE checks.
641         (mn10300_fix_adjustable): Remove extern and weak tests.
642         * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
643         (TC_FORCE_RELOCATION): Tweak param name.
644         (obj_fix_adjustable): Don't define.
645         (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
646         * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
647         * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
648         (openrisc_fix_adjustable): Don't test fx_addsy.
649         * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
650         (obj_fix_adjustable): Don't define.
651         (tc_fix_adjustable): Define this instead.
652         (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
653         * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
654         (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
655         Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
656         * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
657         (MD_APPLY_SYM_VALUE): Define.
658         * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
659         Don't subtract symbol value.
660         * config/tc-pj.h (md_pcrel_from): Tweak param name.
661         (EXTERN_FORCE_RELOC): Define.
662         (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
663         (MD_APPLY_SYM_VALUE): Define.
664         (obj_fix_adjustable): Don't define.
665         (tc_fix_adjustable): Define this instead.
666         * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
667         section sym.
668         (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
669         (ppc_force_relocation <elf version>): New.
670         (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
671         (md_apply_fix3): Don't subtract symbol values for ELF.  Update
672         comments.  Don't subtract fx_subsy as that is already done.
673         * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
674         (MD_PCREL_FROM_SECTION): Likewise.
675         (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
676         ppc_force_relocation.
677         (TC_FORCE_RELOCATION_SECTION): Delete.
678         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
679         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
680         (MD_APPLY_SYM_VALUE): Define.
681         * config/tc-s390.c: #include "dwarf2dbg.h".
682         (s390_insn): Remove excess parens.
683         (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
684         (tc_s390_force_relocation): Call S_FORCE_RELOC.
685         (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg".  Abort when fx_subsy
686         non-NULL.  Don't subtract off fx_addsy value.
687         * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
688         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
689         (TC_FIX_ADJUSTABLE): Don't define.
690         (MD_APPLY_SYM_VALUE): Define.
691         * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
692         (SWITCH_TABLE): Likewise.
693         (sh_force_relocation): Call S_FORCE_RELOC.
694         (sh_fix_adjustable): Remove "return 1" cases handled by the default.
695         Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
696         (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
697         fx_addnumber is zero on entry.  Save val in fx_addnumber.
698         (tc_gen_reloc): Don't subtract fx_subsy.
699         * config/tc-sh.h (struct fix): Move.
700         (obj_fix_adjustable): Don't define.
701         (tc_fix_adjustable): Define this instead.
702         (TC_FIX_ADJUSTABLE): Don't define.
703         (MD_APPLY_SYM_VALUE): Define.
704         (SWITCH_TABLE_CONS): Define.
705         (SWITCH_TABLE): Define.
706         (TC_FORCE_RELOCATION_SUB_SAME): Define.
707         (TC_VALIDATE_FIX_SUB): Define.
708         (MD_PCREL_FROM_SECTION): Tweak param name.
709         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
710         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
711         (TC_FORCE_RELOCATION_SUB_ABS): Define.
712         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
713         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
714         (TC_FORCE_RELOCATION_SUB_SAME): Define.
715         (TC_VALIDATE_FIX_SUB): Define.
716         (MD_PCREL_FROM_SECTION): Tweak param name.
717         * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
718         (tc_gen_reloc): Use S_FORCE_RELOC.
719         (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
720         * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
721         (TC_FORCE_RELOCATION_ABS): Define this instead.
722         (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
723         (TC_FORCE_RELOCATION_LOCAL): Define this instead.
724         (tc_fix_adjustable): Remove extern and weak tests.  Use S_FORCE_RELOC.
725         (MD_APPLY_SYM_VALUE): Define.
726         (TC_FIX_DATA_PRINT): Tweak param name.
727         * config/tc-tic30.c (USE_STDOUT): Don't define.
728         (md_parse_option): Remove stupid debug code.
729         (tc_gen_reloc): Don't use fx_addnumber.
730         * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
731         (v850_force_relocation): Remove weak test.  Call S_FORCE_RELOC.
732         * config/tc-v850.h (obj_fix_adjustable): Don't define.
733         (tc_fix_adjustable): Define this instead.
734         (TC_FIX_ADJUSTABLE): Don't define.
735         (MD_APPLY_SYM_VALUE): Define this instead.
736         (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
737         * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
738         (TC_FIX_ADJUSTABLE): Don't define.
739         (MD_APPLY_SYM_VALUE): Define this instead.
740         (tc_fix_adjustable): Remove extern and weak tests.
741         * config/tc-w65.h (struct fix): Forward declare.
742         * config/tc-xstormy16.c (xstormy16_force_relocation): Call
743         S_FORCE_RELOC.
744         (xstormy16_fix_adjustable): Remove extern and weak tests.  Don't
745         call xstormy16_force_relocation;  Instead test for FPTR16 reloc.
746         (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
747         absolute symbol.
748         * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
749         (MD_APPLY_SYM_VALUE): Define.
750         (obj_fix_adjustable): Don't define.
751         (tc_fix_adjustable): Define this instead.
752         (MD_PCREL_FROM_SECTION): Remove duplicate.  Tweak param name.
753
754 2002-09-04  Alan Modra  <amodra@bigpond.net.au>
755
756         * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
757         (ppc_fix_adjustable <coff version>): Cleanup.
758
759         * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
760         (md_parse_option): No -a64 without BFD64.
761         (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
762         (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
763
764 2002-09-04  Nick Clifton  <nickc@redhat.com>
765
766         * config/tc-ppc.c (md_begin): Do not insert non-BookE32
767         instructions into the hash table if the target cpu is the BookE32.
768
769 2002-08-31  Hans-Peter Nilsson  <hp@bitrange.com>
770
771         * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
772         ATTRIBUTE_UNUSED.
773
774 2000-08-28  Catherine Moore  <clm@redhat.com>
775
776         * tc-v850.c (v850_relax): Declare.
777         (v850_longcode): New routine.
778         (v850_handle_align): New routine.
779         (md_pseudo_table):  Add longcall and longjump.
780         (md_parse_option): Check for relax option.
781         (tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
782         BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
783         (md_apply_fix3): Likewise.
784         (v850_force_relocation): Likewise.
785         (v850_comm): Change the current section.
786         (md_assemble):  Ensure that the correct value is put in the
787         fixup.
788         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
789         v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
790         Remove redundant v850ea support.
791         * tc-v850.h (HANDLE_ALIGN): Define.
792         (v850_handle_align): Declare.
793         * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
794
795 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
796
797         * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
798         * configure: Regenerate.
799         * NEWS: Mention new port.
800
801 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
802
803         * config/obj-coff.c: Add sdef definition.
804         * config/obj-coff.h: Add tic4x include file and set
805         target format.
806         * config/tc-tic4x.c: New file.
807         * config/tc-tic4x.h: New file.
808
809 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
810
811         * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
812         (TC_ADJUST_RELOC_COUNT): Tweak param name.
813         (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
814         (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
815         (RELOC_ENUM): Define.
816         (fix_new_internal): Use RELOC_ENUM.
817         (fix_new, fix_new_exp): Likewise.
818         (adjust_reloc_syms): Comment.  Remove unnecessary tests on sym != NULL.
819         Replace gotos with continue.
820         (write_relocs): Formatting.  Avoid symbol loops in
821         RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
822         errors, and error number in other cases.
823         (fixup_segment): Remove param names from prototype.  Rename
824         "this_segment_type" to "this_segment".  Update linkrelax comment.
825         Remove "size, "place" and "where" local vars.  Formatting.  Update
826         "no symbol" comment.  Remove #if 0 and #if 1.
827
828         * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES.  Tidy.
829
830 2002-08-27  Alan Modra  <amodra@bigpond.net.au>
831
832         * dwarf2dbg.c: Always include dwarf2dbg.h.
833         (dwarf2_directive_file): Adjust dummy version args.
834         * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
835         * expr.c (clean_up_expression <O_subtract>): Allow subtraction
836         when symbol values differ.
837         * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
838         (pseudo_set <O_subtract>): Remove unnecessary segment test.
839         * config/obj-bout.c (obj_pseudo_table): Warning fix.
840
841 2002-08-26  Alan Modra  <amodra@bigpond.net.au>
842
843         * config/tc-w65.c (md_section_align): Fix typo.
844         (md_parse_option): Return 0, not 1.
845
846 2002-08-22  Nick Clifton  <nickc@redhat.com>
847
848         * doc/as.texinfo (Section): Note that if '@' is a comment
849         character then another symbol is used to prefix the section's
850         type.
851
852 2002-08-22  Christian Groessler <chris@groessler.org>
853
854         * config/tc-z8k.c (get_operands): Adjust ptr variable also in
855         "case 0" case.
856
857 2002-08-12  Graeme Peterson  <gp@qnx.com>
858
859         * configure.in: Add support for sh-**-nto* target.
860         * configure: Regenerate.
861
862 2002-08-21  Nitin  Gupta  <niting@noida.hcltech.com>
863
864         * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
865
866 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
867
868         * config/tc-ppc.c (ppc_cleanup): Do something only if format
869         is ELF.
870         (ppc_apuinfo_section_add): Define only if format is ELF.
871         (md_assemble): Emit APUinfo section only if format is ELF.
872         Fix formatting.
873
874 2002-08-21  Alan Modra  <amodra@bigpond.net.au>
875
876         * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
877         * config/tc-frv.c: Likewise.
878         * config/tc-hppa.c: Likewise.
879         * config/tc-ia64.c: Likewise.
880         * config/tc-ip2k.c: Likewise.
881         * config/tc-m68hc11.c: Likewise.
882         * config/tc-m68k.c: Likewise.
883         * config/tc-mmix.c: Likewise.
884         * config/tc-mn10300.c: Likewise.
885         * config/tc-sh.c: Likewise.
886         * config/tc-sparc.c: Likewise.
887         * config/tc-v850.c: Likewise.
888
889 2002-08-20  Richard Sandiford  <rsandifo@redhat.com>
890
891         * config/tc-mips.c (macro2): Implement rotates by zero using shifts
892         by zero.
893
894 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
895
896         From matthew green  <mrg@redhat.com>
897
898         * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
899         PPC_OPCODE_PPC is, except for BookE architectures.
900         (md_parse_option): Add support for -mspe.
901         (md_show_usage): Add -mspe.
902         (md_parse_option): Add support for -me500 and
903         -me500x2 to generate code for Motorola e500 core complex.
904         (md_show_usage): Add -me500 and -me500x2.
905
906         (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
907         PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
908         PPC_APUINFO_BRLOCK): New macros.
909
910         (ppc_cleanup): New function.
911         (ppc_apuinfo_section_add): New function.
912         (APUID): New macro.
913         (md_assemble): Collect info and write the APUinfo section.
914
915         * config/tc-ppc.h (md_cleanup): Define.
916         (ppc_cleanup): Export.
917         (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
918
919 2002-08-17  Stan Cox  <scox@redhat.com>
920
921         * config/obj-elf.c (obj_elf_change_section): Make non-static.
922         config/tc-mips.c (s_change_section): New function to support
923         IRIX .section pseudo-op.
924
925 2002-08-16  Nick Clifton  <nickc@redhat.com>
926
927         * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
928
929 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
930
931         * config/tc-mips.c (macro_build_jalr): Make sure we generate
932         the fix-up against on the right frag.
933         (s_cpsetup): Likewise.  Parse third argument as expression, to
934         handle global symbols and forward/backward labels correctly.
935
936 2002-08-14  Nick Clifton  <nickc@redhat.com>
937
938         * read.c (stringer): Catch attempts to create strings in the abs
939         section.
940
941         * config/tc-alpha.c: Fix compiling for COFF targets.
942         Some minor formatting tidyups.
943
944 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
945
946         * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
947         (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
948         according to the reloc.
949         (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
950         (TC_FORCE_RELOCATION): Define.
951         (tc_m68hc11_force_relocation): Declare.
952
953         * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
954         (s_m68hc11_relax): New function for relax group.
955         (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
956         beginning of jump instruction.
957         (md_pcrel_from): Rename from md_pcrel_from_section and fix
958         address computation.
959         (tc-gen_reloc): Update.
960         (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
961         PC-relative fixup.
962         (tc_m68hc11_force_relocation): New function, handle new relocs.
963         (tc_m68hc11_fix_adjustable): New to make sure there are enough
964         reloc for the linker relax pass.
965         (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
966         and VTABLE relocs.
967
968 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
969
970         * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
971         (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
972         (s_m68hc11_mode): New function for .mode pseudo op.
973         (s_m68hc11_mark_symbol): New function for .far and .interrupt
974         pseudo op.
975         * config/tc-m68hc11.h (elf_tc_final_processing): Define.
976         (m68hc11_elf_final_processing): Declare.
977
978 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
979
980         * config/tc-m68hc11.c (md_begin): Take into account additional
981         page operand for call instruction.
982         (print_opcode_format): Likewise.
983         (check_range): Likewise for page range checking.
984         (get_operand): Don't skip a possible comma in operands.
985         (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
986         (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
987         (fixup24): New to handle call reloc.
988         (build_insn): Handle missing page operand for call instruction.
989         (find): Likewise.
990         (md_apply_fix3): Take into account new relocs.
991         (get_operand): Fix the mode for indexed indirect addressing.
992         (build_indexed_byte): Fix post index byte for indexed indirect mode.
993
994 2002-08-12  Richard Sandiford  <rsandifo@redhat.com>
995
996         * config/tc-mips.c (mips_ip): Don't work out the value of
997         constant %hi()s here.
998
999 2002-08-10  Alan Modra  <amodra@bigpond.net.au>
1000
1001         * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1002         for ELF, and don't bother checking ELF relocs when non-ELF.
1003         (i386_immediate): Allow absolute_section expressions for aout.
1004         (i386_displacement): Likewise.  Also test bfd_is_com_section.
1005         (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1006         (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1007         not when fx_addsy.  Remove dead code.
1008
1009 2002-08-09  Graeme Peterson  <gp@qnx.com>
1010
1011         * configure.in: Add support for ppc-*-nto* target.
1012         * configure: Regenerate.
1013
1014 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
1015
1016         * config/tc-i386.h: Reorganize.
1017
1018 2002-08-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1019
1020         * config/tc-mips.c (macro): Handle a register plus a 16-bit
1021         immediate offset in "dla" and "la" expansions.
1022
1023 2002-08-09  Alan Modra  <amodra@bigpond.net.au>
1024
1025         * configure.in: bfd_gas=yes for all i386 targets.  Formatting.
1026         Remove "bfd_gas=yes" from target table when covered later.
1027         Consolidate some entries.
1028         * configure: Regenerate
1029
1030 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
1031
1032         * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1033         at start of insn, pass it to output_disp and output_imm.
1034         (output_disp): Added arguments.  If _GLOBAL_OFFSET_TABLE_ is seen
1035         in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1036         properly addend.
1037         (output_imm): Added arguments.  Compute properly addend for
1038         R_386_GOTPC.
1039         (md_apply_fix3): Remove R_386_GOTPC handling.
1040         * testsuite/gas/i386/gotpc.s: New.
1041         * testsuite/gas/i386/gotpc.d: New.
1042         * testsuite/gas/i386/i386.exp: Add gotpc test.
1043
1044 2002-08-06  George France <france@handhelds.org>
1045
1046         * config/tc-alpha.c (cpu_types): Enabled ev67, ev68,  -m21264a
1047         and m21264b processor names and cpu types.
1048         * doc/c-alpha.texi: Documented new types.
1049
1050 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
1051
1052         * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1053
1054 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
1055
1056         * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1057         handling to BFD_RELOC_MIPS16_GPREL.
1058
1059 2002-08-01  Nick Clifton  <nickc@redhat.com>
1060
1061         * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1062         pool is computed using signed arithmetic so that proper sign
1063         extension is performed if X_add_number is a 64-bit integer.
1064
1065 2002-08-01  H.J. Lu  <hjl@gnu.org>
1066             Daniel Jacobowitz  <drow@mvista.com>
1067
1068         * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1069         .debug_line section unless it has line information.
1070
1071 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1072
1073         * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1074         * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1075         Allow default displacement size to be an option "--disp-size-default".
1076         (md_number_to_disp): Make error messages include value. Use %d to
1077         print integers, not %s.
1078         (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1079         get duplicate messages sometimes.
1080         (convert_iif): Grow frag to max possible instruction size. Avoid
1081         creating unnecessary fixes.
1082         (md_number_to_field) Add prototype.
1083         (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1084         prototypes and make static.
1085         (struct addr_mode): Make mode and scaled_mode explicitly signed.
1086         (evaluate_expr): Use resultP argument instead of exprP global.
1087         (get_addr_mode): Quiten compiler warnings.
1088         (encode_operand): eliminate unused variables. Quiten compiler
1089         warnings. Eliminate nul character in format strings.
1090         (parse): argc is unsigned.
1091         (reloc): Type cast index to quieten compiler.
1092         (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1093         (md_convert_frag): Note unused parameters. Remove unused
1094         variables.
1095         (md_create_long_jump, md_create_short_jump,
1096         md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1097         unused parameters.
1098
1099 2002-07-31  Nick Clifton  <nickc@redhat.com>
1100
1101         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1102         of the PDP-11 and 2.11BSD a.out support.
1103
1104 2002-07-31  Momchil Velikov  <velco@fadata.bg>
1105
1106         * config/tc-v850.c (md_assemble): Fix range check for immediate
1107         operand.
1108
1109 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
1110
1111         * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1112         to Broadcom SB-1 core support.
1113
1114 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1115
1116         * config/tc-mips.c (mips_target_format): Fix formatting.
1117         Add recognition of n32 ABI formats.
1118
1119 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1120
1121         * tc-mips.c (load_address): Don't clobber $at when loading a
1122         64-bit address in non-PIC code if noat is in effect.
1123         (macro): Likewise.
1124
1125 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1126
1127         * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1128         used in division/multiply macro expansions similarly to how they
1129         are used in the variants with break instructions.
1130         (macro2): Likewise.
1131
1132 2002-07-30  Graeme Peterson  <gp@qnx.com>
1133
1134         * configure.in: Add support for arm-*-nto target.
1135         * configure: Regenerate.
1136
1137 2002-07-30  Nick Clifton  <nickc@redhat.com>
1138
1139         * config/tc-arm.c (struct literal_pool): Add fields to allow
1140         multiple literal pools to be maintained.
1141         (find_literal_pool): New function.
1142         (find_or_make_literal_pool): New function.
1143         (add_to_literal_pool): Use find_or_make_literal_pool.
1144         (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1145         needed.
1146         (s_ltorg): Use find_literal_pool.
1147         (arm_cleanup): Dump all literal pools.
1148         * doc/c-arm.texi: Document new behaviour of only dumping literal
1149         pools upon request.
1150
1151 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
1152
1153         * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1154         rather than PPC_OPCODE_32 for powerpc64*.
1155
1156 2002-07-25  Nick Clifton  <nickc@redhat.com>
1157
1158         * po/es.po: Updated Spanish translation.
1159         * po/fr.po: Updated French translation.
1160
1161 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
1162
1163         * doc/c-mips.texi: Remove -mcpu.  Document -mabi.
1164         * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1165         (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1166         * configure, config.in: Regenerate.
1167         * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1168         (mips_set_options): Remove "abi" field.
1169         (mips_opts): Update accordingly.  Replace all uses of mips_opts.abi
1170         with mips_abi.
1171         (mips_cpu): Remove.
1172         (mips_arch_string, mips_arch_info): New vars.
1173         (mips_tune_string, mips_tune_info): New vars.
1174         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1175         (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1176         (mips_isa_to_str, mips_cpu_to_str): Remove.
1177         (mips_ip): If the selected architecture is a generic ISA rather
1178         than a processor, only mention the ISA level in error messages.
1179         (OPTION_MCPU): Remove.
1180         (OPTION_FP64): New.
1181         (md_longopts): Add -mfp64, remove -mcpu.
1182         (mips_set_option_string): New fn.
1183         (md_parse_option): Make -mipsN update file_mips_isa rather than
1184         mips_opts.isa.  Use mips_set_option_string to set -march or -mtune.
1185         Don't let -mgp32 and -mfp32 change the ABI.
1186         (show): Move to end of file.  Constify string argument.
1187         (md_show_usage): Move to the end of the file.  Read available
1188         architectures from mips_cpu_info_table.
1189         (mips_set_architecture): New fn.
1190         (mips_after_parse_args): Rework.  Remove -mcpu handling.  -mipsN
1191         is an alias for -march=mipsN.  Don't change the ABI based on other
1192         flags.  Infer the register size from the ABI as well as the
1193         architecture.  Complain about more conflicting arguments.
1194         Unify logic with GCC.
1195         (s_mipsset): Don't change the ABI.
1196         (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1197         (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1198         "mipsN"-type entries.  Remove entries that vary only in the
1199         manufacturer's prefix, or that have "000" replaced by "k".
1200         Remove TARGET_CPU entries.  Make r2000 entry use CPU_R3000.
1201         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1202         (mips_parse_cpu): New fn.
1203         (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1204         (mips_cpu_info_from_isa): Minor formatting tweak.
1205
1206 2002-07-24  Nick Clifton  <nickc@redhat.com>
1207
1208         * po/sv.po: Updated Swedish translation.
1209         * po/es.po: Updated Spanish translation.
1210
1211 2002-07-23  Alan Modra  <amodra@bigpond.net.au>
1212
1213         * Makefile.am: Run "make dep-am".
1214         * Makefile.in: Regenerate.
1215         * doc/Makefile.in: Regenerate.
1216         * config.in: Regenerate.
1217         * po/POTFILES.in: Regenerate.
1218
1219 2002-07-23  Nick Clifton  <nickc@redhat.com>
1220
1221         * po/fr.po: Updated French translation.
1222
1223 2002-07-23  Nick Clifton  <nickc@redhat.com>
1224
1225         * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1226         GAS.
1227
1228 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1229
1230         * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1231         instead of S_IS_EXTERN.
1232         (md_estimate_size_before_relax): Likewise.
1233         (mips_fix_adjustable): Likewise.
1234
1235 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1236
1237         * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1238
1239 2002-07-19  Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1240             Nick Clifton  <nickc@redhat.com>
1241
1242         * cond.c (s_ifdef): Treat a referenced but not yet defined
1243         symbol as if it were undefined, in exactly the same way as
1244         .equiv.
1245
1246         * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1247         consider referenced bug not yet defined symbols to be
1248         undefined.
1249
1250 2002-07-18  Denis Chertykov  <denisc@overta.ru>
1251             Frank Ch. Eigler  <fche@redhat.com>
1252             Alan Lehotsky  <alehotsky@cygnus.com>
1253             John Healy  <jhealy@redhat.com>
1254             Jeff Johnston  <jjohnstn@redhat.com>
1255
1256         * configure.in: Add ip2k configuraton.
1257         * configure: Regenerate.
1258         * Makefile.am: Add ip2k configuraton.
1259         * Makefile.in: Regenerate.
1260         * configure: Regenerate.
1261         * Makefile.in: Regenerate.
1262         * config/tc-ip2k.c: New file.
1263         * config/tc-ip2k.h: New files.
1264         * NEWS: Mention new support.
1265         * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1266         * doc/Makefile.in: Regenerate.
1267         * doc/all.texi: Set IP2K
1268         * doc/as.texinfo: Add IP2K description.
1269         * doc/c-ip2k.texi: New file.
1270
1271 2002-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
1272
1273         * NEWS: Reformat to match style of other NEWS files.
1274
1275 2002-07-17  Jan Hubicka  <jh@suse.cz>
1276
1277         * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1278
1279 2002-07-16  Moritz Jodeit  <moritz@jodeit.org>
1280
1281         * config/tc-z8k.c (build_bytes): Correct order of memset args.
1282
1283 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
1284
1285         * NEWS: Add 'Changes in 2.13'.
1286
1287 2002-07-15  Matt Fredette  <fredette@netbsd.org>
1288
1289         * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1290
1291 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
1292
1293         * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1294         case with non CODE_64BIT case.  Don't warn on "qword ptr" if
1295         not CODE_64BIT.
1296
1297 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
1298
1299         * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1300         (ppc_frob_file_before_adjust): New function.
1301         * config/tc-ppc.h (tc_frob_symbol): Don't define.
1302         (ppc_elf_frob_symbol): Don't declare.
1303         (tc_frob_file_before_adjust): Define.
1304         (ppc_frob_file_before_adjust): Declare.
1305
1306         * config/tc-ppc.c (md_pseudo_table): Warning fix.
1307         (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1308         flags.
1309         (ppc_size): Delete.
1310         (ppc_xcoff64): Rename to ppc_obj64.
1311         (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1312         (ppc_set_cpu): Set PPC_OPCODE_32 too.
1313         (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1314         or bfd_mach_ppc.
1315         (ppc_target_format): Use ppc_obj64 to select format.
1316         (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1317         (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1318         (ppc_elf_suffix): Likewise.  Don't depend on BFD_DEFAULT_TARGET_SIZE.
1319         (tc_frob_symbol): Likewise.
1320         (md_assemble): Use ppc_obj64 instead of ppc_size.  Don't depend on
1321         BFD_DEFAULT_TARGET_SIZE.
1322         (ppc_tc): Likewise.
1323         (ppc_is_toc_sym): Likewise.
1324         (md_apply_fix3): Likewise.
1325         * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1326         BFD_DEFAULT_TARGET_SIZE.
1327         (ELF_TC_SPECIAL_SECTIONS): Likewise.
1328         (tc_frob_symbol): Likewise.
1329
1330 2002-07-09  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1331
1332         * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1333         (mips_ip): Likewise.
1334
1335 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
1336
1337         * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1338         (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1339         (md_apply_fix3): Formatting.  Remove redundant test.
1340         (tc_gen_reloc): Remove redundant code.
1341         (tc_i386_force_relocation): Delete.  Movy body of function to..
1342         * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1343
1344 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
1345
1346         * configure.in: Add hppa-*-openbsd* target, change
1347         alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1348         with sparc64 cpu.
1349         * configure: Regenerate.
1350
1351 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1352
1353         * config/tc-mips.c (macro): Shift the 32-bit address range
1354         accessible with a lone "lui" down by 32768.
1355
1356 2002-07-08  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1357
1358         * config/tc-mips.c (load_address): Use non-trapping "daddu"
1359         instead of "dadd" in address calculations.
1360         (macro): Likewise.
1361
1362 2002-07-08  Alan Modra  <amodra@bigpond.net.au>
1363
1364         * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1365         movzx fudges.
1366         (md_assemble): Instead, zap the suffix here.
1367
1368 2002-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
1369
1370         * NEWS: Remove next release number until the release is actually
1371         upon us.
1372
1373 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
1374
1375         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1376         Run "make dep-am".
1377         * Makefile.in: Regenerate.
1378
1379 2002-07-02  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1380
1381         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1382         to symbols in merge sections, even non pc-relative ones.
1383
1384 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1385
1386         * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1387
1388 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
1389
1390         * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1391         .softregs and .eeprom.
1392
1393 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
1394
1395         * NEWS: Note the next release is 2.13.
1396
1397 2002-06-26  Nick Clifton  <nickc@cambridge.redhat.com>
1398
1399         * po/tr.po: New translation imported.
1400
1401 2002-06-26  Elias Athanasopoulos  <eathan@otenet.gr>
1402
1403         * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1404         (ecoff_directive_def): Likewise.
1405         (ecoff_directive_tag): Likewise.
1406         * listing.c (file_info): Likewise.
1407         * hash.c (what): Likewise.
1408
1409 2002-06-25  H.J. Lu <hjl@gnu.org>
1410
1411         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1412         * Makefile.in: Regenerated.
1413
1414 2002-06-19  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1415
1416         * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1417         (assemble_ppi): Generate warning if the same register is used
1418         twice as destination in the same padd / pmuls instruction.
1419
1420 2002-06-18  Dave Brolley  <brolley@redhat.com>
1421
1422         From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1423         * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1424         * configure.in: Support frv-*-*.
1425         * Makefile.am (CPU_TYPES): Add frv.
1426         (TARGET_CPU_CFILES): Add tc-frv.c.
1427         (TARGET_CPU_HFILES): Add tc-frv.h.
1428         (DEPTC_frv_coff): New variable.
1429         (DEPTC_frv_elf): New variable.
1430         (DEPOBJ_frv_coff): New variable.
1431         (DEPOBJ_frv_elf): New variable.
1432         (DEP_frv_coff): New variable.
1433         (DEP_frv_elf): New variable.
1434         * tc-frv.c: New file.
1435         * tc-frv.h: New file.
1436
1437 2002-06-17  Catherine Moore <clm@redhat.com>
1438
1439         * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1440
1441 2002-06-17  J"orn Rennecke <joern.rennecke@superh.com>
1442
1443         * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1444
1445 2002-06-17  Tom Rix <trix@redhat.com>
1446
1447         * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1448
1449 2002-06-14  H.J. Lu  <hjl@gnu.org>
1450             Daniel Jacobowitz  <drow@mvista.com>
1451
1452         * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1453         * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1454         * config/tc-mips.c (s_mips_file): Call s_app_file_string
1455         and new_logical_line for the first .file directive.
1456         * read.c (s_app_file_string): New function.
1457         (s_app_file): Call it.
1458         * read.h (s_app_file_string): Add declaration.
1459
1460 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
1461
1462         * configure.in: Remove MIPS_STABS_ELF.
1463         * configure: Regenerated.
1464         * config.in: Regenerated.
1465         * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1466         for MIPS targets.
1467         * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1468         ".extern".
1469         (pdr_seg): Declare unconditionally.
1470         (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1471         (s_mips_end): Likewise.  Generate stabs function markers.
1472         (s_mips_ent): Generate stabs function markers.
1473         (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1474         ELF.
1475         (s_mips_mask): Likewise.
1476         (mips_flag_mdebug): New.
1477         (md_longopts): Add "mdebug" and "no-mdebug".
1478         (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1479         (mips_after_parse_args): Set mips_flag_mdebug.
1480         * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1481
1482 2002-06-13  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1483
1484         * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1485         value twice for RELA relocations.
1486
1487 2002-06-12  Ben Elliston  <bje@redhat.com>
1488
1489         * symbols.c (resolve_symbol_value): Initialise final_val.
1490
1491         * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1492
1493 2002-06-11  Tom Rix  <trix@redhat.com>
1494
1495         * config/tc-ppc.c (ppc_subseg_align): Delete.
1496         (ppc_change_csect): Default csect align is 2.
1497         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1498
1499 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1500
1501         * config/tc-avr.c (mcu_types): Update.
1502
1503 2002-06-08  Matt Thomas  <matt@3am-software.com>
1504
1505         * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1506         (vax-*-netbsd*): New targets.
1507         * configure: Regenerate.
1508         * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1509         * config/tc-vax.c: Add support for ELF and PIC.
1510         (flag_want_pic): New flag.
1511         (float_cons): Fix prototype.
1512         (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1513         (md_assemble): Introduce a new is_absolute local, and use it
1514         rather than repeating the test.  Make fatal errors actually
1515         fatal by using as_fatal as appropriate.  Adjust for BFD_ASSEMBLER.
1516         Add support for ELF.  Add support for PIC.
1517         (md_convert_frag): Adjust for BFD_ASSEMBLER.
1518         (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1519         BFD_ASSEMBLER.
1520         (vax_reg_parse): Make the % register prefix mandatory for ELF,
1521         optional for a.out, and not allowed for VMS.  Adjust all callers.
1522         (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1523         (md_create_long_jump): Likewise.
1524         (md_undefined_symbol): Likewise.
1525         (md_section_align): Likewise.
1526         (md_shortopts): Allow -k and -K for ELF.
1527         (md_parse_option): Set flag_want_pic if -k or -K.
1528         (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1529         (tc_gen_reloc): New function if BFD_ASSEMBLER.
1530         * config/tc-vax.h (tc_headers_hook): Remove.
1531         (TARGET_FORMAT): Set according to object format and target
1532         environment.
1533         (BFD_ARCH, TARGET_ARCH): Define.
1534         (NO_RELOC): Adjust for BFD_ASSEMBLER.
1535         (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1536         (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1537         * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1538
1539 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
1540
1541         * Makefile.am: Run "make dep-am".
1542         * Makefile.in: Regenerate.
1543
1544         * as.c: Replace CONST with const.
1545         * write.c: Likewise.
1546         * config/obj-coff.c: Likewise.
1547         * config/tc-a29k.c: Likewise.
1548         * config/tc-arm.c: Likewise.
1549         * config/tc-dlx.c: Likewise.
1550         * config/tc-h8300.c: Likewise.
1551         * config/tc-h8500.c: Likewise.
1552         * config/tc-i370.c: Likewise.
1553         * config/tc-i860.c: Likewise.
1554         * config/tc-i960.c: Likewise.
1555         * config/tc-m68hc11.c: Likewise.
1556         * config/tc-m68k.c: Likewise.
1557         * config/tc-m88k.c: Likewise.
1558         * config/tc-mcore.c: Likewise.
1559         * config/tc-mips.c: Likewise.
1560         * config/tc-ns32k.c: Likewise.
1561         * config/tc-pdp11.c: Likewise.
1562         * config/tc-pj.c: Likewise.
1563         * config/tc-s390.c: Likewise.
1564         * config/tc-sh.c: Likewise.
1565         * config/tc-sparc.c: Likewise.
1566         * config/tc-tahoe.c: Likewise.
1567         * config/tc-tic80.c: Likewise.
1568         * config/tc-v850.c: Likewise.
1569         * config/tc-vax.c: Likewise.
1570         * config/tc-w65.c: Likewise.
1571         * config/tc-z8k.c: Likewise.
1572
1573 2002-06-08  Daniel Jacobowitz  <drow@mvista.com>
1574
1575         Based on patch from Matt Green:
1576         * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
1577         * config/tc-mips.c (s_mips_file): Renamed from s_file.
1578         (s_mips_loc): New function.
1579         (mips_nonecoff_pseudo_table): Call them.
1580         (append_insn): Call dwarf2_emit_insn.
1581
1582 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1583
1584         * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1585         to -1.
1586         (file_ase_mips16): New veriable.
1587         (mips_eabi64): Remove.
1588         (CPU_HAS_MIPS16): New define.
1589         (CPU_HAS_MDMX): Fix data type.
1590         (md_begin): Code cleanup. Use file_ase_mips16.
1591         (mips_elf_final_processing): Handle mips16 header flag.
1592         Handle EABI flag without intermediate variable.
1593
1594 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1595
1596         * doc/as.texinfo: Update MIPS documentation.
1597
1598 2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1599
1600         * config/tc-mips.c: Add define for $zero register.
1601         (md_begin): Add $zero as alias name for $0.
1602         (insn_uses_reg): Use ZERO define.
1603         (mips_ip): Add $zero as alias name for $0.
1604         (mips16_ip): Likewise.
1605         (s_cplocal): Demand empty rest of input line.
1606         (tc_get_register): Likewise. Add support for $kt0, kt1 register
1607         names. Use ZERO define. Fix input_line_pointer progress.
1608
1609 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
1610
1611         * symbols.c: Replace CONST by const throughout.
1612         (symbol_find_exact): Split out from..
1613         (symbol_find_base): ..here.
1614         * symbols.h: Replace CONST by const throughout.
1615         (symbol_find_exact): Declare.
1616         * config/obj-elf.c: #include "struc-symbol.h".
1617         (elf_frob_file): If group name matches an exported symbol, use that
1618         symbol for the signature and ".group" as the section name.
1619
1620 2002-06-06  J"orn Rennecke <joern.rennecke@superh.com>
1621
1622         * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
1623         but warn about it.
1624         * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
1625         * testsuite/gas/sh/pcrel.d: Update.
1626         * testsuite/gas/sh/pcrel.l: New file.
1627
1628 2002-06-06  Daniel Jacobowitz  <drow@mvista.com>
1629
1630         * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
1631         and mips_opts.ase_mdmx if they are uninitialized.
1632
1633 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1634
1635         * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
1636         (hppa_force_relocation): Check if a stub just before the start symbol
1637         of the last call_info is reachable before forcing relocation.  Fix
1638         typo.
1639
1640 2002-06-04  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1641
1642         * config/tc-mips.c (mips_after_parse_args): New function.
1643         (md_begin): Move processing of defaults to mips_after_parse_args.
1644         config/tc-mips.h (md_after_parse_args): Define.
1645
1646 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1647
1648         * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
1649         (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
1650         (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
1651         * configure: Regenerate.
1652         * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
1653         environment.
1654
1655 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1656
1657         * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1658
1659 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
1660
1661         * config/obj-elf.c (obj_elf_change_section): Set and check elf
1662         linkonce flag.  Print all warnings.
1663         (obj_elf_section): Parse ",comdat" for groups.
1664         (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups.  Check
1665         consistency of comdat flag.
1666
1667 2002-06-02  Richard Henderson  <rth@redhat.com>
1668
1669         * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
1670         with LITERALs without sequence numbers.
1671
1672 2002-06-01  Richard Henderson  <rth@redhat.com>
1673
1674         * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
1675         Rename them LITUSE_ALPHA_*.
1676
1677 2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
1678
1679         * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
1680         accept parentheses enclosed register lists.
1681
1682 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
1683
1684         * Makefile.am: Run "make dep-am".
1685         * Makefile.in: Regenerate.
1686         * po/POTFILES.in: Regenerate.
1687
1688 2002-05-31  Graeme Peterson  <gp@qnx.com>
1689
1690         * configure.in: Add i386-*-nto-qnx*.
1691         * configure: Regenerate.
1692
1693 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1694
1695         * config/tc-mips.c (mips_ip): Use unsigned long values for
1696         warning output.
1697
1698 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1699
1700         * config/tc-mips.c (s_cpsetup): Fix initialization of
1701         mips_cpreturn_register and mips_cpreturn_offset.
1702
1703 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1704
1705         * config/tc-mips.c (s_cpsetup): Fix comment.
1706
1707 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1708
1709         * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
1710         (mips_ip): Likewise.
1711         (mips16_ip): Likewise.
1712         (tc_get_register): Likewise.
1713
1714 2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
1715             Ed Satterthwaite  <ehs@broadcom.com>
1716
1717         * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
1718         (mips_opts): Initialize "ase_mdmx" member.
1719         (file_ase_mdmx): New variable.
1720         (CPU_HAS_MDMX): New macro.
1721         (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
1722         based on command line options and configuration defaults.
1723         (macro_build): Note in comment that use of MDMX in macros is
1724         not currently allowed.
1725         (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
1726         "Z" MDMX operand types.
1727         (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
1728         and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
1729         types.
1730         (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
1731         Add support for "-mdmx" and "-no-mdmx" options.
1732         (OPTION_ELF_BASE): Move to accomodate new options.
1733         (s_mipsset): Support ".set mdmx" and ".set nomdmx".
1734         (mips_elf_final_processing): Set MDMX ASE ELF header flag if
1735         file_ase_mdmx was set.
1736         * doc/as.texinfo: Document -mdmx and -no-mdmx options.
1737         * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
1738         nomdmx" directives.
1739
1740 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1741
1742         * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
1743         OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
1744         command line switch conforming to gcc conventions.
1745         * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
1746
1747 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1748
1749         * config/tc-mips.c (macro_build_jalr): New Function.
1750         (md_begin): NewABI uses big GOTs.
1751         (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
1752         BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
1753         (load_address): Add some NewABI PIC support.
1754         (macro): Likewise.
1755         (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
1756         (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
1757
1758 2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1759
1760         * config/tc-mips.c (load_address): Use mips_gp_register instead
1761         of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
1762         instead.
1763         (macro): Use mips_gp_register instead of hardcoded value.
1764
1765 2002-05-30  Richard Henderson  <rth@redhat.com>
1766
1767         * expr.h (operatorT): Add O_md17..O_md32.
1768         * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
1769         O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
1770         O_tprelhi, O_tprello, O_tprel): New.
1771         (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
1772         (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
1773         (LITUSE_TLSGD, LITUSE_TLSLDM): New.
1774         (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
1775         saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
1776         (md_apply_fix3): Handle TLS relocations.
1777         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1778         (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
1779         associated TLS reloc.  Check lituse_tls relocs match up.
1780         (emit_insn): Handle TLS relocations.
1781         (ldX_op): Remove.
1782
1783         * doc/c-alpha.texi: Add docs for tls relocations.
1784
1785 2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1786
1787         * config/tc-mips.c (mips_gprel_offset): New variable.
1788         (s_gpvalue): Use it.
1789
1790 2002-05-30  Diego Novillo  <dnovillo@redhat.com>
1791
1792         * gas/config/tc-d10v.c (check_resource_conflict): Only check
1793         write-write conflicts.
1794         (md_assemble): Reformat introductory comment.
1795         (parallel_ok): Prevent packing only if the first
1796         instruction cannot be packed.
1797
1798 2002-05-30  Jason Eckhardt <jle@redhat.com>
1799             Tom Rix <trix@redhat.com>
1800
1801         * config/tc-d10v.c (build_insn): Check for immediates.
1802
1803 2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1804
1805         * config/tc-mips.c: Replace GP in comments by $gp.
1806         (mips_big_got): Initialize.
1807         (mips_trap): Initialize.
1808         (load_address): Use mips_gp_register instead of hardcoded value.
1809         Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
1810         (macro): Use mips_gp_register instead of hardcoded value.
1811         (macro2): Change load_address calls.
1812         (md_pcrel_from): Comment formatting.
1813         (s_cpload): Use mips_gp_register instead of hardcoded value.
1814         (s_cprestore): Likewise. Comment formatting.
1815         (s_gpword): Fix data type.
1816         (s_cpadd): Use mips_gp_register instead of hardcoded value.
1817         (nopic_need_relax): Replace GP in comments by $gp.
1818         (mips_elf_final_processing): Better comment.
1819
1820 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
1821
1822         * configure.in: Add DLX configuraton
1823         * Makefile.am: Add DLX configuraton
1824         * configure: Regenerate.
1825         * Makefile.in: Regenerate.
1826         * config/tc-dlx.c: New file.
1827         * config/tc-dlx.h: New files.
1828         * NEWS: Mention new support.
1829
1830 2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
1831
1832         * config/obj-coff.c (write_object_file): Add missing semicolon.
1833
1834 2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1835
1836         * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
1837         by the define. Remove superfluous check of mips_opts.mips16.
1838         (append_insn): Likewise. Canonicalize variable increments.
1839         (macro_build): Canonicalize variable increments.
1840         (macro_build_lui): Likewise.
1841         (load_register): Likewise.
1842         (load_address): Move pointer initialization.
1843         (macro): Move pointer to a more local scope. Canonicalize variable
1844         increments. Better comments. Replace magic constant for RA by the
1845         define.
1846         (macro2): Replace magic constant for RA by the define. Canonicalize
1847         variable increments.
1848         (mips_ip): Canonicalize variable increments.
1849         (mips16_ip): Replace magic constant for RA by the define.
1850         (my_getSmallParser): Canonicalize variable increments/decrements.
1851         (my_getPercentOp): Likewise.
1852         (my_getSmallExpression): Likewise.
1853         (s_align): Likewise.
1854         (s_mipsset): Likewise.
1855         (s_cpsetup): Likewise.
1856         (s_insn): Remove superfluous check of mips_opts.mips16.
1857         (s_mips_stab): Likewise.
1858         (mips_handle_align): Canonicalize variable increments.
1859         (s_mips_ent): Likewise.
1860         (s_mips_end): Add comment.
1861
1862 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1863
1864         * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1865         * configure: Regenerate.
1866
1867 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
1868
1869         * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
1870         * Makefile.in: Regenerate.
1871         * dep-in.sed: Reorder to match OBJS in Makefile.am.
1872         * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
1873         * configure: Regenerate.
1874         * as.h: Use #include "" instead of <> for local header files.
1875         * flonum-konst.c: Likewise.
1876         * flonum-mult.c: Likewise.
1877         * gasp.c: Likewise.
1878         * listing.c: Likewise.
1879         * config/tc-ia64.h: Likewise.
1880         * config/tc-v850.h: Likewise.
1881
1882 2002-05-24  TAMURA Kent <kent@netbsd.org>
1883
1884         * configure.in: Add a target for i386-netbsdpe.
1885         * configure: Regenerate.
1886
1887 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1888
1889         * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
1890         (obj_elf_common): Call elf_common.
1891         (obj_elf_tls_common): New function.
1892         (elf_pseudo_tab): Support .tls_common.
1893         (special_sections): Add .tdata and .tbss.
1894         (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
1895         sections.
1896         (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
1897         (obj_elf_parse_section_letters): Include T in error message.
1898         * config/tc-ppc.c (ppc_section_letter): Likewise.
1899         * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
1900         (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
1901         SEC_MERGE.
1902         * config/tc-sparc.c (md_apply_fix3): Likewise.
1903         * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
1904         Define them if not BFD_ASSEMBLER.
1905         (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
1906         and @NTPOFF.
1907         (md_apply_fix3): Add TLS relocs.
1908         * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
1909         FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
1910         FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
1911         (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
1912         (ia64_elf_section_letter): Include T in error message.
1913         (md_begin): Support TLS operators.
1914         (md_operand): Likewise.
1915         (ia64_gen_real_reloc_type): Support TLS relocs.
1916         * testsuite/gas/i386/tlspic.s: New file.
1917         * testsuite/gas/i386/tlsd.s: New file.
1918         * testsuite/gas/i386/tlsnopic.s: New file.
1919         * testsuite/gas/i386/tlsd.d: New file.
1920         * testsuite/gas/i386/tlsnopic.d: New file.
1921         * testsuite/gas/i386/tlspic.d: New file.
1922         * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
1923         * testsuite/gas/ia64/tls.s: New file.
1924         * testsuite/gas/ia64/tls.d: New file.
1925         * testsuite/gas/ia64/ia64.exp: Add tls test.
1926         * write.c (adjust_reloc_syms): Don't change symbols in
1927         SEC_THREAD_LOCAL sections to STT_SECTION + addend.
1928
1929 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1930
1931         * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
1932         round the relocation up rather than down.
1933
1934 2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1935
1936         * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1937         flag.
1938         * doc/as.texinfo: Document that the COFF version of .section
1939         ignores the 'a' flag.
1940
1941 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1942
1943         * config/tc-alpha.c (assemble_tokens): Protect use of
1944         ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1945
1946         * write.c (size_seg): Check adjustment to last frag.
1947         (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
1948         section alignment.
1949         * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
1950         * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
1951         (write_object_file): Invoke md_do_align if available, and use
1952         frag_align_code on text sections.
1953         * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
1954         * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
1955         * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
1956         * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1957         * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise.  Define for
1958         BFD_ASSEMBLER too.
1959
1960 2002-05-22  H.J. Lu <hjl@gnu.org>
1961
1962         * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
1963         for source file.
1964
1965 2002-05-22  Nick Clifton  <nickc@cambridge.redhat.com>
1966
1967         * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
1968         as ELF builds.
1969
1970 2002-05-22  H.J. Lu <hjl@gnu.org>
1971
1972         * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
1973         for one .loc for compiler.
1974
1975 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1976
1977         * config/tc-mips.c (macro): Relax warning, it's toot strict for
1978         embedded-PIC.
1979
1980 2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1981
1982         * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
1983         Optimize the rotate by zero case.
1984
1985 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>
1986
1987         * configure.in: Remove accidental enabling of bfd_gas=yes for
1988         sh-coff targets.
1989         * configure: Regenerate.
1990
1991 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
1992
1993         * app.c: Fix formatting.
1994         * as.c: Likewise.
1995         * ehopt.c: Likewise.
1996         * expr.c: Likewise.
1997         * input-file.c: Likewise.
1998         * listing.c: Likewise.
1999         * macro.h: Likewise.
2000         * stabs.c: Likewise.
2001         * symbols.c: Likewise.
2002
2003 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
2004
2005         * config/obj-generic.c: Delete file.
2006         * config/obj-generic.h: Likewise.
2007
2008 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2009
2010         * config/tc-avr.c (mcu_types): Update for new devices.
2011
2012 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2013
2014         * config/tc-mips.c (macro): Warn about wrong la/dla use.
2015
2016 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2017
2018         * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2019         worked sometimes by accident. Fix copy&paste comment.
2020
2021 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2022
2023         * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2024         alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2025         (mips_elf_final_processing): Let n32 use .reginfo.
2026
2027 2002-05-15  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2028
2029         * config/tc-mips.c (append_insn): Fix too small range of variable.
2030
2031 2002-05-14  Nick Clifton  <nickc@cambridge.redhat.com>
2032
2033         * config/tc-arm.c (arm_cleanup): Remove redundant call to
2034         listing_prev_line().
2035
2036 2002-05-13  Nick Clifton  <nickc@cambridge.redhat.com>
2037
2038         * config/tc-arm.c (md_assemble): Remove redundant call to
2039         listing_prev().
2040
2041         * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2042         loc_directive_seen.
2043
2044         * stabs.c (s_stab_generic): Fix grammatical error in warning
2045         message.
2046
2047 2002-05-13  Alan Modra  <amodra@bigpond.net.au>
2048
2049         * write.c (subsegs_finish): Don't specially align last subseg.
2050
2051 2002-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
2052
2053         * stabs.c (s_stab_generic): Warn about a description field that is
2054         too big.
2055
2056         * config/obj-coff.c: Fix compile time warnings when compiling
2057         without BFD_ASSEMBLER defined.
2058         Fix formatting.
2059
2060         * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2061         target.
2062         (md_pcrel_from_section): Use md_pcrel_from().
2063
2064 2002-05-11  Bruno Haible  <bruno@clisp.org>
2065
2066         * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2067         by dwarf2_directive_loc, instead of calling dwarf2_where.
2068
2069 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
2070
2071         * config/obj-coff.h: Fix formatting.
2072         * config/tc-mcore.c: Likewise.
2073         * config/tc-mn10300.c: Likewise.
2074         * config/tc-openrisc.c: Likewise.
2075         * config/tc-or32.c: Likewise.
2076         * config/tc-pdp11.c: Likewise.
2077         * config/tc-ppc.c: Likewise.
2078         * config/tc-ppc.h: Likewise.
2079         * config/tc-sh64.c: Likewise.
2080         * config/tc-sh.c: Likewise.
2081         * config/tc-tic54x.c: Likewise.
2082         * config/tc-xstormy16.c: Likewise.
2083         * config/tc-xstormy16.h: Likewise.
2084
2085 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
2086
2087         * config/obj-coff.c: Fix formatting.
2088         * config/obj-elf.c: Likewise.
2089         * config/tc-alpha.c: Likewise.
2090         * config/tc-arm.c: Likewise.
2091         * config/tc-d10v.c: Likewise.
2092         * config/tc-d30v.c: Likewise.
2093         * config/tc-h8300.c: Likewise.
2094         * config/tc-hppa.c: Likewise.
2095
2096 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
2097
2098         * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2099         reloc when no_cond_jump_promotion.
2100
2101 2002-05-08  Jim Wilson  <wilson@redhat.com>
2102
2103         * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2104         current variable part of frag.
2105
2106 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
2107
2108         * config/tc-mmix.c: Fix formatting.
2109         * config/tc-mmix.h: Likewise.
2110
2111 2002-05-08  Alan Modra  <amodra@bigpond.net.au>
2112
2113         * configure: Regenerate.
2114
2115 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
2116
2117         * config/tc-m68k.c: Fix formatting.
2118
2119 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
2120
2121         * Makefile.am: Honour DESTDIR.
2122         * Makefile.in: Regenerate.
2123
2124 2002-05-06  Kazu Hirata  <kazu@cs.umass.edu>
2125
2126         * config/tc-ia64.c: Fix formatting.
2127         * config/tc-ia64.h: Likewise.
2128
2129 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
2130
2131         * config/tc-mips.c: Fix formatting.
2132         * config/tc-s390.c: Likewise.
2133         * config/tc-s390.h: Likewise.
2134
2135 2002-05-03  Alexandre Oliva  <aoliva@redhat.com>
2136
2137         * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2138         information for instructions.
2139
2140 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2141
2142         * as.h: Fix formatting.
2143         * cgen.c: Likewise.
2144         * cgen.h: Likewise.
2145         * dwarf2dbg.c: Likewise.
2146         * frags.h: Likewise.
2147         * gasp.c: Likewise.
2148         * macro.c: Likewise.
2149         * read.c: Likewise.
2150         * stabs.c: Likewise.
2151         * symbols.c: Likewise.
2152
2153 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
2154
2155         * app.c (mri_pseudo): Only declare for TC_M68K.
2156
2157         * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2158         (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2159         BFD_RELOC_16_BASEREL.
2160         (md_assemble): Likewise.
2161         (md_apply_fix3): Likewise.
2162
2163 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2164
2165         * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2166         zero into an add of zero - it is not the same.
2167
2168 2002-05-01  Arati Dikey <aratid@kpit.com>
2169
2170         * tc-sh.c (get_specific): Generate warning if the same
2171         destination register is used in parallel instructions.
2172
2173 2002-05-01  Andrew Macleod  <amacleod@cygnus.com>
2174
2175         * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2176
2177 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
2178
2179         * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2180         backwards to prevent cascading errors.
2181
2182 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
2183
2184         * configure.in: Add support for powerpc-*-windiss.
2185         * configure: Regenerated.
2186
2187 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
2188
2189         * config/tc-s390.c (md_parse_option): Formatting.
2190
2191         * config/tc-i386.c: Formatting fixes, add missing space in error
2192         message.
2193
2194 2002-04-24  Christian Groessler <chris@groessler.org>
2195
2196         * config/tc-z8k.c (build_bytes): Add support for new cases:
2197         CLASS_IGNORE and ARG_NIM4.
2198         (md_assemble): Prevent destruction of input_line_pointer if
2199         get_operands returns failure.
2200
2201 2002-04-24  Chris G. Demetriou  <cgd@broadcom.com>
2202
2203         * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2204         instructions to be generated by macros.
2205
2206 2002-04-24  Andreas Schwab  <schwab@suse.de>
2207
2208         * config/tc-i386.c (output_jump, output_disp)
2209         (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2210         more.
2211         (md_apply_fix3): Remember addend value for rela relocations.
2212         (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2213
2214 2002-04-22  Chris Demetriou  <cgd@broadcom.com>
2215
2216         * config/tc-mips.c (macro_build): Add close-parenthesis missing
2217         from previous change.
2218
2219 2002-04-22  Eric Christopher  <echristo@redhat.com>
2220
2221         * config/tc-mips.c (macro_build): Add warning if macro instructions
2222         are expanded into a branch delay slot.
2223
2224 2002-04-17  Geoffrey Keating  <geoffk@redhat.com>
2225
2226         * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2227         numbers, gdb relies on them to detect the start of the prologue.
2228
2229 2002-04-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2230
2231         * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2232         symbols in merge sections.
2233
2234 2002-04-16  Alan Modra  <amodra@bigpond.net.au>
2235
2236         * as.c (main): Don't reference _bfd_chunksize.
2237
2238 2002-04-15  Tom Rix  <trix@redhat.com>
2239
2240         * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2241         symbols in merge sections.
2242
2243 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2244
2245         * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2246         * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2247         argument for the precision.
2248         (gen_to_words): Update accordingly.
2249
2250 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2251
2252         * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2253         BFD_VERSION_STRING unavailable.
2254         * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2255
2256 2002-04-09  J"orn Rennecke <joern.rennecke@superh.com>
2257
2258         * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2259         symbol_used_in_reloc_p is true.
2260
2261         * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2262         endian hosts.
2263
2264 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2265
2266         * dep-in.sed: Cope with absolute paths.
2267         * Makefile.am (dep.sed): Subst TOPDIR.
2268         Run "make dep-am".
2269         * Makefile.in: Regenerate.
2270
2271 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2272
2273         * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2274         (mips_ip): Remove unused variable.
2275         (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2276         unsigned char with bfd_byte.
2277         (s_file): Remove unused variable.
2278         (s_mips_ent): Likewise.
2279
2280 2002-04-03  Tom Rix  <trix@redhat.com>
2281
2282         * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2283         (build_insn): Same.
2284         (find_opcode): Fix warning in as_warn.
2285         * config/tc-d10v.h: Update Copyright.
2286
2287 2002-04-03  Alan Matsuoka <alanm@redhat.com>
2288             Tom Rix  <trix@redhat.com>
2289
2290         From Jeff Knaggs <jknaggs@redhat.com>
2291         * config/tc-d10v.c (check_resource_conflict): New function to
2292         check for resource conflicts.
2293
2294         From Jason Eckhardt  <jle@redhat.com>
2295         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2296         imm3 fields.
2297         * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2298         reserved control registers is used.
2299         * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2300         imm3 fields.
2301
2302         From 2001-03-28  Diego Novillo  <dnovillo@redhat.com>
2303         * tc-d10v.c (parallel_ok): Prevent packing only if the first
2304         instruction cannot be packed.
2305
2306         From 2001-03-30  Diego Novillo  <dnovillo@redhat.com>
2307         * gas/config/tc-d10v.c (check_resource_conflict): Only check
2308         write-write conflicts.
2309         (md_assemble): Reformat introductory comment.
2310         * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2311         arguments.
2312
2313 2002-04-03  Alan Modra  <amodra@bigpond.net.au>
2314
2315         * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2316         O_logical_not>): Derive final_seg from add_symbol.
2317         <O_multiply..O_logical_or>: More final_seg twiddles.
2318
2319 2002-04-01  Jessica Han  <jessica@cup.hp.com>
2320
2321         * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2322         in 32-bit mode.
2323
2324 2002-03-27  Andreas Schwab  <schwab@suse.de>
2325
2326         * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2327         field for pc-relative fixups.
2328         (output_disp): Likewise.
2329         (md_estimate_size_before_relax): Likewise.
2330         (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2331         pc-relative fixups in 64bit mode.
2332
2333 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
2334
2335         * config/te-aix5.h: Typo fix.
2336
2337 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
2338
2339         * Makefile.am: Run "make dep-am".
2340         * Makefile.in: Regenerate.
2341         * doc/Makefile.in: Regenerate.
2342
2343 2002-03-20  Albert Chin-A-Young  <china@thewrittenword.com>
2344
2345         * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2346         (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2347
2348 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2349
2350         * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2351         the EXTENDED bit here; report the estimate according to the
2352         current size.
2353
2354 2002-03-18  Tom Rix  <trix@redhat.com>
2355
2356         * configure.in: Add AIX 5 support.
2357         * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2358         * config/te-aix5.h: New file. AIX 5 support.
2359         * configure: Regenerate.
2360
2361 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
2362
2363         * po/fr.po: Updated version.
2364
2365 2002-03-16  Andreas Jaeger  <aj@suse.de>
2366
2367         * doc/c-mips.texi (Machine Dependencies): Add new node.
2368
2369 2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>
2370
2371         * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2372         (mips_opts): Initialize "ase_mips3d" member.
2373         (file_ase_mips3d): New variable.
2374         (CPU_HAS_MIPS3D): New macro.
2375         (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2376         based on command line options and configuration defaults.
2377         (macro_build, mips_ip): Accept MIPS-3D instructions if
2378         mips_opts.ase_mips3d is set.
2379         (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2380         Add support for "-mips3d" and "-no-mips3d" options.
2381         (OPTION_ELF_BASE): Move to accomodate new options.
2382         (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2383         (mips_elf_final_processing): Add a comment indicating that a
2384         MIPS-3D ASE ELF header flag should be set, when one exists.
2385         * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2386         * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2387         nomips3d" directives.
2388
2389 2002-03-14  Hans-Peter Nilsson  <hp@bitrange.com>
2390
2391         * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2392         a weak symbol in same section to be within reach.
2393
2394 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
2395
2396         * po/fr.po: Updated version.
2397
2398 2002-03-12  Andreas Schwab  <schwab@suse.de>
2399
2400         * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2401         body record so that an error is given for misplaced .save
2402         pseudo-ops.
2403
2404 2002-03-09  Alan Modra  <amodra@bigpond.net.au>
2405
2406         * config/tc-i386.h (REX_OPCODE): Define.
2407         (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2408         (rex_byte): typedef to int.
2409         * config/tc-i386.c: Group prototypes and vars together.
2410         Formatting fixes.  Remove occurrences of "register" keyword.
2411         (true): Delete.
2412         (false): Delete.
2413         (mode_from_disp_size): Add INLINE keyword to prototype.
2414         (fits_in_signed_byte): Likewise.
2415         (fits_in_unsigned_byte): Likewise.
2416         (fits_in_unsigned_word): Likewise.
2417         (fits_in_signed_word): Likewise.
2418         (fits_in_unsigned_long): Likewise.
2419         (fits_in_signed_long): Likewise.
2420         (type_names): Constify.
2421         (intel_float_operand): Constify param.
2422         (add_prefix): Use REX_OPCODE.
2423         (md_assemble): Likewise.  Modify for changed rex_byte.
2424         (parse_insn): Split out of md_assemble.
2425         (parse_operands): Likewise.
2426         (swap_operands): Likewise.
2427         (optimize_imm): Likewise.
2428         (optimize_disp): Likewise.
2429         (match_template): Likewise.
2430         (check_string): Likewise.
2431         (process_suffix): Likewise.
2432         (check_byte_reg): Likewise.
2433         (check_long_reg): Likewise.
2434         (check_qword_reg): Likewise.
2435         (check_word_reg): Likewise.
2436         (finalize_imm): Likewise.
2437         (process_operands): Likewise.
2438         (build_modrm_byte): Likewise.
2439         (output_insn): Likewise.
2440         (output_branch): Likewise.
2441         (output_jump): Likewise.
2442         (output_interseg_jump): Likewise.
2443         (output_disp): Likewise.
2444         (output_imm): Likewise.
2445
2446 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
2447
2448         * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2449
2450 2002-03-06  Alan Modra  <amodra@bigpond.net.au>
2451
2452         * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2453         relocs except when BFD64.
2454
2455         * write.c (number_to_chars_bigendian): Don't abort when N is
2456         larger than sizeof (VAL).
2457         (number_to_chars_littleendian): Likewise.
2458
2459 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2460
2461         * config/tc-hppa.c (md_apply_fix3): Add cast.
2462         (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2463         e_rrsel.
2464
2465 2002-03-05  Paul Koning  <pkoning@equallogic.com>
2466
2467         * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2468         (parse_ac5): New function for parsing float regs in float operand.
2469         (parse_expression): Remove attempt to make literals be octal.
2470         (parse_op_no_deferred): Support float literals.
2471         (parse_op): Reject attempts to refer to float regs.
2472         (parse_fop): New function, like parse_op but for float operand.
2473         (md_assemble): Add cases to parse float operands.  Also fix
2474         IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2475
2476 2002-03-04  H.J. Lu <hjl@gnu.org>
2477
2478         * config/obj-elf.c (special_section): Add .init_array,
2479         .fini_array and .preinit_array.
2480
2481         * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2482         .init_array and .fini_array.
2483
2484 2002-03-01  Jakub Jelinek  <jakub@redhat.com>
2485
2486         * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2487         visibility.
2488         (obj_frob_symbol): Copy visibility.
2489
2490 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
2491
2492         * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2493         s_text.
2494         (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2495
2496 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
2497
2498         * po/es.po: Updated.
2499
2500 2002-02-26  Chris Demetriou  <cgd@broadcom.com>
2501
2502         * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2503         only, undo the changes made on 2001-06-08, with the
2504         effect being that common or extern symbols are
2505         adjusted for embedded-PIC, but weak symbols are not.
2506         (md_estimate_size_before_relax: Likewise, with the effect
2507         that extern symbols are treated the same as weak symbols
2508         only if not embedded-PIC.
2509         (mips_fix_adjustable) Likewise, with the effect that
2510         weak or extern symbols are not adjusted for embedded-PIC.
2511         (md_apply_fix3): Tweak so that the case where value is zero
2512         is handled more correctly for embedded-PIC code.
2513
2514 2002-02-26  Nick Clifton  <nickc@cambridge.redhat.com>
2515
2516         * doc/as.texinfo (Overview): Add missing @ifset IA64
2517
2518         * configure.in (LINGUAS): Add es.po.
2519         * configure: Regenerate.
2520         * po/es.po: New file.
2521
2522 2002-02-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2523
2524         * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2525         (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2526         and NO_PIC cases. Code cleanup.
2527         (macro2): Fix handling of 64bit register loads.
2528
2529 2002-02-25  David Mosberger  <davidm@hpl.hp.com>
2530
2531         * doc/as.texinfo: Add entry for IA64.
2532         * doc/c-ia64.texi: New file.
2533
2534 2002-02-25  Alan Modra  <amodra@bigpond.net.au>
2535
2536         * config/tc-hppa.c: Update copyright date.
2537
2538         * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
2539         Remove references to chip manufacturers.
2540         * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2541         Correct comments.
2542         (md_show_usage): Remove references to chip manufacturers.  Mention
2543         -mpower4.
2544         (md_begin): Test power4 opcode flag bits.
2545
2546 2002-02-22  David Mosberger  <davidm@hpl.hp.com>
2547
2548         * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2549         count exceeds prologue count.
2550         (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2551         (unwind.label_prologue_count): New member.
2552
2553         Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2554
2555         (get_saved_prologue_count): New function.
2556         (save_prologue_count): New function.
2557         (free_saved_prologue_count): New function.
2558         (dot_label_state): Record state label by calling save_prologue_count().
2559         (dot_copy_state): Restore prologue count by calling
2560         get_saved_prologue_count().
2561         (generate_unwind_image): Free up list of saved prologue
2562         counts by calling free_saved_prologue_counts().
2563
2564 2002-02-22  Nick Clifton  <nickc@cambridge.redhat.com>
2565
2566         * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2567         function declarations.
2568
2569 2002-02-21  Nick Clifton  <nickc@cambridge.redhat.com>
2570
2571         * NEWS: Note that GASP is now deprecated.
2572         * Makefile.am: Do not build gasp-new by default.
2573         * Makefile.in: Regenerate.
2574         * doc/Makefile.am: Do not install gasp.info.
2575         * doc/Makefile.in: Regenerate.
2576         * gas/gasp.texi: Note that gasp is now deprecated.
2577
2578 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
2579
2580         * NEWS: Mark 2.12 branch.
2581
2582 2002-02-19  Tom Tromey  <tromey@redhat.com>
2583
2584         * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2585
2586 2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2587
2588         * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2589         option input.
2590
2591 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2592
2593         * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2594         Make bit size independent of architecture switch.
2595         (md_begin): Add warning for -m64 with -Aesa.
2596         (s390_md_end): Use renamed architecture defines.
2597
2598 2002-02-18  Daniel Jacobowitz  <drow@mvista.com>
2599
2600         * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2601
2602 2002-02-16  Nick Clifton  <nickc@cambridge.redhat.com>
2603
2604         * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2605         instead of CRIS.
2606
2607 2002-02-15  Chris Demetriou  <cgd@broadcom.com>
2608
2609         * config/tc-mips.c (md_estimate_size_before_relax): Really
2610         make sure we treat weak like extern only for ELF.  (Fixes
2611         patch from 2001-07-25.)
2612
2613 2002-02-15  Ben Elliston  <bje@redhat.com>
2614
2615         * doc/as.texinfo: Add duplicate directory entry so that "info gas"
2616         works as expected.
2617
2618 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
2619
2620         * NEWS: Mention support for MMIX.
2621
2622 2002-02-13  Chris Demetriou  <cgd@broadcom.com>
2623
2624         * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
2625         a sequence of indpendent 'if' statements for easier debugging
2626         and future modification.
2627
2628 2002-02-13  Matt Fredette  <fredette@netbsd.org>
2629
2630         * config/tc-m68k.c (md_show_usage): No longer display a
2631         hard-coded "68020" for the default CPU, instead display the
2632         canonical name of the true, configured default CPU.
2633         (m68k_elf_final_processing): Mark objects for sub-68020
2634         CPUs with the new EF_M68000 flag.
2635
2636 2002-02-13  Andreas Schwab  <schwab@suse.de>
2637
2638         * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2639         pc-relative relocations to merge sections in 64-bit mode.
2640
2641 2002-02-13  Ben Elliston  <bje@redhat.com>
2642
2643         * NEWS: Document floating point number handling in gasp.
2644         * gasp.c: Include <assert.h> and "xregex.h".
2645         (is_flonum): New function.
2646         (chew_flownum): Likewise.
2647         (change_base): Consume flonums from the input, where possible.
2648         * doc/gasp.texi (Constants): Document floating point numbers.
2649
2650 2002-02-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2651
2652         * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
2653         that implicitly use LR and RR selectors.
2654
2655 2002-02-12  Alexandre Oliva  <aoliva@redhat.com>
2656
2657         * config/tc-mn10300.c (other_registers): Added `epsw'.  Mark `pc'
2658         and `epsw' as available on AM33 and above only.
2659         (other_register_name): Add logic to handle machine type encoded in
2660         reg_number.
2661
2662 2002-02-11  Tom Rix  <trix@redhat.com>
2663
2664         * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
2665         xcoff64.
2666
2667 2002-06-11  Alexandre Oliva  <aoliva@redhat.com>
2668
2669         * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2670         Use all over.
2671
2672 2002-02-11  Jan Hubicka  <jh@suse.cz>
2673
2674         * i386.c (md_assemble): Support 32bit address prefix.
2675         (i386_displacement): Likewise.
2676         (i386_index_check): Accept 32bit addressing in 64bit mode.
2677
2678 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
2679
2680         * config/tc-sh.c (dot): Removed unused function.
2681
2682 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
2683
2684         * Makefile.am: "make dep-am".
2685         * Makefile.in: Regenerate.
2686         * aclocal.m4: Regenerate.
2687         * config.in: Regenerate.
2688         * configure: Regenerate.
2689         * doc/Makefile.in: Regenerate.
2690
2691 2002-02-10  Richard Henderson  <rth@redhat.com>
2692
2693         * doc/c-alpha.texi: New file.
2694         * doc/Makefile.am (CPU_DOCS): Add it.
2695         * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
2696
2697 2002-02-09  Richard Henderson  <rth@redhat.com>
2698
2699         * config/tc-alpha.c (O_samegp): New.
2700         (USER_RELOC_P): Include it.
2701         (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
2702         (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
2703         (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2704         (alpha_validate_fix): New.
2705         * config/tc-alpha.h (TC_VALIDATE_FIX): New.
2706
2707 2002-02-09  Hans-Peter Nilsson  <hp@axis.com>
2708
2709         * doc/c-cris.texi: New.
2710         * doc/all.texi: @set CRIS.
2711         * doc/as.texinfo: Ditto.  Add CRIS gas manpage option overview.
2712         Include c-cris.texi.
2713         * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
2714         * doc/Makefile.in: Regenerate.
2715
2716 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
2717
2718         * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
2719         determine if a number is a sign-extended 32-bit number.
2720         (load_register): Use IS_SEXT_32BIT_NUM.
2721         (macro): Check if load/store macro handling is using a
2722         constant 32-bit address on 64-bit address systems, and if
2723         so optimize the generation of that address.
2724
2725 2002-02-08  Richard Henderson  <rth@redhat.com>
2726
2727         * config/tc-alpha.c (alpha_force_relocation): Don't assert that
2728         we've eliminated all foreign relocation types yet.
2729         (alpha_fix_adjustable): Likewise.
2730
2731 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
2732
2733         Contribute sh64-elf.
2734         2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
2735                     Stephen Clarke <Stephen.Clarke@st.com>
2736         * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
2737         2002-01-31  Alexandre Oliva  <aoliva@redhat.com>
2738         * config/tc-sh.c (md_relax_table): Added default sizes for
2739         non-PC-relative UNDEF_MOVI, and relaxation sequences for
2740         MOVI_16, MOVI_32 and MOVI_48.
2741         * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
2742         (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
2743         and MOVI_16.
2744         (shmedia_md_estimate_size_before_relax): Remove redundant
2745         blocks.  Set fragP->fr_var even if relaxation type unchanged.
2746         Retain UNDEF_MOVI until expression decays to number.
2747         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
2748         * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
2749         relocation types.  Take fixP->fx_addnumber into account too.
2750         (shmedia_md_apply_fix): Likewise.
2751         (shmedia_md_convert_frag): Likewise.
2752         (shmedia_build_Mytes): Likewise.
2753         (sh64_consume_datalabel): Complain about nested datalabel.
2754         Support PIC relocs.  Call sh_parse_name.
2755         * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
2756         in tc-sh.h to SHmedia reloc types.
2757         * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
2758         MOVI_GOTPC): New relaxation constants.
2759         (md_relax_table): Introduce relaxation directives for PIC-related
2760         constants.
2761         (sh_PIC_related_p): Handle datalabel.
2762         (sh_check_fixup): Choose SH5 PIC relocations.
2763         (sh_cons_fix_new): Added BDF_RELOC_64.
2764         (md_apply_fix3, sh_parse_name): Handle GOTPLT.
2765         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
2766         * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
2767         current ISA is SHmedia, get 7 bytes.
2768         2001-11-28  Nick Clifton  <nickc@cambridge.redhat.com>
2769         * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
2770         void function.
2771         * config/tc-sh64.c (shmedia_apply_fix): Rename to
2772         shmedia_apply_fix3 and make void.
2773         2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
2774         * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
2775         as_bad.
2776         2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
2777         * config/tc-sh64.h (md_parse_name): Take &c as argument.
2778         2001-03-14  DJ Delorie  <dj@redhat.com>
2779         * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
2780         * doc/Makefile.in(CPU_DOCS): Ditto.
2781         * doc/c-sh64.texi: New file.
2782         * doc/as.texinfo: Add SH64 support.
2783         2001-03-13  DJ Delorie  <dj@redhat.com>
2784         * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
2785         A_REUSE_PREV so that its purpose is more obvious.
2786         (shmedia_build_Mytes): Ditto.
2787         2001-03-07  DJ Delorie  <dj@redhat.com>
2788         * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
2789         before processing.
2790         (sh64_vtable_inherit): Ditto.
2791         (strip_datalabels): New, strip "datalabel" from given line.
2792         * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
2793         pseudos.
2794         2001-03-06  Hans-Peter Nilsson  <hpn@cygnus.com>
2795         * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
2796         call ...
2797         (shmedia_build_Mytes): ... to here.
2798         2001-03-06  DJ Delorie  <dj@redhat.com>
2799         * config/tc-sh.c: Remove sh64-specific uaquad now that there
2800         is a generic one.
2801         2001-01-21  Hans-Peter Nilsson  <hpn@cygnus.com>
2802         * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
2803         * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
2804         address by one in call to dwarf2_emit_insn.
2805         2001-01-13  Hans-Peter Nilsson  <hpn@cygnus.com>
2806         Implement ".abi" pseudo and correct .cranges descriptors.  Correct
2807         alignment handling broken by imported changes.
2808         * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
2809         (sh64_handle_align): Declare.
2810         (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
2811         (sh64_max_mem_for_rs_align_code): Declare.
2812         (enum sh64_isa_values): Moved here from tc-sh64.c.
2813         (md_do_align): Define.
2814         (sh64_do_align): Declare.
2815         (struct sh64_tc_frag_data): New.
2816         (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data.  Users
2817         changed.
2818         (TC_FRAG_INIT): Change to set new datatype.
2819         (struct sh64_segment_info_type): Rename member
2820         last_flushed_location to last_contents_mark.  All users changed.
2821         (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
2822         (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
2823         * config/tc-sh.c (md_pseudo_table): Add ".abi".
2824         (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
2825         of unsetting seen_insn.
2826         (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
2827         call sh64_update_contents_mark.
2828         (sh_handle_align): Remove HAVE_SH64-conditioned code.
2829         * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
2830         enum sh64_isa_values.
2831         (sh64_set_contents_type): Drop segT parameter.  All callers changed.
2832         (emitting_crange): Boolean guard moved to file scope from function
2833         scope in sh64_set_contents_type.
2834         (s_sh64_abi): New.
2835         (sh64_update_contents_mark): New; most split out from
2836         sh64_flush_pending_output.
2837         (shmedia_md_end): Call sh64_update_contents_mark.  Set
2838         sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
2839         (sh64_do_align): New function.
2840         (sh64_max_mem_for_rs_align_code): New function.
2841         (sh64_handle_align): Rename from shmedia_do_align.  Make
2842         non-static.  Add head comment.  Emit zero bytes for n bytes modulo
2843         four.  Change return-type to void.
2844         (shmedia_elf_new_section): Remove.
2845         (shmedia_md_assemble): Call sh64_update_contents_mark.
2846         (s_sh64_mode): Ditto.  Do not call md_flush_pending_output.  Make
2847         new frag.  Call sh64_update_contents_mark after making the new
2848         frag.
2849         (sh64_flush_pending_output): Just call sh64_update_contents_mark
2850         and sh_flush_pending_output.
2851         (sh64_flag_output): Also call md_flush_pending_output, but add
2852         condition on not emitting_crange.
2853         (sh64_tc_cons_fix_new): Remove.
2854         2001-01-12  Nick Clifton  <nickc@redhat.com>
2855         * config/tc-sh64.c (shmedia_do_align): Fix to work with new
2856         alignment handling scheme imported from sourceware.
2857         2001-01-12  Hans-Peter Nilsson  <hpn@cygnus.com>
2858         * config/tc-sh64.h (TARGET_FORMAT): Define.
2859         (sh64_target_format): Prototype.
2860         * config/tc-sh64.c (sh64_target_mach): New function.
2861         2001-01-07  Hans-Peter Nilsson  <hpn@cygnus.com>
2862         * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
2863         zero_address_frag instead of copying the frag of the symbol.
2864         (shmedia_frob_file_before_adjust): Ditto.
2865         (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
2866         to valueT to remove signedness.
2867         (shmedia_md_convert_frag): Add parameter final.  Rename parameter
2868         headers to output_bfd.  Do not evaluate symbols if final is false;
2869         do emit fixups.
2870         (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
2871         UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
2872         to the current frag, call shmedia_md_convert_frag to emit fixups
2873         and make frag_wane neutralize the frag.  Update comments.
2874         * config/tc-sh.c (md_convert_frag): Change caller of
2875         shmedia_md_convert_frag.
2876         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
2877         * config/tc-sh64.h: Tweak comments and correct formatting.
2878         * config/tc-sh64.c: Ditto.
2879         (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
2880         expansion, MOVI pcrel expansion>: Fix thinko calculating offset
2881         for the no-relocation case.
2882         (shmedia_check_limits): Fix range check being off-by-one for PTA.
2883         * config/tc-sh.c: Ditto.  Add proper comments to #ifdef/#ifndef
2884         wrappers.
2885         (SH64PCREL16_F): Increment for proper max-PTA handling.  Update
2886         comment.
2887         (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
2888         (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
2889         expansion.
2890         (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
2891         Correct comment.
2892         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
2893         * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
2894         BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
2895         (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
2896         al>: Set lowest bit of field to relocate to 1 and rest to empty,
2897         if reloc is emitted.
2898         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
2899         New options plus bugfixes.
2900         * config/tc-sh.c (md_longopts): New options "-no-expand" and
2901         "-expand-pt32".
2902         (md_parse_option): Handle new options.
2903         (md_show_usage): Add blurb for new options.
2904         * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
2905         (sh64_expand, sh64_pt32): New variables.
2906         (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
2907         (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
2908         orig_fx_r_type.  Change SHMEDIA_BFD_RELOC_PT into
2909         BFD_RELOC_SH_PT_16.  Handle BFD_RELOC_SH_PT_16 as pc-relative.
2910         <resolved previously-pc-relative relocs>: Handle
2911         SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
2912         (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
2913         case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
2914         points to SHcompact code.
2915         <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
2916         SH64PCREL16)>: Check that ISA of what operand points at and
2917         PTA/PTB matches, or emit error.
2918         (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
2919         SHMEDIA_BFD_RELOC_PT.
2920         (shmedia_immediate_op): If pcrel, emit fixup also for constant
2921         operand.
2922         (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
2923         condition for MOVI expansion.
2924         <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
2925         sh64_pt32.  Emit only a BFD_RELOC_SH_PT_16 fixup if not
2926         sh64_expand.
2927         <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
2928         fixup.
2929         (sh64_target_format): Error-check setting of sh64_pt32 and
2930         sh64_expand.  Fix typo in check for sh64_shcompact_const_crange.
2931         (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
2932         SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
2933         2000-12-31  Hans-Peter Nilsson  <hpn@cygnus.com>
2934         * config/tc-sh64.c: Improve comments.
2935         (shmedia_md_convert_frag): Remove inactive is_pt_variant code.  Do
2936         not say the linker will check correctness of PTA/PTB expansion.
2937         (shmedia_md_end): Make non-static.
2938         * config/tc-sh64.h (md_end): Define to shmedia_md_end.  Add
2939         prototype.
2940         * config/tc-sh.c (sh_finalize): Remove.
2941         * config/tc-sh.h (md_end): Do not define.
2942         Remove prototype for sh_finalize.
2943         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
2944         * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
2945         sh64_section_data container when storing section type in tdata
2946         field in elf_section_data.
2947         * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
2948         EF_SH5.
2949         * Makefile.am: Update dependencies.
2950         * Makefile.in: Regenerate.
2951         2000-12-22  Hans-Peter Nilsson  <hpn@cygnus.com>
2952         * config/tc-sh64.c (shmedia_md_assemble): Don't protect
2953         dwarf2_emit_insn call with test on debug_type.
2954         2000-12-19  Hans-Peter Nilsson  <hpn@cygnus.com>
2955         * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
2956         CRT_SH5_ISA32 sticky for 64-bit.
2957         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
2958         Generate .crange sections when switching ISA mode or emitting
2959         constants in same section as code.
2960         * config/tc-sh64.c: Reformat structure definitions.
2961         (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
2962         variables.
2963         (sh64_set_contents_type): Rename from sh64_init_section.  Rewrite
2964         to emit a .cranges descriptor when contents type changes.  Only
2965         emit error if changing contents type and -no-mix is in effect.
2966         (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
2967         sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
2968         (shmedia_md_end): Set sh64_end_of_assembly.  Pass
2969         sh64_flush_last_crange over sections.
2970         When checking main symbol of datalabel symbol, check for
2971         STO_SH5_ISA32, not ISA type of section in definition.
2972         (shmedia_frob_file_before_adjust): Check main symbol for
2973         STO_SH5_ISA32; don't check ISA type of section in definition.
2974         (shmedia_frob_section_type): Adjust for .cranges; set section flag
2975         to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
2976         .cranges entries have been output.
2977         (shmedia_elf_new_section): Just call md_flush_pending_output.
2978         (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
2979         fix.  Do not set tc_segment_info_data.in_code for section.  Call
2980         sh64_set_contents_type for SHmedia code.
2981         (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
2982         false.  Call md_flush_pending_output.
2983         (sh64_target_format): Check that -no-mix and
2984         -shcompact-const-crange are used in sane combination with other
2985         options.
2986         (shmedia_md_pcrel_from_section): Check type of fix for how to
2987         adjust pc-relative.
2988         (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
2989         not ISA type of section in definition.
2990         * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
2991         hold contents-type state.
2992         (md_flush_pending_output): Redefine to sh64_flush_pending_output.
2993         (sh64_flush_pending_output): Declare.
2994         (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
2995         (sh64_tc_cons_fix_new): Declare.
2996         * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
2997         call sh64_flag_output.
2998         (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE.  Just
2999         call sh64_set_contents_type to mark SHcompact code and set
3000         seen_insn.
3001         (md_longopts): New options "-no-mix" and
3002         "-shcompact-const-crange".
3003         (md_parse_option): Handle new options.
3004         (md_show_usage): Add blurb for new options.
3005         (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3006         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
3007         * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3008         (sh64_last_insn_frag): New.
3009         (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3010         to get frag for insn opcode for generating fixups; do not assume it
3011         is the same frag.
3012         (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3013         for new insn.
3014         * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3015         section.
3016         (TC_FRAG_TYPE): Define as fragS *.
3017         (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3018         (sh64_last_insn_frag): Declare.
3019         (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3020         not == NULL before dereferencing.
3021         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3022         Get rid of BFD section flag and EF_SH64_ABI64.
3023         * config/tc-sh64.c (shmedia_frob_section_type): Use
3024         elf_section_data (sec)->tdata, not a specific BFD section flag, to
3025         communicate the section as containing SHmedia code.  Describe why.
3026         * config/tc-sh.c (sh_elf_final_processing): Tweak comment.  Set
3027         EF_SH64 regardless of ABI.
3028         * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3029         in error message.  Handle resolved expressions for
3030         BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3031         BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3032         (shmedia_check_limits): Handle BFD_RELOC_64.
3033         (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3034         a STO_SH5_ISA32 symbol, only the BFD value.
3035         2000-12-11  Ben Elliston  <bje@redhat.com>
3036         * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3037         dwarf2_generate_asm_lineno.
3038         2000-12-11  Hans-Peter Nilsson  <hpn@cygnus.com>
3039         Handle PC-relative MOVI expansions with assembler relaxation.
3040         Generate PC-relative relocs from 16-bit PC-relative expressions.
3041         * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3042         (shmedia_md_pcrel_from_section): ...here.
3043         (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3044         turned completely resolved.  Adjust relocation type for 16-bit
3045         immediate operands that has turned PC-relative.  Adjust back for
3046         MD_PCREL_FROM_SECTION being applied twice.
3047         (shmedia_md_convert_frag): Always emit reloc for expression with
3048         global or weak symbol.  Handle relaxation result for PC-relative
3049         expressions.
3050         (shmedia_md_estimate_size_before_relax): An expression with a weak
3051         or global symbol can not be relaxed.  Break out tests for
3052         relaxable symbol into variable sym_relaxable.
3053         <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3054         UNDEF_MOVI)>: Break out any PC-relative expression and change
3055         relaxation type.
3056         (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3057         opjp.
3058         <case A_IMMS16>: Fix typo for initial minor relaxation type of
3059         MOVI expansion.  If X_op_symbol of the immediate expression is
3060         set, make an expression symbol for the argument to frag_var.
3061         * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3062         relaxations.
3063         (END): Adjust for new relaxations.
3064         (md_relax_table): Add entries for new relaxations.
3065         2000-12-07  Ben Elliston  <bje@redhat.com>
3066         * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3067         2000-12-07  Hans-Peter Nilsson  <hpn@cygnus.com>
3068         * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3069         SHORI operand offsets in PT/PTA/PTB expansions.
3070         2000-12-05  Hans-Peter Nilsson  <hpn@cygnus.com>
3071         Implement DataLabel semantics.
3072         * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3073         shmedia_frob_file_before_adjust.
3074         * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3075         (DATALABEL_SUFFIX): Define.
3076         (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3077         symbol list to update "datalabel" symbols to their main symbol
3078         counterparts.
3079         (shmedia_frob_file_before_adjust): New.
3080         (sh64_adjust_symtab): For remaining datalabel symbols, set to
3081         undefined and set STT_DATALABEL.
3082         (sh64_frob_label): Initialize TC symbol field.
3083         (sh64_consume_datalabel): Actually implement semantics.  New
3084         parameter operandf, call it instead of expression.
3085         (sh64_exclude_symbol): New.
3086         * config/tc-sh64.h (md_parse_name): Pass on the function operand
3087         to sh64_consume_datalabel.
3088         (tc_symbol_new_hook): Define to tc_frob_symbol.
3089         (TC_SYMFIELD_TYPE): Define to symbolS *.
3090         (tc_frob_symbol): Define to call sh64_exclude_symbol.
3091         2000-12-01  Hans-Peter Nilsson  <hpn@cygnus.com>
3092         * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3093         case.
3094         (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3095         generating dwarf2 debug information.
3096         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3097         * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3098         elf64-sh64 for the 64-bit ABI.
3099         * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3100         option.
3101         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
3102         * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3103         case-insensitivity.
3104         2000-11-27  Hans-Peter Nilsson  <hpn@cygnus.com>
3105         * config/tc-sh64.c: Tweak comments, formatting and error messages.
3106         (enum sh64_abi_values): New type.
3107         (enum sh64_isa_values): New type.
3108         (sh64_isa_mode): Replace shmedia_mode.  All referers changed.
3109         (seen_shcompact_mode, seen_shmedia_mode): Delete.
3110         (sh64_abi): Replace shmedia_64.
3111         (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3112         C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3113         (s_sh64_mode): Check validity for this target.
3114         (sh64_target_format): Initialize defaults for ISA and ABI.
3115         Fallback to old object format if no SH64 ISA or ABI has been
3116         specified.
3117         * config/tc-sh.c (md_parse_option): Check combinations for errors.
3118         (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3119         ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3120         * config/tc-sh64.h: Fix typo in comment.
3121         2000-11-25  Hans-Peter Nilsson  <hpn@cygnus.com>
3122         * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3123         <PT fixups for absolute values>: Size will be longest, not
3124         shortest.
3125         (shmedia_md_convert_frag): Disable PTB-warning machinery.  Correct
3126         all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3127         * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3128         and l1 to hold lowercase of two first characters.  Change all
3129         remaining TO_LOWER to tolower.
3130         * config/tc-sh64.c (TO_LOWER): Delete.
3131         (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3132         (md_parse_name): Define.
3133         (sh64_consume_datalabel): Declare.
3134         (DOLLAR_DOT): Define.
3135         * config/tc-sh64.c (shmedia_parse_exp): New.
3136         (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3137         (shmedia_parse_reg): Remove const from src
3138         parameter.
3139         (shmedia_get_operands): Ditto for args parameter and ptr variable.
3140         (shmedia_md_assemble): Ditto for op_end variable.
3141         (shmedia_get_operand): Ditto for ptr parameter and src variable.
3142         Use shmedia_parse_exp, not parse_exp.
3143         * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3144         parameter.  All callers changed.
3145         (shmedia_get_operand): Add shmedia_arg_type parameter.  All
3146         callers changed.
3147         (shmedia_parse_reg): Put first two character in local variables.
3148         Use tolower, not TO_LOWER.  If no register is found and argtype
3149         indicates a control register, scan shmedia_creg_table
3150         case-insensitive.
3151         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
3152         * Makefile.am (CPU_TYPES): Add sh64.
3153         (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3154         (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3155         Regenerate dependencies.
3156         * Makefile.in: Regenerate.
3157         * configure.in: Add support for sh64-*-elf*.
3158         * configure: Regenerate.
3159         * config/tc-sh64.h: New.
3160         * config/tc-sh64.c: New.
3161         * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3162         .mode, .isa and .uaquad.
3163         [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3164         SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3165         [HAVE_SH64] (END): Define as 10.
3166         [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3167         SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3168         MOVI_64): Define.
3169         [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3170         SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3171         SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3172         MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3173         Define.
3174         (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3175         (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3176         (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3177         (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3178         SHmedia instructions.  Handle state-change after switching to
3179         SHcompact.
3180         (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3181         (md_parse_option) [HAVE_SH64]: Parse new options.
3182         (md_show_usage) [HAVE_SH64]: Show usage of new options.
3183         (md_convert_frag) [HAVE_SH64] <default>: Call
3184         shmedia_md_convert_frag instead of abort.
3185         (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3186         BFD_RELOC_SH_SHMEDIA_CODE.
3187         (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3188         SHcompact or SHmedia code.
3189         (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3190         shmedia_md_apply_fix instead of abort.
3191         (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3192         result from calling shmedia_md_estimate_size_before_relax instead
3193         of calling abort.
3194         (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3195         do the work.
3196         (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3197         shmedia_init_reloc and do nothing more if it returns non-zero.
3198         (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3199         * po/POTFILES.in: Regenerate.
3200         * po/gas.pot: Regenerate.
3201
3202 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
3203
3204         * config/tc-sh.c (parse_at): Install the correct version of
3205         2002-02-04's patch.
3206
3207         * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3208         assume fixP->fx_subsy is non-NULL.
3209
3210 2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
3211
3212         * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3213         A_DISP_PC_ABS, and adjust it by -4.
3214         (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3215         expected.
3216         (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3217         the operand type is not A_DISP_PC_ABS.
3218
3219 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
3220
3221         * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3222         common and weak symbols.  Handle common and weak symbols as
3223         undefined symbols with regards to GREG handling and merging.
3224         (mmix_frob_file): Ditto.
3225
3226 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
3227
3228         * configure.in (hppa-*-netbsd*): New target.
3229         * configure: Regenerate.
3230         * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3231
3232 2002-02-02  Alan Modra  <amodra@bigpond.net.au>
3233
3234         * config/tc-v850.c: Add missing prototypes amd use old-style
3235         function definitions.
3236         (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3237         (sdata_section tdata_section, zdata_section, sbss_section,
3238         tbss_section, zbss_section, rosdata_section, rozdata_section,
3239         scommon_section, tcommon_section, zcommon_section,
3240         call_table_data_section, call_table_text_section): Delete.
3241         (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3242         v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3243         v850_call_table_data, v850_call_table_text): Delete.
3244         (struct v850_seg_entry): New.
3245         (v850_seg_table): New.
3246         (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3247         TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3248         ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3249         CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3250         (do_v850_seg): New.
3251         (v850_seg): New.
3252         (v850_comm): Use do_v850_seg and v850_seg_table.  Simplify
3253         recording of alignment.
3254         (md_pseudo_table): Use v850_seg.
3255         (md_begin): Don't init .call_table_data and .call_table_text here.
3256         Set v850_seg_table bss entry.
3257
3258 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
3259
3260         Support on-demand global register allocation by passing on
3261         base-plus-offset relocs to the linker.
3262         * config/tc-mmix.c: Tweak and fix typos in comments.
3263         (allocate_undefined_gregs_in_linker): New variable.
3264         (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3265         (md_longopts): Add --linker-allocated-gregs.
3266         (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3267         <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3268         (md_show_usage): Update text for -x.  Add text for
3269         --linker-allocated-gregs.
3270         (tc_gen_reloc): Derive default value for addend from val and
3271         baddsy.  Use addsec and bfd_is_abs_section in more places.  Don't
3272         emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3273         GREG if allocate_undefined_gregs_in_linker.
3274         * doc/as.texinfo (Overview) <Target MMIX options>: Add
3275         --linker-allocated-gregs.
3276         * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3277         --linker-allocated-gregs.  Mention that it's implied by -x.
3278         (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3279         (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3280
3281         * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3282
3283 2002-02-01  Alan Modra  <amodra@bigpond.net.au>
3284
3285         * Makefile.am: Run "make dep-am"
3286         * Makefile.in: Regenerate.
3287
3288 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
3289
3290         * config/tc-or32.c: New file.
3291         * config/tc-or32.h: New file.
3292         * configure.in: Add support for or32 targets.
3293         * configure: Regenerate.
3294         * config/obj-coff.c: Add support for or32 targets.
3295         * config/obj-coff.h: Add support for or32 targets.
3296         * Makefile.am: Add support for or32 targets.
3297         * Makefile.in: Regenerate.
3298         * NEWS: Mention support for OpenRISC.
3299         * doc/Makefile.in: Regenerate.
3300         * po/POTFILES.in: Regenerate.
3301         * po/gas.pot: Regenerate.
3302
3303 2002-01-30  Richard Sandiford  <rsandifo@redhat.com>
3304
3305         * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3306         and mod.
3307
3308 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
3309
3310         * config/tc-mips.c (tc_gen_reloc): Arrange for
3311         BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3312         their LO16 parts, even for ELF.
3313
3314 2002-01-29  Daniel Jacobowitz  <drow@mvista.com>
3315
3316         * config/tc-i386.c: Protect definitions of true and false
3317         from redefinition.
3318
3319 2002-01-28  Jakub Jelinek  <jakub@redhat.com>
3320
3321         * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3322         made because of .weak, if they are neither defined nor used in any
3323         way.
3324
3325 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
3326
3327         * configure: Regenerated.
3328
3329 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
3330
3331         * doc/Makefile.am (install): Depend on install-info.
3332         * doc/Makefile.in: Regenerate.
3333
3334 2002-01-26  Nick Clifton <nick@redhat.com>
3335
3336         * po/fr.po: Updated version
3337
3338 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3339
3340         * config/tc-h8300.c (check_operand): Don't print a warning
3341         when a valid 24-bit address is given to a 16-bit address
3342         operand.
3343
3344 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3345
3346         * config/tc-sh.c (sh_elf_suffix): Removed.
3347         (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3348         sh_end_of_match, sh_parse_name): New functions.
3349         (sh_elf_cons): Simplify.
3350         (parse_exp): Reject misplaced PIC operands.
3351         (md_undefined_symbol): Simplify.
3352         (sh_fix_adjustable): Let @GOTOFF be adjusted.
3353         (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3354         (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3355         Complain if subsy remains at the end.
3356         * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3357         (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3358
3359 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
3360
3361         * config/tc-mn10300.c (xr_registers): Move `pc'...
3362         (other_registers): ... here.
3363
3364 2002-01-22  Alan Modra  <amodra@bigpond.net.au>
3365
3366         * Makefile.am: Run "make dep-am".
3367         * Makefile.in: Regenerate.
3368         * gas/po/POTFILES.in: Regenerate.
3369
3370 2002-01-21  DJ Delorie  <dj@redhat.com>
3371
3372         * config/obj-coff.c (obj_coff_init_stab_section): Make the
3373         stabstr_name allocation permanent, as it will be referenced from
3374         the section hash.
3375
3376 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3377
3378         * configure.in (ia64-*-netbsd*): New target.
3379         * configure: Regenerate.
3380
3381 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
3382
3383         * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3384         to @dots call.
3385         <Detailed description, ARM options>: Ditto.
3386         * doc/c-arm.texi (ARM Options): Ditto.
3387
3388 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3389
3390         * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3391         do_mia, do_mar and do_mra respectively.
3392         (do_mav_*): Renamed from do_c_*.
3393         (mav_reg_required_here, mav_parse_offset): Renamed from
3394         cirrus_reg_required_here and cirrus_parse_offset respectively.
3395         (MAV_MODE?): Renamed from CIRRUS_MODE?.
3396
3397 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3398             Keith Walker  <keith.walker@arm.com>
3399
3400         * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3401         (insns): Add pattern for bxj instruction.
3402         (do_bxj): New function.
3403         (arm_cpus): Add arm926ej.
3404         (arm_archs): Add armv5tej.
3405
3406 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3407
3408         * doc/c-arm.texi: Add new fpe options to list of supported flags.
3409
3410 2002-01-19  Keith Walker  <keith.walker@arm.com>
3411
3412         * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3413
3414 2002-01-18  Richard Earnshaw  <rearnsha@arm.com>
3415
3416         * NEWS: Mention new ARM command-line options and VFP support.
3417
3418         * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE.  All
3419         uses changed.
3420         (ARM_CEXT_MAVERICK): Similarly.
3421         (ARM_ANY): Now means any core instruction.
3422         (CPU_DEFAULT): Default to ARM_ANY.
3423         (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3424         (pic_code): Declare for all object types.  Make type int.
3425         (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3426         (march_fpu_opt, mfpu_opt): Declare.
3427         (md_longopts): Tidy up conditional definitions.
3428         (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3429         (arm_long_opts): New tables.
3430         (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3431         (arm_parse_extension): New function.
3432         (md_parse_option): Rewrite using new table-driven system.
3433         (md_show_usage): Use new table-driven system.
3434         (md_begin): Calculate cpu_variant from command line option data.
3435         * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3436         command-line options.
3437         * doc/c-arm.texi: Likewise.
3438
3439 2002-01-18  Andreas Jaeger  <aj@suse.de>
3440
3441         * as.c (parse_args): Update year.
3442
3443 2002-01-17  Timothy Wall  <twall@alum.mit.edu>
3444
3445         * config/tc-tic54x.c (encode_address): Add a more informative
3446         warning about incorrect syntax.
3447
3448 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3449
3450         * po/gas.pot: Regenerate.
3451
3452 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3453
3454         * macro.c (get_any_string): Add no-c-format comment to prevent
3455         confusion when translating string.
3456         * gasp.c (get_any_string): Add no-c-format comment to prevent
3457         confusion when translating string.
3458
3459 2002-01-16  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3460             Johannes Stezenbach <js@convergence.de>
3461         * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3462         matched before the shorter ones.
3463         (my_getSmallParser): Fix handling of nested parentheses in
3464         percent_op's. Code cleanup.
3465         (my_getPercentOp): New function, code from my_getSmallParser.
3466         (my_getSmallExpression): Fix handling of closing parentheses.
3467         Code cleanup. Better comments.
3468
3469 2002-01-16  Nick Clifton <nickc@redhat.com>
3470
3471         po/tr.po: New file: Turkish translation.
3472         configure.in (LINGUAS): Add "tr".
3473         configure: Regenerate.
3474
3475 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
3476
3477         Support for VFP instructions
3478         * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3479         (cp_address_required_here): New argument wb_ok.  When false, do not
3480         accept write-back forms of addressing.  Change all callers.
3481         (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3482         (FPU_VFP_EXT_V2): Define.
3483         (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3484         Define in terms of above.
3485         (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3486         (vfp_reg): New struct.
3487         (vfp_regs): New array of registers.
3488         (insns): Add VFP instructions.
3489         (sn_table): New array of VFP single-precision register names.
3490         (dn_table): New array of VFP double-precision register names.
3491         (all_reg_maps): Add the new register tables.
3492         (arm_reg_type): Add new values for above.  Increase RET_TYPE_MAX.
3493         (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3494         (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3495         (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3496         (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3497         (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3498         (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3499         (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3500         (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3501         (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3502         (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3503         (do_vfp_sp_dp_cvt): New functions.
3504         (md_begin): Set soft-float flag for appropriate VFP work.
3505         (md_atof): Handle VFP-format doubles.
3506         (md_parse_option): Handle VFP command-line options.
3507         (md_show_usage): Display VFP command-line options.
3508
3509 2002-01-15  Richard Earnshaw  <rearnsha@arm.com>
3510
3511         * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3512         various command line options.
3513
3514 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
3515
3516         * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3517         vtinherit relocs.
3518         (xstormy16_md_apply_fix3): Do not return a value.
3519
3520 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
3521
3522         * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3523         the -EL/-EB option that matches the target's endianness.
3524         (md_parse_option): Likewise.
3525
3526 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
3527
3528         * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3529         is not dependent on ARM_BI_ENDIAN.
3530
3531 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
3532
3533         * tc-arm.c (all error messages): Normalize capitalization of messages.
3534
3535         * tc-arm.h (md_operand): Delete define.
3536         * tc-arm.c (in_my_get_expression): New static variable.
3537         (my_get_expression): Set and clear it.
3538         (md_operand): New function.  If called from my_get_expression
3539         put the error in inst.error.
3540         (output_inst): Now takes argument of instruction being assembled.
3541         Print it out with any error message.
3542         (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3543         with '=' syntax.
3544         (end_of_line): Don't update inst.error if it is already set.
3545
3546 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
3547
3548         * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
3549         op that can be translated into a mvn instruction.
3550
3551 2002-01-11  Steve Ellcey  <sje@cup.hp.com>
3552
3553         * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3554         setting default md.flags.
3555         (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3556         (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3557         * gas/config/tc-ia64.c (setup_unwind_header): Add support
3558         for 32 bit unwind info blocks.
3559         (generate_unwind_image): Add support for different types
3560         of unwind images (32 bits and/or big-endian).
3561         (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3562         (ia64_target_format): Add support for hpux target formats.
3563         (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3564         (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3565         SHT_FINI_ARRAY elf section types.
3566
3567 2002-01-10  Richard Earnshaw  <rearnsha@arm.com>
3568
3569         * tc-arm.c (struct reg_entry): Move before prototypes.
3570         (int_register, cp_register, fp_register): Delete.
3571         (reg_table): Delete.  Replaced with ...
3572         (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3573         (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3574         (mav_dspsc_table): ... one table per register set.
3575         (arm_reg_hsh): Delete.
3576         (struct reg_map): New structure.
3577         (all_reg_maps): New array.
3578         (enum arm_reg_type): New enums.
3579         (build_reg_hsh): New function.
3580         (insert_reg_alias): Use hash table passed by caller.  Adjust all
3581         callers.
3582         (create_register_alias): New function, split out from ...
3583         (md_assemble): ... here.
3584         (md_begin): Build new register hash tables.
3585         (arm_reg_parse): New argument for the hash table to search.  Adjust all
3586         callers.
3587         (arm_reg_parse_any): New function.
3588         (co_proc_number): Look up the processor number in the processor hash
3589         table.
3590         (cirrus_regtype): Delete.
3591         (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3592         (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3593         (ARM_EXT_MAVERICKsc_register): Delete.
3594         (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3595         (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3596         functions.
3597         (do_c_triple_4, do_c_triple_5): Delete.
3598         (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3599         (do_c_quad_6): Delete.
3600         (do_c_quad_6[ab]): New functions.
3601         (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3602         arguments to use new register parsing methods.
3603         (cirrus_reg_required_here): Likewise.
3604         (insns): Reclassify cirrus maverick worker functions.
3605         (cirrus_valid_reg): Delete.
3606
3607 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
3608
3609         * configure.in (sh*le): Set cpu_type=sh and endian=little.
3610         (sh*-*-netbsdelf*): New target.
3611         * configure: Regenerate.
3612         * tc-sh.h: Update copyright years.
3613         (TARGET_FORMAT): Add version for TE_NetBSD.
3614
3615 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
3616
3617         * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
3618         negative.
3619
3620 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
3621
3622         * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
3623         * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
3624
3625 2002-01-05  Daniel Jacobowitz  <drow@mvista.com>
3626
3627         * tc-mips.c (mips_cprestore_valid): New flag.
3628         (mips_frame_reg_valid): New flag.
3629         (macro) [M_JAL_2]: Check both flags.
3630         [M_JAL_A]: Likewise.
3631         (s_cprestore): Set mips_cprestore_valid.
3632         (tc_get_register): If setting mips_frame_reg, set
3633         mips_frame_reg_valid and clear mips_cprestore_valid.
3634         (s_mips_ent): Clear both flags.
3635         (s_mips_end): Clear both flags.
3636
3637 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
3638
3639         * write.c (write_object_file): Make use of bfd_section_list_remove.
3640         * config/obj-ecoff.c (ecoff_frob_file): Likewise.
3641         * config/tc-mmix.c (mmix_frob_file): Likewise.
3642
3643 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
3644
3645         * configure.in (i386-*-netbsdelf*): Collapse target into...
3646         (i386-*-netbsd*): ...this.  Add support for x86-64.
3647         * configure: Regenerated.
3648
3649 2002-01-03  matthew green  <mrg@redhat.com>
3650
3651         * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3652
3653 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
3654
3655         * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
3656         NULL frag link.
3657
3658 For older changes see ChangeLog-0001
3659 \f
3660 Local Variables:
3661 mode: change-log
3662 left-margin: 8
3663 fill-column: 74
3664 version-control: never
3665 End: