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