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