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