1 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3 * config/tc-mips.h: Fix comment formatting.
5 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
7 * read.c (old_buffer, old_input, old_limit): Remove variables.
8 (read_a_source_file): Delete label contin.
9 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
10 input as with macros, instead of in separate old_* variables.
11 Zero-terminate string being scrubbed.
13 2003-05-12 Nick Clifton <nickc@redhat.com>
15 * config/tc-xstormy16.c (skipping_fptr): New local variable.
16 (md_assemble): Reset skipping_fptr.
17 (md_operand): If @fptr() is followed by a minus sign, set
18 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
19 @fptr is detected, ignore it and reset skipping_fptr.
21 2003-05-11 Jason Eckhardt <jle@rice.edu>
23 * config/tc-i860.c (MAX_FIXUPS): Define.
24 (struct i860_fi fi[]): New struct.
25 (struct i860_it the_insn): Add above as member and move fields
26 exp, reloc, pcrel and fup into i860_fi.
27 (md_assemble): Replace all instances of exp, reloc, pcrel
28 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
29 Add a loop to possibly emit multiple fix-ups for each insn.
30 (i860_process_insn): Likewise.
31 (i860_get_expression): Likewise.
32 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
34 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
36 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
38 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
40 * config/tc-ia64.c (alias_hash): New.
41 (alias_name_hash): New.
43 (secalias_name_hash): New.
44 (md_pseudo_table): Add "secalias".
45 (md_begin): Initialize alias_hash, alias_name_hash,
46 secalias_hash and secalias_name_hash.
48 (dot_alias): Implement .alias and .secalias directives.
50 (ia64_adjust_symtab): New.
52 (ia64_frob_file): New.
54 * config/tc-ia64.h (ia64_adjust_symtab): New.
55 (tc_adjust_symtab): Defined.
56 (ia64_frob_file): New.
57 (tc_frob_file): Defined.
59 2003-05-07 Dmitry Diky <diwil@mail.ru>
61 * tc-msp430.c: Add missing lines to known cpus list.
63 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
65 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
66 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
67 * config.in, configure: Rebuilt.
69 2003-05-05 H.J. Lu <hjl@gnu.org>
71 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
72 howto->partial_inplace is false.
74 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
76 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
77 symbol_used_in_reloc_p check.
78 (md_apply_fix3): Remove check for howto->pcrel_offset.
80 2003-05-03 H.J. Lu <hjl@gnu.org>
82 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
83 fatal error for unknown section attribute.
85 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
86 unknown section attribute.
87 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
88 * config/tc-ppc.c (ppc_section_letter): Likewise.
90 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
91 (ia64_elf_section_type): Accept "unwind".
93 2003-05-02 H.J. Lu <hjl@gnu.org>
95 * read.h (demand_copy_string): New.
97 * config/tc-alpha.c (demand_copy_string): Removed.
99 2003-05-02 Michael Snyder <msnyder@redhat.com>
101 * write.h (FAKE_LABEL_NAME): Allow override
102 (for targets that like eg. a leading dot in a local label).
104 2003-05-02 Nick Clifton <nickc@redhat.com>
106 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
107 addend with the symbol's value for pc-relative relocations against
108 a defined symbol - this will be done automatically.
110 2003-05-01 H.J. Lu <hjl@gnu.org>
112 * config/obj-elf.c (obj_elf_type): Accept "notype" and
115 2003-05-01 H.J. Lu <hjl@gnu.org>
117 * config/tc-ia64.h (tc_canonicalize_section_name): New.
119 * config/obj-elf.c (obj_elf_section_name): Call
120 tc_canonicalize_section_name if it is defined.
122 2003-05-01 H.J. Lu <hjl@gnu.org>
124 * config/tc-ia64.c (ia64_check_label): New.
125 * config/tc-ia64.h (tc_check_label): New.
127 * read.c (read_a_source_file): Call tc_check_label after
128 creating a user-defined label if defined.
130 2003-05-02 Alan Modra <amodra@bigpond.net.au>
132 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
133 -be and split strings to below 509 bytes in length.
135 2003-05-01 Christian Groessler <chris@groessler.org>
137 * expr.h: Fix comments in operatorT typedef.
138 * config/tc-z8k.c: Add 2003 to copyright message.
139 Fold s_segm() and s_unseg() into one function s_segm(parm) which
140 decides by the parameter.
141 (md_begin): Don't set linkrelax. Only set Z8002 default if no
142 command line argument was given to select the intended
144 (get_interrupt_operand): Warn if NOP type code is emitted.
145 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
146 (apply_fix): Call newfix with additional 'size' parameter.
147 (build_bytes): Remove unused variable 'nib'. Detect overflow in
148 4 bit immediate arguments.
149 (md_longopts): Add 'linkrelax' option.
150 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
151 variable when 'linkrelax' command line option is specified.
152 (md_show_usage): Display 'linkrelax' option.
153 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
155 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
157 2003-04-30 H.J. Lu <hjl@gnu.org>
159 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
160 (ia64_float_to_chars): Likewise.
161 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
162 and ia64_float_to_chars by tc_segment_info_data.endian from
163 the current segment if byteorder == -1.
164 (md_begin): Call dot_byteorder to set target_big_endian.
165 (md_atof): Call ia64_float_to_chars to convert floating point.
166 (ia64_float_to_chars_bigendian): New function.
167 (ia64_float_to_chars_littleendian): Likewise.
168 (ia64_elf_section_change_hook): Likewise.
170 * config/tc-ia64.h (ia64_number_to_chars): New.
171 (md_number_to_chars): Changed to (*ia64_number_to_chars)
172 (ia64_elf_section_change_hook): New.
173 (md_elf_section_change_hook): Defined.
174 (ia64_segment_info_type): New struct.
175 (TC_SEGMENT_INFO_TYPE): Defined.
177 2003-04-30 H.J. Lu <hjl@gnu.org>
179 * config/tc-ia64.c (md_section_align): Deleted.
181 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
182 (md_section_align): New.
184 2003-04-30 H.J. Lu <hjl@gnu.org>
186 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
188 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
190 (md_atof): Add 6 byte padding of zero for real16.
192 2003-04-29 Nick Clifton <nickc@redhat.com>
194 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
195 start of a version name.
197 2003-04-28 Chris Demetriou <cgd@broadcom.com>
199 * configure.in (mips-*-*n*bsd*): Replace with...
200 (mips-*-netbsd*, mips-*-openbsd*): These.
201 * configure: Regenerate.
203 2003-04-28 H.J. Lu <hjl@gnu.org>
205 * config/tc-hppa.c (hppa_symbol_chars): New.
206 * config/tc-hppa.h (tc_symbol_chars): Likewise.
208 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
210 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
212 2003-04-25 Chris Demetriou <cgd@broadcom.com>
214 * NEWS: Belatedly mention support for MIPS32 Release 2.
216 2003-04-24 Eric Christopher <echristo@redhat.com>
218 * config/tc-mips.c (nopic_need_relax): Revert previous
221 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
223 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
224 * config/tc-h8300.c (dwarf2dbg.h): Include
225 (md_pseudo_table): Handle .loc and .file
226 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
227 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
228 * Makefile.in: Regenerate.
230 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
232 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
233 (md_pseudo_table): Add h8300hn, h8300sn.
234 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
235 * doc/c-h8300.texi : Add documentation for new machine directives.
237 2003-04-24 Nick Clifton <nickc@redhat.com>
239 * config/tc-ppc.c (ppc_symbol_chars): Define.
240 * config/tc-ppc.h (tc_symbol_chars): Define.
242 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
244 * config/tc-sh.c: Amend comment to refer to SuperH.
245 * config/tc-sh.h: Likewise.
246 (LISTING_HEADER): Amend to refer to SuperH.
247 * config/tc-sh64.c: Change comment to refer to SuperH.
248 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
249 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
250 * doc/c-sh.texi: Amend to refer to SuperH.
251 Add SuperH architecture documentation references.
252 * doc/c-sh64.texi: Change to refer to SuperH.
254 2003-04-23 H.J. Lu <hjl@gnu.org>
256 * app.c (do_scrub_chars): More checks for valid labels.
258 2003-04-22 H.J. Lu <hjl@gnu.org>
260 * app.c (do_scrub_chars): Check for valid label.
262 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
264 * doc/as.texinfo: Replace references to Mitsubishi M32R with
265 references to Renesas M32R.
266 * doc/c-m32r.texi: Likewise.
268 2003-04-21 Richard Henderson <rth@redhat.com>
270 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
271 (out_file_list): Assign non-null filename after generating error.
273 2003-04-18 Jakub Jelinek <jakub@redhat.com>
275 * ehopt.c (check_eh_frame): For aug_size == 0
276 in state_seeing_aug_size state skip the state_skipping_aug
279 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
281 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
283 * doc/c-h8500.texi: Likewise.
284 * doc/c-sh.texi: Likewise.
285 * doc/c-sh64.texi: Likewise.
286 * doc/h8.texi: Likewise.
287 * config/tc-h8300.c: Likewise.
288 * config/tc-h8300.h: Likewise.
289 * config/tc-h8500.c: Likewise.
290 * config/tc-h8500.h: Likewise.
291 * config/tc-sh.c: Likewise.
292 * config/tc-sh.h: Likewise.
293 * config/tc-sh64.c: Likewise.
294 * config/tc-sh64.h: Likewise.
296 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
298 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
299 * config/tc-mips.c: Use signed add for n32 address arithmetic.
300 (append_insn): When filling delay slots with instructions
301 that have fixups that tc_gen_reloc might consider modifyable
302 in variant frags, start a new frag.
303 (load_address): Generate GOT_DISP with of without offset
304 depending on whether symbol is local. For -xgot, use
305 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
306 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
307 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
308 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
309 <ld_st>: In NewABI with small got, always use
310 GOT_PAGE/GOT_OFST, with the latter in the load/store
311 instruction. With big got, use GOT_HI16/GOT_LO16 or
313 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
314 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
315 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
316 (md_convert_frag): Use memmove for safe copying of overlapping
319 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
321 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
322 -mlong, -mshort-double and -mlong-double options; use table @code.
323 (M68HC11-Syntax): Update to document 68HC12 operands.
324 (M68HC11-Modifiers): New section for operand modifiers.
325 (M68HC11-Directives): New section for specific assembler directives.
326 (M68HC11-Branch): Fix Overfull hbox error.
328 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
330 * config/tc-mips.c (macro): Add comments explaining the rationale
333 2003-04-09 Chris Demetriou <cgd@broadcom.com>
335 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
336 constant address that Alexandre took out by accident. Reject
337 64-bit addresses that are not sign extensions of 32 bits only if
338 we don't support 64-bit address constants.
340 2003-04-09 Alan Modra <amodra@bigpond.net.au>
342 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
344 2003-04-08 Nick Clifton <nickc@redhat.com>
346 * as.c (perform_an_assembly_pass): If using cgen, call
348 * cgen.c (gas_cgen_begin): New function. If
349 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
350 otherwise call cgen_clear_signed_overflow_ok.
351 * cgen.h: Prototype gas_cgen_begin.
353 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
355 * write.c (write_relocs): Remove unused variable.
357 2003-04-06 Chris Demetriou <cgd@broadcom.com>
359 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
360 (macro): Use new macro to decide whether to emit constant address
361 as 32 or 64 bits if addresses are 32-bit wide but registers are
364 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
366 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
367 (M6811_OP_PAGE_ADDR): New internal define.
368 (get_operand): New modifier %page and %addr to obtain page and
369 address part of a far-function.
370 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
371 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
373 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
374 (find_opcode): Add comment.
375 (md_estimate_size_before_relax): Force relocation of
376 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
377 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
378 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
379 on the symbol itself so that DWARF2 strings are merged correctly.
381 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
383 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
384 default tic4x target format to 'coff2-tic4x'.
385 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
387 * config/tc-tic4x.h: Ditto
389 2003-04-03 Nick Clifton <nickc@redhat.com>
391 * NEWS: Mention support for Xtensa architecture.
393 2003-04-02 Philip Blundell <philb@gnu.org>
395 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
397 2003-04-02 Chris Demetriou <cgd@broadcom.com>
399 * config/tc-mips.c (macro2): Adjust implementation of
400 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
401 in the case where the source and destination registers
404 2003-04-01 Bob Wilson <bob.wilson@acm.org>
406 * Makefile.am (CPU_TYPES): Add xtensa.
407 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
408 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
409 (xtensa-relax.o): New target.
411 * Makefile.in: Regenerate.
412 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
413 extra_objects for xtensa targets.
414 * configure: Regenerate.
415 * write.c (write_object_file): Add new md_post_relax_hook.
416 * config/tc-xtensa.c: New file.
417 * config/tc-xtensa.h: Likewise.
418 * config/xtensa-istack.h: Likewise.
419 * config/xtensa-relax.c: Likewise.
420 * config/xtensa-relax.h: Likewise.
421 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
422 * doc/Makefile.in: Regenerate.
423 * doc/all.texi: Set new XTENSA variable.
424 * doc/as.texinfo: Set new Xtensa variable. Describe
425 Xtensa-specific options. Define line comment character for
426 Xtensa. Add Xtensa processors to list of ELF targets where
427 alignment is specified in bytes. Add new Xtensa-Dependent node.
428 Add acknowledgements for those contributing to the Xtensa port.
429 * doc/internals.texi: Describe new md_post_relax_hook.
430 * doc/c-xtensa.texi: New file.
433 2003-04-01 Nick Clifton <nickc@redhat.com>
434 Richard Earnshaw <rearnsha@arm.com>
436 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
437 (ARM_ARCH_IWMMXT): Simplify.
438 (insns): Place iwmmx instructions in correct place in table.
439 (arm_add_note): New function: Add a note entry to a .note section.
440 (md_begin): Make the default architecture be unknown.
441 Suppress the creation of an arm note section.
443 2003-03-26 Eric Christopher <echristo@redhat.com>
445 * config/tc-mips.c (nopic_need_relax): Check for
448 2003-03-25 Stan Cox <scox@redhat.com>
449 Nick Clifton <nickc@redhat.com>
451 Contribute support for Intel's iWMMXt chip - an ARM variant:
453 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
454 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
455 (enum wreg_type, enum iwmmxt_insn_type): New types.
456 (wr_register, wc_register, wcg_register): New macros.
457 (iwmmxt_table): New variable.
458 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
459 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
460 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
461 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
462 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
463 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
464 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
465 cp_byte_address_offset, cp_byte_address_required_here,
466 check_iwmmxt_insn): New functions.
467 (asm_opcode_insns): Add iWMMXt instructions.
468 (md_begin): Set the mach value for iWMMXt targets. Create a note
469 section to identify iwmmxt binaries.
470 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
471 * doc/c-arm.texi: Document the support for the iWMMXt.
472 * NEWS: Mention new support.
474 2003-03-24 Daniel Néri <dne@mayonnaise.net>
476 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
477 * doc/all.texi: Likewise.
478 * doc/c-tic54x.texi: Likewise.
480 2003-03-21 Andreas Schwab <schwab@suse.de>
482 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
483 avoid aliasing issue.
485 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
487 * config/tc-s390.c (s390_arch_size): Initialize to zero.
488 (current_arch_mask): Rename to current_mode_mask.
489 (current_arch_requested): Remove variable.
490 (current_cpu): New variable.
491 (init_default_arch): Set defaults values for s390_arch_size,
492 current_mode_mask and current_cpu.
493 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
494 (md_begin): Replace current_arch_mask by current_cpu.
495 (md_assemble): Adapt check and error message to current_mode_mask and
498 2003-03-09 James E Wilson <wilson@tuliptree.org>
500 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
501 * read.c (get_line_sb): Return end of line character or '\n' if
502 it is zero or non-existent.
504 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
506 * config/tc-mips.c (mips_validate_fix): New function.
507 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
508 (mips_validate_fix): Declare.
510 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
512 * Reverted 2003-03-02's patch.
514 2003-03-11 Steve Ellcey <sje@cup.hp.com>
516 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
517 (TC_DWARF2_EMIT_OFFSET): Provide default.
518 (out_debug_aranges, out_debug_info): Use it.
519 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
520 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
521 (ia64_gen_real_reloc_type): ... here.
522 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
524 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
526 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
527 (s_mips_ent): Likewise.
529 2003-03-04 Dmitry Diky <diwil@mail.ru>
531 * config/tc-msp430.c (mcu_types): Add recently announced x1122
532 and x1123 devices, add missed x437.
533 (md_show_usage): Sort device list.
535 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
537 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
538 (md_begin): Use preset_target_arch.
539 (md_longopts): Make isa option unconditional.
540 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
541 set preset_target_arch.
542 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
543 by -S_GET_VALUE (fixP->fx_subsy).
544 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
546 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
547 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
549 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
551 * config/tc-mips.c (append_insn): Add handling of
552 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
553 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
554 misaligned address and reange overflow.
555 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
556 earlier warnings about misaligned address and reange overflow.
557 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
558 (md_apply_fix): Likewise. Fix warning output.
559 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
560 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
561 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
563 2003-02-21 Nick Clifton <nickc@redhat.com>
565 * NEWS: Mention availability of test generator program.
567 2003-02-21 Miles Bader <miles@gnu.org>
569 * config/tc-v850.c (system_registers): Add v850e debug registers.
570 (system_register_name): Accept up to 27 (the last v850e sys register).
572 2003-02-21 Bob Wilson <bob.wilson@acm.org>
574 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
575 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
576 Capitalize section headings consistently. Format index entries more
577 consistently. Unconditionalize text about whether text and data
578 sections are alterable. Use @ifnottex for alternatives to @tex output
579 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
580 .size and .type directives. Be more polite about bad bug reports.
581 Move FDL into a separate file.
582 * doc/fdl.texi: New file.
584 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
586 * config/tc-mips.c (prev_reloc_op_frag): New variable.
587 (macro): Check it to decide whether a new frag is needed.
588 (my_getSmallExpression): Set it.
590 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
592 * cgen.c: Fix typo: intial -> initial.
594 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
596 * app.c (do_scrub_chars): Handle '||' in two states.
598 2003-02-13 Alan Modra <amodra@bigpond.net.au>
600 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
601 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
603 2003-02-11 Uwe Stieber <uwe@wwws.de>
605 * configure.in: Add support for kaOS as cross build target system.
606 * configure: Regenerated.
608 2003-02-10 Nick Clifton <nickc@redhat.com>
610 * config/tc-arm.c (md_begin): If the Maverick co-processor is
611 selected, set the EF_ARM_MAVERICK_FLOAT flag and
612 bfd_mach_arm_ep9312 machine number.
614 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
616 * config/tc-mips.c (reloc_needs_lo_p): New function.
617 (fixup_has_matching_lo_p): New function.
618 (append_insn): Use reloc_needs_lo_p to check whether a relocation
619 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
620 if that fixup already has a matching %lo(). Don't call frag_wane here.
621 (macro): Call frag_wane here if the last unmatched hi was in the
623 (pic_need_relax): New function, split out from...
624 (md_estimate_size_before_relax): ...here.
625 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
626 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
628 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
630 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
632 2003-02-06 Alan Modra <amodra@bigpond.net.au>
634 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
637 2003-02-05 Alan Modra <amodra@bigpond.net.au>
639 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
640 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
641 accept x@got+off etc.
642 (md_assemble): Handle TLS relocs.
643 (ppc_force_relocation): Force for all TLS relocs.
644 (ppc_fix_adjustable): Likewise.
645 (md_apply_fix3): Handle TLS relocs.
647 2003-02-04 Alan Modra <amodra@bigpond.net.au>
649 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
650 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
652 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
654 * config/tc-mips.c (enum small_ex_type): Remove.
655 (imm_unmatched_hi): Remove.
656 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
657 argument from calls to append_insn.
658 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
660 (macro_build): Update append_insn calls.
661 (mips16_macro_build, macro_build_lui): Likewise.
662 (mips_ip): Rework handling of small expressions. Move explicit
663 relocation handling into my_getSmallExpression. Assume that the
664 value of 'o' operands is zero if there is only one bracketed
666 (percent_op): Make constant. Record the BFD relocation code
667 associated with each operator.
668 (my_getSmallParser, my_getPercentOp): Remove.
669 (parse_relocation): New function.
670 (my_getSamllExpression): Rework. Fill in relocations here
671 rather than in mips_ip.
673 2003-01-29 Nick Clifton <nickc@redhat.com>
675 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
676 assembler's handling of # <linenum> "<filename>" directives work.
678 2003-01-28 Jakub Jelinek <jakub@redhat.com>
680 * dwarf2dbg.c: Include filenames.h.
681 (struct file_entry): Make filename const char *.
682 (dirs, dirs_in_use, dirs_allocated): New variables.
683 (get_filenum): Add NUM argument. Build directory table.
684 (dwarf2_where): Adjust caller.
685 (dwarf2_directive_file): Use get_filenum to allocate
686 slot in file and directory tables.
687 (dwarf2_directive_loc): Recreate full filename from
688 directory and filename part if needed for listing.
689 (out_file_list): Output directory table.
690 Output main source file dirname before its filename.
692 2003-01-28 Dmitry Diky <diwil@mail.ru>
694 * config/tc-msp430.c: Replace occurences of 'tolower' with
697 2003-01-27 David Mosberger <davidm@hpl.hp.com>
699 * config/tc-ia64.c (dot_vframesp): Correct error message.
700 (dot_vframepsp): Ditto.
702 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
704 * configure.in (em): Set to irix on all Irix systems.
705 * configure: Rebuilt.
706 * config/te-irix.h: New file.
707 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
708 whether to use Irix-specific 64-bit format.
710 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
712 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
714 2003-01-25 Jakub Jelinek <jakub@redhat.com>
716 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
717 (tc_gen_reloc): Handle TLS relocs.
718 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
719 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
721 * config/obj-elf.c (obj_elf_section_word): Handle tls.
722 (obj_elf_type): Handle tls_object.
724 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
726 * config/tc-s390.c (s390_tls_suffix): New function.
727 (elf_suffix_type): Add suffix enums for TLS relocations.
728 (s390_elf_suffix): Add suffix strings for TLS relocations.
729 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
731 (md_gather_operands): Map new instruction operand/elf suffix
732 combinations for TLS to bfd relocations.
733 (tc_s390_fix_adjustable): Add new TLS relocations.
734 (tc_s390_force_relocation): Likewise.
735 (md_apply_fix3): Likewise.
737 2003-01-24 Alan Modra <amodra@bigpond.net.au>
739 * as.h: Update copyright date.
740 * symbols.c: Likewise.
741 * config/tc-d10v.h: Likewise.
742 * config/tc-fr30.h: Likewise.
743 * config/tc-i960.h: Likewise.
744 * config/tc-mips.h: Likewise.
746 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
747 (MD_APPLY_SYM_VALUE): Move.
749 2003-01-23 Nick Clifton <nickc@redhat.com>
751 NEWS: Announce sh2e support.
755 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
757 * config/tc-sh.c (md_show_usage): Added sh2e next to
759 (sh_elf_final_processing): Handle arch_sh2e.
761 2003-01-23 Alan Modra <amodra@bigpond.net.au>
763 * symbols.c (S_FORCE_RELOC): Add "strict" param.
764 * symbols.h (S_FORCE_RELOC): Likewise.
765 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
766 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
767 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
768 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
769 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
770 * write.c (generic_force_reloc): New function.
771 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
772 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
773 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
774 * as.h (generic_force_reloc): Declare.
775 * doc/internals.texi (S_FORCE_RELOC): Update.
776 (TC_FORCE_RELOCATION_SUB_SAME): Update.
778 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
780 (alpha_fix_adjustable): Likewise.
781 * config/tc-arm.c (arm_force_relocation): Likewise.
782 * config/tc-cris.c (md_cris_force_relocation): Likewise.
783 * config/tc-frv.c (frv_force_relocation): Likewise.
784 * config/tc-i386.c (md_apply_fix3): Likewise.
785 * config/tc-ia64.c (ia64_force_relocation): Likewise.
786 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
787 * config/tc-m32r.c (m32r_force_relocation): Likewise.
788 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
789 * config/tc-mcore.c (mcore_force_relocation): Likewise.
790 * config/tc-mips.c (mips_force_relocation): Likewise.
791 * config/tc-mmix.c (mmix_force_relocation): Likewise.
792 * config/tc-ppc.c (ppc_force_relocation): Likewise.
793 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
794 * config/tc-sh.c (sh_force_relocation): Likewise.
795 (md_pcrel_from_section): Likewise.
796 * config/tc-sparc.c (tc_gen_reloc): Likewise.
797 * config/tc-v850.c (v850_force_relocation): Likewise.
798 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
799 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
800 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
801 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
803 * config/tc-d10v.c (d10v_force_relocation): Delete.
804 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
805 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
806 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
807 * config/tc-fr30.c (fr30_force_relocation): Delete.
808 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
809 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
810 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
811 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
812 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
813 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
814 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
815 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
816 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
817 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
818 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
819 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
820 * config/tc-i386.c (i386_force_relocation): Delete.
821 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
823 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
824 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
825 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
826 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
828 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
829 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
831 2003-01-23 Alan Modra <amodra@bigpond.net.au>
833 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
834 sh64_elf_section_data.
835 * config/tc-sh64.h: Include elf32-sh64.h.
836 * config/tc-m68hc11.c: Don't include stdio.h.
837 (md_show_usage): Fix missing continuation.
838 * Makefile.am: Run "make dep-am".
839 * Makefile.in: Regenerate.
841 2003-01-22 Nick Clifton <nickc@redhat.com>
843 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
845 2003-01-21 Fabio Alemagna <falemagn@aros.org>
847 * configure.in: Handle *-*-aros*.
848 * configure: Regenerated from configure.in.
850 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
852 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
853 gotplt and pltoff relocations.
854 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
855 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
856 gotplt and pltoff to bfd relocations.
857 (md_gather_operands): Map new instruction operand/elf suffix
858 combinations to bfd relocations.
859 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
860 to the list of unadjustable relocations.
861 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
862 and pltoff relocations.
863 (md_apply_fix3): Add the new relocations.
865 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
867 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
870 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
872 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
873 of relocs for memory bank addressing.
875 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
877 * config/tc-m68hc11.c (md_show_usage): Update usage.
878 (md_parse_option): Recognize -m68hcs12.
879 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
881 * doc/as.texinfo (Overview): Document new option -m68hcs12.
883 2003-01-16 Jakub Jelinek <jakub@redhat.com>
885 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
887 2003-01-16 Alan Modra <amodra@bigpond.net.au>
889 * Makefile.am: Run "make dep-am".
890 * Makefile.in: Regenerate.
891 * po/POTFILES.in: Regenerate.
893 2003-01-11 Alan Modra <amodra@bigpond.net.au>
895 * read.c (get_absolute_expr): New, split out from..
896 (get_absolute_expression): ..here.
897 * read.h (get_absolute_expr): Declare.
898 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
899 Trim size to arch bits_per_address, and test for negative input
900 via get_absolute_expr.
902 2003-01-07 DJ Delorie <dj@redhat.com>
904 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
906 (xstormy16_md_apply_fix3): Use adjustment.
908 2003-01-02 Ben Elliston <bje@redhat.com>
910 * configure.in: Add iq2000-elf target.
911 * configure: Regenerate.
912 * config/tc-iq2000.c: New file.
913 * config/tc-iq2000.h: Likewise.
914 * po/gas.pot: Regenerate.
916 2003-01-02 Chris Demetriou <cgd@broadcom.com>
918 * config/tc-mips.c: Update copyright years to include 2003.
919 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
920 Additionally, clean up their code slightly and clean up their
923 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
925 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
927 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
929 * doc/Makefile.in: Regenerate.
931 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
933 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
934 of .init and .fini sections for array initializers and finalizers.
936 2002-12-31 Chris Demetriou <cgd@broadcom.com>
938 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
939 the "+D" operand, which will be used only by the disassembler.
941 2002-12-30 Chris Demetriou <cgd@broadcom.com>
943 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
945 * configure: Regenerate.
946 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
947 (macro_build): Handle "K" operand.
948 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
949 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
950 (mips_ip): New variable "lastpos", and implement "+A", "+B",
951 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
952 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
953 (validate_mips_insn): Implement "+" as a way to extend the
954 allowed operands, and implement "K", "+A", "+B", and "+C"
956 (OPTION_MIPS32R2): New define.
957 (md_longopts): Add entry for OPTION_MIPS32R2.
958 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
959 (md_parse_option): Handle OPTION_MIPS32R2.
960 (s_mipsset): Reimplement handling of ".set mipsN" options
961 and add support for ".set mips32r2".
962 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
963 (md_show_usage): Document "-mips32r2" option.
964 * doc/as.texinfo: Document "-mips32r2" option.
965 * doc/c-mips.texi: Likewise.
967 2002-12-30 Dmitry Diky <diwil@mail.ru>
969 * configure.in: Add msp430 target.
970 * configure: Regenerate.
971 * Makefile.am: Add msp430 target.
972 * Makefile.in: Regenerate.
973 * config/tc-msp430.c: New file: msp430 assembler.
974 * config/tc-msp430.h: New file: target macros for msp430.
975 * doc/Makefile.am: Add msp430 target.
976 * doc/Makefile.in: Regenerate.
977 * doc/as.texinfo: Include msp430 documenation.
978 * doc/all.texi: Enable msp430 documentation.
979 * doc/c-msp430.texi: New file: document msp430 specific features
982 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
984 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
985 (dwarf2_finish): Use it.
986 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
987 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
989 2002-12-20 DJ Delorie <dj@redhat.com>
991 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
992 BFD_RELOC_XSTORMY16_12.
994 2002-12-19 Alan Modra <amodra@bigpond.net.au>
996 * doc/as.texinfo (Invoking): Typo fix.
997 * config/tc-tic54x.c (encode_operand): Comment typo fix.
999 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1001 * doc/c-alpha.texi: Fix typos.
1002 * doc/c-arm.texi: Likewise.
1003 * doc/c-d10v.texi: Likewise.
1004 * doc/c-i370.texi: Likewise.
1005 * doc/c-i960.texi: Likewise.
1006 * doc/c-ia64.texi: Likewise.
1007 * doc/c-mmix.texi: Likewise.
1008 * doc/c-ns32k.texi: Likewise.
1009 * doc/c-pdp11.texi: Likewise.
1010 * doc/c-pj.texi: Likewise.
1011 * doc/c-sh64.texi: Likewise.
1012 * doc/c-sparc.texi: Likewise.
1013 * doc/c-tic54x.texi: Likewise.
1014 * doc/c-v850.texi: Likewise.
1015 * doc/c-vax.texi: Likewise.
1016 * doc/internals.texi: Likewise.
1018 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1020 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1021 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1022 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1023 arrange not to issue warnings about use of AT when AT is not
1026 2002-12-17 Nick Clifton <nickc@redhat.com>
1028 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1029 prevent it being confused with -k.
1031 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1033 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1034 has already been set up, use it.
1036 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1038 * ChangeLog-9295: Fix a typo.
1040 * config/tc-d10v.c: Fix a comment typo.
1041 * config/tc-dlx.c: Likewise.
1042 * config/tc-h8300.h: Likewise.
1043 * config/tc-h8500.h: Likewise.
1044 * config/tc-mips.c: Likewise.
1045 * config/tc-s390.c: Likewise.
1046 * config/tc-sh.h: Likewise.
1047 * config/tc-tic80.h: Likewise.
1048 * config/tc-w65.h: Likewise.
1049 * config/tc-z8k.c: Likewise.
1050 * config/tc-z8k.h: Likewise.
1051 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1053 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1055 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1056 Simplify sign extension. Remove redundant unsigned < 0 test.
1057 * config/tc-i960.c (md_ri_to_chars): Prototype.
1058 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1059 (dump_literals): Init brarsym, and test later instead of isforce.
1061 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1062 (parse): Constify line and lineptr.
1063 (md_begin): Calculate endop here.
1065 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1067 * config/obj-vms.c: Formatting. Include fnctl.h.
1068 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1069 (Object_Record_Offset): Make it a size_t.
1070 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1071 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1072 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1073 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1074 (vms_fixup_data_section <data_size>): Add here instead.
1075 * config/e-criself.c: Fix typo in last change.
1077 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1079 * write.c (write_object_file): Fix signed/unsigned warning.
1080 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1081 * config/e-criself.c (criself_bfd_name): Prototype.
1082 * config/obj-aout.c (s_sect): Remove unused function.
1083 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1084 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1085 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1086 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1087 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1088 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1089 (vms_fixup_text_section <text_siz>): Likewise.
1090 (synthesize_data_segment <data_size>): Likewise.
1091 (vms_fixup_xtors_section <sect_no>): Likewise.
1092 (structure_count): Don't use implicit int type.
1093 * config/tc-a29k.c (insert_sreg): Prototype.
1094 (define_some_regs): Prototype, make static.
1095 (parse_operand): Likewise.
1096 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1097 (md_show_usage <stream>): Likewise.
1098 (md_section_align <segment>): Likewise.
1099 (md_convert_frag <all args>): Likewise.
1100 (md_estimate_size_before_relax <all args>): Likewise.
1101 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1102 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1103 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1104 (md_undefined_symbol <name>): Likewise.
1105 (md_convert_frag <all args>): Likewise.
1106 (write_long <opcode>): Likewise.
1107 (tc_gen_reloc <seg>): Likewise.
1108 (md_estimate_size_before_relax <all args>): Likewise.
1109 (md_apply_fix3 <seg>): Likewise.
1110 (s_d30v_align <ignore>): Likewise.
1111 (build_insn): Correct format string.
1112 (md_apply_fix3): Likewise.
1113 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1114 (md_undefined_symbol <name>): Likewise.
1115 (md_convert_frag <all args>): Likewise.
1116 (md_cgen_lookup_reloc <insn>): Likewise.
1117 (md_begin): Delete unused vars.
1118 (md_assemble): Likewise.
1119 (md_estimate_size_before_relax): Likewise.
1120 (fr30_relax_frag): #if 0 out, seems unused.
1121 (md_atof): Remove declaration of atof_ieee.
1122 (restore_colon): Prototype.
1123 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1124 (frv_find_in_vliw): Likewise.
1125 (frv_debug_tomcat): Likewise.
1126 (frv_adjust_vliw_count): Likewise.
1127 (frv_tomcat_shuffle): Likewise.
1128 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1129 frv_find_in_vliw call.
1130 (md_atof): Remove declaration of atof_ieee.
1131 * config/tc-h8500.c (cons): Delete declaration.
1132 (md_begin <opcode>): Constify.
1133 (displacement_size, immediate_size, absolute_size): Remove.
1134 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1135 (tc_crawl_symbol_chain <headers>): Likewise.
1136 (md_undefined_symbol <name>): Likewise.
1137 (tc_headers_hook <headers>): Likewise.
1138 (md_parse_option <c,arg>): Likewise.
1139 (md_show_usage <stream>): Likewise.
1140 (md_convert_frag <headers, seg>): Likewise.
1141 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1142 (md_atof): Remove declaration of atof_ieee.
1143 (tc_aout_fix_to_chars): Remove unused function.
1144 (parse_reg): Prototype.
1145 (parse_exp): Prototype.
1146 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1147 (parse_reglist): Prototype.
1148 (get_operand): Prototype.
1149 (get_operands): Prototype.
1150 (get_specific): Prototype. Make "this_index" signed.
1151 (check): Prototype, make static.
1153 (build_relaxable_instruction): Prototype, make static.
1154 (build_bytes): Prototype.
1155 (wordify_scb): Prototype.
1156 * config/tc-h8500.h (start_label): Declare.
1157 (tc_coff_sizemachdep): Declare.
1158 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1159 (i370_rmode <unused>): Likewise.
1160 (i370_csect <unused>): Likewise.
1161 (i370_dc <unused>): Likewise.
1162 (i370_ds <unused>): Likewise.
1163 (i370_elf_lcomm <unused>): Likewise.
1164 (i370_ltorg <ignore>): Likewise.
1165 (i370_using <ignore>): Likewise.
1166 (i370_drop <ignore>): Likewise.
1167 (i370_byte <ignore>): Likewise.
1168 (i370_tc <ignore>): Likewise.
1169 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1170 (md_convert_frag <all args>): Likewise.
1171 (md_undefined_symbol <name>): Likewise.
1172 (md_pcrel_from_section <sec>): Likewise.
1173 (tc_gen_reloc <seg>): Likewise.
1174 (i370_section_letter): #if 0 unused functions.
1175 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1176 (symbol_locate): Prototype.
1177 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1178 (md_number_to_disp, md_number_to_field): Remove.
1179 (md_apply_fix3): Correct format string and cast "fup".
1180 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1181 (s_endian <ignore>): Likewise.
1182 (md_undefined_symbol <name>): Likewise.
1183 (tc_crawl_symbol_chain <headers>): Likewise.
1184 (tc_set_bal_of_call): Likewise.
1185 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1186 (i960_handle_align <fragp>): Likewise.
1187 (i960_validate_fix <this_segment_type>): Likewise
1188 (tc_gen_reloc <section>): Likewise.
1189 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1190 (struct memS, struct regop): Forward declare.
1191 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1192 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1193 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1194 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1195 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1196 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1197 (md_number_to_field): Likewise.
1198 (md_number_to_disp): Remove unused function.
1199 (md_atof): Remove declaration of atof_ieee.
1200 (md_apply_fix3): Correct md_number_to_imm call.
1201 * config/tc-ip2k.c (md_assemble): Warning fix.
1202 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1203 (fill_insn <ignore>): Likewise.
1204 (debug_sym <ignore>): Likewise.
1205 (md_undefined_symbol <name>): Likewise.
1206 (m32r_scomm <ignore>): Likewise.
1207 (md_convert_frag <abfd>): Likewise.
1208 (md_cgen_lookup_reloc <insn>): Likewise.
1209 (m32r_record_hi16 <seg>): Likewise.
1210 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1211 (allow_m32rx): Prototype.
1212 (first_writes_to_seconds_operands): Prototype.
1213 (writes_to_pc): Prototype.
1214 (can_make_parallel): Prototype.
1215 (make_parallel): Prototype.
1216 (target_make_parallel): Prototype.
1217 (assemble_two_insns): Prototype.
1218 (m32r_record_hi16): Prototype.
1219 (md_atof): Remove declaration of atof_ieee.
1220 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1221 (m32r_force_relocation): Prototype.
1222 (m32r_elf_section_change_hook): Prototype.
1223 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1224 (md_show_usage): Fix signed/unsigned warning.
1225 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1226 (calcop): Ditto for reg_prefix var.
1227 (hexval): Add cast to fix signed/unsigned warning.
1228 (md_number_to_disp): Delete unused function.
1229 (md_number_to_field): Likewise.
1230 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1231 (match_name): Prototype.
1232 (get_bf2): Prototype.
1233 (get_bf_offset_expression): Prototype.
1234 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1235 (md_undefined_symbol <ignore>): Likewise.
1236 (md_create_short_jump <all args>): Likewise.
1237 (md_create_long_jump <all args>): Likewise.
1238 (md_convert_frag <abfd, sec>): Likewise.
1239 (md_apply_fix3 <segment>): Likewise.
1240 (md_section_align <segment>): Likewise.
1241 (md_pcrel_from_section <sec>): Likewise.
1242 (tc_gen_reloc <section>): Likewise.
1243 (reg_m, reg_n, immediate): Delete unused vars.
1244 (dump_literals): Fix signed/unsigned warning.
1245 (enter_literal): Likewise.
1246 (parse_imm): Likewise. Also fix format string.
1247 (parse_mem): Remove unused var.
1248 (md_assemble <LS>): Abort on unexpected inst.
1249 (md_atof): Remove declaration of atof_ieee.
1250 (md_parse_option): Remove unused vars.
1251 (md_apply_fix3): Fix format strings, cast args.
1252 (tc_gen_reloc): Delete unused var.
1253 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1254 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1255 (md_undefined_symbol <name>): Likewise.
1256 (md_convert_frag <abfd>): Likewise.
1257 (tc_gen_reloc <seg>): Likewise.
1258 (check_operand <insn>): Likewise.
1259 (md_convert_frag): Fix format strings.
1260 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1261 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1262 (md_atof): Remove declaration of atof_ieee.
1263 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1264 (md_apply_fix3): Fix bogus >>='s.
1265 (md_undefined_symbol): Delete unused var.
1266 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1267 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1268 (fake_opcode): Adjust for pj_opc_int_t change.
1269 (md_begin): Likewise.
1270 (md_assemble): Likewise.
1271 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1272 instead of non-existent third arg of parse_exp_save_ilp.
1273 (md_parse_option): Correct "little" and "big" calls.
1274 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1275 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1276 (tc_gen_reloc <section>): Likewise.
1277 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1278 (debug): Rewrite using VA_* macros.
1279 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1280 (md_convert_frag): Likewise.
1281 (md_parse_option): Likewise.
1282 (md_show_usage): Likewise.
1283 (md_undefined_symbol): Likewise.
1284 (tc_gen_reloc): Likewise.
1285 (md_operand): Likewise.
1286 (tc_aout_pre_write_hook): Delete.
1287 (struct tic30_insn): Make "operands" unsigned.
1288 (struct tic30_par_insn): Likewise.
1289 (md_assemble): Likewise for "count", "i" and "numops".
1290 (tic30_parallel_insn): Likewise for vars here.
1291 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1292 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1293 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1294 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1295 (md_undefined_symbol): Likewise.
1296 (md_parse_option): Likewise.
1297 (md_convert_frag): Likewise.
1298 (tc_coff_symbol_emit_hook): Likewise.
1299 (md_atof): Remove declaration of atof_ieee.
1300 (const_overflow): Warning fixes, tidy.
1301 (get_operands): Delete unused vars.
1302 (internal_error_a): Adjust format string to expect a long for arg.
1303 (find_opcode): Warning fixes, simplify.
1304 (build_insn): Cast internal_error_a arg.
1305 (md_begin): Likewise.
1306 (md_apply_fix3): Likewise.
1307 (md_assemble): Delete unused var.
1308 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1309 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1310 (whatreg, parse_reg, parse_exp): Make static, prototype.
1311 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1312 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1313 (get_operand, get_operands, get_specific, newfix): Likewise.
1314 (apply_fix, build_bytes): Likewise.
1315 (md_atof): Remove declaration of atof_ieee.
1316 (tc_aout_fix_to_chars): Delete.
1317 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1319 (md_parse_option): Fix s_segm and s_unseg calls.
1321 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1323 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1325 (RELAX_BRANCH_RELOC_S2): Delete.
1326 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1327 Do not handle BFD_RELOC_16_PCREL.
1328 (macro_build, mips_ip): Likewise.
1329 (md_pcrel_from): Return 4 for undefined symbols regardless of
1331 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1332 Don't dereference howto if no such relocation is available.
1333 Do not apply hack for in-place zero addend in NEWABI.
1334 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1336 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1337 Alan Modra <amodra@bigpond.net.au>
1339 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1340 (TC_LINKRELAX_FIXUP): Add comments.
1342 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1344 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1346 (r_register_name, xr_register_name): Add prototype declarations.
1348 2002-12-08 H.J. Lu <hjl@gnu.org>
1350 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1351 copied from tc-i386.c.
1353 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1355 Fix Bug savannah/1825:
1356 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1357 (md_relax_table): Define specific relax for PC-rel offsets.
1358 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1359 (m68hc11_relax_frag): Handle the new relax code.
1360 (md_convert_frag): Likewise.
1361 (md_estimate_size_before_relax): Likewise.
1363 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1365 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1367 2002-12-05 Richard Henderson <rth@redhat.com>
1369 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1370 (ia64_gen_real_reloc_type): Handle it.
1371 (pseudo_func): Add @ltoffx.
1372 (md_begin): Build .<ltoffx>.
1373 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1375 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1377 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1378 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1379 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1380 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1381 COFF to call arm_force_relocation.
1383 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1385 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1387 (emit_one_bundle): Handle "hint" instruction.
1388 (operand_match): Match IA64_OPND_AR_CSD.
1390 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1392 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1395 2002-12-03 Nick Clifton <nickc@redhat.com>
1397 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1398 .PPC.EMB.apuinfo sections.
1400 2002-12-03 Richard Henderson <rth@redhat.com>
1402 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1404 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1406 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1407 (cons, s_align_bytes): Delete declaration.
1409 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1411 (dot): Delete unused function.
1412 (w65_expression): Remove unused arg.
1413 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1415 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1417 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1419 (check): Remove unused function.
1420 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1421 on unhandled switch case.
1422 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1424 (tc_crawl_symbol_chain): Delete unused function.
1425 (tc_headers_hook): Likewise.
1426 (tc_Nout_fix_to_chars): Likewise.
1427 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1428 (md_parse_option): Likewise.
1429 (md_convert_frag): Likewise.
1430 (tc_coff_symbol_emit_hook): Likewise.
1431 (md_show_usage): Likewise.
1432 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1433 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1434 (w65_expression): Declare.
1436 * po/POTFILES.in: Regenerate.
1438 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1439 and ARM_ADRL_IMMEDIATE.
1441 2002-12-02 Nick Clifton <nickc@redhat.com>
1443 * gasp.c: Delete. It has been deprecated.
1444 * NEWS: Mention that gasp has been removed.
1445 * Makefile.am: Remove references to gasp.
1446 * makefile.vms: Likewise.
1447 * mpw-make.sed: Likewise.
1448 * Makeile.in: Regenerate.
1449 * doc/gasp.texi: Delete.
1450 * doc/Makefile.am: Remove references to gasp.texi.
1451 * doc/Makefile.in: Regenerate.
1452 * macro.c: Delete references to gasp.
1453 Remove use of comment_char function parameter as it is no longer
1455 * macro.h: Update prototypes to remove comment_char parameter.
1457 * read.c (read_a_source_file, s_irp): Remove comment_char
1458 parameter from invocation of functions in macro.c
1460 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1462 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1464 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1466 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1467 (tc_gen_reloc): Mark section param as not used.
1469 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1471 Fix Bug savannah/1825:
1472 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1473 that are not pc-relative.
1474 (m68hc11_relax_frag): Declare.
1476 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1477 the offsetable indexed addressing modes (n,r).
1478 (build_insn): Cleanup some locals.
1479 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1480 relaxation of difference between two symbols of same section.
1481 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1482 only when this is a PC-relative operand and the offset is not absolute.
1483 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1484 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1485 be handled by m68hc11_relax_frag.
1487 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1489 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1490 (32-bit int, 64-bit double).
1491 (md_longopts): New options -mshort, -mlong, -mshort-double and
1492 -mlong-double to control the ABI.
1493 (md_show_usage): Update.
1494 (md_parse_option): Handle new options.
1495 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1497 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1499 * symbols.c (report_op_error): New function, broken out of ...
1500 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1503 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1505 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1506 for BFD_RELOC_32_PLT_PCREL.
1508 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1510 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1511 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1512 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1513 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1514 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1515 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1516 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1517 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1518 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1519 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1520 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1521 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1522 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1523 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1524 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1525 TRUE/FALSE. Formatting.
1527 2002-11-29 Nick Clifton <nickc@redhat.com>
1529 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1530 assume a value of zero.
1531 (do_bkpt): Likewise.
1533 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1535 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1536 for TLS relocations.
1538 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1540 * config/tc-ia64.c (md_apply_fix3): Add default case.
1542 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1544 * symbols.c (S_SET_THREAD_LOCAL): New function.
1545 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1546 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1547 for TLS relocations.
1548 * config/tc-ia64.c (md_apply_fix3): Likewise.
1549 * config/tc-alpha.c (md_apply_fix3): Likewise.
1551 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1553 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1556 2002-11-26 DJ Delorie <dj@redhat.com.
1558 * dwarf2dbg.c (scale_addr_delta): New.
1559 (size_inc_line_addr): Use it.
1560 (emit_inc_line_addr): Use it.
1562 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1564 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1565 (md_assemble): Don't pass on branches to constants as relaxable.
1568 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1570 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1572 2002-11-21 Randolph Chung <randolph@tausq.org>
1574 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1575 only if they have default visibility.
1577 2002-11-21 Richard Henderson <rth@redhat.com>
1579 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1582 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1584 * config/tc-mcore.c (mcore_pool_count): New function.
1585 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1587 2002-11-20 Klee Dienes <kdienes@apple.com>
1589 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1590 coalesce the name fields to use the same pointer.
1592 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1593 the name fields to use the same pointer.
1594 (get_specific): Check for opcodes with the same name using strcmp
1595 as well as comparing the pointer.
1597 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1599 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1602 2002-11-19 Richard Henderson <rth@redhat.com>
1604 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1605 visibility portion of st_other.
1607 2002-11-19 Klee Dienes <kdienes@apple.com>
1609 * config/tc-h8300.c (struct h8_instruction): New type, used to
1610 wrap h8_opcodes with length, noperands, idx, and size fields
1611 (computed at run-time).
1612 (h8_instructions): New variable.
1613 (md_begin): Allocate the storage for h8_instructions. Fill
1614 h8_instructions with pointers to the appropriate opcode and the
1615 correct value for the additional fields.
1616 (clever_message): Update to use h8_instructions instead of
1618 (build_bytes): Ditto.
1619 (get_specific): Ditto.
1620 (md_assemble): Ditto.
1622 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1624 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1625 adjustments to symbols in merge sections.
1627 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1629 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1631 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1633 * dwarf2dbg.h (dwarf2_format): New enum.
1634 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1635 (out_debug_line, out_debug_info): Add code for handling 64-bit
1637 * config/tc-mips.h (mips_dwarf2_format): Declare.
1638 * config/tc-mips.c (mips_dwarf2_format): New function.
1639 * doc/internals.texi (DWARF2_FORMAT): Document.
1641 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1643 * config/tc-mips.c (s_change_section): Make sure input buffer
1644 is not accessed past the end. Don't hand
1645 obj_elf_change_section a pointer into the input buffer.
1647 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1649 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1652 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1654 * config/tc-tic4x.c: Fixed proper commandline
1655 parameters. Added support for new opcode-list format. General
1656 error message fixups.
1657 (c4x_inst_add): Reject insn not for our CPU
1658 (md_begin): Added matrix for setting the proper opcode-level &
1659 device-flags according to cpu type and revision. Rewrite the
1661 (c4x_operand_parse): Fix opcode bug
1662 (c4x_operands_match): New function argument. Added dry-run
1663 mechanism, that is optional error generation. Added constraint 'i'
1665 (c4x_insn_check): Added new function for post-verification of the
1667 (md_assemble): Check all opcodes before croaking because of an
1668 argument mismatch. Need this to be able to fully support
1669 ortogonally arguments.
1670 (md_parse_options): Revised commandprompt swicthes and added new
1672 (md_show_usage): Complete rewrite of printout.
1674 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1676 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1677 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1678 warning when using constant direct bigger than 2^16. Add the new
1681 2002-11-11 Christopher Faylor <cgf@redhat.com>
1683 * configure.in: Use .gdbinit under Cygwin.
1684 * configure: Regenerate.
1686 2002-11-11 Christopher Faylor <cgf@redhat.com>
1688 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1691 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1693 * config/tc-tic4x.c: Declare as many functions as possible as
1694 static. Maintenance on the general indenting. Removed unnecessary
1695 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1696 function. Add support for new DSP, TMS320VC33. Fix bug for
1697 converting flonum constants.
1698 (c4x_do_align): Add proper align handling. Setup align to insert
1700 (c4x_gen_to_words): Support for extended TI type floats.
1701 (md_atof): Proper dumping of multiple-word littlenums.
1702 (c4x_atof): Added support for extended TI type floats.
1703 (c4x_stringer): Added new function to handle compact strings.
1704 (c4x_emit_char): Added new function argument to handle custom
1705 length inserts, like single-byte strings.
1706 * config/tc-tic4x.h: Add proper align handling with NOP's.
1707 * Makefile.am: Added tic4x dependecy
1708 * Makefile.in: Regenerate
1710 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1712 * macro.c (get_any_string): Correct logic for not going beyond end
1715 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1717 * config/tc-mmix.c (get_putget_operands): Mark both possible
1718 operands as invalid at beginning.
1720 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1721 Initialize target of fixup to zero.
1723 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1725 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1726 NEWABI, but we should still emit HI16_S for non-PIC n32.
1728 2002-11-06 Richard Henderson <rth@redhat.com>
1730 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1731 (alpha_fix_adjustable): ... here.
1732 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1734 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1736 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1739 2002-11-05 H.J. Lu <hjl@gnu.org>
1741 * config/tc-mips.c (support_64bit_objects): Check *l before it
1744 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1746 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1747 SEC_LOAD flags for sections marked as 's'.
1749 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1751 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1752 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1753 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1756 * dep-in.sed: Fix typo.
1758 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1760 * configure.in: Update ARM CPU patterns.
1761 * configure: Regenerated.
1763 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1765 * itbl-lex.l: Use #include <> for generated headers.
1766 * itbl-ops.c: Likewise.
1768 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1770 * doc/gasp.texi: Fix typo in deprecation note.
1772 2002-10-23 Nick Clifton <nickc@redhat.com>
1774 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1775 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1777 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1779 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1780 (tc_frob_file_before_adjust): Don't define.
1781 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1783 (mmix_frob_file_before_adjust): Remove ineffective function.
1785 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1787 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1788 (cris_relax_frag): New function.
1789 (md_estimate_size_before_relax) <case ENCODE_RELAX
1790 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1791 expressions that will become absolute expressions to relaxation.
1792 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1793 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1794 value, not distance to symbol.
1795 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1796 Ditto. Correct placement of fixup.
1797 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1799 * config/tc-cris.h (cris_relax_frag): Declare.
1800 (md_relax_frag): Define.
1802 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1804 * config/obj-elf.c (special_sections): Use correct types for init
1806 (obj_elf_change_section): Don't mess with init array section type.
1808 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1810 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1811 for relocs against symbols in a merged section.
1813 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1815 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1816 table as register names.
1818 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1820 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1823 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1825 * expr.c (operand): Add support for n.nn flonums.
1827 2002-10-17 Johannes Stezenbach <js@convergence.de>
1829 * itbl-parse.y (entry): Provide empty action.
1831 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1833 * configure.in (BFDVER_H): Set and subst.
1834 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1835 * Makefile.am: Run "make dep-am".
1837 * configure: Regenerate.
1838 * Makefile.in: Regenerate.
1839 * doc/Makefile.in: Regenerate.
1841 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1843 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1844 (MD_APPLY_SYM_VALUE): Define for PE too.
1846 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1848 * Makefile.am: Run "make dep-am".
1849 (CPU_OBJ_VALID): sh64 coff is invalid.
1850 * as.c: #include "bfdver.h".
1851 * Makefile.in: Regenerate.
1852 * config.in: Regenerate.
1854 2002-10-14 Momchil Velikov <velco@fadata.bg>
1856 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1858 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1860 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1861 * configure: Regenerate.
1863 2002-10-13 Eric Christopher <echristo@redhat.com>
1864 Alexandre Oliva <aoliva@redhat.com>
1866 * config/tc-mips.c (s_gpdword): New function.
1867 (mips_pseudo_table): Add .gpdword.
1868 (mips_need_elf_addend_fixup): never for NEWABI.
1869 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1871 (s_cpadd): Generate .cpadd on NEWABI.
1873 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1875 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1877 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1879 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1880 (md_relax_frag): Adjust macro.
1881 * config/tc-mips.c (mips_relax_branch): New variable.
1882 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1883 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1884 (RELAX_MIPS16_P): Adjust.
1885 (append_insn): Emit branch to non-constant in a frag_var if
1886 branch-relaxation is desirable and possible.
1887 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1888 (OPTION_ELF_BASE): Adjust.
1889 (md_parse_option): Handle new options.
1890 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1892 (relaxed_branch_length): New function.
1893 (md_estimate_size_before_relax): Handle branch frags.
1894 (mips_relax_frag): Likewise.
1895 (md_convert_frag): Handle branch frags. Warn if branch is
1898 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1900 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1902 (md_apply_fix3): Add TLS relocs.
1903 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1906 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1907 Alan Modra <amodra@bigpond.net.au>
1909 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1910 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1912 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1914 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1917 2002-10-09 Richard Shann <richard.shann@superh.com>
1918 Stephen Clarke <stephen.clarke@superh.com>
1920 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1923 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1925 * contig/tc-sh.c (sh_local_pcrel): New.
1926 (sh_force_relocation): Use sh_local_pcrel.
1927 (md_pcrel_from_section): Check the relocation type whether it
1928 should be resolved locally. Use S_FORCE_RELOC.
1930 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1932 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1933 (TC_FORCE_RELOCATION): Tidy arg.
1935 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1936 Ken Raeburn <raeburn@cygnus.com>
1937 Aldy Hernandez <aldyh@redhat.com>
1938 DJ Delorie <dj@redhat.com>
1939 Michael Meissner <meissner@redhat.com>
1940 Eric Christopher <echristo@redhat.com>
1941 Richard Sandiford <rsandifo@redhat.com>
1943 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1944 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1945 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1946 (hilo_interlocks): True for CPU_VR5500.
1947 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1948 (mips_fix_vr4122_bugs): New.
1949 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1950 (mips_emit_delays): Likewise.
1951 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1952 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1953 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1954 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1955 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1956 (OPTION_ELF_BASE): Bump.
1957 (md_parse_option): Handle the new options.
1958 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1961 2002-09-29 H.J. Lu <hjl@gnu.org>
1963 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1964 twice if howto->pcrel_offset is true.
1966 2002-09-28 Matt Thomas <matt@3am-software.com>
1967 Jason Thorpe <thorpej@wasabisystems.com>
1969 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1970 convert undefined references to GOT32/PLT32 if PIC code is
1971 requested. Fix comment.
1973 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1975 * config/tc-sh.c (sh_force_relocation): Return 0 for
1976 some PC relative relocations when not relaxing.
1978 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1980 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1981 Define them if not BFD_ASSEMBLER.
1982 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1984 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1985 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1986 (tc_gen_reloc): Handle x86-64 TLS relocs.
1988 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1990 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1991 fixups to current or absolute section.
1993 2002-09-26 Jim Wilson <wilson@redhat.com>
1995 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1998 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2000 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2001 capable configuration.
2002 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2004 (mips_ip): Likewise.
2006 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2008 * config/tc-mips.c (append_insn): Fix jump overflow check.
2010 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2012 * config/tc-i386.c (process_operands): Warn about "lea" segment
2015 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2017 * write.c: Delete set_segment_vma and prototype. Update all callers.
2019 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2021 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2022 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2023 Rename "fseg" to "sym_seg".
2024 * Makefile.am: Run "make dep-am".
2025 * Makefile.in: Regenerate.
2026 * doc/Makefile.in: Regenerate.
2028 2002-09-20 Nick Clifton <nickc@redhat.com>
2030 * symbols.c (colon): Do not allow symbols to be created in the
2031 absolute section if WORKING_DOT_WORD is not defined and
2032 new_broken_words would require a new frag to be created.
2034 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2036 * expr.c (expr): Simplify foo-foo here.
2037 (clean_up_expression): Remove O_subtract code.
2039 * write.h (struct fix): Add fx_dot_value.
2040 (dot_value): Declare.
2041 * write.c (dot_value): New var.
2042 (fix_new_internal): Save dot_value as fx_dot_value.
2043 (fixup_segment): Adjust fx_offset using fx_dot_value.
2044 * expr.c (expr): Update dot_value.
2046 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2048 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2049 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2050 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2052 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2053 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2054 BFD_RELOC_386_TLS_GOTIE.
2056 2002-09-19 Richard Henderson <rth@redhat.com>
2058 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2060 (alpha_force_relocation): Don't special-case branch type relocs.
2062 2002-09-19 Nick Clifton <nickc@redhat.com>
2064 * config/tc-m68k.c (select_control_regs): Handle situation where
2065 architecture has not yet been selected.
2067 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2069 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2070 (IS_SEXT_16BIT_NUM): New macro.
2071 (macro_build_ldst_constoffset): New function, to build a set of
2072 instructions to do a load or store from a constant offset relative
2073 to a given register.
2074 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2075 .cprestore pseudo-op.
2077 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2079 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2081 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2083 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2085 2002-09-17 Stan Cox <scox@redhat.com>
2087 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2088 (macro): Likewise for la. Likewise for ld.
2089 (mips_after_parse_args): Make -xgot optional, not the default.
2090 (md_apply_fix3): Allow composite relocation to set up gp.
2091 (tc_gen_reloc): Allow relaxing for newabi.
2092 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2093 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2095 2002-09-17 Nick Clifton <nickc@redhat.com>
2097 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2098 BFD_RELOC_ARM_IMMEDIATE has been done.
2099 (tc_gen_reloc): Do not issue reloc number of unimplemented
2100 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2101 their name is already in the error message - plus remove them
2102 from the default case.
2104 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2105 behavior of instructions.
2107 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2109 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2110 Convert functions to K&R format.
2112 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2114 * config/tc-mips.c (pdr_seg): Define only for ELF.
2115 (s_change_section): Remove unused variable. Don't use for nonELF.
2117 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2119 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2121 * config/obj-elf.h (obj_elf_change_section): Likewise.
2123 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2125 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2126 (out_debug_info): Likewise.
2128 2002-09-16 Bruno Haible <bruno@clisp.org>
2130 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2131 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2132 * config/tc-i386.c (i386_target_format): Likewise.
2133 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2134 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2136 2002-09-13 Nick Clifton <nickc@redhat.com>
2138 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2139 when deciding if any operands have been skipped.
2141 2002-09-11 Nick Clifton <nickc@redhat.com>
2143 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2145 * po/tr.po: Updated Turkish translation.
2147 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2149 * config/tc-i386.c (md_apply_fix3): Allow addend for
2150 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2151 BFD_RELOC_386_TLS_LE_32.
2153 2002-09-05 Jeff Law <law@redhat.com>
2155 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2156 marker relocations such as ENTRY/EXIT.
2157 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2158 to both OBJ_ELF and OBJ_SOM.
2160 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2162 * doc/internals.texi (md_apply_fix3): Expand.
2163 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2164 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2165 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2166 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2167 EXTERN_FORCE_RELOC): Document.
2168 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2169 * as.h: Don't include struc-symbol.h for arc.
2171 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2172 subtract absolute symbol.
2173 * obj.h (struct format_ops): Add frob_file_before_fix.
2174 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2175 * symbols.c (S_FORCE_RELOC): New function.
2176 * symbols.h (S_FORCE_RELOC): Declare.
2177 * write.c (TC_FORCE_RELOCATION): Change default.
2178 (TC_FORCE_RELOCATION_ABS): Define.
2179 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2180 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2181 (TC_FORCE_RELOCATION_SECTION): Don't define.
2182 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2183 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2184 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2185 (TC_VALIDATE_FIX_SUB): Define.
2186 (TC_FIX_ADJUSTABLE): Don't define.
2187 (MD_APPLY_SYM_VALUE): Define this instead.
2188 (abs_section_sym): New variable.
2189 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2190 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2191 Don't put the absolute section sym on fixups here.
2192 (fix_segment): New function.
2193 (write_relocs): Don't call fixup_segment from here.
2194 (write_object_file): Instead call tc_frob_file_before_fix,
2195 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2196 Don't output the absolute section symbol.
2197 (fixup_segment): Rewrite.
2198 * write.h (abs_section_sym): Declare.
2199 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2201 (aout_format_ops): Adjust to suit.
2202 * config/obj-aout.h (obj_frob_file): Don't define.
2203 (obj_frob_file_before_fix): Define.
2204 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2205 (S_FORCE_RELOC): Define.
2206 * config/obj-bout.h (S_FORCE_RELOC): Define.
2207 * config/obj-coff.c (coff_format_ops): Init new field.
2208 * config/obj-coff.h: Formatting fixes.
2209 (obj_sec_sym_ok_for_reloc): Define.
2210 (S_FORCE_RELOC): Define.
2211 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2212 (ecoff_frob_file): .. from here.
2213 (ecoff_format_ops): Add new function.
2214 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2215 (obj_frob_file_before_fix): Define.
2216 * config/obj-elf.c (elf_format_ops): Init new field.
2217 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2218 * config/obj-ieee.h: Formatting fixes.
2219 (S_FORCE_RELOC): Define.
2220 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2221 * config/obj-vms.h (S_FORCE_RELOC): Define.
2222 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2223 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2224 for BFD_RELOC_32 and BFD_RELOC_64.
2225 (alpha_fix_adjustable): Remove extern and weak tests.
2226 (alpha_before_fix): Rename from alpha_adjust_symtab.
2227 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2228 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2229 (TC_VALIDATE_FIX): Tweak param name.
2230 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2231 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2232 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2233 (MD_APPLY_SYM_VALUE): Define.
2234 (tc_adjust_symtab): Don't define.
2235 (alpha_adjust_symtab): Don't declare.
2236 (tc_frob_file_before_fix): Define.
2237 (alpha_before_fix): Declare.
2238 (TC_INIT_FIX_DATA): Tweak param names.
2239 * config/tc-arc.c: Include "struc-symbol.h".
2240 (md_pcrel_from): Remove undefined sym fudge.
2241 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2242 Don't set fx_addnumber.
2243 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2244 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2245 (EXTERN_FORCE_RELOC): Define.
2246 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2247 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2248 (arm_validate_fix): Return void.
2249 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2250 Add plt and got reloc tests.
2251 (arm_force_relocation): Call S_FORCE_RELOC.
2252 * config/tc-arm.h (struct fix): Forward declare.
2253 (TC_VALIDATE_FIX): No longer set add_symbolP.
2254 (arm_validate_fix): Adjust declaration.
2255 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2256 (TC_FORCE_RELOCATION): Tweak param name.
2257 (TC_INIT_FIX_DATA): Likewise.
2258 (obj_fix_adjustable): Don't define.
2259 (tc_fix_adjustable): Call arm_fix_adjustable.
2260 (TC_FIX_ADJUSTABLE): Don't define.
2261 (MD_APPLY_SYM_VALUE): Define.
2262 (EXTERN_FORCE_RELOC): Define.
2263 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2264 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2265 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2266 Remove *valP fudges and code to subtract abs sym. Don't set
2268 * config/tc-avr.h: Formatting.
2269 (EXTERN_FORCE_RELOC): Define.
2270 (MD_APPLY_SYM_VALUE): Define.
2271 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2272 (md_apply_fix3): Remove code to subtract abs sym.
2273 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2274 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2275 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2276 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2277 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2278 (tc_fix_adjustable): Remove extern, weak tests.
2279 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2280 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2281 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2282 and code to subtract abs sym.
2283 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2284 (d10v_force_relocation): Call S_FORCE_RELOC.
2285 * config/tc-d10v.h: Don't include write.h.
2286 (struct fix): Instead, forward declare.
2287 (MD_PCREL_FROM_SECTION): Tweak param names.
2288 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2289 (d10v_fix_adjustable): Likewise.
2290 (obj_fix_adjustable): Don't define.
2291 (tc_fix_adjustable): Define.
2292 (TC_FORCE_RELOCATION): Tweak param name.
2293 (MD_APPLY_SYM_VALUE): Define.
2294 (EXTERN_FORCE_RELOC): Define.
2295 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2296 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2297 and code to subtract abs sym.
2298 * config/tc-d30v.h: Don't include write.h.
2299 (struct fix): Instead, forward declare.
2300 (MD_PCREL_FROM_SECTION): Tweak param names.
2301 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2302 (MD_APPLY_SYM_VALUE): Define.
2303 (EXTERN_FORCE_RELOC): Define.
2304 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2305 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2306 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2307 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2308 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2309 Don't use fx_addnumber.
2310 * config/tc-dlx.h: Don't include write.h.
2311 (md_convert_frag): We're not alpha twice over.
2312 (EXTERN_FORCE_RELOC): Define.
2313 (obj_fix_adjustable): Don't define.
2314 (tc_fix_adjustable): Define.
2315 (TC_FIX_ADJUSTABLE): Don't define.
2316 (MD_APPLY_SYM_VALUE): Define.
2317 (LOCAL_LABELS_DOLLAR): Undef always.
2318 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2319 (fr30_fix_adjustable): Remove extern, weak tests.
2320 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2321 (obj_fix_adjustable): Don't define.
2322 (tc_fix_adjustable): Define.
2323 (struct fix): Forward declare.
2324 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2325 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2326 (frv_fix_adjustable): Don't do extern, weak tests.
2327 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2328 (TC_FIX_ADJUSTABLE): Don't define.
2329 (obj_fix_adjustable): Don't define.
2330 (tc_fix_adjustable): Define.
2331 (struct fix): Forward declare.
2332 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2333 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2334 * config/tc-h8300.h (struct fix): Forward declare.
2335 (EXTERN_FORCE_RELOC): Define.
2336 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2337 (hppa_fix_adjustable): Don't test extern or weak. Don't
2338 symbol_mark_used_in_reloc.
2339 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2341 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2342 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2343 (TC_FORCE_RELOCATION_SECTION): Don't define.
2344 (MD_APPLY_SYM_VALUE): Define.
2345 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2346 to subtract abs sym.
2347 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2348 (MD_APPLY_SYM_VALUE): Define.
2349 (MD_PCREL_FROM_SECTION): Tweak param name.
2350 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2351 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2352 (i386_force_relocation): New function.
2353 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2354 (TC_VALIDATE_FIX): Likewise.
2355 (TC_FIX_ADJUSTABLE): Don't define.
2356 (MD_APPLY_SYM_VALUE): Define.
2357 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2358 (i386_force_relocation): Declare.
2359 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2360 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2361 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2362 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2363 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2364 (EXTERN_FORCE_RELOC): Define.
2365 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2366 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2367 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2368 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2369 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2370 Remove #if 0 code. Invert return boolean.
2371 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2372 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2373 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2374 (tc_coff_sizemachdep): Prototype.
2375 (i960_handle_align): Likewise.
2376 (i960_validate_fix): Adjust declaration.
2377 (reloc_callj): Likewise.
2378 (EXTERN_FORCE_RELOC): Define.
2379 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2380 (TC_FORCE_RELOCATION_ABS): Define.
2381 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2382 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2383 (TC_FIX_ADJUSTABLE): Don't define.
2384 (MD_APPLY_SYM_VALUE): Define.
2385 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2386 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2387 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2388 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2389 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2390 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2391 (MD_APPLY_SYM_VALUE): Define.
2392 (EXTERN_FORCE_RELOC): Define.
2393 (TC_FORCE_RELOCATION): Tweak param name.
2394 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2395 (m32r_fix_adjustable): Don't test extern, weak.
2396 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2397 (MD_APPLY_SYM_VALUE): Define.
2398 (obj_fix_adjustable): Don't define.
2399 (tc_fix_adjustable): Define.
2400 (tc_frob_file): Don't define.
2401 (tc_frob_file_before_fix): Define.
2402 (EXTERN_FORCE_RELOC): Define.
2403 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2404 BFD_RELOC_VTABLE_ENTRY address.
2405 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2406 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2407 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2408 Remove duplicated fx_done code.
2409 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2410 (EXTERN_FORCE_RELOC): Define.
2411 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2413 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2414 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2415 (TC_FIX_ADJUSTABLE): Don't define.
2416 (EXTERN_FORCE_RELOC): Define.
2417 (MD_APPLY_SYM_VALUE): Define.
2418 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2419 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2420 Remove fx_addsy tests.
2421 (mcore_force_relocation): Call S_FORCE_RELOC.
2422 (mcore_fix_adjustable): Don't test fx_addsy.
2423 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2424 (EXTERN_FORCE_RELOC): Define.
2425 (obj_fix_adjustable): Don't define.
2426 (tc_fix_adjustable): Define.
2427 (MD_APPLY_SYM_VALUE): Define.
2428 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2429 (mips_pic): No longer static.
2430 (mips_force_relocation): Call S_FORCE_RELOC.
2431 (mips_fix_adjustable): Remove extern, weak tests.
2432 * config/tc-mips.h (enum mips_pic_level): Declare.
2433 (mips_pic): Declare.
2434 (tc_frob_file): Don't define.
2435 (tc_frob_file_before_fix): Define this instead.
2436 (EXTERN_FORCE_RELOC): Define.
2437 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2438 with reg_section tests. Set fx_done instead of calling
2439 symbol_clear_used_in_reloc on bad relocs.
2440 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2441 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2442 (mmix_adjust_symtab): Simplify list handling. Abort on any
2444 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2445 BFD_RELOC_MMIX_LOCAL.
2446 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2447 (EXTERN_FORCE_RELOC): Define.
2448 (MD_PCREL_FROM_SECTION): Tweak param name.
2449 (tc_frob_file): Don't define.
2450 (tc_frob_file_before_fix): Define this instead.
2451 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2452 Remove SEC_CODE checks.
2453 (mn10300_fix_adjustable): Remove extern and weak tests.
2454 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2455 (TC_FORCE_RELOCATION): Tweak param name.
2456 (obj_fix_adjustable): Don't define.
2457 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2458 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2459 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2460 (openrisc_fix_adjustable): Don't test fx_addsy.
2461 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2462 (obj_fix_adjustable): Don't define.
2463 (tc_fix_adjustable): Define this instead.
2464 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2465 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2466 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2467 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2468 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2469 (MD_APPLY_SYM_VALUE): Define.
2470 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2471 Don't subtract symbol value.
2472 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2473 (EXTERN_FORCE_RELOC): Define.
2474 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2475 (MD_APPLY_SYM_VALUE): Define.
2476 (obj_fix_adjustable): Don't define.
2477 (tc_fix_adjustable): Define this instead.
2478 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2480 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2481 (ppc_force_relocation <elf version>): New.
2482 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2483 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2484 comments. Don't subtract fx_subsy as that is already done.
2485 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2486 (MD_PCREL_FROM_SECTION): Likewise.
2487 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2488 ppc_force_relocation.
2489 (TC_FORCE_RELOCATION_SECTION): Delete.
2490 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2491 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2492 (MD_APPLY_SYM_VALUE): Define.
2493 * config/tc-s390.c: #include "dwarf2dbg.h".
2494 (s390_insn): Remove excess parens.
2495 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2496 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2497 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2498 non-NULL. Don't subtract off fx_addsy value.
2499 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2500 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2501 (TC_FIX_ADJUSTABLE): Don't define.
2502 (MD_APPLY_SYM_VALUE): Define.
2503 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2504 (SWITCH_TABLE): Likewise.
2505 (sh_force_relocation): Call S_FORCE_RELOC.
2506 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2507 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2508 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2509 fx_addnumber is zero on entry. Save val in fx_addnumber.
2510 (tc_gen_reloc): Don't subtract fx_subsy.
2511 * config/tc-sh.h (struct fix): Move.
2512 (obj_fix_adjustable): Don't define.
2513 (tc_fix_adjustable): Define this instead.
2514 (TC_FIX_ADJUSTABLE): Don't define.
2515 (MD_APPLY_SYM_VALUE): Define.
2516 (SWITCH_TABLE_CONS): Define.
2517 (SWITCH_TABLE): Define.
2518 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2519 (TC_VALIDATE_FIX_SUB): Define.
2520 (MD_PCREL_FROM_SECTION): Tweak param name.
2521 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2522 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2523 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2524 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2525 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2526 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2527 (TC_VALIDATE_FIX_SUB): Define.
2528 (MD_PCREL_FROM_SECTION): Tweak param name.
2529 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2530 (tc_gen_reloc): Use S_FORCE_RELOC.
2531 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2532 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2533 (TC_FORCE_RELOCATION_ABS): Define this instead.
2534 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2535 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2536 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2537 (MD_APPLY_SYM_VALUE): Define.
2538 (TC_FIX_DATA_PRINT): Tweak param name.
2539 * config/tc-tic30.c (USE_STDOUT): Don't define.
2540 (md_parse_option): Remove stupid debug code.
2541 (tc_gen_reloc): Don't use fx_addnumber.
2542 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2543 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2544 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2545 (tc_fix_adjustable): Define this instead.
2546 (TC_FIX_ADJUSTABLE): Don't define.
2547 (MD_APPLY_SYM_VALUE): Define this instead.
2548 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2549 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2550 (TC_FIX_ADJUSTABLE): Don't define.
2551 (MD_APPLY_SYM_VALUE): Define this instead.
2552 (tc_fix_adjustable): Remove extern and weak tests.
2553 * config/tc-w65.h (struct fix): Forward declare.
2554 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2556 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2557 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2558 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2560 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2561 (MD_APPLY_SYM_VALUE): Define.
2562 (obj_fix_adjustable): Don't define.
2563 (tc_fix_adjustable): Define this instead.
2564 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2566 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2568 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2569 (ppc_fix_adjustable <coff version>): Cleanup.
2571 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2572 (md_parse_option): No -a64 without BFD64.
2573 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2574 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2576 2002-09-04 Nick Clifton <nickc@redhat.com>
2578 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2579 instructions into the hash table if the target cpu is the BookE32.
2581 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2583 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2586 2000-08-28 Catherine Moore <clm@redhat.com>
2588 * tc-v850.c (v850_relax): Declare.
2589 (v850_longcode): New routine.
2590 (v850_handle_align): New routine.
2591 (md_pseudo_table): Add longcall and longjump.
2592 (md_parse_option): Check for relax option.
2593 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2594 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2595 (md_apply_fix3): Likewise.
2596 (v850_force_relocation): Likewise.
2597 (v850_comm): Change the current section.
2598 (md_assemble): Ensure that the correct value is put in the
2600 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2601 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2602 Remove redundant v850ea support.
2603 * tc-v850.h (HANDLE_ALIGN): Define.
2604 (v850_handle_align): Declare.
2605 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2607 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2609 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2610 * configure: Regenerate.
2611 * NEWS: Mention new port.
2613 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2615 * config/obj-coff.c: Add sdef definition.
2616 * config/obj-coff.h: Add tic4x include file and set
2618 * config/tc-tic4x.c: New file.
2619 * config/tc-tic4x.h: New file.
2621 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2623 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2624 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2625 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2626 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2627 (RELOC_ENUM): Define.
2628 (fix_new_internal): Use RELOC_ENUM.
2629 (fix_new, fix_new_exp): Likewise.
2630 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2631 Replace gotos with continue.
2632 (write_relocs): Formatting. Avoid symbol loops in
2633 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2634 errors, and error number in other cases.
2635 (fixup_segment): Remove param names from prototype. Rename
2636 "this_segment_type" to "this_segment". Update linkrelax comment.
2637 Remove "size, "place" and "where" local vars. Formatting. Update
2638 "no symbol" comment. Remove #if 0 and #if 1.
2640 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2642 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2644 * dwarf2dbg.c: Always include dwarf2dbg.h.
2645 (dwarf2_directive_file): Adjust dummy version args.
2646 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2647 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2648 when symbol values differ.
2649 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2650 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2651 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2653 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2655 * config/tc-w65.c (md_section_align): Fix typo.
2656 (md_parse_option): Return 0, not 1.
2658 2002-08-22 Nick Clifton <nickc@redhat.com>
2660 * doc/as.texinfo (Section): Note that if '@' is a comment
2661 character then another symbol is used to prefix the section's
2664 2002-08-22 Christian Groessler <chris@groessler.org>
2666 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2669 2002-08-12 Graeme Peterson <gp@qnx.com>
2671 * configure.in: Add support for sh-**-nto* target.
2672 * configure: Regenerate.
2674 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2676 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2678 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2680 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2682 (ppc_apuinfo_section_add): Define only if format is ELF.
2683 (md_assemble): Emit APUinfo section only if format is ELF.
2686 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2688 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2689 * config/tc-frv.c: Likewise.
2690 * config/tc-hppa.c: Likewise.
2691 * config/tc-ia64.c: Likewise.
2692 * config/tc-ip2k.c: Likewise.
2693 * config/tc-m68hc11.c: Likewise.
2694 * config/tc-m68k.c: Likewise.
2695 * config/tc-mmix.c: Likewise.
2696 * config/tc-mn10300.c: Likewise.
2697 * config/tc-sh.c: Likewise.
2698 * config/tc-sparc.c: Likewise.
2699 * config/tc-v850.c: Likewise.
2701 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2703 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2706 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2708 From matthew green <mrg@redhat.com>
2710 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2711 PPC_OPCODE_PPC is, except for BookE architectures.
2712 (md_parse_option): Add support for -mspe.
2713 (md_show_usage): Add -mspe.
2714 (md_parse_option): Add support for -me500 and
2715 -me500x2 to generate code for Motorola e500 core complex.
2716 (md_show_usage): Add -me500 and -me500x2.
2718 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2719 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2720 PPC_APUINFO_BRLOCK): New macros.
2722 (ppc_cleanup): New function.
2723 (ppc_apuinfo_section_add): New function.
2725 (md_assemble): Collect info and write the APUinfo section.
2727 * config/tc-ppc.h (md_cleanup): Define.
2728 (ppc_cleanup): Export.
2729 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2731 2002-08-17 Stan Cox <scox@redhat.com>
2733 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2734 config/tc-mips.c (s_change_section): New function to support
2735 IRIX .section pseudo-op.
2737 2002-08-16 Nick Clifton <nickc@redhat.com>
2739 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2741 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2743 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2744 the fix-up against on the right frag.
2745 (s_cpsetup): Likewise. Parse third argument as expression, to
2746 handle global symbols and forward/backward labels correctly.
2748 2002-08-14 Nick Clifton <nickc@redhat.com>
2750 * read.c (stringer): Catch attempts to create strings in the abs
2753 * config/tc-alpha.c: Fix compiling for COFF targets.
2754 Some minor formatting tidyups.
2756 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2758 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2759 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2760 according to the reloc.
2761 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2762 (TC_FORCE_RELOCATION): Define.
2763 (tc_m68hc11_force_relocation): Declare.
2765 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2766 (s_m68hc11_relax): New function for relax group.
2767 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2768 beginning of jump instruction.
2769 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2770 address computation.
2771 (tc-gen_reloc): Update.
2772 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2774 (tc_m68hc11_force_relocation): New function, handle new relocs.
2775 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2776 reloc for the linker relax pass.
2777 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2780 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2782 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2783 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2784 (s_m68hc11_mode): New function for .mode pseudo op.
2785 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2787 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2788 (m68hc11_elf_final_processing): Declare.
2790 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2792 * config/tc-m68hc11.c (md_begin): Take into account additional
2793 page operand for call instruction.
2794 (print_opcode_format): Likewise.
2795 (check_range): Likewise for page range checking.
2796 (get_operand): Don't skip a possible comma in operands.
2797 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2798 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2799 (fixup24): New to handle call reloc.
2800 (build_insn): Handle missing page operand for call instruction.
2802 (md_apply_fix3): Take into account new relocs.
2803 (get_operand): Fix the mode for indexed indirect addressing.
2804 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2806 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2808 * config/tc-mips.c (mips_ip): Don't work out the value of
2809 constant %hi()s here.
2811 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2813 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2814 for ELF, and don't bother checking ELF relocs when non-ELF.
2815 (i386_immediate): Allow absolute_section expressions for aout.
2816 (i386_displacement): Likewise. Also test bfd_is_com_section.
2817 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2818 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2819 not when fx_addsy. Remove dead code.
2821 2002-08-09 Graeme Peterson <gp@qnx.com>
2823 * configure.in: Add support for ppc-*-nto* target.
2824 * configure: Regenerate.
2826 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2828 * config/tc-i386.h: Reorganize.
2830 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2832 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2833 immediate offset in "dla" and "la" expansions.
2835 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2837 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2838 Remove "bfd_gas=yes" from target table when covered later.
2839 Consolidate some entries.
2840 * configure: Regenerate
2842 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2844 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2845 at start of insn, pass it to output_disp and output_imm.
2846 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2847 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2849 (output_imm): Added arguments. Compute properly addend for
2851 (md_apply_fix3): Remove R_386_GOTPC handling.
2853 2002-08-06 George France <france@handhelds.org>
2855 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2856 and m21264b processor names and cpu types.
2857 * doc/c-alpha.texi: Documented new types.
2859 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2861 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2863 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2865 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2866 handling to BFD_RELOC_MIPS16_GPREL.
2868 2002-08-01 Nick Clifton <nickc@redhat.com>
2870 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2871 pool is computed using signed arithmetic so that proper sign
2872 extension is performed if X_add_number is a 64-bit integer.
2874 2002-08-01 H.J. Lu <hjl@gnu.org>
2875 Daniel Jacobowitz <drow@mvista.com>
2877 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2878 .debug_line section unless it has line information.
2880 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2882 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2883 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2884 Allow default displacement size to be an option "--disp-size-default".
2885 (md_number_to_disp): Make error messages include value. Use %d to
2886 print integers, not %s.
2887 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2888 get duplicate messages sometimes.
2889 (convert_iif): Grow frag to max possible instruction size. Avoid
2890 creating unnecessary fixes.
2891 (md_number_to_field) Add prototype.
2892 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2893 prototypes and make static.
2894 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2895 (evaluate_expr): Use resultP argument instead of exprP global.
2896 (get_addr_mode): Quiten compiler warnings.
2897 (encode_operand): eliminate unused variables. Quiten compiler
2898 warnings. Eliminate nul character in format strings.
2899 (parse): argc is unsigned.
2900 (reloc): Type cast index to quieten compiler.
2901 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2902 (md_convert_frag): Note unused parameters. Remove unused
2904 (md_create_long_jump, md_create_short_jump,
2905 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2908 2002-07-31 Nick Clifton <nickc@redhat.com>
2910 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2911 of the PDP-11 and 2.11BSD a.out support.
2913 2002-07-31 Momchil Velikov <velco@fadata.bg>
2915 * config/tc-v850.c (md_assemble): Fix range check for immediate
2918 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2920 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2921 to Broadcom SB-1 core support.
2923 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2925 * config/tc-mips.c (mips_target_format): Fix formatting.
2926 Add recognition of n32 ABI formats.
2928 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2930 * tc-mips.c (load_address): Don't clobber $at when loading a
2931 64-bit address in non-PIC code if noat is in effect.
2934 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2936 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2937 used in division/multiply macro expansions similarly to how they
2938 are used in the variants with break instructions.
2941 2002-07-30 Graeme Peterson <gp@qnx.com>
2943 * configure.in: Add support for arm-*-nto target.
2944 * configure: Regenerate.
2946 2002-07-30 Nick Clifton <nickc@redhat.com>
2948 * config/tc-arm.c (struct literal_pool): Add fields to allow
2949 multiple literal pools to be maintained.
2950 (find_literal_pool): New function.
2951 (find_or_make_literal_pool): New function.
2952 (add_to_literal_pool): Use find_or_make_literal_pool.
2953 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2955 (s_ltorg): Use find_literal_pool.
2956 (arm_cleanup): Dump all literal pools.
2957 * doc/c-arm.texi: Document new behaviour of only dumping literal
2960 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2962 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2963 rather than PPC_OPCODE_32 for powerpc64*.
2965 2002-07-25 Nick Clifton <nickc@redhat.com>
2967 * po/es.po: Updated Spanish translation.
2968 * po/fr.po: Updated French translation.
2970 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2972 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2973 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2974 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2975 * configure, config.in: Regenerate.
2976 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2977 (mips_set_options): Remove "abi" field.
2978 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2981 (mips_arch_string, mips_arch_info): New vars.
2982 (mips_tune_string, mips_tune_info): New vars.
2983 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2984 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2985 (mips_isa_to_str, mips_cpu_to_str): Remove.
2986 (mips_ip): If the selected architecture is a generic ISA rather
2987 than a processor, only mention the ISA level in error messages.
2988 (OPTION_MCPU): Remove.
2990 (md_longopts): Add -mfp64, remove -mcpu.
2991 (mips_set_option_string): New fn.
2992 (md_parse_option): Make -mipsN update file_mips_isa rather than
2993 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2994 Don't let -mgp32 and -mfp32 change the ABI.
2995 (show): Move to end of file. Constify string argument.
2996 (md_show_usage): Move to the end of the file. Read available
2997 architectures from mips_cpu_info_table.
2998 (mips_set_architecture): New fn.
2999 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3000 is an alias for -march=mipsN. Don't change the ABI based on other
3001 flags. Infer the register size from the ABI as well as the
3002 architecture. Complain about more conflicting arguments.
3003 Unify logic with GCC.
3004 (s_mipsset): Don't change the ABI.
3005 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3006 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3007 "mipsN"-type entries. Remove entries that vary only in the
3008 manufacturer's prefix, or that have "000" replaced by "k".
3009 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3010 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3011 (mips_parse_cpu): New fn.
3012 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3013 (mips_cpu_info_from_isa): Minor formatting tweak.
3015 2002-07-24 Nick Clifton <nickc@redhat.com>
3017 * po/sv.po: Updated Swedish translation.
3018 * po/es.po: Updated Spanish translation.
3020 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3022 * Makefile.am: Run "make dep-am".
3023 * Makefile.in: Regenerate.
3024 * doc/Makefile.in: Regenerate.
3025 * config.in: Regenerate.
3026 * po/POTFILES.in: Regenerate.
3028 2002-07-23 Nick Clifton <nickc@redhat.com>
3030 * po/fr.po: Updated French translation.
3032 2002-07-23 Nick Clifton <nickc@redhat.com>
3034 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3037 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3039 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3040 instead of S_IS_EXTERN.
3041 (md_estimate_size_before_relax): Likewise.
3042 (mips_fix_adjustable): Likewise.
3044 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3046 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3048 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3049 Nick Clifton <nickc@redhat.com>
3051 * cond.c (s_ifdef): Treat a referenced but not yet defined
3052 symbol as if it were undefined, in exactly the same way as
3055 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3056 consider referenced bug not yet defined symbols to be
3059 2002-07-18 Denis Chertykov <denisc@overta.ru>
3060 Frank Ch. Eigler <fche@redhat.com>
3061 Alan Lehotsky <alehotsky@cygnus.com>
3062 John Healy <jhealy@redhat.com>
3063 Jeff Johnston <jjohnstn@redhat.com>
3065 * configure.in: Add ip2k configuraton.
3066 * configure: Regenerate.
3067 * Makefile.am: Add ip2k configuraton.
3068 * Makefile.in: Regenerate.
3069 * configure: Regenerate.
3070 * Makefile.in: Regenerate.
3071 * config/tc-ip2k.c: New file.
3072 * config/tc-ip2k.h: New files.
3073 * NEWS: Mention new support.
3074 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3075 * doc/Makefile.in: Regenerate.
3076 * doc/all.texi: Set IP2K
3077 * doc/as.texinfo: Add IP2K description.
3078 * doc/c-ip2k.texi: New file.
3080 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3082 * NEWS: Reformat to match style of other NEWS files.
3084 2002-07-17 Jan Hubicka <jh@suse.cz>
3086 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3088 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3090 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3092 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3094 * NEWS: Add 'Changes in 2.13'.
3096 2002-07-15 Matt Fredette <fredette@netbsd.org>
3098 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3100 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3102 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3103 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3106 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3108 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3109 (ppc_frob_file_before_adjust): New function.
3110 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3111 (ppc_elf_frob_symbol): Don't declare.
3112 (tc_frob_file_before_adjust): Define.
3113 (ppc_frob_file_before_adjust): Declare.
3115 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3116 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3119 (ppc_xcoff64): Rename to ppc_obj64.
3120 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3121 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3122 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3124 (ppc_target_format): Use ppc_obj64 to select format.
3125 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3126 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3127 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3128 (tc_frob_symbol): Likewise.
3129 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3130 BFD_DEFAULT_TARGET_SIZE.
3132 (ppc_is_toc_sym): Likewise.
3133 (md_apply_fix3): Likewise.
3134 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3135 BFD_DEFAULT_TARGET_SIZE.
3136 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3137 (tc_frob_symbol): Likewise.
3139 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3141 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3142 (mips_ip): Likewise.
3144 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3146 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3147 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3148 (md_apply_fix3): Formatting. Remove redundant test.
3149 (tc_gen_reloc): Remove redundant code.
3150 (tc_i386_force_relocation): Delete. Movy body of function to..
3151 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3153 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3155 * configure.in: Add hppa-*-openbsd* target, change
3156 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3158 * configure: Regenerate.
3160 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3162 * config/tc-mips.c (macro): Shift the 32-bit address range
3163 accessible with a lone "lui" down by 32768.
3165 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3167 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3168 instead of "dadd" in address calculations.
3171 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3173 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3175 (md_assemble): Instead, zap the suffix here.
3177 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3179 * NEWS: Remove next release number until the release is actually
3182 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3184 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3186 * Makefile.in: Regenerate.
3188 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3190 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3191 to symbols in merge sections, even non pc-relative ones.
3193 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3195 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3197 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3199 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3200 .softregs and .eeprom.
3202 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3204 * NEWS: Note the next release is 2.13.
3206 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3208 * po/tr.po: New translation imported.
3210 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3212 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3213 (ecoff_directive_def): Likewise.
3214 (ecoff_directive_tag): Likewise.
3215 * listing.c (file_info): Likewise.
3216 * hash.c (what): Likewise.
3218 2002-06-25 H.J. Lu <hjl@gnu.org>
3220 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3221 * Makefile.in: Regenerated.
3223 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3225 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3226 (assemble_ppi): Generate warning if the same register is used
3227 twice as destination in the same padd / pmuls instruction.
3229 2002-06-18 Dave Brolley <brolley@redhat.com>
3231 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3232 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3233 * configure.in: Support frv-*-*.
3234 * Makefile.am (CPU_TYPES): Add frv.
3235 (TARGET_CPU_CFILES): Add tc-frv.c.
3236 (TARGET_CPU_HFILES): Add tc-frv.h.
3237 (DEPTC_frv_coff): New variable.
3238 (DEPTC_frv_elf): New variable.
3239 (DEPOBJ_frv_coff): New variable.
3240 (DEPOBJ_frv_elf): New variable.
3241 (DEP_frv_coff): New variable.
3242 (DEP_frv_elf): New variable.
3243 * tc-frv.c: New file.
3244 * tc-frv.h: New file.
3246 2002-06-17 Catherine Moore <clm@redhat.com>
3248 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3250 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3252 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3254 2002-06-17 Tom Rix <trix@redhat.com>
3256 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3258 2002-06-14 H.J. Lu <hjl@gnu.org>
3259 Daniel Jacobowitz <drow@mvista.com>
3261 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3262 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3263 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3264 and new_logical_line for the first .file directive.
3265 * read.c (s_app_file_string): New function.
3266 (s_app_file): Call it.
3267 * read.h (s_app_file_string): Add declaration.
3269 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3271 * configure.in: Remove MIPS_STABS_ELF.
3272 * configure: Regenerated.
3273 * config.in: Regenerated.
3274 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3276 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3278 (pdr_seg): Declare unconditionally.
3279 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3280 (s_mips_end): Likewise. Generate stabs function markers.
3281 (s_mips_ent): Generate stabs function markers.
3282 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3284 (s_mips_mask): Likewise.
3285 (mips_flag_mdebug): New.
3286 (md_longopts): Add "mdebug" and "no-mdebug".
3287 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3288 (mips_after_parse_args): Set mips_flag_mdebug.
3289 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3291 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3293 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3294 value twice for RELA relocations.
3296 2002-06-12 Ben Elliston <bje@redhat.com>
3298 * symbols.c (resolve_symbol_value): Initialise final_val.
3300 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3302 2002-06-11 Tom Rix <trix@redhat.com>
3304 * config/tc-ppc.c (ppc_subseg_align): Delete.
3305 (ppc_change_csect): Default csect align is 2.
3306 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3308 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3310 * config/tc-avr.c (mcu_types): Update.
3312 2002-06-08 Matt Thomas <matt@3am-software.com>
3314 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3315 (vax-*-netbsd*): New targets.
3316 * configure: Regenerate.
3317 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3318 * config/tc-vax.c: Add support for ELF and PIC.
3319 (flag_want_pic): New flag.
3320 (float_cons): Fix prototype.
3321 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3322 (md_assemble): Introduce a new is_absolute local, and use it
3323 rather than repeating the test. Make fatal errors actually
3324 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3325 Add support for ELF. Add support for PIC.
3326 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3327 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3329 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3330 optional for a.out, and not allowed for VMS. Adjust all callers.
3331 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3332 (md_create_long_jump): Likewise.
3333 (md_undefined_symbol): Likewise.
3334 (md_section_align): Likewise.
3335 (md_shortopts): Allow -k and -K for ELF.
3336 (md_parse_option): Set flag_want_pic if -k or -K.
3337 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3338 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3339 * config/tc-vax.h (tc_headers_hook): Remove.
3340 (TARGET_FORMAT): Set according to object format and target
3342 (BFD_ARCH, TARGET_ARCH): Define.
3343 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3344 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3345 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3346 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3348 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3350 * Makefile.am: Run "make dep-am".
3351 * Makefile.in: Regenerate.
3353 * as.c: Replace CONST with const.
3354 * write.c: Likewise.
3355 * config/obj-coff.c: Likewise.
3356 * config/tc-a29k.c: Likewise.
3357 * config/tc-arm.c: Likewise.
3358 * config/tc-dlx.c: Likewise.
3359 * config/tc-h8300.c: Likewise.
3360 * config/tc-h8500.c: Likewise.
3361 * config/tc-i370.c: Likewise.
3362 * config/tc-i860.c: Likewise.
3363 * config/tc-i960.c: Likewise.
3364 * config/tc-m68hc11.c: Likewise.
3365 * config/tc-m68k.c: Likewise.
3366 * config/tc-m88k.c: Likewise.
3367 * config/tc-mcore.c: Likewise.
3368 * config/tc-mips.c: Likewise.
3369 * config/tc-ns32k.c: Likewise.
3370 * config/tc-pdp11.c: Likewise.
3371 * config/tc-pj.c: Likewise.
3372 * config/tc-s390.c: Likewise.
3373 * config/tc-sh.c: Likewise.
3374 * config/tc-sparc.c: Likewise.
3375 * config/tc-tahoe.c: Likewise.
3376 * config/tc-tic80.c: Likewise.
3377 * config/tc-v850.c: Likewise.
3378 * config/tc-vax.c: Likewise.
3379 * config/tc-w65.c: Likewise.
3380 * config/tc-z8k.c: Likewise.
3382 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3384 Based on patch from Matt Green:
3385 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3386 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3387 (s_mips_loc): New function.
3388 (mips_nonecoff_pseudo_table): Call them.
3389 (append_insn): Call dwarf2_emit_insn.
3391 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3393 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3395 (file_ase_mips16): New veriable.
3396 (mips_eabi64): Remove.
3397 (CPU_HAS_MIPS16): New define.
3398 (CPU_HAS_MDMX): Fix data type.
3399 (md_begin): Code cleanup. Use file_ase_mips16.
3400 (mips_elf_final_processing): Handle mips16 header flag.
3401 Handle EABI flag without intermediate variable.
3403 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3405 * doc/as.texinfo: Update MIPS documentation.
3407 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3409 * config/tc-mips.c: Add define for $zero register.
3410 (md_begin): Add $zero as alias name for $0.
3411 (insn_uses_reg): Use ZERO define.
3412 (mips_ip): Add $zero as alias name for $0.
3413 (mips16_ip): Likewise.
3414 (s_cplocal): Demand empty rest of input line.
3415 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3416 names. Use ZERO define. Fix input_line_pointer progress.
3418 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3420 * symbols.c: Replace CONST by const throughout.
3421 (symbol_find_exact): Split out from..
3422 (symbol_find_base): ..here.
3423 * symbols.h: Replace CONST by const throughout.
3424 (symbol_find_exact): Declare.
3425 * config/obj-elf.c: #include "struc-symbol.h".
3426 (elf_frob_file): If group name matches an exported symbol, use that
3427 symbol for the signature and ".group" as the section name.
3429 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3431 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3434 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3436 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3437 and mips_opts.ase_mdmx if they are uninitialized.
3439 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3441 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3442 (hppa_force_relocation): Check if a stub just before the start symbol
3443 of the last call_info is reachable before forcing relocation. Fix
3446 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3448 * config/tc-mips.c (mips_after_parse_args): New function.
3449 (md_begin): Move processing of defaults to mips_after_parse_args.
3450 config/tc-mips.h (md_after_parse_args): Define.
3452 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3454 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3455 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3456 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3457 * configure: Regenerate.
3458 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3461 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3463 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3465 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3467 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3468 linkonce flag. Print all warnings.
3469 (obj_elf_section): Parse ",comdat" for groups.
3470 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3471 consistency of comdat flag.
3473 2002-06-02 Richard Henderson <rth@redhat.com>
3475 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3476 with LITERALs without sequence numbers.
3478 2002-06-01 Richard Henderson <rth@redhat.com>
3480 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3481 Rename them LITUSE_ALPHA_*.
3483 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3485 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3486 accept parentheses enclosed register lists.
3488 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3490 * Makefile.am: Run "make dep-am".
3491 * Makefile.in: Regenerate.
3492 * po/POTFILES.in: Regenerate.
3494 2002-05-31 Graeme Peterson <gp@qnx.com>
3496 * configure.in: Add i386-*-nto-qnx*.
3497 * configure: Regenerate.
3499 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3501 * config/tc-mips.c (mips_ip): Use unsigned long values for
3504 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3506 * config/tc-mips.c (s_cpsetup): Fix initialization of
3507 mips_cpreturn_register and mips_cpreturn_offset.
3509 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3511 * config/tc-mips.c (s_cpsetup): Fix comment.
3513 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3515 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3516 (mips_ip): Likewise.
3517 (mips16_ip): Likewise.
3518 (tc_get_register): Likewise.
3520 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3521 Ed Satterthwaite <ehs@broadcom.com>
3523 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3524 (mips_opts): Initialize "ase_mdmx" member.
3525 (file_ase_mdmx): New variable.
3526 (CPU_HAS_MDMX): New macro.
3527 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3528 based on command line options and configuration defaults.
3529 (macro_build): Note in comment that use of MDMX in macros is
3530 not currently allowed.
3531 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3532 "Z" MDMX operand types.
3533 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3534 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3536 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3537 Add support for "-mdmx" and "-no-mdmx" options.
3538 (OPTION_ELF_BASE): Move to accomodate new options.
3539 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3540 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3541 file_ase_mdmx was set.
3542 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3543 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3546 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3548 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3549 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3550 command line switch conforming to gcc conventions.
3551 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3553 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3555 * config/tc-mips.c (macro_build_jalr): New Function.
3556 (md_begin): NewABI uses big GOTs.
3557 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3558 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3559 (load_address): Add some NewABI PIC support.
3561 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3562 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3564 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3566 * config/tc-mips.c (load_address): Use mips_gp_register instead
3567 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3569 (macro): Use mips_gp_register instead of hardcoded value.
3571 2002-05-30 Richard Henderson <rth@redhat.com>
3573 * expr.h (operatorT): Add O_md17..O_md32.
3574 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3575 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3576 O_tprelhi, O_tprello, O_tprel): New.
3577 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3578 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3579 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3580 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3581 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3582 (md_apply_fix3): Handle TLS relocations.
3583 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3584 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3585 associated TLS reloc. Check lituse_tls relocs match up.
3586 (emit_insn): Handle TLS relocations.
3589 * doc/c-alpha.texi: Add docs for tls relocations.
3591 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3593 * config/tc-mips.c (mips_gprel_offset): New variable.
3594 (s_gpvalue): Use it.
3596 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3598 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3599 write-write conflicts.
3600 (md_assemble): Reformat introductory comment.
3601 (parallel_ok): Prevent packing only if the first
3602 instruction cannot be packed.
3604 2002-05-30 Jason Eckhardt <jle@redhat.com>
3605 Tom Rix <trix@redhat.com>
3607 * config/tc-d10v.c (build_insn): Check for immediates.
3609 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3611 * config/tc-mips.c: Replace GP in comments by $gp.
3612 (mips_big_got): Initialize.
3613 (mips_trap): Initialize.
3614 (load_address): Use mips_gp_register instead of hardcoded value.
3615 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3616 (macro): Use mips_gp_register instead of hardcoded value.
3617 (macro2): Change load_address calls.
3618 (md_pcrel_from): Comment formatting.
3619 (s_cpload): Use mips_gp_register instead of hardcoded value.
3620 (s_cprestore): Likewise. Comment formatting.
3621 (s_gpword): Fix data type.
3622 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3623 (nopic_need_relax): Replace GP in comments by $gp.
3624 (mips_elf_final_processing): Better comment.
3626 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3628 * configure.in: Add DLX configuraton
3629 * Makefile.am: Add DLX configuraton
3630 * configure: Regenerate.
3631 * Makefile.in: Regenerate.
3632 * config/tc-dlx.c: New file.
3633 * config/tc-dlx.h: New files.
3634 * NEWS: Mention new support.
3636 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3638 * config/obj-coff.c (write_object_file): Add missing semicolon.
3640 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3642 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3643 by the define. Remove superfluous check of mips_opts.mips16.
3644 (append_insn): Likewise. Canonicalize variable increments.
3645 (macro_build): Canonicalize variable increments.
3646 (macro_build_lui): Likewise.
3647 (load_register): Likewise.
3648 (load_address): Move pointer initialization.
3649 (macro): Move pointer to a more local scope. Canonicalize variable
3650 increments. Better comments. Replace magic constant for RA by the
3652 (macro2): Replace magic constant for RA by the define. Canonicalize
3653 variable increments.
3654 (mips_ip): Canonicalize variable increments.
3655 (mips16_ip): Replace magic constant for RA by the define.
3656 (my_getSmallParser): Canonicalize variable increments/decrements.
3657 (my_getPercentOp): Likewise.
3658 (my_getSmallExpression): Likewise.
3659 (s_align): Likewise.
3660 (s_mipsset): Likewise.
3661 (s_cpsetup): Likewise.
3662 (s_insn): Remove superfluous check of mips_opts.mips16.
3663 (s_mips_stab): Likewise.
3664 (mips_handle_align): Canonicalize variable increments.
3665 (s_mips_ent): Likewise.
3666 (s_mips_end): Add comment.
3668 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3670 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3671 * configure: Regenerate.
3673 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3675 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3676 * Makefile.in: Regenerate.
3677 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3678 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3679 * configure: Regenerate.
3680 * as.h: Use #include "" instead of <> for local header files.
3681 * flonum-konst.c: Likewise.
3682 * flonum-mult.c: Likewise.
3684 * listing.c: Likewise.
3685 * config/tc-ia64.h: Likewise.
3686 * config/tc-v850.h: Likewise.
3688 2002-05-24 TAMURA Kent <kent@netbsd.org>
3690 * configure.in: Add a target for i386-netbsdpe.
3691 * configure: Regenerate.
3693 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3695 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3696 (obj_elf_common): Call elf_common.
3697 (obj_elf_tls_common): New function.
3698 (elf_pseudo_tab): Support .tls_common.
3699 (special_sections): Add .tdata and .tbss.
3700 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3702 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3703 (obj_elf_parse_section_letters): Include T in error message.
3704 * config/tc-ppc.c (ppc_section_letter): Likewise.
3705 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3706 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3708 * config/tc-sparc.c (md_apply_fix3): Likewise.
3709 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3710 Define them if not BFD_ASSEMBLER.
3711 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3713 (md_apply_fix3): Add TLS relocs.
3714 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3715 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3716 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3717 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3718 (ia64_elf_section_letter): Include T in error message.
3719 (md_begin): Support TLS operators.
3720 (md_operand): Likewise.
3721 (ia64_gen_real_reloc_type): Support TLS relocs.
3722 * write.c (adjust_reloc_syms): Don't change symbols in
3723 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3725 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3727 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3728 round the relocation up rather than down.
3730 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3732 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3734 * doc/as.texinfo: Document that the COFF version of .section
3735 ignores the 'a' flag.
3737 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3739 * config/tc-alpha.c (assemble_tokens): Protect use of
3740 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3742 * write.c (size_seg): Check adjustment to last frag.
3743 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3745 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3746 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3747 (write_object_file): Invoke md_do_align if available, and use
3748 frag_align_code on text sections.
3749 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3750 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3751 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3752 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3753 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3756 2002-05-22 H.J. Lu <hjl@gnu.org>
3758 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3761 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3763 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3766 2002-05-22 H.J. Lu <hjl@gnu.org>
3768 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3769 for one .loc for compiler.
3771 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3773 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3776 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3778 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3779 Optimize the rotate by zero case.
3781 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3783 * configure.in: Remove accidental enabling of bfd_gas=yes for
3785 * configure: Regenerate.
3787 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3789 * app.c: Fix formatting.
3791 * ehopt.c: Likewise.
3793 * input-file.c: Likewise.
3794 * listing.c: Likewise.
3795 * macro.h: Likewise.
3796 * stabs.c: Likewise.
3797 * symbols.c: Likewise.
3799 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3801 * config/obj-generic.c: Delete file.
3802 * config/obj-generic.h: Likewise.
3804 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3806 * config/tc-avr.c (mcu_types): Update for new devices.
3808 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3810 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3812 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3814 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3815 worked sometimes by accident. Fix copy&paste comment.
3817 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3819 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3820 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3821 (mips_elf_final_processing): Let n32 use .reginfo.
3823 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3825 * config/tc-mips.c (append_insn): Fix too small range of variable.
3827 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3829 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3830 listing_prev_line().
3832 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3834 * config/tc-arm.c (md_assemble): Remove redundant call to
3837 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3840 * stabs.c (s_stab_generic): Fix grammatical error in warning
3843 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3845 * write.c (subsegs_finish): Don't specially align last subseg.
3847 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3849 * stabs.c (s_stab_generic): Warn about a description field that is
3852 * config/obj-coff.c: Fix compile time warnings when compiling
3853 without BFD_ASSEMBLER defined.
3856 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3858 (md_pcrel_from_section): Use md_pcrel_from().
3860 2002-05-11 Bruno Haible <bruno@clisp.org>
3862 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3863 by dwarf2_directive_loc, instead of calling dwarf2_where.
3865 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3867 * config/obj-coff.h: Fix formatting.
3868 * config/tc-mcore.c: Likewise.
3869 * config/tc-mn10300.c: Likewise.
3870 * config/tc-openrisc.c: Likewise.
3871 * config/tc-or32.c: Likewise.
3872 * config/tc-pdp11.c: Likewise.
3873 * config/tc-ppc.c: Likewise.
3874 * config/tc-ppc.h: Likewise.
3875 * config/tc-sh64.c: Likewise.
3876 * config/tc-sh.c: Likewise.
3877 * config/tc-tic54x.c: Likewise.
3878 * config/tc-xstormy16.c: Likewise.
3879 * config/tc-xstormy16.h: Likewise.
3881 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3883 * config/obj-coff.c: Fix formatting.
3884 * config/obj-elf.c: Likewise.
3885 * config/tc-alpha.c: Likewise.
3886 * config/tc-arm.c: Likewise.
3887 * config/tc-d10v.c: Likewise.
3888 * config/tc-d30v.c: Likewise.
3889 * config/tc-h8300.c: Likewise.
3890 * config/tc-hppa.c: Likewise.
3892 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3894 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3895 reloc when no_cond_jump_promotion.
3897 2002-05-08 Jim Wilson <wilson@redhat.com>
3899 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3900 current variable part of frag.
3902 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3904 * config/tc-mmix.c: Fix formatting.
3905 * config/tc-mmix.h: Likewise.
3907 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3909 * configure: Regenerate.
3911 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3913 * config/tc-m68k.c: Fix formatting.
3915 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3917 * Makefile.am: Honour DESTDIR.
3918 * Makefile.in: Regenerate.
3920 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3922 * config/tc-ia64.c: Fix formatting.
3923 * config/tc-ia64.h: Likewise.
3925 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3927 * config/tc-mips.c: Fix formatting.
3928 * config/tc-s390.c: Likewise.
3929 * config/tc-s390.h: Likewise.
3931 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3933 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3934 information for instructions.
3936 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3938 * as.h: Fix formatting.
3941 * dwarf2dbg.c: Likewise.
3942 * frags.h: Likewise.
3944 * macro.c: Likewise.
3946 * stabs.c: Likewise.
3947 * symbols.c: Likewise.
3949 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3951 * app.c (mri_pseudo): Only declare for TC_M68K.
3953 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3954 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3955 BFD_RELOC_16_BASEREL.
3956 (md_assemble): Likewise.
3957 (md_apply_fix3): Likewise.
3959 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3961 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3962 zero into an add of zero - it is not the same.
3964 2002-05-01 Arati Dikey <aratid@kpit.com>
3966 * tc-sh.c (get_specific): Generate warning if the same
3967 destination register is used in parallel instructions.
3969 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3971 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3973 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3975 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3976 backwards to prevent cascading errors.
3978 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3980 * configure.in: Add support for powerpc-*-windiss.
3981 * configure: Regenerated.
3983 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3985 * config/tc-s390.c (md_parse_option): Formatting.
3987 * config/tc-i386.c: Formatting fixes, add missing space in error
3990 2002-04-24 Christian Groessler <chris@groessler.org>
3992 * config/tc-z8k.c (build_bytes): Add support for new cases:
3993 CLASS_IGNORE and ARG_NIM4.
3994 (md_assemble): Prevent destruction of input_line_pointer if
3995 get_operands returns failure.
3997 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3999 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4000 instructions to be generated by macros.
4002 2002-04-24 Andreas Schwab <schwab@suse.de>
4004 * config/tc-i386.c (output_jump, output_disp)
4005 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4007 (md_apply_fix3): Remember addend value for rela relocations.
4008 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4010 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4012 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4013 from previous change.
4015 2002-04-22 Eric Christopher <echristo@redhat.com>
4017 * config/tc-mips.c (macro_build): Add warning if macro instructions
4018 are expanded into a branch delay slot.
4020 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4022 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4023 numbers, gdb relies on them to detect the start of the prologue.
4025 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4027 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4028 symbols in merge sections.
4030 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4032 * as.c (main): Don't reference _bfd_chunksize.
4034 2002-04-15 Tom Rix <trix@redhat.com>
4036 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4037 symbols in merge sections.
4039 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4041 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4042 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4043 argument for the precision.
4044 (gen_to_words): Update accordingly.
4046 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4048 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4049 BFD_VERSION_STRING unavailable.
4050 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4052 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4054 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4055 symbol_used_in_reloc_p is true.
4057 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4060 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4062 * dep-in.sed: Cope with absolute paths.
4063 * Makefile.am (dep.sed): Subst TOPDIR.
4065 * Makefile.in: Regenerate.
4067 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4069 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4070 (mips_ip): Remove unused variable.
4071 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4072 unsigned char with bfd_byte.
4073 (s_file): Remove unused variable.
4074 (s_mips_ent): Likewise.
4076 2002-04-03 Tom Rix <trix@redhat.com>
4078 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4080 (find_opcode): Fix warning in as_warn.
4081 * config/tc-d10v.h: Update Copyright.
4083 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4084 Tom Rix <trix@redhat.com>
4086 From Jeff Knaggs <jknaggs@redhat.com>
4087 * config/tc-d10v.c (check_resource_conflict): New function to
4088 check for resource conflicts.
4090 From Jason Eckhardt <jle@redhat.com>
4091 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4093 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4094 reserved control registers is used.
4095 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4098 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4099 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4100 instruction cannot be packed.
4102 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4103 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4104 write-write conflicts.
4105 (md_assemble): Reformat introductory comment.
4106 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4109 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4111 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4112 O_logical_not>): Derive final_seg from add_symbol.
4113 <O_multiply..O_logical_or>: More final_seg twiddles.
4115 2002-04-01 Jessica Han <jessica@cup.hp.com>
4117 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4120 2002-03-27 Andreas Schwab <schwab@suse.de>
4122 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4123 field for pc-relative fixups.
4124 (output_disp): Likewise.
4125 (md_estimate_size_before_relax): Likewise.
4126 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4127 pc-relative fixups in 64bit mode.
4129 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4131 * config/te-aix5.h: Typo fix.
4133 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4135 * Makefile.am: Run "make dep-am".
4136 * Makefile.in: Regenerate.
4137 * doc/Makefile.in: Regenerate.
4139 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4141 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4142 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4144 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4146 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4147 the EXTENDED bit here; report the estimate according to the
4150 2002-03-18 Tom Rix <trix@redhat.com>
4152 * configure.in: Add AIX 5 support.
4153 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4154 * config/te-aix5.h: New file. AIX 5 support.
4155 * configure: Regenerate.
4157 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4159 * po/fr.po: Updated version.
4161 2002-03-16 Andreas Jaeger <aj@suse.de>
4163 * doc/c-mips.texi (Machine Dependencies): Add new node.
4165 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4167 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4168 (mips_opts): Initialize "ase_mips3d" member.
4169 (file_ase_mips3d): New variable.
4170 (CPU_HAS_MIPS3D): New macro.
4171 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4172 based on command line options and configuration defaults.
4173 (macro_build, mips_ip): Accept MIPS-3D instructions if
4174 mips_opts.ase_mips3d is set.
4175 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4176 Add support for "-mips3d" and "-no-mips3d" options.
4177 (OPTION_ELF_BASE): Move to accomodate new options.
4178 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4179 (mips_elf_final_processing): Add a comment indicating that a
4180 MIPS-3D ASE ELF header flag should be set, when one exists.
4181 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4182 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4183 nomips3d" directives.
4185 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4187 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4188 a weak symbol in same section to be within reach.
4190 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4192 * po/fr.po: Updated version.
4194 2002-03-12 Andreas Schwab <schwab@suse.de>
4196 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4197 body record so that an error is given for misplaced .save
4200 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4202 * config/tc-i386.h (REX_OPCODE): Define.
4203 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4204 (rex_byte): typedef to int.
4205 * config/tc-i386.c: Group prototypes and vars together.
4206 Formatting fixes. Remove occurrences of "register" keyword.
4209 (mode_from_disp_size): Add INLINE keyword to prototype.
4210 (fits_in_signed_byte): Likewise.
4211 (fits_in_unsigned_byte): Likewise.
4212 (fits_in_unsigned_word): Likewise.
4213 (fits_in_signed_word): Likewise.
4214 (fits_in_unsigned_long): Likewise.
4215 (fits_in_signed_long): Likewise.
4216 (type_names): Constify.
4217 (intel_float_operand): Constify param.
4218 (add_prefix): Use REX_OPCODE.
4219 (md_assemble): Likewise. Modify for changed rex_byte.
4220 (parse_insn): Split out of md_assemble.
4221 (parse_operands): Likewise.
4222 (swap_operands): Likewise.
4223 (optimize_imm): Likewise.
4224 (optimize_disp): Likewise.
4225 (match_template): Likewise.
4226 (check_string): Likewise.
4227 (process_suffix): Likewise.
4228 (check_byte_reg): Likewise.
4229 (check_long_reg): Likewise.
4230 (check_qword_reg): Likewise.
4231 (check_word_reg): Likewise.
4232 (finalize_imm): Likewise.
4233 (process_operands): Likewise.
4234 (build_modrm_byte): Likewise.
4235 (output_insn): Likewise.
4236 (output_branch): Likewise.
4237 (output_jump): Likewise.
4238 (output_interseg_jump): Likewise.
4239 (output_disp): Likewise.
4240 (output_imm): Likewise.
4242 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4244 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4246 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4248 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4249 relocs except when BFD64.
4251 * write.c (number_to_chars_bigendian): Don't abort when N is
4252 larger than sizeof (VAL).
4253 (number_to_chars_littleendian): Likewise.
4255 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4257 * config/tc-hppa.c (md_apply_fix3): Add cast.
4258 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4261 2002-03-05 Paul Koning <pkoning@equallogic.com>
4263 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4264 (parse_ac5): New function for parsing float regs in float operand.
4265 (parse_expression): Remove attempt to make literals be octal.
4266 (parse_op_no_deferred): Support float literals.
4267 (parse_op): Reject attempts to refer to float regs.
4268 (parse_fop): New function, like parse_op but for float operand.
4269 (md_assemble): Add cases to parse float operands. Also fix
4270 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4272 2002-03-04 H.J. Lu <hjl@gnu.org>
4274 * config/obj-elf.c (special_section): Add .init_array,
4275 .fini_array and .preinit_array.
4277 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4278 .init_array and .fini_array.
4280 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4282 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4284 (obj_frob_symbol): Copy visibility.
4286 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4288 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4290 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4292 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4294 * po/es.po: Updated.
4296 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4298 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4299 only, undo the changes made on 2001-06-08, with the
4300 effect being that common or extern symbols are
4301 adjusted for embedded-PIC, but weak symbols are not.
4302 (md_estimate_size_before_relax: Likewise, with the effect
4303 that extern symbols are treated the same as weak symbols
4304 only if not embedded-PIC.
4305 (mips_fix_adjustable) Likewise, with the effect that
4306 weak or extern symbols are not adjusted for embedded-PIC.
4307 (md_apply_fix3): Tweak so that the case where value is zero
4308 is handled more correctly for embedded-PIC code.
4310 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4312 * doc/as.texinfo (Overview): Add missing @ifset IA64
4314 * configure.in (LINGUAS): Add es.po.
4315 * configure: Regenerate.
4316 * po/es.po: New file.
4318 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4320 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4321 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4322 and NO_PIC cases. Code cleanup.
4323 (macro2): Fix handling of 64bit register loads.
4325 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4327 * doc/as.texinfo: Add entry for IA64.
4328 * doc/c-ia64.texi: New file.
4330 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4332 * config/tc-hppa.c: Update copyright date.
4334 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4335 Remove references to chip manufacturers.
4336 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4338 (md_show_usage): Remove references to chip manufacturers. Mention
4340 (md_begin): Test power4 opcode flag bits.
4342 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4344 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4345 count exceeds prologue count.
4346 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4347 (unwind.label_prologue_count): New member.
4349 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4351 (get_saved_prologue_count): New function.
4352 (save_prologue_count): New function.
4353 (free_saved_prologue_count): New function.
4354 (dot_label_state): Record state label by calling save_prologue_count().
4355 (dot_copy_state): Restore prologue count by calling
4356 get_saved_prologue_count().
4357 (generate_unwind_image): Free up list of saved prologue
4358 counts by calling free_saved_prologue_counts().
4360 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4362 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4363 function declarations.
4365 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4367 * NEWS: Note that GASP is now deprecated.
4368 * Makefile.am: Do not build gasp-new by default.
4369 * Makefile.in: Regenerate.
4370 * doc/Makefile.am: Do not install gasp.info.
4371 * doc/Makefile.in: Regenerate.
4372 * gas/gasp.texi: Note that gasp is now deprecated.
4374 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4376 * NEWS: Mark 2.12 branch.
4378 2002-02-19 Tom Tromey <tromey@redhat.com>
4380 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4382 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4384 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4387 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4389 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4390 Make bit size independent of architecture switch.
4391 (md_begin): Add warning for -m64 with -Aesa.
4392 (s390_md_end): Use renamed architecture defines.
4394 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4396 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4398 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4400 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4403 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4405 * config/tc-mips.c (md_estimate_size_before_relax): Really
4406 make sure we treat weak like extern only for ELF. (Fixes
4407 patch from 2001-07-25.)
4409 2002-02-15 Ben Elliston <bje@redhat.com>
4411 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4414 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4416 * NEWS: Mention support for MMIX.
4418 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4420 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4421 a sequence of indpendent 'if' statements for easier debugging
4422 and future modification.
4424 2002-02-13 Matt Fredette <fredette@netbsd.org>
4426 * config/tc-m68k.c (md_show_usage): No longer display a
4427 hard-coded "68020" for the default CPU, instead display the
4428 canonical name of the true, configured default CPU.
4429 (m68k_elf_final_processing): Mark objects for sub-68020
4430 CPUs with the new EF_M68000 flag.
4432 2002-02-13 Andreas Schwab <schwab@suse.de>
4434 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4435 pc-relative relocations to merge sections in 64-bit mode.
4437 2002-02-13 Ben Elliston <bje@redhat.com>
4439 * NEWS: Document floating point number handling in gasp.
4440 * gasp.c: Include <assert.h> and "xregex.h".
4441 (is_flonum): New function.
4442 (chew_flownum): Likewise.
4443 (change_base): Consume flonums from the input, where possible.
4444 * doc/gasp.texi (Constants): Document floating point numbers.
4446 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4448 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4449 that implicitly use LR and RR selectors.
4451 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4453 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4454 and `epsw' as available on AM33 and above only.
4455 (other_register_name): Add logic to handle machine type encoded in
4458 2002-02-11 Tom Rix <trix@redhat.com>
4460 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4463 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4465 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4468 2002-02-11 Jan Hubicka <jh@suse.cz>
4470 * i386.c (md_assemble): Support 32bit address prefix.
4471 (i386_displacement): Likewise.
4472 (i386_index_check): Accept 32bit addressing in 64bit mode.
4474 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4476 * config/tc-sh.c (dot): Removed unused function.
4478 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4480 * Makefile.am: "make dep-am".
4481 * Makefile.in: Regenerate.
4482 * aclocal.m4: Regenerate.
4483 * config.in: Regenerate.
4484 * configure: Regenerate.
4485 * doc/Makefile.in: Regenerate.
4487 2002-02-10 Richard Henderson <rth@redhat.com>
4489 * doc/c-alpha.texi: New file.
4490 * doc/Makefile.am (CPU_DOCS): Add it.
4491 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4493 2002-02-09 Richard Henderson <rth@redhat.com>
4495 * config/tc-alpha.c (O_samegp): New.
4496 (USER_RELOC_P): Include it.
4497 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4498 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4499 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4500 (alpha_validate_fix): New.
4501 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4503 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4505 * doc/c-cris.texi: New.
4506 * doc/all.texi: @set CRIS.
4507 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4508 Include c-cris.texi.
4509 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4510 * doc/Makefile.in: Regenerate.
4512 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4514 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4515 determine if a number is a sign-extended 32-bit number.
4516 (load_register): Use IS_SEXT_32BIT_NUM.
4517 (macro): Check if load/store macro handling is using a
4518 constant 32-bit address on 64-bit address systems, and if
4519 so optimize the generation of that address.
4521 2002-02-08 Richard Henderson <rth@redhat.com>
4523 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4524 we've eliminated all foreign relocation types yet.
4525 (alpha_fix_adjustable): Likewise.
4527 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4529 Contribute sh64-elf.
4530 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4531 Stephen Clarke <Stephen.Clarke@st.com>
4532 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4533 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4534 * config/tc-sh.c (md_relax_table): Added default sizes for
4535 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4536 MOVI_16, MOVI_32 and MOVI_48.
4537 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4538 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4540 (shmedia_md_estimate_size_before_relax): Remove redundant
4541 blocks. Set fragP->fr_var even if relaxation type unchanged.
4542 Retain UNDEF_MOVI until expression decays to number.
4543 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4544 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4545 relocation types. Take fixP->fx_addnumber into account too.
4546 (shmedia_md_apply_fix): Likewise.
4547 (shmedia_md_convert_frag): Likewise.
4548 (shmedia_build_Mytes): Likewise.
4549 (sh64_consume_datalabel): Complain about nested datalabel.
4550 Support PIC relocs. Call sh_parse_name.
4551 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4552 in tc-sh.h to SHmedia reloc types.
4553 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4554 MOVI_GOTPC): New relaxation constants.
4555 (md_relax_table): Introduce relaxation directives for PIC-related
4557 (sh_PIC_related_p): Handle datalabel.
4558 (sh_check_fixup): Choose SH5 PIC relocations.
4559 (sh_cons_fix_new): Added BDF_RELOC_64.
4560 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4561 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4562 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4563 current ISA is SHmedia, get 7 bytes.
4564 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4565 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4567 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4568 shmedia_apply_fix3 and make void.
4569 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4570 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4572 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4573 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4574 2001-03-14 DJ Delorie <dj@redhat.com>
4575 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4576 * doc/Makefile.in(CPU_DOCS): Ditto.
4577 * doc/c-sh64.texi: New file.
4578 * doc/as.texinfo: Add SH64 support.
4579 2001-03-13 DJ Delorie <dj@redhat.com>
4580 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4581 A_REUSE_PREV so that its purpose is more obvious.
4582 (shmedia_build_Mytes): Ditto.
4583 2001-03-07 DJ Delorie <dj@redhat.com>
4584 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4586 (sh64_vtable_inherit): Ditto.
4587 (strip_datalabels): New, strip "datalabel" from given line.
4588 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4590 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4591 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4593 (shmedia_build_Mytes): ... to here.
4594 2001-03-06 DJ Delorie <dj@redhat.com>
4595 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4597 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4598 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4599 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4600 address by one in call to dwarf2_emit_insn.
4601 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4602 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4603 alignment handling broken by imported changes.
4604 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4605 (sh64_handle_align): Declare.
4606 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4607 (sh64_max_mem_for_rs_align_code): Declare.
4608 (enum sh64_isa_values): Moved here from tc-sh64.c.
4609 (md_do_align): Define.
4610 (sh64_do_align): Declare.
4611 (struct sh64_tc_frag_data): New.
4612 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4614 (TC_FRAG_INIT): Change to set new datatype.
4615 (struct sh64_segment_info_type): Rename member
4616 last_flushed_location to last_contents_mark. All users changed.
4617 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4618 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4619 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4620 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4621 of unsetting seen_insn.
4622 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4623 call sh64_update_contents_mark.
4624 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4625 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4626 enum sh64_isa_values.
4627 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4628 (emitting_crange): Boolean guard moved to file scope from function
4629 scope in sh64_set_contents_type.
4631 (sh64_update_contents_mark): New; most split out from
4632 sh64_flush_pending_output.
4633 (shmedia_md_end): Call sh64_update_contents_mark. Set
4634 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4635 (sh64_do_align): New function.
4636 (sh64_max_mem_for_rs_align_code): New function.
4637 (sh64_handle_align): Rename from shmedia_do_align. Make
4638 non-static. Add head comment. Emit zero bytes for n bytes modulo
4639 four. Change return-type to void.
4640 (shmedia_elf_new_section): Remove.
4641 (shmedia_md_assemble): Call sh64_update_contents_mark.
4642 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4643 new frag. Call sh64_update_contents_mark after making the new
4645 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4646 and sh_flush_pending_output.
4647 (sh64_flag_output): Also call md_flush_pending_output, but add
4648 condition on not emitting_crange.
4649 (sh64_tc_cons_fix_new): Remove.
4650 2001-01-12 Nick Clifton <nickc@redhat.com>
4651 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4652 alignment handling scheme imported from sourceware.
4653 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4654 * config/tc-sh64.h (TARGET_FORMAT): Define.
4655 (sh64_target_format): Prototype.
4656 * config/tc-sh64.c (sh64_target_mach): New function.
4657 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4658 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4659 zero_address_frag instead of copying the frag of the symbol.
4660 (shmedia_frob_file_before_adjust): Ditto.
4661 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4662 to valueT to remove signedness.
4663 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4664 headers to output_bfd. Do not evaluate symbols if final is false;
4666 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4667 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4668 to the current frag, call shmedia_md_convert_frag to emit fixups
4669 and make frag_wane neutralize the frag. Update comments.
4670 * config/tc-sh.c (md_convert_frag): Change caller of
4671 shmedia_md_convert_frag.
4672 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4673 * config/tc-sh64.h: Tweak comments and correct formatting.
4674 * config/tc-sh64.c: Ditto.
4675 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4676 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4677 for the no-relocation case.
4678 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4679 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4681 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4683 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4684 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4686 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4688 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4689 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4690 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4691 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4692 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4693 if reloc is emitted.
4694 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4695 New options plus bugfixes.
4696 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4698 (md_parse_option): Handle new options.
4699 (md_show_usage): Add blurb for new options.
4700 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4701 (sh64_expand, sh64_pt32): New variables.
4702 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4703 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4704 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4705 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4706 <resolved previously-pc-relative relocs>: Handle
4707 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4708 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4709 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4710 points to SHcompact code.
4711 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4712 SH64PCREL16)>: Check that ISA of what operand points at and
4713 PTA/PTB matches, or emit error.
4714 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4715 SHMEDIA_BFD_RELOC_PT.
4716 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4718 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4719 condition for MOVI expansion.
4720 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4721 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4723 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4725 (sh64_target_format): Error-check setting of sh64_pt32 and
4726 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4727 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4728 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4729 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4730 * config/tc-sh64.c: Improve comments.
4731 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4732 not say the linker will check correctness of PTA/PTB expansion.
4733 (shmedia_md_end): Make non-static.
4734 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4736 * config/tc-sh.c (sh_finalize): Remove.
4737 * config/tc-sh.h (md_end): Do not define.
4738 Remove prototype for sh_finalize.
4739 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4740 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4741 sh64_section_data container when storing section type in tdata
4742 field in elf_section_data.
4743 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4745 * Makefile.am: Update dependencies.
4746 * Makefile.in: Regenerate.
4747 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4748 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4749 dwarf2_emit_insn call with test on debug_type.
4750 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4751 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4752 CRT_SH5_ISA32 sticky for 64-bit.
4753 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4754 Generate .crange sections when switching ISA mode or emitting
4755 constants in same section as code.
4756 * config/tc-sh64.c: Reformat structure definitions.
4757 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4759 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4760 to emit a .cranges descriptor when contents type changes. Only
4761 emit error if changing contents type and -no-mix is in effect.
4762 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4763 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4764 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4765 sh64_flush_last_crange over sections.
4766 When checking main symbol of datalabel symbol, check for
4767 STO_SH5_ISA32, not ISA type of section in definition.
4768 (shmedia_frob_file_before_adjust): Check main symbol for
4769 STO_SH5_ISA32; don't check ISA type of section in definition.
4770 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4771 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4772 .cranges entries have been output.
4773 (shmedia_elf_new_section): Just call md_flush_pending_output.
4774 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4775 fix. Do not set tc_segment_info_data.in_code for section. Call
4776 sh64_set_contents_type for SHmedia code.
4777 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4778 false. Call md_flush_pending_output.
4779 (sh64_target_format): Check that -no-mix and
4780 -shcompact-const-crange are used in sane combination with other
4782 (shmedia_md_pcrel_from_section): Check type of fix for how to
4784 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4785 not ISA type of section in definition.
4786 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4787 hold contents-type state.
4788 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4789 (sh64_flush_pending_output): Declare.
4790 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4791 (sh64_tc_cons_fix_new): Declare.
4792 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4793 call sh64_flag_output.
4794 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4795 call sh64_set_contents_type to mark SHcompact code and set
4797 (md_longopts): New options "-no-mix" and
4798 "-shcompact-const-crange".
4799 (md_parse_option): Handle new options.
4800 (md_show_usage): Add blurb for new options.
4801 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4802 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4803 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4804 (sh64_last_insn_frag): New.
4805 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4806 to get frag for insn opcode for generating fixups; do not assume it
4808 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4810 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4812 (TC_FRAG_TYPE): Define as fragS *.
4813 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4814 (sh64_last_insn_frag): Declare.
4815 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4816 not == NULL before dereferencing.
4817 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4818 Get rid of BFD section flag and EF_SH64_ABI64.
4819 * config/tc-sh64.c (shmedia_frob_section_type): Use
4820 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4821 communicate the section as containing SHmedia code. Describe why.
4822 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4823 EF_SH64 regardless of ABI.
4824 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4825 in error message. Handle resolved expressions for
4826 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4827 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4828 (shmedia_check_limits): Handle BFD_RELOC_64.
4829 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4830 a STO_SH5_ISA32 symbol, only the BFD value.
4831 2000-12-11 Ben Elliston <bje@redhat.com>
4832 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4833 dwarf2_generate_asm_lineno.
4834 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4835 Handle PC-relative MOVI expansions with assembler relaxation.
4836 Generate PC-relative relocs from 16-bit PC-relative expressions.
4837 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4838 (shmedia_md_pcrel_from_section): ...here.
4839 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4840 turned completely resolved. Adjust relocation type for 16-bit
4841 immediate operands that has turned PC-relative. Adjust back for
4842 MD_PCREL_FROM_SECTION being applied twice.
4843 (shmedia_md_convert_frag): Always emit reloc for expression with
4844 global or weak symbol. Handle relaxation result for PC-relative
4846 (shmedia_md_estimate_size_before_relax): An expression with a weak
4847 or global symbol can not be relaxed. Break out tests for
4848 relaxable symbol into variable sym_relaxable.
4849 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4850 UNDEF_MOVI)>: Break out any PC-relative expression and change
4852 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4854 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4855 MOVI expansion. If X_op_symbol of the immediate expression is
4856 set, make an expression symbol for the argument to frag_var.
4857 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4859 (END): Adjust for new relaxations.
4860 (md_relax_table): Add entries for new relaxations.
4861 2000-12-07 Ben Elliston <bje@redhat.com>
4862 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4863 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4864 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4865 SHORI operand offsets in PT/PTA/PTB expansions.
4866 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4867 Implement DataLabel semantics.
4868 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4869 shmedia_frob_file_before_adjust.
4870 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4871 (DATALABEL_SUFFIX): Define.
4872 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4873 symbol list to update "datalabel" symbols to their main symbol
4875 (shmedia_frob_file_before_adjust): New.
4876 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4877 undefined and set STT_DATALABEL.
4878 (sh64_frob_label): Initialize TC symbol field.
4879 (sh64_consume_datalabel): Actually implement semantics. New
4880 parameter operandf, call it instead of expression.
4881 (sh64_exclude_symbol): New.
4882 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4883 to sh64_consume_datalabel.
4884 (tc_symbol_new_hook): Define to tc_frob_symbol.
4885 (TC_SYMFIELD_TYPE): Define to symbolS *.
4886 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4887 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4888 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4890 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4891 generating dwarf2 debug information.
4892 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4893 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4894 elf64-sh64 for the 64-bit ABI.
4895 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4897 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4898 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4900 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4901 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4902 (enum sh64_abi_values): New type.
4903 (enum sh64_isa_values): New type.
4904 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4905 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4906 (sh64_abi): Replace shmedia_64.
4907 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4908 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4909 (s_sh64_mode): Check validity for this target.
4910 (sh64_target_format): Initialize defaults for ISA and ABI.
4911 Fallback to old object format if no SH64 ISA or ABI has been
4913 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4914 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4915 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4916 * config/tc-sh64.h: Fix typo in comment.
4917 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4918 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4919 <PT fixups for absolute values>: Size will be longest, not
4921 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4922 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4923 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4924 and l1 to hold lowercase of two first characters. Change all
4925 remaining TO_LOWER to tolower.
4926 * config/tc-sh64.c (TO_LOWER): Delete.
4927 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4928 (md_parse_name): Define.
4929 (sh64_consume_datalabel): Declare.
4930 (DOLLAR_DOT): Define.
4931 * config/tc-sh64.c (shmedia_parse_exp): New.
4932 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4933 (shmedia_parse_reg): Remove const from src
4935 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4936 (shmedia_md_assemble): Ditto for op_end variable.
4937 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4938 Use shmedia_parse_exp, not parse_exp.
4939 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4940 parameter. All callers changed.
4941 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4943 (shmedia_parse_reg): Put first two character in local variables.
4944 Use tolower, not TO_LOWER. If no register is found and argtype
4945 indicates a control register, scan shmedia_creg_table
4947 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4948 * Makefile.am (CPU_TYPES): Add sh64.
4949 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4950 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4951 Regenerate dependencies.
4952 * Makefile.in: Regenerate.
4953 * configure.in: Add support for sh64-*-elf*.
4954 * configure: Regenerate.
4955 * config/tc-sh64.h: New.
4956 * config/tc-sh64.c: New.
4957 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4958 .mode, .isa and .uaquad.
4959 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4960 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4961 [HAVE_SH64] (END): Define as 10.
4962 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4963 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4965 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4966 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4967 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4968 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4970 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4971 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4972 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4973 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4974 SHmedia instructions. Handle state-change after switching to
4976 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4977 (md_parse_option) [HAVE_SH64]: Parse new options.
4978 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4979 (md_convert_frag) [HAVE_SH64] <default>: Call
4980 shmedia_md_convert_frag instead of abort.
4981 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4982 BFD_RELOC_SH_SHMEDIA_CODE.
4983 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4984 SHcompact or SHmedia code.
4985 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4986 shmedia_md_apply_fix instead of abort.
4987 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4988 result from calling shmedia_md_estimate_size_before_relax instead
4990 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4992 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4993 shmedia_init_reloc and do nothing more if it returns non-zero.
4994 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4995 * po/POTFILES.in: Regenerate.
4996 * po/gas.pot: Regenerate.
4998 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5000 * config/tc-sh.c (parse_at): Install the correct version of
5003 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5004 assume fixP->fx_subsy is non-NULL.
5006 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5008 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5009 A_DISP_PC_ABS, and adjust it by -4.
5010 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5012 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5013 the operand type is not A_DISP_PC_ABS.
5015 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5017 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5018 common and weak symbols. Handle common and weak symbols as
5019 undefined symbols with regards to GREG handling and merging.
5020 (mmix_frob_file): Ditto.
5022 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5024 * configure.in (hppa-*-netbsd*): New target.
5025 * configure: Regenerate.
5026 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5028 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5030 * config/tc-v850.c: Add missing prototypes amd use old-style
5031 function definitions.
5032 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5033 (sdata_section tdata_section, zdata_section, sbss_section,
5034 tbss_section, zbss_section, rosdata_section, rozdata_section,
5035 scommon_section, tcommon_section, zcommon_section,
5036 call_table_data_section, call_table_text_section): Delete.
5037 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5038 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5039 v850_call_table_data, v850_call_table_text): Delete.
5040 (struct v850_seg_entry): New.
5041 (v850_seg_table): New.
5042 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5043 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5044 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5045 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5048 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5049 recording of alignment.
5050 (md_pseudo_table): Use v850_seg.
5051 (md_begin): Don't init .call_table_data and .call_table_text here.
5052 Set v850_seg_table bss entry.
5054 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5056 Support on-demand global register allocation by passing on
5057 base-plus-offset relocs to the linker.
5058 * config/tc-mmix.c: Tweak and fix typos in comments.
5059 (allocate_undefined_gregs_in_linker): New variable.
5060 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5061 (md_longopts): Add --linker-allocated-gregs.
5062 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5063 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5064 (md_show_usage): Update text for -x. Add text for
5065 --linker-allocated-gregs.
5066 (tc_gen_reloc): Derive default value for addend from val and
5067 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5068 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5069 GREG if allocate_undefined_gregs_in_linker.
5070 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5071 --linker-allocated-gregs.
5072 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5073 --linker-allocated-gregs. Mention that it's implied by -x.
5074 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5075 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5077 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5079 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5081 * Makefile.am: Run "make dep-am"
5082 * Makefile.in: Regenerate.
5084 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5086 * config/tc-or32.c: New file.
5087 * config/tc-or32.h: New file.
5088 * configure.in: Add support for or32 targets.
5089 * configure: Regenerate.
5090 * config/obj-coff.c: Add support for or32 targets.
5091 * config/obj-coff.h: Add support for or32 targets.
5092 * Makefile.am: Add support for or32 targets.
5093 * Makefile.in: Regenerate.
5094 * NEWS: Mention support for OpenRISC.
5095 * doc/Makefile.in: Regenerate.
5096 * po/POTFILES.in: Regenerate.
5097 * po/gas.pot: Regenerate.
5099 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5101 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5104 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5106 * config/tc-mips.c (tc_gen_reloc): Arrange for
5107 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5108 their LO16 parts, even for ELF.
5110 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5112 * config/tc-i386.c: Protect definitions of true and false
5115 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5117 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5118 made because of .weak, if they are neither defined nor used in any
5121 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5123 * configure: Regenerated.
5125 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5127 * doc/Makefile.am (install): Depend on install-info.
5128 * doc/Makefile.in: Regenerate.
5130 2002-01-26 Nick Clifton <nick@redhat.com>
5132 * po/fr.po: Updated version
5134 2002-01-24 Kazu Hirata <kazu@hxi.com>
5136 * config/tc-h8300.c (check_operand): Don't print a warning
5137 when a valid 24-bit address is given to a 16-bit address
5140 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5142 * config/tc-sh.c (sh_elf_suffix): Removed.
5143 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5144 sh_end_of_match, sh_parse_name): New functions.
5145 (sh_elf_cons): Simplify.
5146 (parse_exp): Reject misplaced PIC operands.
5147 (md_undefined_symbol): Simplify.
5148 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5149 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5150 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5151 Complain if subsy remains at the end.
5152 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5153 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5155 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5157 * config/tc-mn10300.c (xr_registers): Move `pc'...
5158 (other_registers): ... here.
5160 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5162 * Makefile.am: Run "make dep-am".
5163 * Makefile.in: Regenerate.
5164 * gas/po/POTFILES.in: Regenerate.
5166 2002-01-21 DJ Delorie <dj@redhat.com>
5168 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5169 stabstr_name allocation permanent, as it will be referenced from
5172 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5174 * configure.in (ia64-*-netbsd*): New target.
5175 * configure: Regenerate.
5177 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5179 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5181 <Detailed description, ARM options>: Ditto.
5182 * doc/c-arm.texi (ARM Options): Ditto.
5184 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5186 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5187 do_mia, do_mar and do_mra respectively.
5188 (do_mav_*): Renamed from do_c_*.
5189 (mav_reg_required_here, mav_parse_offset): Renamed from
5190 cirrus_reg_required_here and cirrus_parse_offset respectively.
5191 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5193 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5194 Keith Walker <keith.walker@arm.com>
5196 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5197 (insns): Add pattern for bxj instruction.
5198 (do_bxj): New function.
5199 (arm_cpus): Add arm926ej.
5200 (arm_archs): Add armv5tej.
5202 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5204 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5206 2002-01-19 Keith Walker <keith.walker@arm.com>
5208 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5210 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5212 * NEWS: Mention new ARM command-line options and VFP support.
5214 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5216 (ARM_CEXT_MAVERICK): Similarly.
5217 (ARM_ANY): Now means any core instruction.
5218 (CPU_DEFAULT): Default to ARM_ANY.
5219 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5220 (pic_code): Declare for all object types. Make type int.
5221 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5222 (march_fpu_opt, mfpu_opt): Declare.
5223 (md_longopts): Tidy up conditional definitions.
5224 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5225 (arm_long_opts): New tables.
5226 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5227 (arm_parse_extension): New function.
5228 (md_parse_option): Rewrite using new table-driven system.
5229 (md_show_usage): Use new table-driven system.
5230 (md_begin): Calculate cpu_variant from command line option data.
5231 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5232 command-line options.
5233 * doc/c-arm.texi: Likewise.
5235 2002-01-18 Andreas Jaeger <aj@suse.de>
5237 * as.c (parse_args): Update year.
5239 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5241 * config/tc-tic54x.c (encode_address): Add a more informative
5242 warning about incorrect syntax.
5244 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5246 * po/gas.pot: Regenerate.
5248 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5250 * macro.c (get_any_string): Add no-c-format comment to prevent
5251 confusion when translating string.
5252 * gasp.c (get_any_string): Add no-c-format comment to prevent
5253 confusion when translating string.
5255 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5256 Johannes Stezenbach <js@convergence.de>
5257 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5258 matched before the shorter ones.
5259 (my_getSmallParser): Fix handling of nested parentheses in
5260 percent_op's. Code cleanup.
5261 (my_getPercentOp): New function, code from my_getSmallParser.
5262 (my_getSmallExpression): Fix handling of closing parentheses.
5263 Code cleanup. Better comments.
5265 2002-01-16 Nick Clifton <nickc@redhat.com>
5267 po/tr.po: New file: Turkish translation.
5268 configure.in (LINGUAS): Add "tr".
5269 configure: Regenerate.
5271 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5273 Support for VFP instructions
5274 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5275 (cp_address_required_here): New argument wb_ok. When false, do not
5276 accept write-back forms of addressing. Change all callers.
5277 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5278 (FPU_VFP_EXT_V2): Define.
5279 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5280 Define in terms of above.
5281 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5282 (vfp_reg): New struct.
5283 (vfp_regs): New array of registers.
5284 (insns): Add VFP instructions.
5285 (sn_table): New array of VFP single-precision register names.
5286 (dn_table): New array of VFP double-precision register names.
5287 (all_reg_maps): Add the new register tables.
5288 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5289 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5290 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5291 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5292 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5293 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5294 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5295 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5296 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5297 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5298 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5299 (do_vfp_sp_dp_cvt): New functions.
5300 (md_begin): Set soft-float flag for appropriate VFP work.
5301 (md_atof): Handle VFP-format doubles.
5302 (md_parse_option): Handle VFP command-line options.
5303 (md_show_usage): Display VFP command-line options.
5305 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5307 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5308 various command line options.
5310 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5312 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5314 (xstormy16_md_apply_fix3): Do not return a value.
5316 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5318 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5319 the -EL/-EB option that matches the target's endianness.
5320 (md_parse_option): Likewise.
5322 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5324 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5325 is not dependent on ARM_BI_ENDIAN.
5327 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5329 * tc-arm.c (all error messages): Normalize capitalization of messages.
5331 * tc-arm.h (md_operand): Delete define.
5332 * tc-arm.c (in_my_get_expression): New static variable.
5333 (my_get_expression): Set and clear it.
5334 (md_operand): New function. If called from my_get_expression
5335 put the error in inst.error.
5336 (output_inst): Now takes argument of instruction being assembled.
5337 Print it out with any error message.
5338 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5340 (end_of_line): Don't update inst.error if it is already set.
5342 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5344 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5345 op that can be translated into a mvn instruction.
5347 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5349 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5350 setting default md.flags.
5351 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5352 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5353 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5354 for 32 bit unwind info blocks.
5355 (generate_unwind_image): Add support for different types
5356 of unwind images (32 bits and/or big-endian).
5357 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5358 (ia64_target_format): Add support for hpux target formats.
5359 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5360 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5361 SHT_FINI_ARRAY elf section types.
5363 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5365 * tc-arm.c (struct reg_entry): Move before prototypes.
5366 (int_register, cp_register, fp_register): Delete.
5367 (reg_table): Delete. Replaced with ...
5368 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5369 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5370 (mav_dspsc_table): ... one table per register set.
5371 (arm_reg_hsh): Delete.
5372 (struct reg_map): New structure.
5373 (all_reg_maps): New array.
5374 (enum arm_reg_type): New enums.
5375 (build_reg_hsh): New function.
5376 (insert_reg_alias): Use hash table passed by caller. Adjust all
5378 (create_register_alias): New function, split out from ...
5379 (md_assemble): ... here.
5380 (md_begin): Build new register hash tables.
5381 (arm_reg_parse): New argument for the hash table to search. Adjust all
5383 (arm_reg_parse_any): New function.
5384 (co_proc_number): Look up the processor number in the processor hash
5386 (cirrus_regtype): Delete.
5387 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5388 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5389 (ARM_EXT_MAVERICKsc_register): Delete.
5390 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5391 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5393 (do_c_triple_4, do_c_triple_5): Delete.
5394 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5395 (do_c_quad_6): Delete.
5396 (do_c_quad_6[ab]): New functions.
5397 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5398 arguments to use new register parsing methods.
5399 (cirrus_reg_required_here): Likewise.
5400 (insns): Reclassify cirrus maverick worker functions.
5401 (cirrus_valid_reg): Delete.
5403 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5405 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5406 (sh*-*-netbsdelf*): New target.
5407 * configure: Regenerate.
5408 * tc-sh.h: Update copyright years.
5409 (TARGET_FORMAT): Add version for TE_NetBSD.
5411 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5413 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5416 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5418 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5419 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5421 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5423 * tc-mips.c (mips_cprestore_valid): New flag.
5424 (mips_frame_reg_valid): New flag.
5425 (macro) [M_JAL_2]: Check both flags.
5426 [M_JAL_A]: Likewise.
5427 (s_cprestore): Set mips_cprestore_valid.
5428 (tc_get_register): If setting mips_frame_reg, set
5429 mips_frame_reg_valid and clear mips_cprestore_valid.
5430 (s_mips_ent): Clear both flags.
5431 (s_mips_end): Clear both flags.
5433 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5435 * write.c (write_object_file): Make use of bfd_section_list_remove.
5436 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5437 * config/tc-mmix.c (mmix_frob_file): Likewise.
5439 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5441 * configure.in (i386-*-netbsdelf*): Collapse target into...
5442 (i386-*-netbsd*): ...this. Add support for x86-64.
5443 * configure: Regenerated.
5445 2002-01-03 matthew green <mrg@redhat.com>
5447 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5449 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5451 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5454 For older changes see ChangeLog-0001
5460 version-control: never