1 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3 * config/tc-mips.c (append_insn): Use actual relocation size for new
4 fixp's. Don't relax overflow checking for partial_inplace relocations.
5 Use the actual relocation type in combined relocs, not just the type
7 (macro_build_jalr): Use actual relocation size for new fix.
8 (s_cpsetup, s_gpdword): Likewise.
10 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
12 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
14 2003-05-22 Nick Clifton <nickc@redhat.com>
16 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
17 section relative offsets for relocs that will not be based on the
19 (xstormy16_md_apply_fix3): Remove previous patch to this
22 2003-05-07 Eric Christopher <echristo@redhat.com>
24 * config/tc-mips.c (mips_abicalls): New variable.
25 (md_parse_option): Use.
28 (mips_elf_final_processing): Set EF_MIPS_PIC and
29 EF_MIPS_CPIC dependent on above.
31 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
35 2003-05-21 Nick Clifton <nickc@redhat.com>
37 * config/obj-elf.c: Include dwarf2dbg.h.
38 (elf_pseudo_tab): Add .file and .loc.
39 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
40 * config/tc-arm.c: Likewise.
41 * config/tc-h8300.c: Likewise.
42 * config/tc-hppa.c: Likewise.
43 * config/tc-ia64.c: Likewise.
44 * config/tc-m68hc11.c: Likewise.
45 * config/tc-m68k.c: Likewise.
46 * config/tc-mmix.c: Likewise.
47 * config/tc-mn10300.c: Likewise.
48 * config/tc-ppc.c: Likewise.
49 * config/tc-sh.c: Likewise.
50 * config/tc-sparc.c: Likewise.
51 * config/tc-v850.c: Likewise.
52 * config/tc-frv.c: Likewise, and remove redundant inclusion of
54 * config/tc-ip2k.c: Likewise.
55 * config/tc-iq2000.c: Likewise.
56 * config/tc-xstormy16.c: Likewise.
57 * config/tc-xtensa.c: Likewise.
58 * Makefile.am: Regenerate dependencies.
59 * Makefile.in: Regenerate.
60 * aclocal.m4: Regenerate.
61 * config.in: Regenerate.
62 * configure: Regenerate.
63 * po/POTFILES.in: Regenerate.
64 * po/gas.pot: Regenerate.
66 2003-05-21 Nick Clifton <nickc@redhat.com>
68 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
69 BFD_ASSEMBLER targets.
70 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
71 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
72 defining BFD_ASSEMBLER.
74 2003-05-20 Michal Ludvig <mludvig@suse.cz>
76 * as.c (main): Remove tc_cfi_init().
77 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
79 (cfi_pseudo_table): Add "cfi_register" entry.
80 (cfi_make_insn): Handle CFA_register.
81 (cfi_output_insn): Ditto.
83 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
84 (dot_cfi_endproc): Reuse already emitted CIEs.
85 * testsuite/gas/cfi/cfi-i386.d: New pattern.
86 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
88 2003-05-20 Nick Clifton <nickc@redhat.com>
90 * config/tc-xstormy16.c: Include dwarf2dbg.h.
91 (md_pseudo_table): Add entries for .loc and .line.
93 2003-05-20 Alan Modra <amodra@bigpond.net.au>
95 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
97 (dot_cfi_endproc): Avoid C99 construct.
99 2003-05-20 Michal Ludvig <mludvig@suse.cz>
101 * dw2gencfi.c, dw2gencfi.h: New files.
102 * config/tc-i386.c (tc_x86_cfi_init): New function.
103 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
104 * as.c (parse_args): Set verbose flag on --verbose.
105 (main): Call tc_cfi_init()/cfi_finish().
106 * as.h (verbose): New external variable.
107 * read.c (pobegin): Insert CFI pops to the list.
108 * symbols.c (local_symbol_make): Make symbol external.
109 * symbols.h (local_symbol_make): New prototype.
110 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
111 * Makefile.in: Regenerate.
112 * doc/as.texinfo: Added node "CFI directives" with description of
113 all implemented .cfi_* directives.
114 * doc/Makefile.in: Regenerate.
115 * po/POTFILES.in: Regenerate.
117 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
119 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
121 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
123 2003-05-18 Jason Eckhardt <jle@rice.edu>
125 * config/tc-i860.c (i860_process_insn): Initialize fc after
126 each opcode mismatch.
128 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
130 * configure.in: Accept i[3-7]86 variants.
131 * configure: Regenerate.
133 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
135 * config/tc-mips.h: Fix comment formatting.
137 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
139 * read.c (old_buffer, old_input, old_limit): Remove variables.
140 (read_a_source_file): Delete label contin.
141 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
142 input as with macros, instead of in separate old_* variables.
143 Zero-terminate string being scrubbed.
145 2003-05-12 Nick Clifton <nickc@redhat.com>
147 * config/tc-xstormy16.c (skipping_fptr): New local variable.
148 (md_assemble): Reset skipping_fptr.
149 (md_operand): If @fptr() is followed by a minus sign, set
150 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
151 @fptr is detected, ignore it and reset skipping_fptr.
153 2003-05-11 Jason Eckhardt <jle@rice.edu>
155 * config/tc-i860.c (MAX_FIXUPS): Define.
156 (struct i860_fi fi[]): New struct.
157 (struct i860_it the_insn): Add above as member and move fields
158 exp, reloc, pcrel and fup into i860_fi.
159 (md_assemble): Replace all instances of exp, reloc, pcrel
160 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
161 Add a loop to possibly emit multiple fix-ups for each insn.
162 (i860_process_insn): Likewise.
163 (i860_get_expression): Likewise.
164 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
166 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
168 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
170 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
172 * config/tc-ia64.c (alias_hash): New.
173 (alias_name_hash): New.
174 (secalias_hash): New.
175 (secalias_name_hash): New.
176 (md_pseudo_table): Add "secalias".
177 (md_begin): Initialize alias_hash, alias_name_hash,
178 secalias_hash and secalias_name_hash.
180 (dot_alias): Implement .alias and .secalias directives.
182 (ia64_adjust_symtab): New.
184 (ia64_frob_file): New.
186 * config/tc-ia64.h (ia64_adjust_symtab): New.
187 (tc_adjust_symtab): Defined.
188 (ia64_frob_file): New.
189 (tc_frob_file): Defined.
191 2003-05-07 Dmitry Diky <diwil@mail.ru>
193 * tc-msp430.c: Add missing lines to known cpus list.
195 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
197 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
198 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
199 * config.in, configure: Rebuilt.
201 2003-05-05 H.J. Lu <hjl@gnu.org>
203 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
204 howto->partial_inplace is false.
206 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
208 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
209 symbol_used_in_reloc_p check.
210 (md_apply_fix3): Remove check for howto->pcrel_offset.
212 2003-05-03 H.J. Lu <hjl@gnu.org>
214 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
215 fatal error for unknown section attribute.
217 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
218 unknown section attribute.
219 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
220 * config/tc-ppc.c (ppc_section_letter): Likewise.
222 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
223 (ia64_elf_section_type): Accept "unwind".
225 2003-05-02 H.J. Lu <hjl@gnu.org>
227 * read.h (demand_copy_string): New.
229 * config/tc-alpha.c (demand_copy_string): Removed.
231 2003-05-02 Michael Snyder <msnyder@redhat.com>
233 * write.h (FAKE_LABEL_NAME): Allow override
234 (for targets that like eg. a leading dot in a local label).
236 2003-05-02 Nick Clifton <nickc@redhat.com>
238 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
239 addend with the symbol's value for pc-relative relocations against
240 a defined symbol - this will be done automatically.
242 2003-05-01 H.J. Lu <hjl@gnu.org>
244 * config/obj-elf.c (obj_elf_type): Accept "notype" and
247 2003-05-01 H.J. Lu <hjl@gnu.org>
249 * config/tc-ia64.h (tc_canonicalize_section_name): New.
251 * config/obj-elf.c (obj_elf_section_name): Call
252 tc_canonicalize_section_name if it is defined.
254 2003-05-01 H.J. Lu <hjl@gnu.org>
256 * config/tc-ia64.c (ia64_check_label): New.
257 * config/tc-ia64.h (tc_check_label): New.
259 * read.c (read_a_source_file): Call tc_check_label after
260 creating a user-defined label if defined.
262 2003-05-02 Alan Modra <amodra@bigpond.net.au>
264 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
265 -be and split strings to below 509 bytes in length.
267 2003-05-01 Christian Groessler <chris@groessler.org>
269 * expr.h: Fix comments in operatorT typedef.
270 * config/tc-z8k.c: Add 2003 to copyright message.
271 Fold s_segm() and s_unseg() into one function s_segm(parm) which
272 decides by the parameter.
273 (md_begin): Don't set linkrelax. Only set Z8002 default if no
274 command line argument was given to select the intended
276 (get_interrupt_operand): Warn if NOP type code is emitted.
277 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
278 (apply_fix): Call newfix with additional 'size' parameter.
279 (build_bytes): Remove unused variable 'nib'. Detect overflow in
280 4 bit immediate arguments.
281 (md_longopts): Add 'linkrelax' option.
282 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
283 variable when 'linkrelax' command line option is specified.
284 (md_show_usage): Display 'linkrelax' option.
285 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
287 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
289 2003-04-30 H.J. Lu <hjl@gnu.org>
291 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
292 (ia64_float_to_chars): Likewise.
293 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
294 and ia64_float_to_chars by tc_segment_info_data.endian from
295 the current segment if byteorder == -1.
296 (md_begin): Call dot_byteorder to set target_big_endian.
297 (md_atof): Call ia64_float_to_chars to convert floating point.
298 (ia64_float_to_chars_bigendian): New function.
299 (ia64_float_to_chars_littleendian): Likewise.
300 (ia64_elf_section_change_hook): Likewise.
302 * config/tc-ia64.h (ia64_number_to_chars): New.
303 (md_number_to_chars): Changed to (*ia64_number_to_chars)
304 (ia64_elf_section_change_hook): New.
305 (md_elf_section_change_hook): Defined.
306 (ia64_segment_info_type): New struct.
307 (TC_SEGMENT_INFO_TYPE): Defined.
309 2003-04-30 H.J. Lu <hjl@gnu.org>
311 * config/tc-ia64.c (md_section_align): Deleted.
313 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
314 (md_section_align): New.
316 2003-04-30 H.J. Lu <hjl@gnu.org>
318 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
320 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
322 (md_atof): Add 6 byte padding of zero for real16.
324 2003-04-29 Nick Clifton <nickc@redhat.com>
326 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
327 start of a version name.
329 2003-04-28 Chris Demetriou <cgd@broadcom.com>
331 * configure.in (mips-*-*n*bsd*): Replace with...
332 (mips-*-netbsd*, mips-*-openbsd*): These.
333 * configure: Regenerate.
335 2003-04-28 H.J. Lu <hjl@gnu.org>
337 * config/tc-hppa.c (hppa_symbol_chars): New.
338 * config/tc-hppa.h (tc_symbol_chars): Likewise.
340 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
342 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
344 2003-04-25 Chris Demetriou <cgd@broadcom.com>
346 * NEWS: Belatedly mention support for MIPS32 Release 2.
348 2003-04-24 Eric Christopher <echristo@redhat.com>
350 * config/tc-mips.c (nopic_need_relax): Revert previous
353 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
355 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
356 * config/tc-h8300.c (dwarf2dbg.h): Include
357 (md_pseudo_table): Handle .loc and .file
358 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
359 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
360 * Makefile.in: Regenerate.
362 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
364 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
365 (md_pseudo_table): Add h8300hn, h8300sn.
366 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
367 * doc/c-h8300.texi : Add documentation for new machine directives.
369 2003-04-24 Nick Clifton <nickc@redhat.com>
371 * config/tc-ppc.c (ppc_symbol_chars): Define.
372 * config/tc-ppc.h (tc_symbol_chars): Define.
374 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
376 * config/tc-sh.c: Amend comment to refer to SuperH.
377 * config/tc-sh.h: Likewise.
378 (LISTING_HEADER): Amend to refer to SuperH.
379 * config/tc-sh64.c: Change comment to refer to SuperH.
380 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
381 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
382 * doc/c-sh.texi: Amend to refer to SuperH.
383 Add SuperH architecture documentation references.
384 * doc/c-sh64.texi: Change to refer to SuperH.
386 2003-04-23 H.J. Lu <hjl@gnu.org>
388 * app.c (do_scrub_chars): More checks for valid labels.
390 2003-04-22 H.J. Lu <hjl@gnu.org>
392 * app.c (do_scrub_chars): Check for valid label.
394 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
396 * doc/as.texinfo: Replace references to Mitsubishi M32R with
397 references to Renesas M32R.
398 * doc/c-m32r.texi: Likewise.
400 2003-04-21 Richard Henderson <rth@redhat.com>
402 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
403 (out_file_list): Assign non-null filename after generating error.
405 2003-04-18 Jakub Jelinek <jakub@redhat.com>
407 * ehopt.c (check_eh_frame): For aug_size == 0
408 in state_seeing_aug_size state skip the state_skipping_aug
411 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
413 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
415 * doc/c-h8500.texi: Likewise.
416 * doc/c-sh.texi: Likewise.
417 * doc/c-sh64.texi: Likewise.
418 * doc/h8.texi: Likewise.
419 * config/tc-h8300.c: Likewise.
420 * config/tc-h8300.h: Likewise.
421 * config/tc-h8500.c: Likewise.
422 * config/tc-h8500.h: Likewise.
423 * config/tc-sh.c: Likewise.
424 * config/tc-sh.h: Likewise.
425 * config/tc-sh64.c: Likewise.
426 * config/tc-sh64.h: Likewise.
428 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
430 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
431 * config/tc-mips.c: Use signed add for n32 address arithmetic.
432 (append_insn): When filling delay slots with instructions
433 that have fixups that tc_gen_reloc might consider modifyable
434 in variant frags, start a new frag.
435 (load_address): Generate GOT_DISP with of without offset
436 depending on whether symbol is local. For -xgot, use
437 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
438 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
439 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
440 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
441 <ld_st>: In NewABI with small got, always use
442 GOT_PAGE/GOT_OFST, with the latter in the load/store
443 instruction. With big got, use GOT_HI16/GOT_LO16 or
445 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
446 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
447 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
448 (md_convert_frag): Use memmove for safe copying of overlapping
451 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
453 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
454 -mlong, -mshort-double and -mlong-double options; use table @code.
455 (M68HC11-Syntax): Update to document 68HC12 operands.
456 (M68HC11-Modifiers): New section for operand modifiers.
457 (M68HC11-Directives): New section for specific assembler directives.
458 (M68HC11-Branch): Fix Overfull hbox error.
460 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
462 * config/tc-mips.c (macro): Add comments explaining the rationale
465 2003-04-09 Chris Demetriou <cgd@broadcom.com>
467 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
468 constant address that Alexandre took out by accident. Reject
469 64-bit addresses that are not sign extensions of 32 bits only if
470 we don't support 64-bit address constants.
472 2003-04-09 Alan Modra <amodra@bigpond.net.au>
474 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
476 2003-04-08 Nick Clifton <nickc@redhat.com>
478 * as.c (perform_an_assembly_pass): If using cgen, call
480 * cgen.c (gas_cgen_begin): New function. If
481 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
482 otherwise call cgen_clear_signed_overflow_ok.
483 * cgen.h: Prototype gas_cgen_begin.
485 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
487 * write.c (write_relocs): Remove unused variable.
489 2003-04-06 Chris Demetriou <cgd@broadcom.com>
491 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
492 (macro): Use new macro to decide whether to emit constant address
493 as 32 or 64 bits if addresses are 32-bit wide but registers are
496 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
498 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
499 (M6811_OP_PAGE_ADDR): New internal define.
500 (get_operand): New modifier %page and %addr to obtain page and
501 address part of a far-function.
502 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
503 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
505 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
506 (find_opcode): Add comment.
507 (md_estimate_size_before_relax): Force relocation of
508 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
509 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
510 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
511 on the symbol itself so that DWARF2 strings are merged correctly.
513 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
515 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
516 default tic4x target format to 'coff2-tic4x'.
517 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
519 * config/tc-tic4x.h: Ditto
521 2003-04-03 Nick Clifton <nickc@redhat.com>
523 * NEWS: Mention support for Xtensa architecture.
525 2003-04-02 Philip Blundell <philb@gnu.org>
527 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
529 2003-04-02 Chris Demetriou <cgd@broadcom.com>
531 * config/tc-mips.c (macro2): Adjust implementation of
532 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
533 in the case where the source and destination registers
536 2003-04-01 Bob Wilson <bob.wilson@acm.org>
538 * Makefile.am (CPU_TYPES): Add xtensa.
539 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
540 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
541 (xtensa-relax.o): New target.
543 * Makefile.in: Regenerate.
544 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
545 extra_objects for xtensa targets.
546 * configure: Regenerate.
547 * write.c (write_object_file): Add new md_post_relax_hook.
548 * config/tc-xtensa.c: New file.
549 * config/tc-xtensa.h: Likewise.
550 * config/xtensa-istack.h: Likewise.
551 * config/xtensa-relax.c: Likewise.
552 * config/xtensa-relax.h: Likewise.
553 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
554 * doc/Makefile.in: Regenerate.
555 * doc/all.texi: Set new XTENSA variable.
556 * doc/as.texinfo: Set new Xtensa variable. Describe
557 Xtensa-specific options. Define line comment character for
558 Xtensa. Add Xtensa processors to list of ELF targets where
559 alignment is specified in bytes. Add new Xtensa-Dependent node.
560 Add acknowledgements for those contributing to the Xtensa port.
561 * doc/internals.texi: Describe new md_post_relax_hook.
562 * doc/c-xtensa.texi: New file.
564 2003-04-01 Nick Clifton <nickc@redhat.com>
565 Richard Earnshaw <rearnsha@arm.com>
567 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
568 (ARM_ARCH_IWMMXT): Simplify.
569 (insns): Place iwmmx instructions in correct place in table.
570 (arm_add_note): New function: Add a note entry to a .note section.
571 (md_begin): Make the default architecture be unknown.
572 Suppress the creation of an arm note section.
574 2003-03-26 Eric Christopher <echristo@redhat.com>
576 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
578 2003-03-25 Stan Cox <scox@redhat.com>
579 Nick Clifton <nickc@redhat.com>
581 Contribute support for Intel's iWMMXt chip - an ARM variant:
583 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
584 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
585 (enum wreg_type, enum iwmmxt_insn_type): New types.
586 (wr_register, wc_register, wcg_register): New macros.
587 (iwmmxt_table): New variable.
588 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
589 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
590 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
591 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
592 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
593 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
594 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
595 cp_byte_address_offset, cp_byte_address_required_here,
596 check_iwmmxt_insn): New functions.
597 (asm_opcode_insns): Add iWMMXt instructions.
598 (md_begin): Set the mach value for iWMMXt targets. Create a note
599 section to identify iwmmxt binaries.
600 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
601 * doc/c-arm.texi: Document the support for the iWMMXt.
602 * NEWS: Mention new support.
604 2003-03-24 Daniel Néri <dne@mayonnaise.net>
606 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
607 * doc/all.texi: Likewise.
608 * doc/c-tic54x.texi: Likewise.
610 2003-03-21 Andreas Schwab <schwab@suse.de>
612 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
613 avoid aliasing issue.
615 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
617 * config/tc-s390.c (s390_arch_size): Initialize to zero.
618 (current_arch_mask): Rename to current_mode_mask.
619 (current_arch_requested): Remove variable.
620 (current_cpu): New variable.
621 (init_default_arch): Set defaults values for s390_arch_size,
622 current_mode_mask and current_cpu.
623 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
624 (md_begin): Replace current_arch_mask by current_cpu.
625 (md_assemble): Adapt check and error message to current_mode_mask and
628 2003-03-09 James E Wilson <wilson@tuliptree.org>
630 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
631 * read.c (get_line_sb): Return end of line character or '\n' if
632 it is zero or non-existent.
634 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
636 * config/tc-mips.c (mips_validate_fix): New function.
637 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
638 (mips_validate_fix): Declare.
640 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
642 * Reverted 2003-03-02's patch.
644 2003-03-11 Steve Ellcey <sje@cup.hp.com>
646 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
647 (TC_DWARF2_EMIT_OFFSET): Provide default.
648 (out_debug_aranges, out_debug_info): Use it.
649 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
650 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
651 (ia64_gen_real_reloc_type): ... here.
652 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
654 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
656 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
657 (s_mips_ent): Likewise.
659 2003-03-04 Dmitry Diky <diwil@mail.ru>
661 * config/tc-msp430.c (mcu_types): Add recently announced x1122
662 and x1123 devices, add missed x437.
663 (md_show_usage): Sort device list.
665 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
667 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
668 (md_begin): Use preset_target_arch.
669 (md_longopts): Make isa option unconditional.
670 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
671 set preset_target_arch.
672 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
673 by -S_GET_VALUE (fixP->fx_subsy).
674 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
676 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
677 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
679 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
681 * config/tc-mips.c (append_insn): Add handling of
682 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
683 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
684 misaligned address and reange overflow.
685 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
686 earlier warnings about misaligned address and reange overflow.
687 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
688 (md_apply_fix): Likewise. Fix warning output.
689 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
690 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
691 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
693 2003-02-21 Nick Clifton <nickc@redhat.com>
695 * NEWS: Mention availability of test generator program.
697 2003-02-21 Miles Bader <miles@gnu.org>
699 * config/tc-v850.c (system_registers): Add v850e debug registers.
700 (system_register_name): Accept up to 27 (the last v850e sys register).
702 2003-02-21 Bob Wilson <bob.wilson@acm.org>
704 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
705 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
706 Capitalize section headings consistently. Format index entries more
707 consistently. Unconditionalize text about whether text and data
708 sections are alterable. Use @ifnottex for alternatives to @tex output
709 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
710 .size and .type directives. Be more polite about bad bug reports.
711 Move FDL into a separate file.
712 * doc/fdl.texi: New file.
714 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
716 * config/tc-mips.c (prev_reloc_op_frag): New variable.
717 (macro): Check it to decide whether a new frag is needed.
718 (my_getSmallExpression): Set it.
720 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
722 * cgen.c: Fix typo: intial -> initial.
724 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
726 * app.c (do_scrub_chars): Handle '||' in two states.
728 2003-02-13 Alan Modra <amodra@bigpond.net.au>
730 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
731 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
733 2003-02-11 Uwe Stieber <uwe@wwws.de>
735 * configure.in: Add support for kaOS as cross build target system.
736 * configure: Regenerated.
738 2003-02-10 Nick Clifton <nickc@redhat.com>
740 * config/tc-arm.c (md_begin): If the Maverick co-processor is
741 selected, set the EF_ARM_MAVERICK_FLOAT flag and
742 bfd_mach_arm_ep9312 machine number.
744 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
746 * config/tc-mips.c (reloc_needs_lo_p): New function.
747 (fixup_has_matching_lo_p): New function.
748 (append_insn): Use reloc_needs_lo_p to check whether a relocation
749 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
750 if that fixup already has a matching %lo(). Don't call frag_wane here.
751 (macro): Call frag_wane here if the last unmatched hi was in the
753 (pic_need_relax): New function, split out from...
754 (md_estimate_size_before_relax): ...here.
755 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
756 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
758 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
760 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
762 2003-02-06 Alan Modra <amodra@bigpond.net.au>
764 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
767 2003-02-05 Alan Modra <amodra@bigpond.net.au>
769 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
770 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
771 accept x@got+off etc.
772 (md_assemble): Handle TLS relocs.
773 (ppc_force_relocation): Force for all TLS relocs.
774 (ppc_fix_adjustable): Likewise.
775 (md_apply_fix3): Handle TLS relocs.
777 2003-02-04 Alan Modra <amodra@bigpond.net.au>
779 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
780 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
782 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
784 * config/tc-mips.c (enum small_ex_type): Remove.
785 (imm_unmatched_hi): Remove.
786 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
787 argument from calls to append_insn.
788 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
790 (macro_build): Update append_insn calls.
791 (mips16_macro_build, macro_build_lui): Likewise.
792 (mips_ip): Rework handling of small expressions. Move explicit
793 relocation handling into my_getSmallExpression. Assume that the
794 value of 'o' operands is zero if there is only one bracketed
796 (percent_op): Make constant. Record the BFD relocation code
797 associated with each operator.
798 (my_getSmallParser, my_getPercentOp): Remove.
799 (parse_relocation): New function.
800 (my_getSamllExpression): Rework. Fill in relocations here
801 rather than in mips_ip.
803 2003-01-29 Nick Clifton <nickc@redhat.com>
805 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
806 assembler's handling of # <linenum> "<filename>" directives work.
808 2003-01-28 Jakub Jelinek <jakub@redhat.com>
810 * dwarf2dbg.c: Include filenames.h.
811 (struct file_entry): Make filename const char *.
812 (dirs, dirs_in_use, dirs_allocated): New variables.
813 (get_filenum): Add NUM argument. Build directory table.
814 (dwarf2_where): Adjust caller.
815 (dwarf2_directive_file): Use get_filenum to allocate
816 slot in file and directory tables.
817 (dwarf2_directive_loc): Recreate full filename from
818 directory and filename part if needed for listing.
819 (out_file_list): Output directory table.
820 Output main source file dirname before its filename.
822 2003-01-28 Dmitry Diky <diwil@mail.ru>
824 * config/tc-msp430.c: Replace occurences of 'tolower' with
827 2003-01-27 David Mosberger <davidm@hpl.hp.com>
829 * config/tc-ia64.c (dot_vframesp): Correct error message.
830 (dot_vframepsp): Ditto.
832 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
834 * configure.in (em): Set to irix on all Irix systems.
835 * configure: Rebuilt.
836 * config/te-irix.h: New file.
837 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
838 whether to use Irix-specific 64-bit format.
840 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
842 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
844 2003-01-25 Jakub Jelinek <jakub@redhat.com>
846 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
847 (tc_gen_reloc): Handle TLS relocs.
848 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
849 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
851 * config/obj-elf.c (obj_elf_section_word): Handle tls.
852 (obj_elf_type): Handle tls_object.
854 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
856 * config/tc-s390.c (s390_tls_suffix): New function.
857 (elf_suffix_type): Add suffix enums for TLS relocations.
858 (s390_elf_suffix): Add suffix strings for TLS relocations.
859 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
861 (md_gather_operands): Map new instruction operand/elf suffix
862 combinations for TLS to bfd relocations.
863 (tc_s390_fix_adjustable): Add new TLS relocations.
864 (tc_s390_force_relocation): Likewise.
865 (md_apply_fix3): Likewise.
867 2003-01-24 Alan Modra <amodra@bigpond.net.au>
869 * as.h: Update copyright date.
870 * symbols.c: Likewise.
871 * config/tc-d10v.h: Likewise.
872 * config/tc-fr30.h: Likewise.
873 * config/tc-i960.h: Likewise.
874 * config/tc-mips.h: Likewise.
876 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
877 (MD_APPLY_SYM_VALUE): Move.
879 2003-01-23 Nick Clifton <nickc@redhat.com>
881 * NEWS: Announce sh2e support.
884 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
885 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
886 (sh_elf_final_processing): Handle arch_sh2e.
888 2003-01-23 Alan Modra <amodra@bigpond.net.au>
890 * symbols.c (S_FORCE_RELOC): Add "strict" param.
891 * symbols.h (S_FORCE_RELOC): Likewise.
892 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
893 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
894 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
895 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
896 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
897 * write.c (generic_force_reloc): New function.
898 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
899 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
900 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
901 * as.h (generic_force_reloc): Declare.
902 * doc/internals.texi (S_FORCE_RELOC): Update.
903 (TC_FORCE_RELOCATION_SUB_SAME): Update.
905 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
907 (alpha_fix_adjustable): Likewise.
908 * config/tc-arm.c (arm_force_relocation): Likewise.
909 * config/tc-cris.c (md_cris_force_relocation): Likewise.
910 * config/tc-frv.c (frv_force_relocation): Likewise.
911 * config/tc-i386.c (md_apply_fix3): Likewise.
912 * config/tc-ia64.c (ia64_force_relocation): Likewise.
913 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
914 * config/tc-m32r.c (m32r_force_relocation): Likewise.
915 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
916 * config/tc-mcore.c (mcore_force_relocation): Likewise.
917 * config/tc-mips.c (mips_force_relocation): Likewise.
918 * config/tc-mmix.c (mmix_force_relocation): Likewise.
919 * config/tc-ppc.c (ppc_force_relocation): Likewise.
920 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
921 * config/tc-sh.c (sh_force_relocation): Likewise.
922 (md_pcrel_from_section): Likewise.
923 * config/tc-sparc.c (tc_gen_reloc): Likewise.
924 * config/tc-v850.c (v850_force_relocation): Likewise.
925 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
926 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
927 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
928 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
930 * config/tc-d10v.c (d10v_force_relocation): Delete.
931 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
932 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
933 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
934 * config/tc-fr30.c (fr30_force_relocation): Delete.
935 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
936 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
937 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
938 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
939 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
940 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
941 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
942 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
943 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
944 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
945 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
946 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
947 * config/tc-i386.c (i386_force_relocation): Delete.
948 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
950 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
951 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
952 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
953 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
955 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
956 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
958 2003-01-23 Alan Modra <amodra@bigpond.net.au>
960 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
961 sh64_elf_section_data.
962 * config/tc-sh64.h: Include elf32-sh64.h.
963 * config/tc-m68hc11.c: Don't include stdio.h.
964 (md_show_usage): Fix missing continuation.
965 * Makefile.am: Run "make dep-am".
966 * Makefile.in: Regenerate.
968 2003-01-22 Nick Clifton <nickc@redhat.com>
970 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
972 2003-01-21 Fabio Alemagna <falemagn@aros.org>
974 * configure.in: Handle *-*-aros*.
975 * configure: Regenerated from configure.in.
977 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
979 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
980 gotplt and pltoff relocations.
981 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
982 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
983 gotplt and pltoff to bfd relocations.
984 (md_gather_operands): Map new instruction operand/elf suffix
985 combinations to bfd relocations.
986 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
987 to the list of unadjustable relocations.
988 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
989 and pltoff relocations.
990 (md_apply_fix3): Add the new relocations.
992 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
994 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
997 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
999 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1000 of relocs for memory bank addressing.
1002 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1004 * config/tc-m68hc11.c (md_show_usage): Update usage.
1005 (md_parse_option): Recognize -m68hcs12.
1006 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1008 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1010 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1012 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1014 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1016 * Makefile.am: Run "make dep-am".
1017 * Makefile.in: Regenerate.
1018 * po/POTFILES.in: Regenerate.
1020 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1022 * read.c (get_absolute_expr): New, split out from..
1023 (get_absolute_expression): ..here.
1024 * read.h (get_absolute_expr): Declare.
1025 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1026 Trim size to arch bits_per_address, and test for negative input
1027 via get_absolute_expr.
1029 2003-01-07 DJ Delorie <dj@redhat.com>
1031 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1033 (xstormy16_md_apply_fix3): Use adjustment.
1035 2003-01-02 Ben Elliston <bje@redhat.com>
1037 * configure.in: Add iq2000-elf target.
1038 * configure: Regenerate.
1039 * config/tc-iq2000.c: New file.
1040 * config/tc-iq2000.h: Likewise.
1041 * po/gas.pot: Regenerate.
1043 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1045 * config/tc-mips.c: Update copyright years to include 2003.
1046 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1047 Additionally, clean up their code slightly and clean up their
1050 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1052 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1054 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1056 * doc/Makefile.in: Regenerate.
1058 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1060 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1061 of .init and .fini sections for array initializers and finalizers.
1063 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1065 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1066 the "+D" operand, which will be used only by the disassembler.
1068 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1070 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1072 * configure: Regenerate.
1073 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1074 (macro_build): Handle "K" operand.
1075 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1076 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1077 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1078 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1079 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1080 (validate_mips_insn): Implement "+" as a way to extend the
1081 allowed operands, and implement "K", "+A", "+B", and "+C"
1083 (OPTION_MIPS32R2): New define.
1084 (md_longopts): Add entry for OPTION_MIPS32R2.
1085 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1086 (md_parse_option): Handle OPTION_MIPS32R2.
1087 (s_mipsset): Reimplement handling of ".set mipsN" options
1088 and add support for ".set mips32r2".
1089 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1090 (md_show_usage): Document "-mips32r2" option.
1091 * doc/as.texinfo: Document "-mips32r2" option.
1092 * doc/c-mips.texi: Likewise.
1094 2002-12-30 Dmitry Diky <diwil@mail.ru>
1096 * configure.in: Add msp430 target.
1097 * configure: Regenerate.
1098 * Makefile.am: Add msp430 target.
1099 * Makefile.in: Regenerate.
1100 * config/tc-msp430.c: New file: msp430 assembler.
1101 * config/tc-msp430.h: New file: target macros for msp430.
1102 * doc/Makefile.am: Add msp430 target.
1103 * doc/Makefile.in: Regenerate.
1104 * doc/as.texinfo: Include msp430 documenation.
1105 * doc/all.texi: Enable msp430 documentation.
1106 * doc/c-msp430.texi: New file: document msp430 specific features
1109 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1111 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1112 (dwarf2_finish): Use it.
1113 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1114 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1116 2002-12-20 DJ Delorie <dj@redhat.com>
1118 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1119 BFD_RELOC_XSTORMY16_12.
1121 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1123 * doc/as.texinfo (Invoking): Typo fix.
1124 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1126 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1128 * doc/c-alpha.texi: Fix typos.
1129 * doc/c-arm.texi: Likewise.
1130 * doc/c-d10v.texi: Likewise.
1131 * doc/c-i370.texi: Likewise.
1132 * doc/c-i960.texi: Likewise.
1133 * doc/c-ia64.texi: Likewise.
1134 * doc/c-mmix.texi: Likewise.
1135 * doc/c-ns32k.texi: Likewise.
1136 * doc/c-pdp11.texi: Likewise.
1137 * doc/c-pj.texi: Likewise.
1138 * doc/c-sh64.texi: Likewise.
1139 * doc/c-sparc.texi: Likewise.
1140 * doc/c-tic54x.texi: Likewise.
1141 * doc/c-v850.texi: Likewise.
1142 * doc/c-vax.texi: Likewise.
1143 * doc/internals.texi: Likewise.
1145 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1147 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1148 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1149 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1150 arrange not to issue warnings about use of AT when AT is not
1153 2002-12-17 Nick Clifton <nickc@redhat.com>
1155 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1156 prevent it being confused with -k.
1158 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1160 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1161 has already been set up, use it.
1163 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1165 * ChangeLog-9295: Fix a typo.
1167 * config/tc-d10v.c: Fix a comment typo.
1168 * config/tc-dlx.c: Likewise.
1169 * config/tc-h8300.h: Likewise.
1170 * config/tc-h8500.h: Likewise.
1171 * config/tc-mips.c: Likewise.
1172 * config/tc-s390.c: Likewise.
1173 * config/tc-sh.h: Likewise.
1174 * config/tc-tic80.h: Likewise.
1175 * config/tc-w65.h: Likewise.
1176 * config/tc-z8k.c: Likewise.
1177 * config/tc-z8k.h: Likewise.
1178 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1180 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1182 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1183 Simplify sign extension. Remove redundant unsigned < 0 test.
1184 * config/tc-i960.c (md_ri_to_chars): Prototype.
1185 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1186 (dump_literals): Init brarsym, and test later instead of isforce.
1188 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1189 (parse): Constify line and lineptr.
1190 (md_begin): Calculate endop here.
1192 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1194 * config/obj-vms.c: Formatting. Include fnctl.h.
1195 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1196 (Object_Record_Offset): Make it a size_t.
1197 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1198 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1199 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1200 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1201 (vms_fixup_data_section <data_size>): Add here instead.
1202 * config/e-criself.c: Fix typo in last change.
1204 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1206 * write.c (write_object_file): Fix signed/unsigned warning.
1207 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1208 * config/e-criself.c (criself_bfd_name): Prototype.
1209 * config/obj-aout.c (s_sect): Remove unused function.
1210 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1211 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1212 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1213 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1214 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1215 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1216 (vms_fixup_text_section <text_siz>): Likewise.
1217 (synthesize_data_segment <data_size>): Likewise.
1218 (vms_fixup_xtors_section <sect_no>): Likewise.
1219 (structure_count): Don't use implicit int type.
1220 * config/tc-a29k.c (insert_sreg): Prototype.
1221 (define_some_regs): Prototype, make static.
1222 (parse_operand): Likewise.
1223 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1224 (md_show_usage <stream>): Likewise.
1225 (md_section_align <segment>): Likewise.
1226 (md_convert_frag <all args>): Likewise.
1227 (md_estimate_size_before_relax <all args>): Likewise.
1228 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1229 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1230 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1231 (md_undefined_symbol <name>): Likewise.
1232 (md_convert_frag <all args>): Likewise.
1233 (write_long <opcode>): Likewise.
1234 (tc_gen_reloc <seg>): Likewise.
1235 (md_estimate_size_before_relax <all args>): Likewise.
1236 (md_apply_fix3 <seg>): Likewise.
1237 (s_d30v_align <ignore>): Likewise.
1238 (build_insn): Correct format string.
1239 (md_apply_fix3): Likewise.
1240 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1241 (md_undefined_symbol <name>): Likewise.
1242 (md_convert_frag <all args>): Likewise.
1243 (md_cgen_lookup_reloc <insn>): Likewise.
1244 (md_begin): Delete unused vars.
1245 (md_assemble): Likewise.
1246 (md_estimate_size_before_relax): Likewise.
1247 (fr30_relax_frag): #if 0 out, seems unused.
1248 (md_atof): Remove declaration of atof_ieee.
1249 (restore_colon): Prototype.
1250 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1251 (frv_find_in_vliw): Likewise.
1252 (frv_debug_tomcat): Likewise.
1253 (frv_adjust_vliw_count): Likewise.
1254 (frv_tomcat_shuffle): Likewise.
1255 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1256 frv_find_in_vliw call.
1257 (md_atof): Remove declaration of atof_ieee.
1258 * config/tc-h8500.c (cons): Delete declaration.
1259 (md_begin <opcode>): Constify.
1260 (displacement_size, immediate_size, absolute_size): Remove.
1261 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1262 (tc_crawl_symbol_chain <headers>): Likewise.
1263 (md_undefined_symbol <name>): Likewise.
1264 (tc_headers_hook <headers>): Likewise.
1265 (md_parse_option <c,arg>): Likewise.
1266 (md_show_usage <stream>): Likewise.
1267 (md_convert_frag <headers, seg>): Likewise.
1268 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1269 (md_atof): Remove declaration of atof_ieee.
1270 (tc_aout_fix_to_chars): Remove unused function.
1271 (parse_reg): Prototype.
1272 (parse_exp): Prototype.
1273 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1274 (parse_reglist): Prototype.
1275 (get_operand): Prototype.
1276 (get_operands): Prototype.
1277 (get_specific): Prototype. Make "this_index" signed.
1278 (check): Prototype, make static.
1280 (build_relaxable_instruction): Prototype, make static.
1281 (build_bytes): Prototype.
1282 (wordify_scb): Prototype.
1283 * config/tc-h8500.h (start_label): Declare.
1284 (tc_coff_sizemachdep): Declare.
1285 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1286 (i370_rmode <unused>): Likewise.
1287 (i370_csect <unused>): Likewise.
1288 (i370_dc <unused>): Likewise.
1289 (i370_ds <unused>): Likewise.
1290 (i370_elf_lcomm <unused>): Likewise.
1291 (i370_ltorg <ignore>): Likewise.
1292 (i370_using <ignore>): Likewise.
1293 (i370_drop <ignore>): Likewise.
1294 (i370_byte <ignore>): Likewise.
1295 (i370_tc <ignore>): Likewise.
1296 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1297 (md_convert_frag <all args>): Likewise.
1298 (md_undefined_symbol <name>): Likewise.
1299 (md_pcrel_from_section <sec>): Likewise.
1300 (tc_gen_reloc <seg>): Likewise.
1301 (i370_section_letter): #if 0 unused functions.
1302 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1303 (symbol_locate): Prototype.
1304 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1305 (md_number_to_disp, md_number_to_field): Remove.
1306 (md_apply_fix3): Correct format string and cast "fup".
1307 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1308 (s_endian <ignore>): Likewise.
1309 (md_undefined_symbol <name>): Likewise.
1310 (tc_crawl_symbol_chain <headers>): Likewise.
1311 (tc_set_bal_of_call): Likewise.
1312 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1313 (i960_handle_align <fragp>): Likewise.
1314 (i960_validate_fix <this_segment_type>): Likewise
1315 (tc_gen_reloc <section>): Likewise.
1316 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1317 (struct memS, struct regop): Forward declare.
1318 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1319 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1320 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1321 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1322 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1323 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1324 (md_number_to_field): Likewise.
1325 (md_number_to_disp): Remove unused function.
1326 (md_atof): Remove declaration of atof_ieee.
1327 (md_apply_fix3): Correct md_number_to_imm call.
1328 * config/tc-ip2k.c (md_assemble): Warning fix.
1329 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1330 (fill_insn <ignore>): Likewise.
1331 (debug_sym <ignore>): Likewise.
1332 (md_undefined_symbol <name>): Likewise.
1333 (m32r_scomm <ignore>): Likewise.
1334 (md_convert_frag <abfd>): Likewise.
1335 (md_cgen_lookup_reloc <insn>): Likewise.
1336 (m32r_record_hi16 <seg>): Likewise.
1337 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1338 (allow_m32rx): Prototype.
1339 (first_writes_to_seconds_operands): Prototype.
1340 (writes_to_pc): Prototype.
1341 (can_make_parallel): Prototype.
1342 (make_parallel): Prototype.
1343 (target_make_parallel): Prototype.
1344 (assemble_two_insns): Prototype.
1345 (m32r_record_hi16): Prototype.
1346 (md_atof): Remove declaration of atof_ieee.
1347 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1348 (m32r_force_relocation): Prototype.
1349 (m32r_elf_section_change_hook): Prototype.
1350 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1351 (md_show_usage): Fix signed/unsigned warning.
1352 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1353 (calcop): Ditto for reg_prefix var.
1354 (hexval): Add cast to fix signed/unsigned warning.
1355 (md_number_to_disp): Delete unused function.
1356 (md_number_to_field): Likewise.
1357 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1358 (match_name): Prototype.
1359 (get_bf2): Prototype.
1360 (get_bf_offset_expression): Prototype.
1361 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1362 (md_undefined_symbol <ignore>): Likewise.
1363 (md_create_short_jump <all args>): Likewise.
1364 (md_create_long_jump <all args>): Likewise.
1365 (md_convert_frag <abfd, sec>): Likewise.
1366 (md_apply_fix3 <segment>): Likewise.
1367 (md_section_align <segment>): Likewise.
1368 (md_pcrel_from_section <sec>): Likewise.
1369 (tc_gen_reloc <section>): Likewise.
1370 (reg_m, reg_n, immediate): Delete unused vars.
1371 (dump_literals): Fix signed/unsigned warning.
1372 (enter_literal): Likewise.
1373 (parse_imm): Likewise. Also fix format string.
1374 (parse_mem): Remove unused var.
1375 (md_assemble <LS>): Abort on unexpected inst.
1376 (md_atof): Remove declaration of atof_ieee.
1377 (md_parse_option): Remove unused vars.
1378 (md_apply_fix3): Fix format strings, cast args.
1379 (tc_gen_reloc): Delete unused var.
1380 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1381 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1382 (md_undefined_symbol <name>): Likewise.
1383 (md_convert_frag <abfd>): Likewise.
1384 (tc_gen_reloc <seg>): Likewise.
1385 (check_operand <insn>): Likewise.
1386 (md_convert_frag): Fix format strings.
1387 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1388 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1389 (md_atof): Remove declaration of atof_ieee.
1390 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1391 (md_apply_fix3): Fix bogus >>='s.
1392 (md_undefined_symbol): Delete unused var.
1393 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1394 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1395 (fake_opcode): Adjust for pj_opc_int_t change.
1396 (md_begin): Likewise.
1397 (md_assemble): Likewise.
1398 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1399 instead of non-existent third arg of parse_exp_save_ilp.
1400 (md_parse_option): Correct "little" and "big" calls.
1401 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1402 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1403 (tc_gen_reloc <section>): Likewise.
1404 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1405 (debug): Rewrite using VA_* macros.
1406 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1407 (md_convert_frag): Likewise.
1408 (md_parse_option): Likewise.
1409 (md_show_usage): Likewise.
1410 (md_undefined_symbol): Likewise.
1411 (tc_gen_reloc): Likewise.
1412 (md_operand): Likewise.
1413 (tc_aout_pre_write_hook): Delete.
1414 (struct tic30_insn): Make "operands" unsigned.
1415 (struct tic30_par_insn): Likewise.
1416 (md_assemble): Likewise for "count", "i" and "numops".
1417 (tic30_parallel_insn): Likewise for vars here.
1418 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1419 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1420 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1421 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1422 (md_undefined_symbol): Likewise.
1423 (md_parse_option): Likewise.
1424 (md_convert_frag): Likewise.
1425 (tc_coff_symbol_emit_hook): Likewise.
1426 (md_atof): Remove declaration of atof_ieee.
1427 (const_overflow): Warning fixes, tidy.
1428 (get_operands): Delete unused vars.
1429 (internal_error_a): Adjust format string to expect a long for arg.
1430 (find_opcode): Warning fixes, simplify.
1431 (build_insn): Cast internal_error_a arg.
1432 (md_begin): Likewise.
1433 (md_apply_fix3): Likewise.
1434 (md_assemble): Delete unused var.
1435 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1436 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1437 (whatreg, parse_reg, parse_exp): Make static, prototype.
1438 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1439 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1440 (get_operand, get_operands, get_specific, newfix): Likewise.
1441 (apply_fix, build_bytes): Likewise.
1442 (md_atof): Remove declaration of atof_ieee.
1443 (tc_aout_fix_to_chars): Delete.
1444 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1446 (md_parse_option): Fix s_segm and s_unseg calls.
1448 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1450 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1452 (RELAX_BRANCH_RELOC_S2): Delete.
1453 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1454 Do not handle BFD_RELOC_16_PCREL.
1455 (macro_build, mips_ip): Likewise.
1456 (md_pcrel_from): Return 4 for undefined symbols regardless of
1458 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1459 Don't dereference howto if no such relocation is available.
1460 Do not apply hack for in-place zero addend in NEWABI.
1461 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1463 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1464 Alan Modra <amodra@bigpond.net.au>
1466 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1467 (TC_LINKRELAX_FIXUP): Add comments.
1469 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1471 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1473 (r_register_name, xr_register_name): Add prototype declarations.
1475 2002-12-08 H.J. Lu <hjl@gnu.org>
1477 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1478 copied from tc-i386.c.
1480 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1482 Fix Bug savannah/1825:
1483 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1484 (md_relax_table): Define specific relax for PC-rel offsets.
1485 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1486 (m68hc11_relax_frag): Handle the new relax code.
1487 (md_convert_frag): Likewise.
1488 (md_estimate_size_before_relax): Likewise.
1490 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1492 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1494 2002-12-05 Richard Henderson <rth@redhat.com>
1496 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1497 (ia64_gen_real_reloc_type): Handle it.
1498 (pseudo_func): Add @ltoffx.
1499 (md_begin): Build .<ltoffx>.
1500 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1502 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1504 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1505 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1506 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1507 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1508 COFF to call arm_force_relocation.
1510 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1512 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1514 (emit_one_bundle): Handle "hint" instruction.
1515 (operand_match): Match IA64_OPND_AR_CSD.
1517 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1519 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1522 2002-12-03 Nick Clifton <nickc@redhat.com>
1524 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1525 .PPC.EMB.apuinfo sections.
1527 2002-12-03 Richard Henderson <rth@redhat.com>
1529 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1531 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1533 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1534 (cons, s_align_bytes): Delete declaration.
1536 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1538 (dot): Delete unused function.
1539 (w65_expression): Remove unused arg.
1540 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1542 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1544 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1546 (check): Remove unused function.
1547 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1548 on unhandled switch case.
1549 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1551 (tc_crawl_symbol_chain): Delete unused function.
1552 (tc_headers_hook): Likewise.
1553 (tc_Nout_fix_to_chars): Likewise.
1554 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1555 (md_parse_option): Likewise.
1556 (md_convert_frag): Likewise.
1557 (tc_coff_symbol_emit_hook): Likewise.
1558 (md_show_usage): Likewise.
1559 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1560 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1561 (w65_expression): Declare.
1563 * po/POTFILES.in: Regenerate.
1565 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1566 and ARM_ADRL_IMMEDIATE.
1568 2002-12-02 Nick Clifton <nickc@redhat.com>
1570 * gasp.c: Delete. It has been deprecated.
1571 * NEWS: Mention that gasp has been removed.
1572 * Makefile.am: Remove references to gasp.
1573 * makefile.vms: Likewise.
1574 * mpw-make.sed: Likewise.
1575 * Makeile.in: Regenerate.
1576 * doc/gasp.texi: Delete.
1577 * doc/Makefile.am: Remove references to gasp.texi.
1578 * doc/Makefile.in: Regenerate.
1579 * macro.c: Delete references to gasp.
1580 Remove use of comment_char function parameter as it is no longer
1582 * macro.h: Update prototypes to remove comment_char parameter.
1584 * read.c (read_a_source_file, s_irp): Remove comment_char
1585 parameter from invocation of functions in macro.c
1587 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1589 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1591 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1593 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1594 (tc_gen_reloc): Mark section param as not used.
1596 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1598 Fix Bug savannah/1825:
1599 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1600 that are not pc-relative.
1601 (m68hc11_relax_frag): Declare.
1603 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1604 the offsetable indexed addressing modes (n,r).
1605 (build_insn): Cleanup some locals.
1606 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1607 relaxation of difference between two symbols of same section.
1608 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1609 only when this is a PC-relative operand and the offset is not absolute.
1610 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1611 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1612 be handled by m68hc11_relax_frag.
1614 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1616 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1617 (32-bit int, 64-bit double).
1618 (md_longopts): New options -mshort, -mlong, -mshort-double and
1619 -mlong-double to control the ABI.
1620 (md_show_usage): Update.
1621 (md_parse_option): Handle new options.
1622 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1624 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1626 * symbols.c (report_op_error): New function, broken out of ...
1627 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1630 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1632 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1633 for BFD_RELOC_32_PLT_PCREL.
1635 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1637 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1638 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1639 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1640 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1641 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1642 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1643 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1644 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1645 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1646 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1647 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1648 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1649 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1650 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1651 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1652 TRUE/FALSE. Formatting.
1654 2002-11-29 Nick Clifton <nickc@redhat.com>
1656 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1657 assume a value of zero.
1658 (do_bkpt): Likewise.
1660 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1662 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1663 for TLS relocations.
1665 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1667 * config/tc-ia64.c (md_apply_fix3): Add default case.
1669 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1671 * symbols.c (S_SET_THREAD_LOCAL): New function.
1672 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1673 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1674 for TLS relocations.
1675 * config/tc-ia64.c (md_apply_fix3): Likewise.
1676 * config/tc-alpha.c (md_apply_fix3): Likewise.
1678 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1680 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1683 2002-11-26 DJ Delorie <dj@redhat.com.
1685 * dwarf2dbg.c (scale_addr_delta): New.
1686 (size_inc_line_addr): Use it.
1687 (emit_inc_line_addr): Use it.
1689 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1691 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1692 (md_assemble): Don't pass on branches to constants as relaxable.
1695 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1697 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1699 2002-11-21 Randolph Chung <randolph@tausq.org>
1701 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1702 only if they have default visibility.
1704 2002-11-21 Richard Henderson <rth@redhat.com>
1706 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1709 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1711 * config/tc-mcore.c (mcore_pool_count): New function.
1712 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1714 2002-11-20 Klee Dienes <kdienes@apple.com>
1716 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1717 coalesce the name fields to use the same pointer.
1719 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1720 the name fields to use the same pointer.
1721 (get_specific): Check for opcodes with the same name using strcmp
1722 as well as comparing the pointer.
1724 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1726 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1729 2002-11-19 Richard Henderson <rth@redhat.com>
1731 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1732 visibility portion of st_other.
1734 2002-11-19 Klee Dienes <kdienes@apple.com>
1736 * config/tc-h8300.c (struct h8_instruction): New type, used to
1737 wrap h8_opcodes with length, noperands, idx, and size fields
1738 (computed at run-time).
1739 (h8_instructions): New variable.
1740 (md_begin): Allocate the storage for h8_instructions. Fill
1741 h8_instructions with pointers to the appropriate opcode and the
1742 correct value for the additional fields.
1743 (clever_message): Update to use h8_instructions instead of
1745 (build_bytes): Ditto.
1746 (get_specific): Ditto.
1747 (md_assemble): Ditto.
1749 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1751 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1752 adjustments to symbols in merge sections.
1754 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1756 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1758 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1760 * dwarf2dbg.h (dwarf2_format): New enum.
1761 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1762 (out_debug_line, out_debug_info): Add code for handling 64-bit
1764 * config/tc-mips.h (mips_dwarf2_format): Declare.
1765 * config/tc-mips.c (mips_dwarf2_format): New function.
1766 * doc/internals.texi (DWARF2_FORMAT): Document.
1768 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1770 * config/tc-mips.c (s_change_section): Make sure input buffer
1771 is not accessed past the end. Don't hand
1772 obj_elf_change_section a pointer into the input buffer.
1774 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1776 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1779 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1781 * config/tc-tic4x.c: Fixed proper commandline
1782 parameters. Added support for new opcode-list format. General
1783 error message fixups.
1784 (c4x_inst_add): Reject insn not for our CPU
1785 (md_begin): Added matrix for setting the proper opcode-level &
1786 device-flags according to cpu type and revision. Rewrite the
1788 (c4x_operand_parse): Fix opcode bug
1789 (c4x_operands_match): New function argument. Added dry-run
1790 mechanism, that is optional error generation. Added constraint 'i'
1792 (c4x_insn_check): Added new function for post-verification of the
1794 (md_assemble): Check all opcodes before croaking because of an
1795 argument mismatch. Need this to be able to fully support
1796 ortogonally arguments.
1797 (md_parse_options): Revised commandprompt swicthes and added new
1799 (md_show_usage): Complete rewrite of printout.
1801 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1803 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1804 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1805 warning when using constant direct bigger than 2^16. Add the new
1808 2002-11-11 Christopher Faylor <cgf@redhat.com>
1810 * configure.in: Use .gdbinit under Cygwin.
1811 * configure: Regenerate.
1813 2002-11-11 Christopher Faylor <cgf@redhat.com>
1815 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1818 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1820 * config/tc-tic4x.c: Declare as many functions as possible as
1821 static. Maintenance on the general indenting. Removed unnecessary
1822 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1823 function. Add support for new DSP, TMS320VC33. Fix bug for
1824 converting flonum constants.
1825 (c4x_do_align): Add proper align handling. Setup align to insert
1827 (c4x_gen_to_words): Support for extended TI type floats.
1828 (md_atof): Proper dumping of multiple-word littlenums.
1829 (c4x_atof): Added support for extended TI type floats.
1830 (c4x_stringer): Added new function to handle compact strings.
1831 (c4x_emit_char): Added new function argument to handle custom
1832 length inserts, like single-byte strings.
1833 * config/tc-tic4x.h: Add proper align handling with NOP's.
1834 * Makefile.am: Added tic4x dependecy
1835 * Makefile.in: Regenerate
1837 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1839 * macro.c (get_any_string): Correct logic for not going beyond end
1842 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1844 * config/tc-mmix.c (get_putget_operands): Mark both possible
1845 operands as invalid at beginning.
1847 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1848 Initialize target of fixup to zero.
1850 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1852 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1853 NEWABI, but we should still emit HI16_S for non-PIC n32.
1855 2002-11-06 Richard Henderson <rth@redhat.com>
1857 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1858 (alpha_fix_adjustable): ... here.
1859 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1861 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1863 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1866 2002-11-05 H.J. Lu <hjl@gnu.org>
1868 * config/tc-mips.c (support_64bit_objects): Check *l before it
1871 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1873 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1874 SEC_LOAD flags for sections marked as 's'.
1876 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1878 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1879 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1880 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1883 * dep-in.sed: Fix typo.
1885 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1887 * configure.in: Update ARM CPU patterns.
1888 * configure: Regenerated.
1890 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1892 * itbl-lex.l: Use #include <> for generated headers.
1893 * itbl-ops.c: Likewise.
1895 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1897 * doc/gasp.texi: Fix typo in deprecation note.
1899 2002-10-23 Nick Clifton <nickc@redhat.com>
1901 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1902 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1904 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1906 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1907 (tc_frob_file_before_adjust): Don't define.
1908 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1910 (mmix_frob_file_before_adjust): Remove ineffective function.
1912 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1914 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1915 (cris_relax_frag): New function.
1916 (md_estimate_size_before_relax) <case ENCODE_RELAX
1917 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1918 expressions that will become absolute expressions to relaxation.
1919 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1920 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1921 value, not distance to symbol.
1922 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1923 Ditto. Correct placement of fixup.
1924 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1926 * config/tc-cris.h (cris_relax_frag): Declare.
1927 (md_relax_frag): Define.
1929 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1931 * config/obj-elf.c (special_sections): Use correct types for init
1933 (obj_elf_change_section): Don't mess with init array section type.
1935 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1937 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1938 for relocs against symbols in a merged section.
1940 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1942 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1943 table as register names.
1945 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1947 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1950 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1952 * expr.c (operand): Add support for n.nn flonums.
1954 2002-10-17 Johannes Stezenbach <js@convergence.de>
1956 * itbl-parse.y (entry): Provide empty action.
1958 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1960 * configure.in (BFDVER_H): Set and subst.
1961 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1962 * Makefile.am: Run "make dep-am".
1964 * configure: Regenerate.
1965 * Makefile.in: Regenerate.
1966 * doc/Makefile.in: Regenerate.
1968 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1970 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1971 (MD_APPLY_SYM_VALUE): Define for PE too.
1973 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1975 * Makefile.am: Run "make dep-am".
1976 (CPU_OBJ_VALID): sh64 coff is invalid.
1977 * as.c: #include "bfdver.h".
1978 * Makefile.in: Regenerate.
1979 * config.in: Regenerate.
1981 2002-10-14 Momchil Velikov <velco@fadata.bg>
1983 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1985 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1987 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1988 * configure: Regenerate.
1990 2002-10-13 Eric Christopher <echristo@redhat.com>
1991 Alexandre Oliva <aoliva@redhat.com>
1993 * config/tc-mips.c (s_gpdword): New function.
1994 (mips_pseudo_table): Add .gpdword.
1995 (mips_need_elf_addend_fixup): never for NEWABI.
1996 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1998 (s_cpadd): Generate .cpadd on NEWABI.
2000 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2002 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2004 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2006 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2007 (md_relax_frag): Adjust macro.
2008 * config/tc-mips.c (mips_relax_branch): New variable.
2009 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2010 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2011 (RELAX_MIPS16_P): Adjust.
2012 (append_insn): Emit branch to non-constant in a frag_var if
2013 branch-relaxation is desirable and possible.
2014 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2015 (OPTION_ELF_BASE): Adjust.
2016 (md_parse_option): Handle new options.
2017 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2019 (relaxed_branch_length): New function.
2020 (md_estimate_size_before_relax): Handle branch frags.
2021 (mips_relax_frag): Likewise.
2022 (md_convert_frag): Handle branch frags. Warn if branch is
2025 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2027 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2029 (md_apply_fix3): Add TLS relocs.
2030 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2033 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2034 Alan Modra <amodra@bigpond.net.au>
2036 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2037 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2039 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2041 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2044 2002-10-09 Richard Shann <richard.shann@superh.com>
2045 Stephen Clarke <stephen.clarke@superh.com>
2047 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2050 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2052 * contig/tc-sh.c (sh_local_pcrel): New.
2053 (sh_force_relocation): Use sh_local_pcrel.
2054 (md_pcrel_from_section): Check the relocation type whether it
2055 should be resolved locally. Use S_FORCE_RELOC.
2057 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2059 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2060 (TC_FORCE_RELOCATION): Tidy arg.
2062 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2063 Ken Raeburn <raeburn@cygnus.com>
2064 Aldy Hernandez <aldyh@redhat.com>
2065 DJ Delorie <dj@redhat.com>
2066 Michael Meissner <meissner@redhat.com>
2067 Eric Christopher <echristo@redhat.com>
2068 Richard Sandiford <rsandifo@redhat.com>
2070 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2071 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2072 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2073 (hilo_interlocks): True for CPU_VR5500.
2074 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2075 (mips_fix_vr4122_bugs): New.
2076 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2077 (mips_emit_delays): Likewise.
2078 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2079 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2080 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2081 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2082 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2083 (OPTION_ELF_BASE): Bump.
2084 (md_parse_option): Handle the new options.
2085 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2088 2002-09-29 H.J. Lu <hjl@gnu.org>
2090 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2091 twice if howto->pcrel_offset is true.
2093 2002-09-28 Matt Thomas <matt@3am-software.com>
2094 Jason Thorpe <thorpej@wasabisystems.com>
2096 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2097 convert undefined references to GOT32/PLT32 if PIC code is
2098 requested. Fix comment.
2100 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2102 * config/tc-sh.c (sh_force_relocation): Return 0 for
2103 some PC relative relocations when not relaxing.
2105 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2107 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2108 Define them if not BFD_ASSEMBLER.
2109 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2111 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2112 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2113 (tc_gen_reloc): Handle x86-64 TLS relocs.
2115 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2117 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2118 fixups to current or absolute section.
2120 2002-09-26 Jim Wilson <wilson@redhat.com>
2122 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2125 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2127 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2128 capable configuration.
2129 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2131 (mips_ip): Likewise.
2133 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2135 * config/tc-mips.c (append_insn): Fix jump overflow check.
2137 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2139 * config/tc-i386.c (process_operands): Warn about "lea" segment
2142 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2144 * write.c: Delete set_segment_vma and prototype. Update all callers.
2146 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2148 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2149 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2150 Rename "fseg" to "sym_seg".
2151 * Makefile.am: Run "make dep-am".
2152 * Makefile.in: Regenerate.
2153 * doc/Makefile.in: Regenerate.
2155 2002-09-20 Nick Clifton <nickc@redhat.com>
2157 * symbols.c (colon): Do not allow symbols to be created in the
2158 absolute section if WORKING_DOT_WORD is not defined and
2159 new_broken_words would require a new frag to be created.
2161 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2163 * expr.c (expr): Simplify foo-foo here.
2164 (clean_up_expression): Remove O_subtract code.
2166 * write.h (struct fix): Add fx_dot_value.
2167 (dot_value): Declare.
2168 * write.c (dot_value): New var.
2169 (fix_new_internal): Save dot_value as fx_dot_value.
2170 (fixup_segment): Adjust fx_offset using fx_dot_value.
2171 * expr.c (expr): Update dot_value.
2173 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2175 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2176 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2177 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2179 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2180 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2181 BFD_RELOC_386_TLS_GOTIE.
2183 2002-09-19 Richard Henderson <rth@redhat.com>
2185 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2187 (alpha_force_relocation): Don't special-case branch type relocs.
2189 2002-09-19 Nick Clifton <nickc@redhat.com>
2191 * config/tc-m68k.c (select_control_regs): Handle situation where
2192 architecture has not yet been selected.
2194 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2196 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2197 (IS_SEXT_16BIT_NUM): New macro.
2198 (macro_build_ldst_constoffset): New function, to build a set of
2199 instructions to do a load or store from a constant offset relative
2200 to a given register.
2201 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2202 .cprestore pseudo-op.
2204 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2206 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2208 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2210 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2212 2002-09-17 Stan Cox <scox@redhat.com>
2214 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2215 (macro): Likewise for la. Likewise for ld.
2216 (mips_after_parse_args): Make -xgot optional, not the default.
2217 (md_apply_fix3): Allow composite relocation to set up gp.
2218 (tc_gen_reloc): Allow relaxing for newabi.
2219 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2220 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2222 2002-09-17 Nick Clifton <nickc@redhat.com>
2224 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2225 BFD_RELOC_ARM_IMMEDIATE has been done.
2226 (tc_gen_reloc): Do not issue reloc number of unimplemented
2227 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2228 their name is already in the error message - plus remove them
2229 from the default case.
2231 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2232 behavior of instructions.
2234 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2236 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2237 Convert functions to K&R format.
2239 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2241 * config/tc-mips.c (pdr_seg): Define only for ELF.
2242 (s_change_section): Remove unused variable. Don't use for nonELF.
2244 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2246 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2248 * config/obj-elf.h (obj_elf_change_section): Likewise.
2250 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2252 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2253 (out_debug_info): Likewise.
2255 2002-09-16 Bruno Haible <bruno@clisp.org>
2257 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2258 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2259 * config/tc-i386.c (i386_target_format): Likewise.
2260 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2261 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2263 2002-09-13 Nick Clifton <nickc@redhat.com>
2265 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2266 when deciding if any operands have been skipped.
2268 2002-09-11 Nick Clifton <nickc@redhat.com>
2270 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2272 * po/tr.po: Updated Turkish translation.
2274 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2276 * config/tc-i386.c (md_apply_fix3): Allow addend for
2277 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2278 BFD_RELOC_386_TLS_LE_32.
2280 2002-09-05 Jeff Law <law@redhat.com>
2282 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2283 marker relocations such as ENTRY/EXIT.
2284 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2285 to both OBJ_ELF and OBJ_SOM.
2287 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2289 * doc/internals.texi (md_apply_fix3): Expand.
2290 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2291 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2292 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2293 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2294 EXTERN_FORCE_RELOC): Document.
2295 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2296 * as.h: Don't include struc-symbol.h for arc.
2298 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2299 subtract absolute symbol.
2300 * obj.h (struct format_ops): Add frob_file_before_fix.
2301 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2302 * symbols.c (S_FORCE_RELOC): New function.
2303 * symbols.h (S_FORCE_RELOC): Declare.
2304 * write.c (TC_FORCE_RELOCATION): Change default.
2305 (TC_FORCE_RELOCATION_ABS): Define.
2306 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2307 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2308 (TC_FORCE_RELOCATION_SECTION): Don't define.
2309 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2310 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2311 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2312 (TC_VALIDATE_FIX_SUB): Define.
2313 (TC_FIX_ADJUSTABLE): Don't define.
2314 (MD_APPLY_SYM_VALUE): Define this instead.
2315 (abs_section_sym): New variable.
2316 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2317 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2318 Don't put the absolute section sym on fixups here.
2319 (fix_segment): New function.
2320 (write_relocs): Don't call fixup_segment from here.
2321 (write_object_file): Instead call tc_frob_file_before_fix,
2322 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2323 Don't output the absolute section symbol.
2324 (fixup_segment): Rewrite.
2325 * write.h (abs_section_sym): Declare.
2326 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2328 (aout_format_ops): Adjust to suit.
2329 * config/obj-aout.h (obj_frob_file): Don't define.
2330 (obj_frob_file_before_fix): Define.
2331 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2332 (S_FORCE_RELOC): Define.
2333 * config/obj-bout.h (S_FORCE_RELOC): Define.
2334 * config/obj-coff.c (coff_format_ops): Init new field.
2335 * config/obj-coff.h: Formatting fixes.
2336 (obj_sec_sym_ok_for_reloc): Define.
2337 (S_FORCE_RELOC): Define.
2338 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2339 (ecoff_frob_file): .. from here.
2340 (ecoff_format_ops): Add new function.
2341 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2342 (obj_frob_file_before_fix): Define.
2343 * config/obj-elf.c (elf_format_ops): Init new field.
2344 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2345 * config/obj-ieee.h: Formatting fixes.
2346 (S_FORCE_RELOC): Define.
2347 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2348 * config/obj-vms.h (S_FORCE_RELOC): Define.
2349 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2350 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2351 for BFD_RELOC_32 and BFD_RELOC_64.
2352 (alpha_fix_adjustable): Remove extern and weak tests.
2353 (alpha_before_fix): Rename from alpha_adjust_symtab.
2354 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2355 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2356 (TC_VALIDATE_FIX): Tweak param name.
2357 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2358 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2359 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2360 (MD_APPLY_SYM_VALUE): Define.
2361 (tc_adjust_symtab): Don't define.
2362 (alpha_adjust_symtab): Don't declare.
2363 (tc_frob_file_before_fix): Define.
2364 (alpha_before_fix): Declare.
2365 (TC_INIT_FIX_DATA): Tweak param names.
2366 * config/tc-arc.c: Include "struc-symbol.h".
2367 (md_pcrel_from): Remove undefined sym fudge.
2368 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2369 Don't set fx_addnumber.
2370 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2371 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2372 (EXTERN_FORCE_RELOC): Define.
2373 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2374 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2375 (arm_validate_fix): Return void.
2376 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2377 Add plt and got reloc tests.
2378 (arm_force_relocation): Call S_FORCE_RELOC.
2379 * config/tc-arm.h (struct fix): Forward declare.
2380 (TC_VALIDATE_FIX): No longer set add_symbolP.
2381 (arm_validate_fix): Adjust declaration.
2382 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2383 (TC_FORCE_RELOCATION): Tweak param name.
2384 (TC_INIT_FIX_DATA): Likewise.
2385 (obj_fix_adjustable): Don't define.
2386 (tc_fix_adjustable): Call arm_fix_adjustable.
2387 (TC_FIX_ADJUSTABLE): Don't define.
2388 (MD_APPLY_SYM_VALUE): Define.
2389 (EXTERN_FORCE_RELOC): Define.
2390 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2391 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2392 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2393 Remove *valP fudges and code to subtract abs sym. Don't set
2395 * config/tc-avr.h: Formatting.
2396 (EXTERN_FORCE_RELOC): Define.
2397 (MD_APPLY_SYM_VALUE): Define.
2398 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2399 (md_apply_fix3): Remove code to subtract abs sym.
2400 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2401 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2402 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2403 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2404 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2405 (tc_fix_adjustable): Remove extern, weak tests.
2406 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2407 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2408 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2409 and code to subtract abs sym.
2410 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2411 (d10v_force_relocation): Call S_FORCE_RELOC.
2412 * config/tc-d10v.h: Don't include write.h.
2413 (struct fix): Instead, forward declare.
2414 (MD_PCREL_FROM_SECTION): Tweak param names.
2415 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2416 (d10v_fix_adjustable): Likewise.
2417 (obj_fix_adjustable): Don't define.
2418 (tc_fix_adjustable): Define.
2419 (TC_FORCE_RELOCATION): Tweak param name.
2420 (MD_APPLY_SYM_VALUE): Define.
2421 (EXTERN_FORCE_RELOC): Define.
2422 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2423 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2424 and code to subtract abs sym.
2425 * config/tc-d30v.h: Don't include write.h.
2426 (struct fix): Instead, forward declare.
2427 (MD_PCREL_FROM_SECTION): Tweak param names.
2428 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2429 (MD_APPLY_SYM_VALUE): Define.
2430 (EXTERN_FORCE_RELOC): Define.
2431 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2432 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2433 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2434 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2435 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2436 Don't use fx_addnumber.
2437 * config/tc-dlx.h: Don't include write.h.
2438 (md_convert_frag): We're not alpha twice over.
2439 (EXTERN_FORCE_RELOC): Define.
2440 (obj_fix_adjustable): Don't define.
2441 (tc_fix_adjustable): Define.
2442 (TC_FIX_ADJUSTABLE): Don't define.
2443 (MD_APPLY_SYM_VALUE): Define.
2444 (LOCAL_LABELS_DOLLAR): Undef always.
2445 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2446 (fr30_fix_adjustable): Remove extern, weak tests.
2447 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2448 (obj_fix_adjustable): Don't define.
2449 (tc_fix_adjustable): Define.
2450 (struct fix): Forward declare.
2451 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2452 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2453 (frv_fix_adjustable): Don't do extern, weak tests.
2454 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2455 (TC_FIX_ADJUSTABLE): Don't define.
2456 (obj_fix_adjustable): Don't define.
2457 (tc_fix_adjustable): Define.
2458 (struct fix): Forward declare.
2459 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2460 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2461 * config/tc-h8300.h (struct fix): Forward declare.
2462 (EXTERN_FORCE_RELOC): Define.
2463 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2464 (hppa_fix_adjustable): Don't test extern or weak. Don't
2465 symbol_mark_used_in_reloc.
2466 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2468 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2469 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2470 (TC_FORCE_RELOCATION_SECTION): Don't define.
2471 (MD_APPLY_SYM_VALUE): Define.
2472 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2473 to subtract abs sym.
2474 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2475 (MD_APPLY_SYM_VALUE): Define.
2476 (MD_PCREL_FROM_SECTION): Tweak param name.
2477 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2478 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2479 (i386_force_relocation): New function.
2480 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2481 (TC_VALIDATE_FIX): Likewise.
2482 (TC_FIX_ADJUSTABLE): Don't define.
2483 (MD_APPLY_SYM_VALUE): Define.
2484 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2485 (i386_force_relocation): Declare.
2486 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2487 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2488 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2489 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2490 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2491 (EXTERN_FORCE_RELOC): Define.
2492 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2493 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2494 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2495 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2496 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2497 Remove #if 0 code. Invert return boolean.
2498 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2499 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2500 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2501 (tc_coff_sizemachdep): Prototype.
2502 (i960_handle_align): Likewise.
2503 (i960_validate_fix): Adjust declaration.
2504 (reloc_callj): Likewise.
2505 (EXTERN_FORCE_RELOC): Define.
2506 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2507 (TC_FORCE_RELOCATION_ABS): Define.
2508 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2509 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2510 (TC_FIX_ADJUSTABLE): Don't define.
2511 (MD_APPLY_SYM_VALUE): Define.
2512 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2513 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2514 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2515 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2516 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2517 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2518 (MD_APPLY_SYM_VALUE): Define.
2519 (EXTERN_FORCE_RELOC): Define.
2520 (TC_FORCE_RELOCATION): Tweak param name.
2521 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2522 (m32r_fix_adjustable): Don't test extern, weak.
2523 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2524 (MD_APPLY_SYM_VALUE): Define.
2525 (obj_fix_adjustable): Don't define.
2526 (tc_fix_adjustable): Define.
2527 (tc_frob_file): Don't define.
2528 (tc_frob_file_before_fix): Define.
2529 (EXTERN_FORCE_RELOC): Define.
2530 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2531 BFD_RELOC_VTABLE_ENTRY address.
2532 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2533 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2534 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2535 Remove duplicated fx_done code.
2536 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2537 (EXTERN_FORCE_RELOC): Define.
2538 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2540 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2541 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2542 (TC_FIX_ADJUSTABLE): Don't define.
2543 (EXTERN_FORCE_RELOC): Define.
2544 (MD_APPLY_SYM_VALUE): Define.
2545 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2546 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2547 Remove fx_addsy tests.
2548 (mcore_force_relocation): Call S_FORCE_RELOC.
2549 (mcore_fix_adjustable): Don't test fx_addsy.
2550 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2551 (EXTERN_FORCE_RELOC): Define.
2552 (obj_fix_adjustable): Don't define.
2553 (tc_fix_adjustable): Define.
2554 (MD_APPLY_SYM_VALUE): Define.
2555 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2556 (mips_pic): No longer static.
2557 (mips_force_relocation): Call S_FORCE_RELOC.
2558 (mips_fix_adjustable): Remove extern, weak tests.
2559 * config/tc-mips.h (enum mips_pic_level): Declare.
2560 (mips_pic): Declare.
2561 (tc_frob_file): Don't define.
2562 (tc_frob_file_before_fix): Define this instead.
2563 (EXTERN_FORCE_RELOC): Define.
2564 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2565 with reg_section tests. Set fx_done instead of calling
2566 symbol_clear_used_in_reloc on bad relocs.
2567 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2568 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2569 (mmix_adjust_symtab): Simplify list handling. Abort on any
2571 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2572 BFD_RELOC_MMIX_LOCAL.
2573 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2574 (EXTERN_FORCE_RELOC): Define.
2575 (MD_PCREL_FROM_SECTION): Tweak param name.
2576 (tc_frob_file): Don't define.
2577 (tc_frob_file_before_fix): Define this instead.
2578 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2579 Remove SEC_CODE checks.
2580 (mn10300_fix_adjustable): Remove extern and weak tests.
2581 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2582 (TC_FORCE_RELOCATION): Tweak param name.
2583 (obj_fix_adjustable): Don't define.
2584 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2585 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2586 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2587 (openrisc_fix_adjustable): Don't test fx_addsy.
2588 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2589 (obj_fix_adjustable): Don't define.
2590 (tc_fix_adjustable): Define this instead.
2591 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2592 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2593 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2594 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2595 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2596 (MD_APPLY_SYM_VALUE): Define.
2597 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2598 Don't subtract symbol value.
2599 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2600 (EXTERN_FORCE_RELOC): Define.
2601 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2602 (MD_APPLY_SYM_VALUE): Define.
2603 (obj_fix_adjustable): Don't define.
2604 (tc_fix_adjustable): Define this instead.
2605 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2607 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2608 (ppc_force_relocation <elf version>): New.
2609 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2610 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2611 comments. Don't subtract fx_subsy as that is already done.
2612 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2613 (MD_PCREL_FROM_SECTION): Likewise.
2614 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2615 ppc_force_relocation.
2616 (TC_FORCE_RELOCATION_SECTION): Delete.
2617 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2618 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2619 (MD_APPLY_SYM_VALUE): Define.
2620 * config/tc-s390.c: #include "dwarf2dbg.h".
2621 (s390_insn): Remove excess parens.
2622 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2623 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2624 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2625 non-NULL. Don't subtract off fx_addsy value.
2626 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2627 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2628 (TC_FIX_ADJUSTABLE): Don't define.
2629 (MD_APPLY_SYM_VALUE): Define.
2630 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2631 (SWITCH_TABLE): Likewise.
2632 (sh_force_relocation): Call S_FORCE_RELOC.
2633 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2634 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2635 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2636 fx_addnumber is zero on entry. Save val in fx_addnumber.
2637 (tc_gen_reloc): Don't subtract fx_subsy.
2638 * config/tc-sh.h (struct fix): Move.
2639 (obj_fix_adjustable): Don't define.
2640 (tc_fix_adjustable): Define this instead.
2641 (TC_FIX_ADJUSTABLE): Don't define.
2642 (MD_APPLY_SYM_VALUE): Define.
2643 (SWITCH_TABLE_CONS): Define.
2644 (SWITCH_TABLE): Define.
2645 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2646 (TC_VALIDATE_FIX_SUB): Define.
2647 (MD_PCREL_FROM_SECTION): Tweak param name.
2648 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2649 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2650 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2651 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2652 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2653 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2654 (TC_VALIDATE_FIX_SUB): Define.
2655 (MD_PCREL_FROM_SECTION): Tweak param name.
2656 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2657 (tc_gen_reloc): Use S_FORCE_RELOC.
2658 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2659 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2660 (TC_FORCE_RELOCATION_ABS): Define this instead.
2661 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2662 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2663 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2664 (MD_APPLY_SYM_VALUE): Define.
2665 (TC_FIX_DATA_PRINT): Tweak param name.
2666 * config/tc-tic30.c (USE_STDOUT): Don't define.
2667 (md_parse_option): Remove stupid debug code.
2668 (tc_gen_reloc): Don't use fx_addnumber.
2669 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2670 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2671 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2672 (tc_fix_adjustable): Define this instead.
2673 (TC_FIX_ADJUSTABLE): Don't define.
2674 (MD_APPLY_SYM_VALUE): Define this instead.
2675 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2676 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2677 (TC_FIX_ADJUSTABLE): Don't define.
2678 (MD_APPLY_SYM_VALUE): Define this instead.
2679 (tc_fix_adjustable): Remove extern and weak tests.
2680 * config/tc-w65.h (struct fix): Forward declare.
2681 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2683 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2684 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2685 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2687 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2688 (MD_APPLY_SYM_VALUE): Define.
2689 (obj_fix_adjustable): Don't define.
2690 (tc_fix_adjustable): Define this instead.
2691 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2693 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2695 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2696 (ppc_fix_adjustable <coff version>): Cleanup.
2698 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2699 (md_parse_option): No -a64 without BFD64.
2700 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2701 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2703 2002-09-04 Nick Clifton <nickc@redhat.com>
2705 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2706 instructions into the hash table if the target cpu is the BookE32.
2708 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2710 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2713 2000-08-28 Catherine Moore <clm@redhat.com>
2715 * tc-v850.c (v850_relax): Declare.
2716 (v850_longcode): New routine.
2717 (v850_handle_align): New routine.
2718 (md_pseudo_table): Add longcall and longjump.
2719 (md_parse_option): Check for relax option.
2720 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2721 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2722 (md_apply_fix3): Likewise.
2723 (v850_force_relocation): Likewise.
2724 (v850_comm): Change the current section.
2725 (md_assemble): Ensure that the correct value is put in the
2727 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2728 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2729 Remove redundant v850ea support.
2730 * tc-v850.h (HANDLE_ALIGN): Define.
2731 (v850_handle_align): Declare.
2732 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2734 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2736 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2737 * configure: Regenerate.
2738 * NEWS: Mention new port.
2740 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2742 * config/obj-coff.c: Add sdef definition.
2743 * config/obj-coff.h: Add tic4x include file and set
2745 * config/tc-tic4x.c: New file.
2746 * config/tc-tic4x.h: New file.
2748 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2750 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2751 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2752 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2753 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2754 (RELOC_ENUM): Define.
2755 (fix_new_internal): Use RELOC_ENUM.
2756 (fix_new, fix_new_exp): Likewise.
2757 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2758 Replace gotos with continue.
2759 (write_relocs): Formatting. Avoid symbol loops in
2760 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2761 errors, and error number in other cases.
2762 (fixup_segment): Remove param names from prototype. Rename
2763 "this_segment_type" to "this_segment". Update linkrelax comment.
2764 Remove "size, "place" and "where" local vars. Formatting. Update
2765 "no symbol" comment. Remove #if 0 and #if 1.
2767 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2769 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2771 * dwarf2dbg.c: Always include dwarf2dbg.h.
2772 (dwarf2_directive_file): Adjust dummy version args.
2773 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2774 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2775 when symbol values differ.
2776 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2777 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2778 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2780 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2782 * config/tc-w65.c (md_section_align): Fix typo.
2783 (md_parse_option): Return 0, not 1.
2785 2002-08-22 Nick Clifton <nickc@redhat.com>
2787 * doc/as.texinfo (Section): Note that if '@' is a comment
2788 character then another symbol is used to prefix the section's
2791 2002-08-22 Christian Groessler <chris@groessler.org>
2793 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2796 2002-08-12 Graeme Peterson <gp@qnx.com>
2798 * configure.in: Add support for sh-**-nto* target.
2799 * configure: Regenerate.
2801 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2803 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2805 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2807 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2809 (ppc_apuinfo_section_add): Define only if format is ELF.
2810 (md_assemble): Emit APUinfo section only if format is ELF.
2813 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2815 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2816 * config/tc-frv.c: Likewise.
2817 * config/tc-hppa.c: Likewise.
2818 * config/tc-ia64.c: Likewise.
2819 * config/tc-ip2k.c: Likewise.
2820 * config/tc-m68hc11.c: Likewise.
2821 * config/tc-m68k.c: Likewise.
2822 * config/tc-mmix.c: Likewise.
2823 * config/tc-mn10300.c: Likewise.
2824 * config/tc-sh.c: Likewise.
2825 * config/tc-sparc.c: Likewise.
2826 * config/tc-v850.c: Likewise.
2828 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2830 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2833 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2835 From matthew green <mrg@redhat.com>
2837 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2838 PPC_OPCODE_PPC is, except for BookE architectures.
2839 (md_parse_option): Add support for -mspe.
2840 (md_show_usage): Add -mspe.
2841 (md_parse_option): Add support for -me500 and
2842 -me500x2 to generate code for Motorola e500 core complex.
2843 (md_show_usage): Add -me500 and -me500x2.
2845 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2846 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2847 PPC_APUINFO_BRLOCK): New macros.
2849 (ppc_cleanup): New function.
2850 (ppc_apuinfo_section_add): New function.
2852 (md_assemble): Collect info and write the APUinfo section.
2854 * config/tc-ppc.h (md_cleanup): Define.
2855 (ppc_cleanup): Export.
2856 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2858 2002-08-17 Stan Cox <scox@redhat.com>
2860 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2861 config/tc-mips.c (s_change_section): New function to support
2862 IRIX .section pseudo-op.
2864 2002-08-16 Nick Clifton <nickc@redhat.com>
2866 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2868 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2870 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2871 the fix-up against on the right frag.
2872 (s_cpsetup): Likewise. Parse third argument as expression, to
2873 handle global symbols and forward/backward labels correctly.
2875 2002-08-14 Nick Clifton <nickc@redhat.com>
2877 * read.c (stringer): Catch attempts to create strings in the abs
2880 * config/tc-alpha.c: Fix compiling for COFF targets.
2881 Some minor formatting tidyups.
2883 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2885 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2886 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2887 according to the reloc.
2888 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2889 (TC_FORCE_RELOCATION): Define.
2890 (tc_m68hc11_force_relocation): Declare.
2892 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2893 (s_m68hc11_relax): New function for relax group.
2894 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2895 beginning of jump instruction.
2896 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2897 address computation.
2898 (tc-gen_reloc): Update.
2899 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2901 (tc_m68hc11_force_relocation): New function, handle new relocs.
2902 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2903 reloc for the linker relax pass.
2904 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2907 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2909 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2910 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2911 (s_m68hc11_mode): New function for .mode pseudo op.
2912 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2914 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2915 (m68hc11_elf_final_processing): Declare.
2917 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2919 * config/tc-m68hc11.c (md_begin): Take into account additional
2920 page operand for call instruction.
2921 (print_opcode_format): Likewise.
2922 (check_range): Likewise for page range checking.
2923 (get_operand): Don't skip a possible comma in operands.
2924 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2925 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2926 (fixup24): New to handle call reloc.
2927 (build_insn): Handle missing page operand for call instruction.
2929 (md_apply_fix3): Take into account new relocs.
2930 (get_operand): Fix the mode for indexed indirect addressing.
2931 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2933 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2935 * config/tc-mips.c (mips_ip): Don't work out the value of
2936 constant %hi()s here.
2938 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2940 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2941 for ELF, and don't bother checking ELF relocs when non-ELF.
2942 (i386_immediate): Allow absolute_section expressions for aout.
2943 (i386_displacement): Likewise. Also test bfd_is_com_section.
2944 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2945 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2946 not when fx_addsy. Remove dead code.
2948 2002-08-09 Graeme Peterson <gp@qnx.com>
2950 * configure.in: Add support for ppc-*-nto* target.
2951 * configure: Regenerate.
2953 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2955 * config/tc-i386.h: Reorganize.
2957 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2959 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2960 immediate offset in "dla" and "la" expansions.
2962 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2964 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2965 Remove "bfd_gas=yes" from target table when covered later.
2966 Consolidate some entries.
2967 * configure: Regenerate
2969 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2971 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2972 at start of insn, pass it to output_disp and output_imm.
2973 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2974 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2976 (output_imm): Added arguments. Compute properly addend for
2978 (md_apply_fix3): Remove R_386_GOTPC handling.
2980 2002-08-06 George France <france@handhelds.org>
2982 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2983 and m21264b processor names and cpu types.
2984 * doc/c-alpha.texi: Documented new types.
2986 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2988 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2990 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2992 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2993 handling to BFD_RELOC_MIPS16_GPREL.
2995 2002-08-01 Nick Clifton <nickc@redhat.com>
2997 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2998 pool is computed using signed arithmetic so that proper sign
2999 extension is performed if X_add_number is a 64-bit integer.
3001 2002-08-01 H.J. Lu <hjl@gnu.org>
3002 Daniel Jacobowitz <drow@mvista.com>
3004 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3005 .debug_line section unless it has line information.
3007 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3009 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3010 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3011 Allow default displacement size to be an option "--disp-size-default".
3012 (md_number_to_disp): Make error messages include value. Use %d to
3013 print integers, not %s.
3014 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3015 get duplicate messages sometimes.
3016 (convert_iif): Grow frag to max possible instruction size. Avoid
3017 creating unnecessary fixes.
3018 (md_number_to_field) Add prototype.
3019 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3020 prototypes and make static.
3021 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3022 (evaluate_expr): Use resultP argument instead of exprP global.
3023 (get_addr_mode): Quiten compiler warnings.
3024 (encode_operand): eliminate unused variables. Quiten compiler
3025 warnings. Eliminate nul character in format strings.
3026 (parse): argc is unsigned.
3027 (reloc): Type cast index to quieten compiler.
3028 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3029 (md_convert_frag): Note unused parameters. Remove unused
3031 (md_create_long_jump, md_create_short_jump,
3032 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3035 2002-07-31 Nick Clifton <nickc@redhat.com>
3037 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3038 of the PDP-11 and 2.11BSD a.out support.
3040 2002-07-31 Momchil Velikov <velco@fadata.bg>
3042 * config/tc-v850.c (md_assemble): Fix range check for immediate
3045 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3047 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3048 to Broadcom SB-1 core support.
3050 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3052 * config/tc-mips.c (mips_target_format): Fix formatting.
3053 Add recognition of n32 ABI formats.
3055 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3057 * tc-mips.c (load_address): Don't clobber $at when loading a
3058 64-bit address in non-PIC code if noat is in effect.
3061 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3063 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3064 used in division/multiply macro expansions similarly to how they
3065 are used in the variants with break instructions.
3068 2002-07-30 Graeme Peterson <gp@qnx.com>
3070 * configure.in: Add support for arm-*-nto target.
3071 * configure: Regenerate.
3073 2002-07-30 Nick Clifton <nickc@redhat.com>
3075 * config/tc-arm.c (struct literal_pool): Add fields to allow
3076 multiple literal pools to be maintained.
3077 (find_literal_pool): New function.
3078 (find_or_make_literal_pool): New function.
3079 (add_to_literal_pool): Use find_or_make_literal_pool.
3080 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3082 (s_ltorg): Use find_literal_pool.
3083 (arm_cleanup): Dump all literal pools.
3084 * doc/c-arm.texi: Document new behaviour of only dumping literal
3087 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3089 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3090 rather than PPC_OPCODE_32 for powerpc64*.
3092 2002-07-25 Nick Clifton <nickc@redhat.com>
3094 * po/es.po: Updated Spanish translation.
3095 * po/fr.po: Updated French translation.
3097 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3099 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3100 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3101 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3102 * configure, config.in: Regenerate.
3103 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3104 (mips_set_options): Remove "abi" field.
3105 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3108 (mips_arch_string, mips_arch_info): New vars.
3109 (mips_tune_string, mips_tune_info): New vars.
3110 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3111 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3112 (mips_isa_to_str, mips_cpu_to_str): Remove.
3113 (mips_ip): If the selected architecture is a generic ISA rather
3114 than a processor, only mention the ISA level in error messages.
3115 (OPTION_MCPU): Remove.
3117 (md_longopts): Add -mfp64, remove -mcpu.
3118 (mips_set_option_string): New fn.
3119 (md_parse_option): Make -mipsN update file_mips_isa rather than
3120 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3121 Don't let -mgp32 and -mfp32 change the ABI.
3122 (show): Move to end of file. Constify string argument.
3123 (md_show_usage): Move to the end of the file. Read available
3124 architectures from mips_cpu_info_table.
3125 (mips_set_architecture): New fn.
3126 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3127 is an alias for -march=mipsN. Don't change the ABI based on other
3128 flags. Infer the register size from the ABI as well as the
3129 architecture. Complain about more conflicting arguments.
3130 Unify logic with GCC.
3131 (s_mipsset): Don't change the ABI.
3132 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3133 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3134 "mipsN"-type entries. Remove entries that vary only in the
3135 manufacturer's prefix, or that have "000" replaced by "k".
3136 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3137 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3138 (mips_parse_cpu): New fn.
3139 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3140 (mips_cpu_info_from_isa): Minor formatting tweak.
3142 2002-07-24 Nick Clifton <nickc@redhat.com>
3144 * po/sv.po: Updated Swedish translation.
3145 * po/es.po: Updated Spanish translation.
3147 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3149 * Makefile.am: Run "make dep-am".
3150 * Makefile.in: Regenerate.
3151 * doc/Makefile.in: Regenerate.
3152 * config.in: Regenerate.
3153 * po/POTFILES.in: Regenerate.
3155 2002-07-23 Nick Clifton <nickc@redhat.com>
3157 * po/fr.po: Updated French translation.
3159 2002-07-23 Nick Clifton <nickc@redhat.com>
3161 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3164 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3166 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3167 instead of S_IS_EXTERN.
3168 (md_estimate_size_before_relax): Likewise.
3169 (mips_fix_adjustable): Likewise.
3171 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3173 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3175 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3176 Nick Clifton <nickc@redhat.com>
3178 * cond.c (s_ifdef): Treat a referenced but not yet defined
3179 symbol as if it were undefined, in exactly the same way as
3182 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3183 consider referenced bug not yet defined symbols to be
3186 2002-07-18 Denis Chertykov <denisc@overta.ru>
3187 Frank Ch. Eigler <fche@redhat.com>
3188 Alan Lehotsky <alehotsky@cygnus.com>
3189 John Healy <jhealy@redhat.com>
3190 Jeff Johnston <jjohnstn@redhat.com>
3192 * configure.in: Add ip2k configuraton.
3193 * configure: Regenerate.
3194 * Makefile.am: Add ip2k configuraton.
3195 * Makefile.in: Regenerate.
3196 * configure: Regenerate.
3197 * Makefile.in: Regenerate.
3198 * config/tc-ip2k.c: New file.
3199 * config/tc-ip2k.h: New files.
3200 * NEWS: Mention new support.
3201 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3202 * doc/Makefile.in: Regenerate.
3203 * doc/all.texi: Set IP2K
3204 * doc/as.texinfo: Add IP2K description.
3205 * doc/c-ip2k.texi: New file.
3207 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3209 * NEWS: Reformat to match style of other NEWS files.
3211 2002-07-17 Jan Hubicka <jh@suse.cz>
3213 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3215 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3217 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3219 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3221 * NEWS: Add 'Changes in 2.13'.
3223 2002-07-15 Matt Fredette <fredette@netbsd.org>
3225 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3227 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3229 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3230 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3233 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3235 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3236 (ppc_frob_file_before_adjust): New function.
3237 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3238 (ppc_elf_frob_symbol): Don't declare.
3239 (tc_frob_file_before_adjust): Define.
3240 (ppc_frob_file_before_adjust): Declare.
3242 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3243 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3246 (ppc_xcoff64): Rename to ppc_obj64.
3247 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3248 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3249 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3251 (ppc_target_format): Use ppc_obj64 to select format.
3252 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3253 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3254 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3255 (tc_frob_symbol): Likewise.
3256 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3257 BFD_DEFAULT_TARGET_SIZE.
3259 (ppc_is_toc_sym): Likewise.
3260 (md_apply_fix3): Likewise.
3261 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3262 BFD_DEFAULT_TARGET_SIZE.
3263 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3264 (tc_frob_symbol): Likewise.
3266 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3268 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3269 (mips_ip): Likewise.
3271 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3273 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3274 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3275 (md_apply_fix3): Formatting. Remove redundant test.
3276 (tc_gen_reloc): Remove redundant code.
3277 (tc_i386_force_relocation): Delete. Movy body of function to..
3278 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3280 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3282 * configure.in: Add hppa-*-openbsd* target, change
3283 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3285 * configure: Regenerate.
3287 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3289 * config/tc-mips.c (macro): Shift the 32-bit address range
3290 accessible with a lone "lui" down by 32768.
3292 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3294 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3295 instead of "dadd" in address calculations.
3298 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3300 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3302 (md_assemble): Instead, zap the suffix here.
3304 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3306 * NEWS: Remove next release number until the release is actually
3309 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3311 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3313 * Makefile.in: Regenerate.
3315 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3317 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3318 to symbols in merge sections, even non pc-relative ones.
3320 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3322 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3324 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3326 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3327 .softregs and .eeprom.
3329 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3331 * NEWS: Note the next release is 2.13.
3333 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3335 * po/tr.po: New translation imported.
3337 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3339 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3340 (ecoff_directive_def): Likewise.
3341 (ecoff_directive_tag): Likewise.
3342 * listing.c (file_info): Likewise.
3343 * hash.c (what): Likewise.
3345 2002-06-25 H.J. Lu <hjl@gnu.org>
3347 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3348 * Makefile.in: Regenerated.
3350 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3352 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3353 (assemble_ppi): Generate warning if the same register is used
3354 twice as destination in the same padd / pmuls instruction.
3356 2002-06-18 Dave Brolley <brolley@redhat.com>
3358 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3359 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3360 * configure.in: Support frv-*-*.
3361 * Makefile.am (CPU_TYPES): Add frv.
3362 (TARGET_CPU_CFILES): Add tc-frv.c.
3363 (TARGET_CPU_HFILES): Add tc-frv.h.
3364 (DEPTC_frv_coff): New variable.
3365 (DEPTC_frv_elf): New variable.
3366 (DEPOBJ_frv_coff): New variable.
3367 (DEPOBJ_frv_elf): New variable.
3368 (DEP_frv_coff): New variable.
3369 (DEP_frv_elf): New variable.
3370 * tc-frv.c: New file.
3371 * tc-frv.h: New file.
3373 2002-06-17 Catherine Moore <clm@redhat.com>
3375 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3377 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3379 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3381 2002-06-17 Tom Rix <trix@redhat.com>
3383 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3385 2002-06-14 H.J. Lu <hjl@gnu.org>
3386 Daniel Jacobowitz <drow@mvista.com>
3388 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3389 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3390 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3391 and new_logical_line for the first .file directive.
3392 * read.c (s_app_file_string): New function.
3393 (s_app_file): Call it.
3394 * read.h (s_app_file_string): Add declaration.
3396 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3398 * configure.in: Remove MIPS_STABS_ELF.
3399 * configure: Regenerated.
3400 * config.in: Regenerated.
3401 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3403 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3405 (pdr_seg): Declare unconditionally.
3406 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3407 (s_mips_end): Likewise. Generate stabs function markers.
3408 (s_mips_ent): Generate stabs function markers.
3409 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3411 (s_mips_mask): Likewise.
3412 (mips_flag_mdebug): New.
3413 (md_longopts): Add "mdebug" and "no-mdebug".
3414 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3415 (mips_after_parse_args): Set mips_flag_mdebug.
3416 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3418 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3420 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3421 value twice for RELA relocations.
3423 2002-06-12 Ben Elliston <bje@redhat.com>
3425 * symbols.c (resolve_symbol_value): Initialise final_val.
3427 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3429 2002-06-11 Tom Rix <trix@redhat.com>
3431 * config/tc-ppc.c (ppc_subseg_align): Delete.
3432 (ppc_change_csect): Default csect align is 2.
3433 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3435 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3437 * config/tc-avr.c (mcu_types): Update.
3439 2002-06-08 Matt Thomas <matt@3am-software.com>
3441 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3442 (vax-*-netbsd*): New targets.
3443 * configure: Regenerate.
3444 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3445 * config/tc-vax.c: Add support for ELF and PIC.
3446 (flag_want_pic): New flag.
3447 (float_cons): Fix prototype.
3448 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3449 (md_assemble): Introduce a new is_absolute local, and use it
3450 rather than repeating the test. Make fatal errors actually
3451 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3452 Add support for ELF. Add support for PIC.
3453 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3454 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3456 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3457 optional for a.out, and not allowed for VMS. Adjust all callers.
3458 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3459 (md_create_long_jump): Likewise.
3460 (md_undefined_symbol): Likewise.
3461 (md_section_align): Likewise.
3462 (md_shortopts): Allow -k and -K for ELF.
3463 (md_parse_option): Set flag_want_pic if -k or -K.
3464 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3465 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3466 * config/tc-vax.h (tc_headers_hook): Remove.
3467 (TARGET_FORMAT): Set according to object format and target
3469 (BFD_ARCH, TARGET_ARCH): Define.
3470 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3471 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3472 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3473 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3475 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3477 * Makefile.am: Run "make dep-am".
3478 * Makefile.in: Regenerate.
3480 * as.c: Replace CONST with const.
3481 * write.c: Likewise.
3482 * config/obj-coff.c: Likewise.
3483 * config/tc-a29k.c: Likewise.
3484 * config/tc-arm.c: Likewise.
3485 * config/tc-dlx.c: Likewise.
3486 * config/tc-h8300.c: Likewise.
3487 * config/tc-h8500.c: Likewise.
3488 * config/tc-i370.c: Likewise.
3489 * config/tc-i860.c: Likewise.
3490 * config/tc-i960.c: Likewise.
3491 * config/tc-m68hc11.c: Likewise.
3492 * config/tc-m68k.c: Likewise.
3493 * config/tc-m88k.c: Likewise.
3494 * config/tc-mcore.c: Likewise.
3495 * config/tc-mips.c: Likewise.
3496 * config/tc-ns32k.c: Likewise.
3497 * config/tc-pdp11.c: Likewise.
3498 * config/tc-pj.c: Likewise.
3499 * config/tc-s390.c: Likewise.
3500 * config/tc-sh.c: Likewise.
3501 * config/tc-sparc.c: Likewise.
3502 * config/tc-tahoe.c: Likewise.
3503 * config/tc-tic80.c: Likewise.
3504 * config/tc-v850.c: Likewise.
3505 * config/tc-vax.c: Likewise.
3506 * config/tc-w65.c: Likewise.
3507 * config/tc-z8k.c: Likewise.
3509 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3511 Based on patch from Matt Green:
3512 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3513 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3514 (s_mips_loc): New function.
3515 (mips_nonecoff_pseudo_table): Call them.
3516 (append_insn): Call dwarf2_emit_insn.
3518 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3520 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3522 (file_ase_mips16): New veriable.
3523 (mips_eabi64): Remove.
3524 (CPU_HAS_MIPS16): New define.
3525 (CPU_HAS_MDMX): Fix data type.
3526 (md_begin): Code cleanup. Use file_ase_mips16.
3527 (mips_elf_final_processing): Handle mips16 header flag.
3528 Handle EABI flag without intermediate variable.
3530 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3532 * doc/as.texinfo: Update MIPS documentation.
3534 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3536 * config/tc-mips.c: Add define for $zero register.
3537 (md_begin): Add $zero as alias name for $0.
3538 (insn_uses_reg): Use ZERO define.
3539 (mips_ip): Add $zero as alias name for $0.
3540 (mips16_ip): Likewise.
3541 (s_cplocal): Demand empty rest of input line.
3542 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3543 names. Use ZERO define. Fix input_line_pointer progress.
3545 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3547 * symbols.c: Replace CONST by const throughout.
3548 (symbol_find_exact): Split out from..
3549 (symbol_find_base): ..here.
3550 * symbols.h: Replace CONST by const throughout.
3551 (symbol_find_exact): Declare.
3552 * config/obj-elf.c: #include "struc-symbol.h".
3553 (elf_frob_file): If group name matches an exported symbol, use that
3554 symbol for the signature and ".group" as the section name.
3556 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3558 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3561 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3563 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3564 and mips_opts.ase_mdmx if they are uninitialized.
3566 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3568 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3569 (hppa_force_relocation): Check if a stub just before the start symbol
3570 of the last call_info is reachable before forcing relocation. Fix
3573 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3575 * config/tc-mips.c (mips_after_parse_args): New function.
3576 (md_begin): Move processing of defaults to mips_after_parse_args.
3577 config/tc-mips.h (md_after_parse_args): Define.
3579 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3581 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3582 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3583 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3584 * configure: Regenerate.
3585 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3588 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3590 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3592 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3594 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3595 linkonce flag. Print all warnings.
3596 (obj_elf_section): Parse ",comdat" for groups.
3597 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3598 consistency of comdat flag.
3600 2002-06-02 Richard Henderson <rth@redhat.com>
3602 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3603 with LITERALs without sequence numbers.
3605 2002-06-01 Richard Henderson <rth@redhat.com>
3607 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3608 Rename them LITUSE_ALPHA_*.
3610 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3612 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3613 accept parentheses enclosed register lists.
3615 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3617 * Makefile.am: Run "make dep-am".
3618 * Makefile.in: Regenerate.
3619 * po/POTFILES.in: Regenerate.
3621 2002-05-31 Graeme Peterson <gp@qnx.com>
3623 * configure.in: Add i386-*-nto-qnx*.
3624 * configure: Regenerate.
3626 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3628 * config/tc-mips.c (mips_ip): Use unsigned long values for
3631 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3633 * config/tc-mips.c (s_cpsetup): Fix initialization of
3634 mips_cpreturn_register and mips_cpreturn_offset.
3636 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3638 * config/tc-mips.c (s_cpsetup): Fix comment.
3640 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3642 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3643 (mips_ip): Likewise.
3644 (mips16_ip): Likewise.
3645 (tc_get_register): Likewise.
3647 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3648 Ed Satterthwaite <ehs@broadcom.com>
3650 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3651 (mips_opts): Initialize "ase_mdmx" member.
3652 (file_ase_mdmx): New variable.
3653 (CPU_HAS_MDMX): New macro.
3654 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3655 based on command line options and configuration defaults.
3656 (macro_build): Note in comment that use of MDMX in macros is
3657 not currently allowed.
3658 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3659 "Z" MDMX operand types.
3660 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3661 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3663 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3664 Add support for "-mdmx" and "-no-mdmx" options.
3665 (OPTION_ELF_BASE): Move to accomodate new options.
3666 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3667 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3668 file_ase_mdmx was set.
3669 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3670 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3673 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3675 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3676 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3677 command line switch conforming to gcc conventions.
3678 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3680 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3682 * config/tc-mips.c (macro_build_jalr): New Function.
3683 (md_begin): NewABI uses big GOTs.
3684 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3685 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3686 (load_address): Add some NewABI PIC support.
3688 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3689 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3691 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3693 * config/tc-mips.c (load_address): Use mips_gp_register instead
3694 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3696 (macro): Use mips_gp_register instead of hardcoded value.
3698 2002-05-30 Richard Henderson <rth@redhat.com>
3700 * expr.h (operatorT): Add O_md17..O_md32.
3701 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3702 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3703 O_tprelhi, O_tprello, O_tprel): New.
3704 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3705 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3706 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3707 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3708 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3709 (md_apply_fix3): Handle TLS relocations.
3710 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3711 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3712 associated TLS reloc. Check lituse_tls relocs match up.
3713 (emit_insn): Handle TLS relocations.
3716 * doc/c-alpha.texi: Add docs for tls relocations.
3718 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3720 * config/tc-mips.c (mips_gprel_offset): New variable.
3721 (s_gpvalue): Use it.
3723 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3725 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3726 write-write conflicts.
3727 (md_assemble): Reformat introductory comment.
3728 (parallel_ok): Prevent packing only if the first
3729 instruction cannot be packed.
3731 2002-05-30 Jason Eckhardt <jle@redhat.com>
3732 Tom Rix <trix@redhat.com>
3734 * config/tc-d10v.c (build_insn): Check for immediates.
3736 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3738 * config/tc-mips.c: Replace GP in comments by $gp.
3739 (mips_big_got): Initialize.
3740 (mips_trap): Initialize.
3741 (load_address): Use mips_gp_register instead of hardcoded value.
3742 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3743 (macro): Use mips_gp_register instead of hardcoded value.
3744 (macro2): Change load_address calls.
3745 (md_pcrel_from): Comment formatting.
3746 (s_cpload): Use mips_gp_register instead of hardcoded value.
3747 (s_cprestore): Likewise. Comment formatting.
3748 (s_gpword): Fix data type.
3749 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3750 (nopic_need_relax): Replace GP in comments by $gp.
3751 (mips_elf_final_processing): Better comment.
3753 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3755 * configure.in: Add DLX configuraton
3756 * Makefile.am: Add DLX configuraton
3757 * configure: Regenerate.
3758 * Makefile.in: Regenerate.
3759 * config/tc-dlx.c: New file.
3760 * config/tc-dlx.h: New files.
3761 * NEWS: Mention new support.
3763 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3765 * config/obj-coff.c (write_object_file): Add missing semicolon.
3767 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3769 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3770 by the define. Remove superfluous check of mips_opts.mips16.
3771 (append_insn): Likewise. Canonicalize variable increments.
3772 (macro_build): Canonicalize variable increments.
3773 (macro_build_lui): Likewise.
3774 (load_register): Likewise.
3775 (load_address): Move pointer initialization.
3776 (macro): Move pointer to a more local scope. Canonicalize variable
3777 increments. Better comments. Replace magic constant for RA by the
3779 (macro2): Replace magic constant for RA by the define. Canonicalize
3780 variable increments.
3781 (mips_ip): Canonicalize variable increments.
3782 (mips16_ip): Replace magic constant for RA by the define.
3783 (my_getSmallParser): Canonicalize variable increments/decrements.
3784 (my_getPercentOp): Likewise.
3785 (my_getSmallExpression): Likewise.
3786 (s_align): Likewise.
3787 (s_mipsset): Likewise.
3788 (s_cpsetup): Likewise.
3789 (s_insn): Remove superfluous check of mips_opts.mips16.
3790 (s_mips_stab): Likewise.
3791 (mips_handle_align): Canonicalize variable increments.
3792 (s_mips_ent): Likewise.
3793 (s_mips_end): Add comment.
3795 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3797 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3798 * configure: Regenerate.
3800 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3802 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3803 * Makefile.in: Regenerate.
3804 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3805 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3806 * configure: Regenerate.
3807 * as.h: Use #include "" instead of <> for local header files.
3808 * flonum-konst.c: Likewise.
3809 * flonum-mult.c: Likewise.
3811 * listing.c: Likewise.
3812 * config/tc-ia64.h: Likewise.
3813 * config/tc-v850.h: Likewise.
3815 2002-05-24 TAMURA Kent <kent@netbsd.org>
3817 * configure.in: Add a target for i386-netbsdpe.
3818 * configure: Regenerate.
3820 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3822 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3823 (obj_elf_common): Call elf_common.
3824 (obj_elf_tls_common): New function.
3825 (elf_pseudo_tab): Support .tls_common.
3826 (special_sections): Add .tdata and .tbss.
3827 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3829 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3830 (obj_elf_parse_section_letters): Include T in error message.
3831 * config/tc-ppc.c (ppc_section_letter): Likewise.
3832 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3833 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3835 * config/tc-sparc.c (md_apply_fix3): Likewise.
3836 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3837 Define them if not BFD_ASSEMBLER.
3838 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3840 (md_apply_fix3): Add TLS relocs.
3841 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3842 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3843 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3844 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3845 (ia64_elf_section_letter): Include T in error message.
3846 (md_begin): Support TLS operators.
3847 (md_operand): Likewise.
3848 (ia64_gen_real_reloc_type): Support TLS relocs.
3849 * write.c (adjust_reloc_syms): Don't change symbols in
3850 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3852 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3854 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3855 round the relocation up rather than down.
3857 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3859 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3861 * doc/as.texinfo: Document that the COFF version of .section
3862 ignores the 'a' flag.
3864 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3866 * config/tc-alpha.c (assemble_tokens): Protect use of
3867 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3869 * write.c (size_seg): Check adjustment to last frag.
3870 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3872 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3873 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3874 (write_object_file): Invoke md_do_align if available, and use
3875 frag_align_code on text sections.
3876 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3877 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3878 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3879 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3880 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3883 2002-05-22 H.J. Lu <hjl@gnu.org>
3885 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3888 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3890 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3893 2002-05-22 H.J. Lu <hjl@gnu.org>
3895 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3896 for one .loc for compiler.
3898 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3900 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3903 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3905 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3906 Optimize the rotate by zero case.
3908 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3910 * configure.in: Remove accidental enabling of bfd_gas=yes for
3912 * configure: Regenerate.
3914 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3916 * app.c: Fix formatting.
3918 * ehopt.c: Likewise.
3920 * input-file.c: Likewise.
3921 * listing.c: Likewise.
3922 * macro.h: Likewise.
3923 * stabs.c: Likewise.
3924 * symbols.c: Likewise.
3926 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3928 * config/obj-generic.c: Delete file.
3929 * config/obj-generic.h: Likewise.
3931 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3933 * config/tc-avr.c (mcu_types): Update for new devices.
3935 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3937 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3939 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3941 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3942 worked sometimes by accident. Fix copy&paste comment.
3944 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3946 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3947 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3948 (mips_elf_final_processing): Let n32 use .reginfo.
3950 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3952 * config/tc-mips.c (append_insn): Fix too small range of variable.
3954 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3956 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3957 listing_prev_line().
3959 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3961 * config/tc-arm.c (md_assemble): Remove redundant call to
3964 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3967 * stabs.c (s_stab_generic): Fix grammatical error in warning
3970 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3972 * write.c (subsegs_finish): Don't specially align last subseg.
3974 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3976 * stabs.c (s_stab_generic): Warn about a description field that is
3979 * config/obj-coff.c: Fix compile time warnings when compiling
3980 without BFD_ASSEMBLER defined.
3983 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3985 (md_pcrel_from_section): Use md_pcrel_from().
3987 2002-05-11 Bruno Haible <bruno@clisp.org>
3989 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3990 by dwarf2_directive_loc, instead of calling dwarf2_where.
3992 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3994 * config/obj-coff.h: Fix formatting.
3995 * config/tc-mcore.c: Likewise.
3996 * config/tc-mn10300.c: Likewise.
3997 * config/tc-openrisc.c: Likewise.
3998 * config/tc-or32.c: Likewise.
3999 * config/tc-pdp11.c: Likewise.
4000 * config/tc-ppc.c: Likewise.
4001 * config/tc-ppc.h: Likewise.
4002 * config/tc-sh64.c: Likewise.
4003 * config/tc-sh.c: Likewise.
4004 * config/tc-tic54x.c: Likewise.
4005 * config/tc-xstormy16.c: Likewise.
4006 * config/tc-xstormy16.h: Likewise.
4008 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4010 * config/obj-coff.c: Fix formatting.
4011 * config/obj-elf.c: Likewise.
4012 * config/tc-alpha.c: Likewise.
4013 * config/tc-arm.c: Likewise.
4014 * config/tc-d10v.c: Likewise.
4015 * config/tc-d30v.c: Likewise.
4016 * config/tc-h8300.c: Likewise.
4017 * config/tc-hppa.c: Likewise.
4019 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4021 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4022 reloc when no_cond_jump_promotion.
4024 2002-05-08 Jim Wilson <wilson@redhat.com>
4026 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4027 current variable part of frag.
4029 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4031 * config/tc-mmix.c: Fix formatting.
4032 * config/tc-mmix.h: Likewise.
4034 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4036 * configure: Regenerate.
4038 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4040 * config/tc-m68k.c: Fix formatting.
4042 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4044 * Makefile.am: Honour DESTDIR.
4045 * Makefile.in: Regenerate.
4047 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4049 * config/tc-ia64.c: Fix formatting.
4050 * config/tc-ia64.h: Likewise.
4052 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4054 * config/tc-mips.c: Fix formatting.
4055 * config/tc-s390.c: Likewise.
4056 * config/tc-s390.h: Likewise.
4058 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4060 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4061 information for instructions.
4063 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4065 * as.h: Fix formatting.
4068 * dwarf2dbg.c: Likewise.
4069 * frags.h: Likewise.
4071 * macro.c: Likewise.
4073 * stabs.c: Likewise.
4074 * symbols.c: Likewise.
4076 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4078 * app.c (mri_pseudo): Only declare for TC_M68K.
4080 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4081 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4082 BFD_RELOC_16_BASEREL.
4083 (md_assemble): Likewise.
4084 (md_apply_fix3): Likewise.
4086 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4088 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4089 zero into an add of zero - it is not the same.
4091 2002-05-01 Arati Dikey <aratid@kpit.com>
4093 * tc-sh.c (get_specific): Generate warning if the same
4094 destination register is used in parallel instructions.
4096 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4098 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4100 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4102 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4103 backwards to prevent cascading errors.
4105 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4107 * configure.in: Add support for powerpc-*-windiss.
4108 * configure: Regenerated.
4110 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4112 * config/tc-s390.c (md_parse_option): Formatting.
4114 * config/tc-i386.c: Formatting fixes, add missing space in error
4117 2002-04-24 Christian Groessler <chris@groessler.org>
4119 * config/tc-z8k.c (build_bytes): Add support for new cases:
4120 CLASS_IGNORE and ARG_NIM4.
4121 (md_assemble): Prevent destruction of input_line_pointer if
4122 get_operands returns failure.
4124 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4126 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4127 instructions to be generated by macros.
4129 2002-04-24 Andreas Schwab <schwab@suse.de>
4131 * config/tc-i386.c (output_jump, output_disp)
4132 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4134 (md_apply_fix3): Remember addend value for rela relocations.
4135 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4137 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4139 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4140 from previous change.
4142 2002-04-22 Eric Christopher <echristo@redhat.com>
4144 * config/tc-mips.c (macro_build): Add warning if macro instructions
4145 are expanded into a branch delay slot.
4147 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4149 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4150 numbers, gdb relies on them to detect the start of the prologue.
4152 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4154 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4155 symbols in merge sections.
4157 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4159 * as.c (main): Don't reference _bfd_chunksize.
4161 2002-04-15 Tom Rix <trix@redhat.com>
4163 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4164 symbols in merge sections.
4166 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4168 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4169 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4170 argument for the precision.
4171 (gen_to_words): Update accordingly.
4173 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4175 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4176 BFD_VERSION_STRING unavailable.
4177 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4179 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4181 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4182 symbol_used_in_reloc_p is true.
4184 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4187 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4189 * dep-in.sed: Cope with absolute paths.
4190 * Makefile.am (dep.sed): Subst TOPDIR.
4192 * Makefile.in: Regenerate.
4194 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4196 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4197 (mips_ip): Remove unused variable.
4198 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4199 unsigned char with bfd_byte.
4200 (s_file): Remove unused variable.
4201 (s_mips_ent): Likewise.
4203 2002-04-03 Tom Rix <trix@redhat.com>
4205 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4207 (find_opcode): Fix warning in as_warn.
4208 * config/tc-d10v.h: Update Copyright.
4210 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4211 Tom Rix <trix@redhat.com>
4213 From Jeff Knaggs <jknaggs@redhat.com>
4214 * config/tc-d10v.c (check_resource_conflict): New function to
4215 check for resource conflicts.
4217 From Jason Eckhardt <jle@redhat.com>
4218 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4220 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4221 reserved control registers is used.
4222 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4225 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4226 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4227 instruction cannot be packed.
4229 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4230 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4231 write-write conflicts.
4232 (md_assemble): Reformat introductory comment.
4233 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4236 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4238 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4239 O_logical_not>): Derive final_seg from add_symbol.
4240 <O_multiply..O_logical_or>: More final_seg twiddles.
4242 2002-04-01 Jessica Han <jessica@cup.hp.com>
4244 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4247 2002-03-27 Andreas Schwab <schwab@suse.de>
4249 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4250 field for pc-relative fixups.
4251 (output_disp): Likewise.
4252 (md_estimate_size_before_relax): Likewise.
4253 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4254 pc-relative fixups in 64bit mode.
4256 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4258 * config/te-aix5.h: Typo fix.
4260 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4262 * Makefile.am: Run "make dep-am".
4263 * Makefile.in: Regenerate.
4264 * doc/Makefile.in: Regenerate.
4266 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4268 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4269 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4271 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4273 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4274 the EXTENDED bit here; report the estimate according to the
4277 2002-03-18 Tom Rix <trix@redhat.com>
4279 * configure.in: Add AIX 5 support.
4280 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4281 * config/te-aix5.h: New file. AIX 5 support.
4282 * configure: Regenerate.
4284 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4286 * po/fr.po: Updated version.
4288 2002-03-16 Andreas Jaeger <aj@suse.de>
4290 * doc/c-mips.texi (Machine Dependencies): Add new node.
4292 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4294 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4295 (mips_opts): Initialize "ase_mips3d" member.
4296 (file_ase_mips3d): New variable.
4297 (CPU_HAS_MIPS3D): New macro.
4298 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4299 based on command line options and configuration defaults.
4300 (macro_build, mips_ip): Accept MIPS-3D instructions if
4301 mips_opts.ase_mips3d is set.
4302 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4303 Add support for "-mips3d" and "-no-mips3d" options.
4304 (OPTION_ELF_BASE): Move to accomodate new options.
4305 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4306 (mips_elf_final_processing): Add a comment indicating that a
4307 MIPS-3D ASE ELF header flag should be set, when one exists.
4308 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4309 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4310 nomips3d" directives.
4312 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4314 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4315 a weak symbol in same section to be within reach.
4317 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4319 * po/fr.po: Updated version.
4321 2002-03-12 Andreas Schwab <schwab@suse.de>
4323 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4324 body record so that an error is given for misplaced .save
4327 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4329 * config/tc-i386.h (REX_OPCODE): Define.
4330 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4331 (rex_byte): typedef to int.
4332 * config/tc-i386.c: Group prototypes and vars together.
4333 Formatting fixes. Remove occurrences of "register" keyword.
4336 (mode_from_disp_size): Add INLINE keyword to prototype.
4337 (fits_in_signed_byte): Likewise.
4338 (fits_in_unsigned_byte): Likewise.
4339 (fits_in_unsigned_word): Likewise.
4340 (fits_in_signed_word): Likewise.
4341 (fits_in_unsigned_long): Likewise.
4342 (fits_in_signed_long): Likewise.
4343 (type_names): Constify.
4344 (intel_float_operand): Constify param.
4345 (add_prefix): Use REX_OPCODE.
4346 (md_assemble): Likewise. Modify for changed rex_byte.
4347 (parse_insn): Split out of md_assemble.
4348 (parse_operands): Likewise.
4349 (swap_operands): Likewise.
4350 (optimize_imm): Likewise.
4351 (optimize_disp): Likewise.
4352 (match_template): Likewise.
4353 (check_string): Likewise.
4354 (process_suffix): Likewise.
4355 (check_byte_reg): Likewise.
4356 (check_long_reg): Likewise.
4357 (check_qword_reg): Likewise.
4358 (check_word_reg): Likewise.
4359 (finalize_imm): Likewise.
4360 (process_operands): Likewise.
4361 (build_modrm_byte): Likewise.
4362 (output_insn): Likewise.
4363 (output_branch): Likewise.
4364 (output_jump): Likewise.
4365 (output_interseg_jump): Likewise.
4366 (output_disp): Likewise.
4367 (output_imm): Likewise.
4369 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4371 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4373 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4375 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4376 relocs except when BFD64.
4378 * write.c (number_to_chars_bigendian): Don't abort when N is
4379 larger than sizeof (VAL).
4380 (number_to_chars_littleendian): Likewise.
4382 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4384 * config/tc-hppa.c (md_apply_fix3): Add cast.
4385 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4388 2002-03-05 Paul Koning <pkoning@equallogic.com>
4390 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4391 (parse_ac5): New function for parsing float regs in float operand.
4392 (parse_expression): Remove attempt to make literals be octal.
4393 (parse_op_no_deferred): Support float literals.
4394 (parse_op): Reject attempts to refer to float regs.
4395 (parse_fop): New function, like parse_op but for float operand.
4396 (md_assemble): Add cases to parse float operands. Also fix
4397 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4399 2002-03-04 H.J. Lu <hjl@gnu.org>
4401 * config/obj-elf.c (special_section): Add .init_array,
4402 .fini_array and .preinit_array.
4404 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4405 .init_array and .fini_array.
4407 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4409 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4411 (obj_frob_symbol): Copy visibility.
4413 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4415 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4417 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4419 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4421 * po/es.po: Updated.
4423 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4425 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4426 only, undo the changes made on 2001-06-08, with the
4427 effect being that common or extern symbols are
4428 adjusted for embedded-PIC, but weak symbols are not.
4429 (md_estimate_size_before_relax: Likewise, with the effect
4430 that extern symbols are treated the same as weak symbols
4431 only if not embedded-PIC.
4432 (mips_fix_adjustable) Likewise, with the effect that
4433 weak or extern symbols are not adjusted for embedded-PIC.
4434 (md_apply_fix3): Tweak so that the case where value is zero
4435 is handled more correctly for embedded-PIC code.
4437 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4439 * doc/as.texinfo (Overview): Add missing @ifset IA64
4441 * configure.in (LINGUAS): Add es.po.
4442 * configure: Regenerate.
4443 * po/es.po: New file.
4445 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4447 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4448 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4449 and NO_PIC cases. Code cleanup.
4450 (macro2): Fix handling of 64bit register loads.
4452 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4454 * doc/as.texinfo: Add entry for IA64.
4455 * doc/c-ia64.texi: New file.
4457 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4459 * config/tc-hppa.c: Update copyright date.
4461 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4462 Remove references to chip manufacturers.
4463 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4465 (md_show_usage): Remove references to chip manufacturers. Mention
4467 (md_begin): Test power4 opcode flag bits.
4469 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4471 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4472 count exceeds prologue count.
4473 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4474 (unwind.label_prologue_count): New member.
4476 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4478 (get_saved_prologue_count): New function.
4479 (save_prologue_count): New function.
4480 (free_saved_prologue_count): New function.
4481 (dot_label_state): Record state label by calling save_prologue_count().
4482 (dot_copy_state): Restore prologue count by calling
4483 get_saved_prologue_count().
4484 (generate_unwind_image): Free up list of saved prologue
4485 counts by calling free_saved_prologue_counts().
4487 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4489 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4490 function declarations.
4492 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4494 * NEWS: Note that GASP is now deprecated.
4495 * Makefile.am: Do not build gasp-new by default.
4496 * Makefile.in: Regenerate.
4497 * doc/Makefile.am: Do not install gasp.info.
4498 * doc/Makefile.in: Regenerate.
4499 * gas/gasp.texi: Note that gasp is now deprecated.
4501 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4503 * NEWS: Mark 2.12 branch.
4505 2002-02-19 Tom Tromey <tromey@redhat.com>
4507 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4509 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4511 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4514 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4516 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4517 Make bit size independent of architecture switch.
4518 (md_begin): Add warning for -m64 with -Aesa.
4519 (s390_md_end): Use renamed architecture defines.
4521 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4523 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4525 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4527 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4530 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4532 * config/tc-mips.c (md_estimate_size_before_relax): Really
4533 make sure we treat weak like extern only for ELF. (Fixes
4534 patch from 2001-07-25.)
4536 2002-02-15 Ben Elliston <bje@redhat.com>
4538 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4541 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4543 * NEWS: Mention support for MMIX.
4545 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4547 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4548 a sequence of indpendent 'if' statements for easier debugging
4549 and future modification.
4551 2002-02-13 Matt Fredette <fredette@netbsd.org>
4553 * config/tc-m68k.c (md_show_usage): No longer display a
4554 hard-coded "68020" for the default CPU, instead display the
4555 canonical name of the true, configured default CPU.
4556 (m68k_elf_final_processing): Mark objects for sub-68020
4557 CPUs with the new EF_M68000 flag.
4559 2002-02-13 Andreas Schwab <schwab@suse.de>
4561 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4562 pc-relative relocations to merge sections in 64-bit mode.
4564 2002-02-13 Ben Elliston <bje@redhat.com>
4566 * NEWS: Document floating point number handling in gasp.
4567 * gasp.c: Include <assert.h> and "xregex.h".
4568 (is_flonum): New function.
4569 (chew_flownum): Likewise.
4570 (change_base): Consume flonums from the input, where possible.
4571 * doc/gasp.texi (Constants): Document floating point numbers.
4573 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4575 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4576 that implicitly use LR and RR selectors.
4578 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4580 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4581 and `epsw' as available on AM33 and above only.
4582 (other_register_name): Add logic to handle machine type encoded in
4585 2002-02-11 Tom Rix <trix@redhat.com>
4587 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4590 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4592 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4595 2002-02-11 Jan Hubicka <jh@suse.cz>
4597 * i386.c (md_assemble): Support 32bit address prefix.
4598 (i386_displacement): Likewise.
4599 (i386_index_check): Accept 32bit addressing in 64bit mode.
4601 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4603 * config/tc-sh.c (dot): Removed unused function.
4605 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4607 * Makefile.am: "make dep-am".
4608 * Makefile.in: Regenerate.
4609 * aclocal.m4: Regenerate.
4610 * config.in: Regenerate.
4611 * configure: Regenerate.
4612 * doc/Makefile.in: Regenerate.
4614 2002-02-10 Richard Henderson <rth@redhat.com>
4616 * doc/c-alpha.texi: New file.
4617 * doc/Makefile.am (CPU_DOCS): Add it.
4618 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4620 2002-02-09 Richard Henderson <rth@redhat.com>
4622 * config/tc-alpha.c (O_samegp): New.
4623 (USER_RELOC_P): Include it.
4624 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4625 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4626 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4627 (alpha_validate_fix): New.
4628 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4630 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4632 * doc/c-cris.texi: New.
4633 * doc/all.texi: @set CRIS.
4634 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4635 Include c-cris.texi.
4636 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4637 * doc/Makefile.in: Regenerate.
4639 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4641 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4642 determine if a number is a sign-extended 32-bit number.
4643 (load_register): Use IS_SEXT_32BIT_NUM.
4644 (macro): Check if load/store macro handling is using a
4645 constant 32-bit address on 64-bit address systems, and if
4646 so optimize the generation of that address.
4648 2002-02-08 Richard Henderson <rth@redhat.com>
4650 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4651 we've eliminated all foreign relocation types yet.
4652 (alpha_fix_adjustable): Likewise.
4654 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4656 Contribute sh64-elf.
4657 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4658 Stephen Clarke <Stephen.Clarke@st.com>
4659 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4660 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4661 * config/tc-sh.c (md_relax_table): Added default sizes for
4662 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4663 MOVI_16, MOVI_32 and MOVI_48.
4664 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4665 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4667 (shmedia_md_estimate_size_before_relax): Remove redundant
4668 blocks. Set fragP->fr_var even if relaxation type unchanged.
4669 Retain UNDEF_MOVI until expression decays to number.
4670 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4671 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4672 relocation types. Take fixP->fx_addnumber into account too.
4673 (shmedia_md_apply_fix): Likewise.
4674 (shmedia_md_convert_frag): Likewise.
4675 (shmedia_build_Mytes): Likewise.
4676 (sh64_consume_datalabel): Complain about nested datalabel.
4677 Support PIC relocs. Call sh_parse_name.
4678 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4679 in tc-sh.h to SHmedia reloc types.
4680 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4681 MOVI_GOTPC): New relaxation constants.
4682 (md_relax_table): Introduce relaxation directives for PIC-related
4684 (sh_PIC_related_p): Handle datalabel.
4685 (sh_check_fixup): Choose SH5 PIC relocations.
4686 (sh_cons_fix_new): Added BDF_RELOC_64.
4687 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4688 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4689 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4690 current ISA is SHmedia, get 7 bytes.
4691 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4692 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4694 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4695 shmedia_apply_fix3 and make void.
4696 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4697 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4699 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4700 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4701 2001-03-14 DJ Delorie <dj@redhat.com>
4702 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4703 * doc/Makefile.in(CPU_DOCS): Ditto.
4704 * doc/c-sh64.texi: New file.
4705 * doc/as.texinfo: Add SH64 support.
4706 2001-03-13 DJ Delorie <dj@redhat.com>
4707 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4708 A_REUSE_PREV so that its purpose is more obvious.
4709 (shmedia_build_Mytes): Ditto.
4710 2001-03-07 DJ Delorie <dj@redhat.com>
4711 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4713 (sh64_vtable_inherit): Ditto.
4714 (strip_datalabels): New, strip "datalabel" from given line.
4715 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4717 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4718 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4720 (shmedia_build_Mytes): ... to here.
4721 2001-03-06 DJ Delorie <dj@redhat.com>
4722 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4724 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4725 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4726 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4727 address by one in call to dwarf2_emit_insn.
4728 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4729 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4730 alignment handling broken by imported changes.
4731 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4732 (sh64_handle_align): Declare.
4733 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4734 (sh64_max_mem_for_rs_align_code): Declare.
4735 (enum sh64_isa_values): Moved here from tc-sh64.c.
4736 (md_do_align): Define.
4737 (sh64_do_align): Declare.
4738 (struct sh64_tc_frag_data): New.
4739 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4741 (TC_FRAG_INIT): Change to set new datatype.
4742 (struct sh64_segment_info_type): Rename member
4743 last_flushed_location to last_contents_mark. All users changed.
4744 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4745 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4746 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4747 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4748 of unsetting seen_insn.
4749 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4750 call sh64_update_contents_mark.
4751 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4752 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4753 enum sh64_isa_values.
4754 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4755 (emitting_crange): Boolean guard moved to file scope from function
4756 scope in sh64_set_contents_type.
4758 (sh64_update_contents_mark): New; most split out from
4759 sh64_flush_pending_output.
4760 (shmedia_md_end): Call sh64_update_contents_mark. Set
4761 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4762 (sh64_do_align): New function.
4763 (sh64_max_mem_for_rs_align_code): New function.
4764 (sh64_handle_align): Rename from shmedia_do_align. Make
4765 non-static. Add head comment. Emit zero bytes for n bytes modulo
4766 four. Change return-type to void.
4767 (shmedia_elf_new_section): Remove.
4768 (shmedia_md_assemble): Call sh64_update_contents_mark.
4769 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4770 new frag. Call sh64_update_contents_mark after making the new
4772 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4773 and sh_flush_pending_output.
4774 (sh64_flag_output): Also call md_flush_pending_output, but add
4775 condition on not emitting_crange.
4776 (sh64_tc_cons_fix_new): Remove.
4777 2001-01-12 Nick Clifton <nickc@redhat.com>
4778 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4779 alignment handling scheme imported from sourceware.
4780 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4781 * config/tc-sh64.h (TARGET_FORMAT): Define.
4782 (sh64_target_format): Prototype.
4783 * config/tc-sh64.c (sh64_target_mach): New function.
4784 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4785 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4786 zero_address_frag instead of copying the frag of the symbol.
4787 (shmedia_frob_file_before_adjust): Ditto.
4788 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4789 to valueT to remove signedness.
4790 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4791 headers to output_bfd. Do not evaluate symbols if final is false;
4793 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4794 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4795 to the current frag, call shmedia_md_convert_frag to emit fixups
4796 and make frag_wane neutralize the frag. Update comments.
4797 * config/tc-sh.c (md_convert_frag): Change caller of
4798 shmedia_md_convert_frag.
4799 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4800 * config/tc-sh64.h: Tweak comments and correct formatting.
4801 * config/tc-sh64.c: Ditto.
4802 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4803 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4804 for the no-relocation case.
4805 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4806 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4808 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4810 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4811 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4813 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4815 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4816 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4817 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4818 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4819 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4820 if reloc is emitted.
4821 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4822 New options plus bugfixes.
4823 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4825 (md_parse_option): Handle new options.
4826 (md_show_usage): Add blurb for new options.
4827 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4828 (sh64_expand, sh64_pt32): New variables.
4829 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4830 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4831 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4832 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4833 <resolved previously-pc-relative relocs>: Handle
4834 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4835 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4836 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4837 points to SHcompact code.
4838 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4839 SH64PCREL16)>: Check that ISA of what operand points at and
4840 PTA/PTB matches, or emit error.
4841 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4842 SHMEDIA_BFD_RELOC_PT.
4843 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4845 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4846 condition for MOVI expansion.
4847 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4848 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4850 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4852 (sh64_target_format): Error-check setting of sh64_pt32 and
4853 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4854 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4855 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4856 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4857 * config/tc-sh64.c: Improve comments.
4858 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4859 not say the linker will check correctness of PTA/PTB expansion.
4860 (shmedia_md_end): Make non-static.
4861 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4863 * config/tc-sh.c (sh_finalize): Remove.
4864 * config/tc-sh.h (md_end): Do not define.
4865 Remove prototype for sh_finalize.
4866 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4867 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4868 sh64_section_data container when storing section type in tdata
4869 field in elf_section_data.
4870 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4872 * Makefile.am: Update dependencies.
4873 * Makefile.in: Regenerate.
4874 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4875 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4876 dwarf2_emit_insn call with test on debug_type.
4877 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4878 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4879 CRT_SH5_ISA32 sticky for 64-bit.
4880 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4881 Generate .crange sections when switching ISA mode or emitting
4882 constants in same section as code.
4883 * config/tc-sh64.c: Reformat structure definitions.
4884 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4886 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4887 to emit a .cranges descriptor when contents type changes. Only
4888 emit error if changing contents type and -no-mix is in effect.
4889 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4890 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4891 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4892 sh64_flush_last_crange over sections.
4893 When checking main symbol of datalabel symbol, check for
4894 STO_SH5_ISA32, not ISA type of section in definition.
4895 (shmedia_frob_file_before_adjust): Check main symbol for
4896 STO_SH5_ISA32; don't check ISA type of section in definition.
4897 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4898 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4899 .cranges entries have been output.
4900 (shmedia_elf_new_section): Just call md_flush_pending_output.
4901 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4902 fix. Do not set tc_segment_info_data.in_code for section. Call
4903 sh64_set_contents_type for SHmedia code.
4904 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4905 false. Call md_flush_pending_output.
4906 (sh64_target_format): Check that -no-mix and
4907 -shcompact-const-crange are used in sane combination with other
4909 (shmedia_md_pcrel_from_section): Check type of fix for how to
4911 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4912 not ISA type of section in definition.
4913 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4914 hold contents-type state.
4915 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4916 (sh64_flush_pending_output): Declare.
4917 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4918 (sh64_tc_cons_fix_new): Declare.
4919 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4920 call sh64_flag_output.
4921 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4922 call sh64_set_contents_type to mark SHcompact code and set
4924 (md_longopts): New options "-no-mix" and
4925 "-shcompact-const-crange".
4926 (md_parse_option): Handle new options.
4927 (md_show_usage): Add blurb for new options.
4928 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4929 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4930 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4931 (sh64_last_insn_frag): New.
4932 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4933 to get frag for insn opcode for generating fixups; do not assume it
4935 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4937 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4939 (TC_FRAG_TYPE): Define as fragS *.
4940 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4941 (sh64_last_insn_frag): Declare.
4942 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4943 not == NULL before dereferencing.
4944 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4945 Get rid of BFD section flag and EF_SH64_ABI64.
4946 * config/tc-sh64.c (shmedia_frob_section_type): Use
4947 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4948 communicate the section as containing SHmedia code. Describe why.
4949 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4950 EF_SH64 regardless of ABI.
4951 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4952 in error message. Handle resolved expressions for
4953 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4954 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4955 (shmedia_check_limits): Handle BFD_RELOC_64.
4956 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4957 a STO_SH5_ISA32 symbol, only the BFD value.
4958 2000-12-11 Ben Elliston <bje@redhat.com>
4959 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4960 dwarf2_generate_asm_lineno.
4961 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4962 Handle PC-relative MOVI expansions with assembler relaxation.
4963 Generate PC-relative relocs from 16-bit PC-relative expressions.
4964 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4965 (shmedia_md_pcrel_from_section): ...here.
4966 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4967 turned completely resolved. Adjust relocation type for 16-bit
4968 immediate operands that has turned PC-relative. Adjust back for
4969 MD_PCREL_FROM_SECTION being applied twice.
4970 (shmedia_md_convert_frag): Always emit reloc for expression with
4971 global or weak symbol. Handle relaxation result for PC-relative
4973 (shmedia_md_estimate_size_before_relax): An expression with a weak
4974 or global symbol can not be relaxed. Break out tests for
4975 relaxable symbol into variable sym_relaxable.
4976 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4977 UNDEF_MOVI)>: Break out any PC-relative expression and change
4979 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4981 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4982 MOVI expansion. If X_op_symbol of the immediate expression is
4983 set, make an expression symbol for the argument to frag_var.
4984 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4986 (END): Adjust for new relaxations.
4987 (md_relax_table): Add entries for new relaxations.
4988 2000-12-07 Ben Elliston <bje@redhat.com>
4989 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4990 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4991 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4992 SHORI operand offsets in PT/PTA/PTB expansions.
4993 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4994 Implement DataLabel semantics.
4995 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4996 shmedia_frob_file_before_adjust.
4997 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4998 (DATALABEL_SUFFIX): Define.
4999 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5000 symbol list to update "datalabel" symbols to their main symbol
5002 (shmedia_frob_file_before_adjust): New.
5003 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5004 undefined and set STT_DATALABEL.
5005 (sh64_frob_label): Initialize TC symbol field.
5006 (sh64_consume_datalabel): Actually implement semantics. New
5007 parameter operandf, call it instead of expression.
5008 (sh64_exclude_symbol): New.
5009 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5010 to sh64_consume_datalabel.
5011 (tc_symbol_new_hook): Define to tc_frob_symbol.
5012 (TC_SYMFIELD_TYPE): Define to symbolS *.
5013 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5014 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5015 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5017 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5018 generating dwarf2 debug information.
5019 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5020 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5021 elf64-sh64 for the 64-bit ABI.
5022 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5024 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5025 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5027 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5028 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5029 (enum sh64_abi_values): New type.
5030 (enum sh64_isa_values): New type.
5031 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5032 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5033 (sh64_abi): Replace shmedia_64.
5034 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5035 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5036 (s_sh64_mode): Check validity for this target.
5037 (sh64_target_format): Initialize defaults for ISA and ABI.
5038 Fallback to old object format if no SH64 ISA or ABI has been
5040 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5041 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5042 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5043 * config/tc-sh64.h: Fix typo in comment.
5044 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5045 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5046 <PT fixups for absolute values>: Size will be longest, not
5048 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5049 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5050 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5051 and l1 to hold lowercase of two first characters. Change all
5052 remaining TO_LOWER to tolower.
5053 * config/tc-sh64.c (TO_LOWER): Delete.
5054 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5055 (md_parse_name): Define.
5056 (sh64_consume_datalabel): Declare.
5057 (DOLLAR_DOT): Define.
5058 * config/tc-sh64.c (shmedia_parse_exp): New.
5059 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5060 (shmedia_parse_reg): Remove const from src
5062 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5063 (shmedia_md_assemble): Ditto for op_end variable.
5064 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5065 Use shmedia_parse_exp, not parse_exp.
5066 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5067 parameter. All callers changed.
5068 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5070 (shmedia_parse_reg): Put first two character in local variables.
5071 Use tolower, not TO_LOWER. If no register is found and argtype
5072 indicates a control register, scan shmedia_creg_table
5074 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5075 * Makefile.am (CPU_TYPES): Add sh64.
5076 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5077 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5078 Regenerate dependencies.
5079 * Makefile.in: Regenerate.
5080 * configure.in: Add support for sh64-*-elf*.
5081 * configure: Regenerate.
5082 * config/tc-sh64.h: New.
5083 * config/tc-sh64.c: New.
5084 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5085 .mode, .isa and .uaquad.
5086 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5087 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5088 [HAVE_SH64] (END): Define as 10.
5089 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5090 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5092 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5093 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5094 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5095 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5097 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5098 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5099 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5100 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5101 SHmedia instructions. Handle state-change after switching to
5103 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5104 (md_parse_option) [HAVE_SH64]: Parse new options.
5105 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5106 (md_convert_frag) [HAVE_SH64] <default>: Call
5107 shmedia_md_convert_frag instead of abort.
5108 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5109 BFD_RELOC_SH_SHMEDIA_CODE.
5110 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5111 SHcompact or SHmedia code.
5112 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5113 shmedia_md_apply_fix instead of abort.
5114 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5115 result from calling shmedia_md_estimate_size_before_relax instead
5117 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5119 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5120 shmedia_init_reloc and do nothing more if it returns non-zero.
5121 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5122 * po/POTFILES.in: Regenerate.
5123 * po/gas.pot: Regenerate.
5125 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5127 * config/tc-sh.c (parse_at): Install the correct version of
5130 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5131 assume fixP->fx_subsy is non-NULL.
5133 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5135 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5136 A_DISP_PC_ABS, and adjust it by -4.
5137 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5139 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5140 the operand type is not A_DISP_PC_ABS.
5142 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5144 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5145 common and weak symbols. Handle common and weak symbols as
5146 undefined symbols with regards to GREG handling and merging.
5147 (mmix_frob_file): Ditto.
5149 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5151 * configure.in (hppa-*-netbsd*): New target.
5152 * configure: Regenerate.
5153 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5155 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5157 * config/tc-v850.c: Add missing prototypes amd use old-style
5158 function definitions.
5159 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5160 (sdata_section tdata_section, zdata_section, sbss_section,
5161 tbss_section, zbss_section, rosdata_section, rozdata_section,
5162 scommon_section, tcommon_section, zcommon_section,
5163 call_table_data_section, call_table_text_section): Delete.
5164 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5165 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5166 v850_call_table_data, v850_call_table_text): Delete.
5167 (struct v850_seg_entry): New.
5168 (v850_seg_table): New.
5169 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5170 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5171 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5172 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5175 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5176 recording of alignment.
5177 (md_pseudo_table): Use v850_seg.
5178 (md_begin): Don't init .call_table_data and .call_table_text here.
5179 Set v850_seg_table bss entry.
5181 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5183 Support on-demand global register allocation by passing on
5184 base-plus-offset relocs to the linker.
5185 * config/tc-mmix.c: Tweak and fix typos in comments.
5186 (allocate_undefined_gregs_in_linker): New variable.
5187 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5188 (md_longopts): Add --linker-allocated-gregs.
5189 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5190 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5191 (md_show_usage): Update text for -x. Add text for
5192 --linker-allocated-gregs.
5193 (tc_gen_reloc): Derive default value for addend from val and
5194 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5195 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5196 GREG if allocate_undefined_gregs_in_linker.
5197 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5198 --linker-allocated-gregs.
5199 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5200 --linker-allocated-gregs. Mention that it's implied by -x.
5201 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5202 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5204 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5206 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5208 * Makefile.am: Run "make dep-am"
5209 * Makefile.in: Regenerate.
5211 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5213 * config/tc-or32.c: New file.
5214 * config/tc-or32.h: New file.
5215 * configure.in: Add support for or32 targets.
5216 * configure: Regenerate.
5217 * config/obj-coff.c: Add support for or32 targets.
5218 * config/obj-coff.h: Add support for or32 targets.
5219 * Makefile.am: Add support for or32 targets.
5220 * Makefile.in: Regenerate.
5221 * NEWS: Mention support for OpenRISC.
5222 * doc/Makefile.in: Regenerate.
5223 * po/POTFILES.in: Regenerate.
5224 * po/gas.pot: Regenerate.
5226 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5228 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5231 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5233 * config/tc-mips.c (tc_gen_reloc): Arrange for
5234 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5235 their LO16 parts, even for ELF.
5237 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5239 * config/tc-i386.c: Protect definitions of true and false
5242 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5244 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5245 made because of .weak, if they are neither defined nor used in any
5248 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5250 * configure: Regenerated.
5252 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5254 * doc/Makefile.am (install): Depend on install-info.
5255 * doc/Makefile.in: Regenerate.
5257 2002-01-26 Nick Clifton <nick@redhat.com>
5259 * po/fr.po: Updated version
5261 2002-01-24 Kazu Hirata <kazu@hxi.com>
5263 * config/tc-h8300.c (check_operand): Don't print a warning
5264 when a valid 24-bit address is given to a 16-bit address
5267 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5269 * config/tc-sh.c (sh_elf_suffix): Removed.
5270 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5271 sh_end_of_match, sh_parse_name): New functions.
5272 (sh_elf_cons): Simplify.
5273 (parse_exp): Reject misplaced PIC operands.
5274 (md_undefined_symbol): Simplify.
5275 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5276 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5277 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5278 Complain if subsy remains at the end.
5279 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5280 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5282 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5284 * config/tc-mn10300.c (xr_registers): Move `pc'...
5285 (other_registers): ... here.
5287 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5289 * Makefile.am: Run "make dep-am".
5290 * Makefile.in: Regenerate.
5291 * gas/po/POTFILES.in: Regenerate.
5293 2002-01-21 DJ Delorie <dj@redhat.com>
5295 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5296 stabstr_name allocation permanent, as it will be referenced from
5299 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5301 * configure.in (ia64-*-netbsd*): New target.
5302 * configure: Regenerate.
5304 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5306 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5308 <Detailed description, ARM options>: Ditto.
5309 * doc/c-arm.texi (ARM Options): Ditto.
5311 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5313 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5314 do_mia, do_mar and do_mra respectively.
5315 (do_mav_*): Renamed from do_c_*.
5316 (mav_reg_required_here, mav_parse_offset): Renamed from
5317 cirrus_reg_required_here and cirrus_parse_offset respectively.
5318 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5320 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5321 Keith Walker <keith.walker@arm.com>
5323 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5324 (insns): Add pattern for bxj instruction.
5325 (do_bxj): New function.
5326 (arm_cpus): Add arm926ej.
5327 (arm_archs): Add armv5tej.
5329 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5331 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5333 2002-01-19 Keith Walker <keith.walker@arm.com>
5335 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5337 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5339 * NEWS: Mention new ARM command-line options and VFP support.
5341 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5343 (ARM_CEXT_MAVERICK): Similarly.
5344 (ARM_ANY): Now means any core instruction.
5345 (CPU_DEFAULT): Default to ARM_ANY.
5346 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5347 (pic_code): Declare for all object types. Make type int.
5348 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5349 (march_fpu_opt, mfpu_opt): Declare.
5350 (md_longopts): Tidy up conditional definitions.
5351 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5352 (arm_long_opts): New tables.
5353 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5354 (arm_parse_extension): New function.
5355 (md_parse_option): Rewrite using new table-driven system.
5356 (md_show_usage): Use new table-driven system.
5357 (md_begin): Calculate cpu_variant from command line option data.
5358 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5359 command-line options.
5360 * doc/c-arm.texi: Likewise.
5362 2002-01-18 Andreas Jaeger <aj@suse.de>
5364 * as.c (parse_args): Update year.
5366 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5368 * config/tc-tic54x.c (encode_address): Add a more informative
5369 warning about incorrect syntax.
5371 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5373 * po/gas.pot: Regenerate.
5375 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5377 * macro.c (get_any_string): Add no-c-format comment to prevent
5378 confusion when translating string.
5379 * gasp.c (get_any_string): Add no-c-format comment to prevent
5380 confusion when translating string.
5382 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5383 Johannes Stezenbach <js@convergence.de>
5384 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5385 matched before the shorter ones.
5386 (my_getSmallParser): Fix handling of nested parentheses in
5387 percent_op's. Code cleanup.
5388 (my_getPercentOp): New function, code from my_getSmallParser.
5389 (my_getSmallExpression): Fix handling of closing parentheses.
5390 Code cleanup. Better comments.
5392 2002-01-16 Nick Clifton <nickc@redhat.com>
5394 po/tr.po: New file: Turkish translation.
5395 configure.in (LINGUAS): Add "tr".
5396 configure: Regenerate.
5398 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5400 Support for VFP instructions
5401 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5402 (cp_address_required_here): New argument wb_ok. When false, do not
5403 accept write-back forms of addressing. Change all callers.
5404 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5405 (FPU_VFP_EXT_V2): Define.
5406 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5407 Define in terms of above.
5408 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5409 (vfp_reg): New struct.
5410 (vfp_regs): New array of registers.
5411 (insns): Add VFP instructions.
5412 (sn_table): New array of VFP single-precision register names.
5413 (dn_table): New array of VFP double-precision register names.
5414 (all_reg_maps): Add the new register tables.
5415 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5416 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5417 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5418 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5419 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5420 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5421 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5422 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5423 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5424 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5425 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5426 (do_vfp_sp_dp_cvt): New functions.
5427 (md_begin): Set soft-float flag for appropriate VFP work.
5428 (md_atof): Handle VFP-format doubles.
5429 (md_parse_option): Handle VFP command-line options.
5430 (md_show_usage): Display VFP command-line options.
5432 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5434 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5435 various command line options.
5437 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5439 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5441 (xstormy16_md_apply_fix3): Do not return a value.
5443 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5445 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5446 the -EL/-EB option that matches the target's endianness.
5447 (md_parse_option): Likewise.
5449 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5451 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5452 is not dependent on ARM_BI_ENDIAN.
5454 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5456 * tc-arm.c (all error messages): Normalize capitalization of messages.
5458 * tc-arm.h (md_operand): Delete define.
5459 * tc-arm.c (in_my_get_expression): New static variable.
5460 (my_get_expression): Set and clear it.
5461 (md_operand): New function. If called from my_get_expression
5462 put the error in inst.error.
5463 (output_inst): Now takes argument of instruction being assembled.
5464 Print it out with any error message.
5465 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5467 (end_of_line): Don't update inst.error if it is already set.
5469 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5471 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5472 op that can be translated into a mvn instruction.
5474 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5476 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5477 setting default md.flags.
5478 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5479 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5480 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5481 for 32 bit unwind info blocks.
5482 (generate_unwind_image): Add support for different types
5483 of unwind images (32 bits and/or big-endian).
5484 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5485 (ia64_target_format): Add support for hpux target formats.
5486 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5487 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5488 SHT_FINI_ARRAY elf section types.
5490 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5492 * tc-arm.c (struct reg_entry): Move before prototypes.
5493 (int_register, cp_register, fp_register): Delete.
5494 (reg_table): Delete. Replaced with ...
5495 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5496 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5497 (mav_dspsc_table): ... one table per register set.
5498 (arm_reg_hsh): Delete.
5499 (struct reg_map): New structure.
5500 (all_reg_maps): New array.
5501 (enum arm_reg_type): New enums.
5502 (build_reg_hsh): New function.
5503 (insert_reg_alias): Use hash table passed by caller. Adjust all
5505 (create_register_alias): New function, split out from ...
5506 (md_assemble): ... here.
5507 (md_begin): Build new register hash tables.
5508 (arm_reg_parse): New argument for the hash table to search. Adjust all
5510 (arm_reg_parse_any): New function.
5511 (co_proc_number): Look up the processor number in the processor hash
5513 (cirrus_regtype): Delete.
5514 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5515 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5516 (ARM_EXT_MAVERICKsc_register): Delete.
5517 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5518 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5520 (do_c_triple_4, do_c_triple_5): Delete.
5521 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5522 (do_c_quad_6): Delete.
5523 (do_c_quad_6[ab]): New functions.
5524 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5525 arguments to use new register parsing methods.
5526 (cirrus_reg_required_here): Likewise.
5527 (insns): Reclassify cirrus maverick worker functions.
5528 (cirrus_valid_reg): Delete.
5530 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5532 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5533 (sh*-*-netbsdelf*): New target.
5534 * configure: Regenerate.
5535 * tc-sh.h: Update copyright years.
5536 (TARGET_FORMAT): Add version for TE_NetBSD.
5538 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5540 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5543 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5545 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5546 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5548 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5550 * tc-mips.c (mips_cprestore_valid): New flag.
5551 (mips_frame_reg_valid): New flag.
5552 (macro) [M_JAL_2]: Check both flags.
5553 [M_JAL_A]: Likewise.
5554 (s_cprestore): Set mips_cprestore_valid.
5555 (tc_get_register): If setting mips_frame_reg, set
5556 mips_frame_reg_valid and clear mips_cprestore_valid.
5557 (s_mips_ent): Clear both flags.
5558 (s_mips_end): Clear both flags.
5560 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5562 * write.c (write_object_file): Make use of bfd_section_list_remove.
5563 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5564 * config/tc-mmix.c (mmix_frob_file): Likewise.
5566 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5568 * configure.in (i386-*-netbsdelf*): Collapse target into...
5569 (i386-*-netbsd*): ...this. Add support for x86-64.
5570 * configure: Regenerated.
5572 2002-01-03 matthew green <mrg@redhat.com>
5574 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5576 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5578 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5581 For older changes see ChangeLog-0001
5587 version-control: never