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