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