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