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