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