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