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