1 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
3 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel insns.
4 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
6 2003-05-18 Jason Eckhardt <jle@rice.edu>
8 * config/tc-i860.c (i860_process_insn): Initialize fc after
11 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
13 * configure.in: Accept i[3-7]86 variants.
14 * configure: Regenerate.
16 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
18 * config/tc-mips.h: Fix comment formatting.
20 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
22 * read.c (old_buffer, old_input, old_limit): Remove variables.
23 (read_a_source_file): Delete label contin.
24 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
25 input as with macros, instead of in separate old_* variables.
26 Zero-terminate string being scrubbed.
28 2003-05-12 Nick Clifton <nickc@redhat.com>
30 * config/tc-xstormy16.c (skipping_fptr): New local variable.
31 (md_assemble): Reset skipping_fptr.
32 (md_operand): If @fptr() is followed by a minus sign, set
33 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
34 @fptr is detected, ignore it and reset skipping_fptr.
36 2003-05-11 Jason Eckhardt <jle@rice.edu>
38 * config/tc-i860.c (MAX_FIXUPS): Define.
39 (struct i860_fi fi[]): New struct.
40 (struct i860_it the_insn): Add above as member and move fields
41 exp, reloc, pcrel and fup into i860_fi.
42 (md_assemble): Replace all instances of exp, reloc, pcrel
43 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
44 Add a loop to possibly emit multiple fix-ups for each insn.
45 (i860_process_insn): Likewise.
46 (i860_get_expression): Likewise.
47 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
49 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
51 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
53 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
55 * config/tc-ia64.c (alias_hash): New.
56 (alias_name_hash): New.
58 (secalias_name_hash): New.
59 (md_pseudo_table): Add "secalias".
60 (md_begin): Initialize alias_hash, alias_name_hash,
61 secalias_hash and secalias_name_hash.
63 (dot_alias): Implement .alias and .secalias directives.
65 (ia64_adjust_symtab): New.
67 (ia64_frob_file): New.
69 * config/tc-ia64.h (ia64_adjust_symtab): New.
70 (tc_adjust_symtab): Defined.
71 (ia64_frob_file): New.
72 (tc_frob_file): Defined.
74 2003-05-07 Dmitry Diky <diwil@mail.ru>
76 * tc-msp430.c: Add missing lines to known cpus list.
78 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
80 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
81 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
82 * config.in, configure: Rebuilt.
84 2003-05-05 H.J. Lu <hjl@gnu.org>
86 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
87 howto->partial_inplace is false.
89 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
91 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
92 symbol_used_in_reloc_p check.
93 (md_apply_fix3): Remove check for howto->pcrel_offset.
95 2003-05-03 H.J. Lu <hjl@gnu.org>
97 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
98 fatal error for unknown section attribute.
100 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
101 unknown section attribute.
102 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
103 * config/tc-ppc.c (ppc_section_letter): Likewise.
105 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
106 (ia64_elf_section_type): Accept "unwind".
108 2003-05-02 H.J. Lu <hjl@gnu.org>
110 * read.h (demand_copy_string): New.
112 * config/tc-alpha.c (demand_copy_string): Removed.
114 2003-05-02 Michael Snyder <msnyder@redhat.com>
116 * write.h (FAKE_LABEL_NAME): Allow override
117 (for targets that like eg. a leading dot in a local label).
119 2003-05-02 Nick Clifton <nickc@redhat.com>
121 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
122 addend with the symbol's value for pc-relative relocations against
123 a defined symbol - this will be done automatically.
125 2003-05-01 H.J. Lu <hjl@gnu.org>
127 * config/obj-elf.c (obj_elf_type): Accept "notype" and
130 2003-05-01 H.J. Lu <hjl@gnu.org>
132 * config/tc-ia64.h (tc_canonicalize_section_name): New.
134 * config/obj-elf.c (obj_elf_section_name): Call
135 tc_canonicalize_section_name if it is defined.
137 2003-05-01 H.J. Lu <hjl@gnu.org>
139 * config/tc-ia64.c (ia64_check_label): New.
140 * config/tc-ia64.h (tc_check_label): New.
142 * read.c (read_a_source_file): Call tc_check_label after
143 creating a user-defined label if defined.
145 2003-05-02 Alan Modra <amodra@bigpond.net.au>
147 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
148 -be and split strings to below 509 bytes in length.
150 2003-05-01 Christian Groessler <chris@groessler.org>
152 * expr.h: Fix comments in operatorT typedef.
153 * config/tc-z8k.c: Add 2003 to copyright message.
154 Fold s_segm() and s_unseg() into one function s_segm(parm) which
155 decides by the parameter.
156 (md_begin): Don't set linkrelax. Only set Z8002 default if no
157 command line argument was given to select the intended
159 (get_interrupt_operand): Warn if NOP type code is emitted.
160 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
161 (apply_fix): Call newfix with additional 'size' parameter.
162 (build_bytes): Remove unused variable 'nib'. Detect overflow in
163 4 bit immediate arguments.
164 (md_longopts): Add 'linkrelax' option.
165 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
166 variable when 'linkrelax' command line option is specified.
167 (md_show_usage): Display 'linkrelax' option.
168 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
170 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
172 2003-04-30 H.J. Lu <hjl@gnu.org>
174 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
175 (ia64_float_to_chars): Likewise.
176 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
177 and ia64_float_to_chars by tc_segment_info_data.endian from
178 the current segment if byteorder == -1.
179 (md_begin): Call dot_byteorder to set target_big_endian.
180 (md_atof): Call ia64_float_to_chars to convert floating point.
181 (ia64_float_to_chars_bigendian): New function.
182 (ia64_float_to_chars_littleendian): Likewise.
183 (ia64_elf_section_change_hook): Likewise.
185 * config/tc-ia64.h (ia64_number_to_chars): New.
186 (md_number_to_chars): Changed to (*ia64_number_to_chars)
187 (ia64_elf_section_change_hook): New.
188 (md_elf_section_change_hook): Defined.
189 (ia64_segment_info_type): New struct.
190 (TC_SEGMENT_INFO_TYPE): Defined.
192 2003-04-30 H.J. Lu <hjl@gnu.org>
194 * config/tc-ia64.c (md_section_align): Deleted.
196 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
197 (md_section_align): New.
199 2003-04-30 H.J. Lu <hjl@gnu.org>
201 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
203 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
205 (md_atof): Add 6 byte padding of zero for real16.
207 2003-04-29 Nick Clifton <nickc@redhat.com>
209 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
210 start of a version name.
212 2003-04-28 Chris Demetriou <cgd@broadcom.com>
214 * configure.in (mips-*-*n*bsd*): Replace with...
215 (mips-*-netbsd*, mips-*-openbsd*): These.
216 * configure: Regenerate.
218 2003-04-28 H.J. Lu <hjl@gnu.org>
220 * config/tc-hppa.c (hppa_symbol_chars): New.
221 * config/tc-hppa.h (tc_symbol_chars): Likewise.
223 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
225 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
227 2003-04-25 Chris Demetriou <cgd@broadcom.com>
229 * NEWS: Belatedly mention support for MIPS32 Release 2.
231 2003-04-24 Eric Christopher <echristo@redhat.com>
233 * config/tc-mips.c (nopic_need_relax): Revert previous
236 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
238 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
239 * config/tc-h8300.c (dwarf2dbg.h): Include
240 (md_pseudo_table): Handle .loc and .file
241 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
242 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
243 * Makefile.in: Regenerate.
245 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
247 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
248 (md_pseudo_table): Add h8300hn, h8300sn.
249 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
250 * doc/c-h8300.texi : Add documentation for new machine directives.
252 2003-04-24 Nick Clifton <nickc@redhat.com>
254 * config/tc-ppc.c (ppc_symbol_chars): Define.
255 * config/tc-ppc.h (tc_symbol_chars): Define.
257 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
259 * config/tc-sh.c: Amend comment to refer to SuperH.
260 * config/tc-sh.h: Likewise.
261 (LISTING_HEADER): Amend to refer to SuperH.
262 * config/tc-sh64.c: Change comment to refer to SuperH.
263 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
264 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
265 * doc/c-sh.texi: Amend to refer to SuperH.
266 Add SuperH architecture documentation references.
267 * doc/c-sh64.texi: Change to refer to SuperH.
269 2003-04-23 H.J. Lu <hjl@gnu.org>
271 * app.c (do_scrub_chars): More checks for valid labels.
273 2003-04-22 H.J. Lu <hjl@gnu.org>
275 * app.c (do_scrub_chars): Check for valid label.
277 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
279 * doc/as.texinfo: Replace references to Mitsubishi M32R with
280 references to Renesas M32R.
281 * doc/c-m32r.texi: Likewise.
283 2003-04-21 Richard Henderson <rth@redhat.com>
285 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
286 (out_file_list): Assign non-null filename after generating error.
288 2003-04-18 Jakub Jelinek <jakub@redhat.com>
290 * ehopt.c (check_eh_frame): For aug_size == 0
291 in state_seeing_aug_size state skip the state_skipping_aug
294 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
296 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
298 * doc/c-h8500.texi: Likewise.
299 * doc/c-sh.texi: Likewise.
300 * doc/c-sh64.texi: Likewise.
301 * doc/h8.texi: Likewise.
302 * config/tc-h8300.c: Likewise.
303 * config/tc-h8300.h: Likewise.
304 * config/tc-h8500.c: Likewise.
305 * config/tc-h8500.h: Likewise.
306 * config/tc-sh.c: Likewise.
307 * config/tc-sh.h: Likewise.
308 * config/tc-sh64.c: Likewise.
309 * config/tc-sh64.h: Likewise.
311 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
313 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
314 * config/tc-mips.c: Use signed add for n32 address arithmetic.
315 (append_insn): When filling delay slots with instructions
316 that have fixups that tc_gen_reloc might consider modifyable
317 in variant frags, start a new frag.
318 (load_address): Generate GOT_DISP with of without offset
319 depending on whether symbol is local. For -xgot, use
320 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
321 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
322 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
323 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
324 <ld_st>: In NewABI with small got, always use
325 GOT_PAGE/GOT_OFST, with the latter in the load/store
326 instruction. With big got, use GOT_HI16/GOT_LO16 or
328 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
329 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
330 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
331 (md_convert_frag): Use memmove for safe copying of overlapping
334 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
336 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
337 -mlong, -mshort-double and -mlong-double options; use table @code.
338 (M68HC11-Syntax): Update to document 68HC12 operands.
339 (M68HC11-Modifiers): New section for operand modifiers.
340 (M68HC11-Directives): New section for specific assembler directives.
341 (M68HC11-Branch): Fix Overfull hbox error.
343 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
345 * config/tc-mips.c (macro): Add comments explaining the rationale
348 2003-04-09 Chris Demetriou <cgd@broadcom.com>
350 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
351 constant address that Alexandre took out by accident. Reject
352 64-bit addresses that are not sign extensions of 32 bits only if
353 we don't support 64-bit address constants.
355 2003-04-09 Alan Modra <amodra@bigpond.net.au>
357 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
359 2003-04-08 Nick Clifton <nickc@redhat.com>
361 * as.c (perform_an_assembly_pass): If using cgen, call
363 * cgen.c (gas_cgen_begin): New function. If
364 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
365 otherwise call cgen_clear_signed_overflow_ok.
366 * cgen.h: Prototype gas_cgen_begin.
368 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
370 * write.c (write_relocs): Remove unused variable.
372 2003-04-06 Chris Demetriou <cgd@broadcom.com>
374 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
375 (macro): Use new macro to decide whether to emit constant address
376 as 32 or 64 bits if addresses are 32-bit wide but registers are
379 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
381 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
382 (M6811_OP_PAGE_ADDR): New internal define.
383 (get_operand): New modifier %page and %addr to obtain page and
384 address part of a far-function.
385 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
386 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
388 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
389 (find_opcode): Add comment.
390 (md_estimate_size_before_relax): Force relocation of
391 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
392 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
393 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
394 on the symbol itself so that DWARF2 strings are merged correctly.
396 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
398 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
399 default tic4x target format to 'coff2-tic4x'.
400 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
402 * config/tc-tic4x.h: Ditto
404 2003-04-03 Nick Clifton <nickc@redhat.com>
406 * NEWS: Mention support for Xtensa architecture.
408 2003-04-02 Philip Blundell <philb@gnu.org>
410 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
412 2003-04-02 Chris Demetriou <cgd@broadcom.com>
414 * config/tc-mips.c (macro2): Adjust implementation of
415 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
416 in the case where the source and destination registers
419 2003-04-01 Bob Wilson <bob.wilson@acm.org>
421 * Makefile.am (CPU_TYPES): Add xtensa.
422 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
423 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
424 (xtensa-relax.o): New target.
426 * Makefile.in: Regenerate.
427 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
428 extra_objects for xtensa targets.
429 * configure: Regenerate.
430 * write.c (write_object_file): Add new md_post_relax_hook.
431 * config/tc-xtensa.c: New file.
432 * config/tc-xtensa.h: Likewise.
433 * config/xtensa-istack.h: Likewise.
434 * config/xtensa-relax.c: Likewise.
435 * config/xtensa-relax.h: Likewise.
436 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
437 * doc/Makefile.in: Regenerate.
438 * doc/all.texi: Set new XTENSA variable.
439 * doc/as.texinfo: Set new Xtensa variable. Describe
440 Xtensa-specific options. Define line comment character for
441 Xtensa. Add Xtensa processors to list of ELF targets where
442 alignment is specified in bytes. Add new Xtensa-Dependent node.
443 Add acknowledgements for those contributing to the Xtensa port.
444 * doc/internals.texi: Describe new md_post_relax_hook.
445 * doc/c-xtensa.texi: New file.
448 2003-04-01 Nick Clifton <nickc@redhat.com>
449 Richard Earnshaw <rearnsha@arm.com>
451 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
452 (ARM_ARCH_IWMMXT): Simplify.
453 (insns): Place iwmmx instructions in correct place in table.
454 (arm_add_note): New function: Add a note entry to a .note section.
455 (md_begin): Make the default architecture be unknown.
456 Suppress the creation of an arm note section.
458 2003-03-26 Eric Christopher <echristo@redhat.com>
460 * config/tc-mips.c (nopic_need_relax): Check for
463 2003-03-25 Stan Cox <scox@redhat.com>
464 Nick Clifton <nickc@redhat.com>
466 Contribute support for Intel's iWMMXt chip - an ARM variant:
468 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
469 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
470 (enum wreg_type, enum iwmmxt_insn_type): New types.
471 (wr_register, wc_register, wcg_register): New macros.
472 (iwmmxt_table): New variable.
473 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
474 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
475 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
476 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
477 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
478 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
479 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
480 cp_byte_address_offset, cp_byte_address_required_here,
481 check_iwmmxt_insn): New functions.
482 (asm_opcode_insns): Add iWMMXt instructions.
483 (md_begin): Set the mach value for iWMMXt targets. Create a note
484 section to identify iwmmxt binaries.
485 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
486 * doc/c-arm.texi: Document the support for the iWMMXt.
487 * NEWS: Mention new support.
489 2003-03-24 Daniel Néri <dne@mayonnaise.net>
491 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
492 * doc/all.texi: Likewise.
493 * doc/c-tic54x.texi: Likewise.
495 2003-03-21 Andreas Schwab <schwab@suse.de>
497 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
498 avoid aliasing issue.
500 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
502 * config/tc-s390.c (s390_arch_size): Initialize to zero.
503 (current_arch_mask): Rename to current_mode_mask.
504 (current_arch_requested): Remove variable.
505 (current_cpu): New variable.
506 (init_default_arch): Set defaults values for s390_arch_size,
507 current_mode_mask and current_cpu.
508 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
509 (md_begin): Replace current_arch_mask by current_cpu.
510 (md_assemble): Adapt check and error message to current_mode_mask and
513 2003-03-09 James E Wilson <wilson@tuliptree.org>
515 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
516 * read.c (get_line_sb): Return end of line character or '\n' if
517 it is zero or non-existent.
519 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
521 * config/tc-mips.c (mips_validate_fix): New function.
522 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
523 (mips_validate_fix): Declare.
525 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
527 * Reverted 2003-03-02's patch.
529 2003-03-11 Steve Ellcey <sje@cup.hp.com>
531 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
532 (TC_DWARF2_EMIT_OFFSET): Provide default.
533 (out_debug_aranges, out_debug_info): Use it.
534 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
535 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
536 (ia64_gen_real_reloc_type): ... here.
537 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
539 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
541 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
542 (s_mips_ent): Likewise.
544 2003-03-04 Dmitry Diky <diwil@mail.ru>
546 * config/tc-msp430.c (mcu_types): Add recently announced x1122
547 and x1123 devices, add missed x437.
548 (md_show_usage): Sort device list.
550 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
552 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
553 (md_begin): Use preset_target_arch.
554 (md_longopts): Make isa option unconditional.
555 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
556 set preset_target_arch.
557 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
558 by -S_GET_VALUE (fixP->fx_subsy).
559 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
561 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
562 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
564 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
566 * config/tc-mips.c (append_insn): Add handling of
567 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
568 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
569 misaligned address and reange overflow.
570 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
571 earlier warnings about misaligned address and reange overflow.
572 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
573 (md_apply_fix): Likewise. Fix warning output.
574 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
575 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
576 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
578 2003-02-21 Nick Clifton <nickc@redhat.com>
580 * NEWS: Mention availability of test generator program.
582 2003-02-21 Miles Bader <miles@gnu.org>
584 * config/tc-v850.c (system_registers): Add v850e debug registers.
585 (system_register_name): Accept up to 27 (the last v850e sys register).
587 2003-02-21 Bob Wilson <bob.wilson@acm.org>
589 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
590 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
591 Capitalize section headings consistently. Format index entries more
592 consistently. Unconditionalize text about whether text and data
593 sections are alterable. Use @ifnottex for alternatives to @tex output
594 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
595 .size and .type directives. Be more polite about bad bug reports.
596 Move FDL into a separate file.
597 * doc/fdl.texi: New file.
599 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
601 * config/tc-mips.c (prev_reloc_op_frag): New variable.
602 (macro): Check it to decide whether a new frag is needed.
603 (my_getSmallExpression): Set it.
605 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
607 * cgen.c: Fix typo: intial -> initial.
609 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
611 * app.c (do_scrub_chars): Handle '||' in two states.
613 2003-02-13 Alan Modra <amodra@bigpond.net.au>
615 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
616 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
618 2003-02-11 Uwe Stieber <uwe@wwws.de>
620 * configure.in: Add support for kaOS as cross build target system.
621 * configure: Regenerated.
623 2003-02-10 Nick Clifton <nickc@redhat.com>
625 * config/tc-arm.c (md_begin): If the Maverick co-processor is
626 selected, set the EF_ARM_MAVERICK_FLOAT flag and
627 bfd_mach_arm_ep9312 machine number.
629 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
631 * config/tc-mips.c (reloc_needs_lo_p): New function.
632 (fixup_has_matching_lo_p): New function.
633 (append_insn): Use reloc_needs_lo_p to check whether a relocation
634 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
635 if that fixup already has a matching %lo(). Don't call frag_wane here.
636 (macro): Call frag_wane here if the last unmatched hi was in the
638 (pic_need_relax): New function, split out from...
639 (md_estimate_size_before_relax): ...here.
640 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
641 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
643 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
645 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
647 2003-02-06 Alan Modra <amodra@bigpond.net.au>
649 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
652 2003-02-05 Alan Modra <amodra@bigpond.net.au>
654 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
655 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
656 accept x@got+off etc.
657 (md_assemble): Handle TLS relocs.
658 (ppc_force_relocation): Force for all TLS relocs.
659 (ppc_fix_adjustable): Likewise.
660 (md_apply_fix3): Handle TLS relocs.
662 2003-02-04 Alan Modra <amodra@bigpond.net.au>
664 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
665 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
667 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
669 * config/tc-mips.c (enum small_ex_type): Remove.
670 (imm_unmatched_hi): Remove.
671 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
672 argument from calls to append_insn.
673 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
675 (macro_build): Update append_insn calls.
676 (mips16_macro_build, macro_build_lui): Likewise.
677 (mips_ip): Rework handling of small expressions. Move explicit
678 relocation handling into my_getSmallExpression. Assume that the
679 value of 'o' operands is zero if there is only one bracketed
681 (percent_op): Make constant. Record the BFD relocation code
682 associated with each operator.
683 (my_getSmallParser, my_getPercentOp): Remove.
684 (parse_relocation): New function.
685 (my_getSamllExpression): Rework. Fill in relocations here
686 rather than in mips_ip.
688 2003-01-29 Nick Clifton <nickc@redhat.com>
690 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
691 assembler's handling of # <linenum> "<filename>" directives work.
693 2003-01-28 Jakub Jelinek <jakub@redhat.com>
695 * dwarf2dbg.c: Include filenames.h.
696 (struct file_entry): Make filename const char *.
697 (dirs, dirs_in_use, dirs_allocated): New variables.
698 (get_filenum): Add NUM argument. Build directory table.
699 (dwarf2_where): Adjust caller.
700 (dwarf2_directive_file): Use get_filenum to allocate
701 slot in file and directory tables.
702 (dwarf2_directive_loc): Recreate full filename from
703 directory and filename part if needed for listing.
704 (out_file_list): Output directory table.
705 Output main source file dirname before its filename.
707 2003-01-28 Dmitry Diky <diwil@mail.ru>
709 * config/tc-msp430.c: Replace occurences of 'tolower' with
712 2003-01-27 David Mosberger <davidm@hpl.hp.com>
714 * config/tc-ia64.c (dot_vframesp): Correct error message.
715 (dot_vframepsp): Ditto.
717 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
719 * configure.in (em): Set to irix on all Irix systems.
720 * configure: Rebuilt.
721 * config/te-irix.h: New file.
722 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
723 whether to use Irix-specific 64-bit format.
725 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
727 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
729 2003-01-25 Jakub Jelinek <jakub@redhat.com>
731 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
732 (tc_gen_reloc): Handle TLS relocs.
733 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
734 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
736 * config/obj-elf.c (obj_elf_section_word): Handle tls.
737 (obj_elf_type): Handle tls_object.
739 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
741 * config/tc-s390.c (s390_tls_suffix): New function.
742 (elf_suffix_type): Add suffix enums for TLS relocations.
743 (s390_elf_suffix): Add suffix strings for TLS relocations.
744 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
746 (md_gather_operands): Map new instruction operand/elf suffix
747 combinations for TLS to bfd relocations.
748 (tc_s390_fix_adjustable): Add new TLS relocations.
749 (tc_s390_force_relocation): Likewise.
750 (md_apply_fix3): Likewise.
752 2003-01-24 Alan Modra <amodra@bigpond.net.au>
754 * as.h: Update copyright date.
755 * symbols.c: Likewise.
756 * config/tc-d10v.h: Likewise.
757 * config/tc-fr30.h: Likewise.
758 * config/tc-i960.h: Likewise.
759 * config/tc-mips.h: Likewise.
761 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
762 (MD_APPLY_SYM_VALUE): Move.
764 2003-01-23 Nick Clifton <nickc@redhat.com>
766 NEWS: Announce sh2e support.
770 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
772 * config/tc-sh.c (md_show_usage): Added sh2e next to
774 (sh_elf_final_processing): Handle arch_sh2e.
776 2003-01-23 Alan Modra <amodra@bigpond.net.au>
778 * symbols.c (S_FORCE_RELOC): Add "strict" param.
779 * symbols.h (S_FORCE_RELOC): Likewise.
780 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
781 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
782 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
783 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
784 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
785 * write.c (generic_force_reloc): New function.
786 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
787 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
788 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
789 * as.h (generic_force_reloc): Declare.
790 * doc/internals.texi (S_FORCE_RELOC): Update.
791 (TC_FORCE_RELOCATION_SUB_SAME): Update.
793 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
795 (alpha_fix_adjustable): Likewise.
796 * config/tc-arm.c (arm_force_relocation): Likewise.
797 * config/tc-cris.c (md_cris_force_relocation): Likewise.
798 * config/tc-frv.c (frv_force_relocation): Likewise.
799 * config/tc-i386.c (md_apply_fix3): Likewise.
800 * config/tc-ia64.c (ia64_force_relocation): Likewise.
801 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
802 * config/tc-m32r.c (m32r_force_relocation): Likewise.
803 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
804 * config/tc-mcore.c (mcore_force_relocation): Likewise.
805 * config/tc-mips.c (mips_force_relocation): Likewise.
806 * config/tc-mmix.c (mmix_force_relocation): Likewise.
807 * config/tc-ppc.c (ppc_force_relocation): Likewise.
808 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
809 * config/tc-sh.c (sh_force_relocation): Likewise.
810 (md_pcrel_from_section): Likewise.
811 * config/tc-sparc.c (tc_gen_reloc): Likewise.
812 * config/tc-v850.c (v850_force_relocation): Likewise.
813 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
814 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
815 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
816 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
818 * config/tc-d10v.c (d10v_force_relocation): Delete.
819 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
820 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
821 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
822 * config/tc-fr30.c (fr30_force_relocation): Delete.
823 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
824 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
825 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
826 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
827 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
828 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
829 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
830 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
831 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
832 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
833 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
834 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
835 * config/tc-i386.c (i386_force_relocation): Delete.
836 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
838 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
839 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
840 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
841 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
843 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
844 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
846 2003-01-23 Alan Modra <amodra@bigpond.net.au>
848 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
849 sh64_elf_section_data.
850 * config/tc-sh64.h: Include elf32-sh64.h.
851 * config/tc-m68hc11.c: Don't include stdio.h.
852 (md_show_usage): Fix missing continuation.
853 * Makefile.am: Run "make dep-am".
854 * Makefile.in: Regenerate.
856 2003-01-22 Nick Clifton <nickc@redhat.com>
858 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
860 2003-01-21 Fabio Alemagna <falemagn@aros.org>
862 * configure.in: Handle *-*-aros*.
863 * configure: Regenerated from configure.in.
865 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
867 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
868 gotplt and pltoff relocations.
869 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
870 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
871 gotplt and pltoff to bfd relocations.
872 (md_gather_operands): Map new instruction operand/elf suffix
873 combinations to bfd relocations.
874 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
875 to the list of unadjustable relocations.
876 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
877 and pltoff relocations.
878 (md_apply_fix3): Add the new relocations.
880 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
882 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
885 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
887 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
888 of relocs for memory bank addressing.
890 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
892 * config/tc-m68hc11.c (md_show_usage): Update usage.
893 (md_parse_option): Recognize -m68hcs12.
894 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
896 * doc/as.texinfo (Overview): Document new option -m68hcs12.
898 2003-01-16 Jakub Jelinek <jakub@redhat.com>
900 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
902 2003-01-16 Alan Modra <amodra@bigpond.net.au>
904 * Makefile.am: Run "make dep-am".
905 * Makefile.in: Regenerate.
906 * po/POTFILES.in: Regenerate.
908 2003-01-11 Alan Modra <amodra@bigpond.net.au>
910 * read.c (get_absolute_expr): New, split out from..
911 (get_absolute_expression): ..here.
912 * read.h (get_absolute_expr): Declare.
913 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
914 Trim size to arch bits_per_address, and test for negative input
915 via get_absolute_expr.
917 2003-01-07 DJ Delorie <dj@redhat.com>
919 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
921 (xstormy16_md_apply_fix3): Use adjustment.
923 2003-01-02 Ben Elliston <bje@redhat.com>
925 * configure.in: Add iq2000-elf target.
926 * configure: Regenerate.
927 * config/tc-iq2000.c: New file.
928 * config/tc-iq2000.h: Likewise.
929 * po/gas.pot: Regenerate.
931 2003-01-02 Chris Demetriou <cgd@broadcom.com>
933 * config/tc-mips.c: Update copyright years to include 2003.
934 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
935 Additionally, clean up their code slightly and clean up their
938 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
940 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
942 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
944 * doc/Makefile.in: Regenerate.
946 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
948 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
949 of .init and .fini sections for array initializers and finalizers.
951 2002-12-31 Chris Demetriou <cgd@broadcom.com>
953 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
954 the "+D" operand, which will be used only by the disassembler.
956 2002-12-30 Chris Demetriou <cgd@broadcom.com>
958 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
960 * configure: Regenerate.
961 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
962 (macro_build): Handle "K" operand.
963 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
964 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
965 (mips_ip): New variable "lastpos", and implement "+A", "+B",
966 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
967 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
968 (validate_mips_insn): Implement "+" as a way to extend the
969 allowed operands, and implement "K", "+A", "+B", and "+C"
971 (OPTION_MIPS32R2): New define.
972 (md_longopts): Add entry for OPTION_MIPS32R2.
973 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
974 (md_parse_option): Handle OPTION_MIPS32R2.
975 (s_mipsset): Reimplement handling of ".set mipsN" options
976 and add support for ".set mips32r2".
977 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
978 (md_show_usage): Document "-mips32r2" option.
979 * doc/as.texinfo: Document "-mips32r2" option.
980 * doc/c-mips.texi: Likewise.
982 2002-12-30 Dmitry Diky <diwil@mail.ru>
984 * configure.in: Add msp430 target.
985 * configure: Regenerate.
986 * Makefile.am: Add msp430 target.
987 * Makefile.in: Regenerate.
988 * config/tc-msp430.c: New file: msp430 assembler.
989 * config/tc-msp430.h: New file: target macros for msp430.
990 * doc/Makefile.am: Add msp430 target.
991 * doc/Makefile.in: Regenerate.
992 * doc/as.texinfo: Include msp430 documenation.
993 * doc/all.texi: Enable msp430 documentation.
994 * doc/c-msp430.texi: New file: document msp430 specific features
997 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
999 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1000 (dwarf2_finish): Use it.
1001 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1002 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1004 2002-12-20 DJ Delorie <dj@redhat.com>
1006 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1007 BFD_RELOC_XSTORMY16_12.
1009 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1011 * doc/as.texinfo (Invoking): Typo fix.
1012 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1014 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1016 * doc/c-alpha.texi: Fix typos.
1017 * doc/c-arm.texi: Likewise.
1018 * doc/c-d10v.texi: Likewise.
1019 * doc/c-i370.texi: Likewise.
1020 * doc/c-i960.texi: Likewise.
1021 * doc/c-ia64.texi: Likewise.
1022 * doc/c-mmix.texi: Likewise.
1023 * doc/c-ns32k.texi: Likewise.
1024 * doc/c-pdp11.texi: Likewise.
1025 * doc/c-pj.texi: Likewise.
1026 * doc/c-sh64.texi: Likewise.
1027 * doc/c-sparc.texi: Likewise.
1028 * doc/c-tic54x.texi: Likewise.
1029 * doc/c-v850.texi: Likewise.
1030 * doc/c-vax.texi: Likewise.
1031 * doc/internals.texi: Likewise.
1033 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1035 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1036 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1037 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1038 arrange not to issue warnings about use of AT when AT is not
1041 2002-12-17 Nick Clifton <nickc@redhat.com>
1043 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1044 prevent it being confused with -k.
1046 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1048 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1049 has already been set up, use it.
1051 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1053 * ChangeLog-9295: Fix a typo.
1055 * config/tc-d10v.c: Fix a comment typo.
1056 * config/tc-dlx.c: Likewise.
1057 * config/tc-h8300.h: Likewise.
1058 * config/tc-h8500.h: Likewise.
1059 * config/tc-mips.c: Likewise.
1060 * config/tc-s390.c: Likewise.
1061 * config/tc-sh.h: Likewise.
1062 * config/tc-tic80.h: Likewise.
1063 * config/tc-w65.h: Likewise.
1064 * config/tc-z8k.c: Likewise.
1065 * config/tc-z8k.h: Likewise.
1066 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1068 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1070 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1071 Simplify sign extension. Remove redundant unsigned < 0 test.
1072 * config/tc-i960.c (md_ri_to_chars): Prototype.
1073 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1074 (dump_literals): Init brarsym, and test later instead of isforce.
1076 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1077 (parse): Constify line and lineptr.
1078 (md_begin): Calculate endop here.
1080 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1082 * config/obj-vms.c: Formatting. Include fnctl.h.
1083 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1084 (Object_Record_Offset): Make it a size_t.
1085 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1086 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1087 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1088 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1089 (vms_fixup_data_section <data_size>): Add here instead.
1090 * config/e-criself.c: Fix typo in last change.
1092 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1094 * write.c (write_object_file): Fix signed/unsigned warning.
1095 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1096 * config/e-criself.c (criself_bfd_name): Prototype.
1097 * config/obj-aout.c (s_sect): Remove unused function.
1098 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1099 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1100 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1101 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1102 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1103 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1104 (vms_fixup_text_section <text_siz>): Likewise.
1105 (synthesize_data_segment <data_size>): Likewise.
1106 (vms_fixup_xtors_section <sect_no>): Likewise.
1107 (structure_count): Don't use implicit int type.
1108 * config/tc-a29k.c (insert_sreg): Prototype.
1109 (define_some_regs): Prototype, make static.
1110 (parse_operand): Likewise.
1111 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1112 (md_show_usage <stream>): Likewise.
1113 (md_section_align <segment>): Likewise.
1114 (md_convert_frag <all args>): Likewise.
1115 (md_estimate_size_before_relax <all args>): Likewise.
1116 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1117 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1118 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1119 (md_undefined_symbol <name>): Likewise.
1120 (md_convert_frag <all args>): Likewise.
1121 (write_long <opcode>): Likewise.
1122 (tc_gen_reloc <seg>): Likewise.
1123 (md_estimate_size_before_relax <all args>): Likewise.
1124 (md_apply_fix3 <seg>): Likewise.
1125 (s_d30v_align <ignore>): Likewise.
1126 (build_insn): Correct format string.
1127 (md_apply_fix3): Likewise.
1128 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1129 (md_undefined_symbol <name>): Likewise.
1130 (md_convert_frag <all args>): Likewise.
1131 (md_cgen_lookup_reloc <insn>): Likewise.
1132 (md_begin): Delete unused vars.
1133 (md_assemble): Likewise.
1134 (md_estimate_size_before_relax): Likewise.
1135 (fr30_relax_frag): #if 0 out, seems unused.
1136 (md_atof): Remove declaration of atof_ieee.
1137 (restore_colon): Prototype.
1138 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1139 (frv_find_in_vliw): Likewise.
1140 (frv_debug_tomcat): Likewise.
1141 (frv_adjust_vliw_count): Likewise.
1142 (frv_tomcat_shuffle): Likewise.
1143 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1144 frv_find_in_vliw call.
1145 (md_atof): Remove declaration of atof_ieee.
1146 * config/tc-h8500.c (cons): Delete declaration.
1147 (md_begin <opcode>): Constify.
1148 (displacement_size, immediate_size, absolute_size): Remove.
1149 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1150 (tc_crawl_symbol_chain <headers>): Likewise.
1151 (md_undefined_symbol <name>): Likewise.
1152 (tc_headers_hook <headers>): Likewise.
1153 (md_parse_option <c,arg>): Likewise.
1154 (md_show_usage <stream>): Likewise.
1155 (md_convert_frag <headers, seg>): Likewise.
1156 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1157 (md_atof): Remove declaration of atof_ieee.
1158 (tc_aout_fix_to_chars): Remove unused function.
1159 (parse_reg): Prototype.
1160 (parse_exp): Prototype.
1161 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1162 (parse_reglist): Prototype.
1163 (get_operand): Prototype.
1164 (get_operands): Prototype.
1165 (get_specific): Prototype. Make "this_index" signed.
1166 (check): Prototype, make static.
1168 (build_relaxable_instruction): Prototype, make static.
1169 (build_bytes): Prototype.
1170 (wordify_scb): Prototype.
1171 * config/tc-h8500.h (start_label): Declare.
1172 (tc_coff_sizemachdep): Declare.
1173 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1174 (i370_rmode <unused>): Likewise.
1175 (i370_csect <unused>): Likewise.
1176 (i370_dc <unused>): Likewise.
1177 (i370_ds <unused>): Likewise.
1178 (i370_elf_lcomm <unused>): Likewise.
1179 (i370_ltorg <ignore>): Likewise.
1180 (i370_using <ignore>): Likewise.
1181 (i370_drop <ignore>): Likewise.
1182 (i370_byte <ignore>): Likewise.
1183 (i370_tc <ignore>): Likewise.
1184 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1185 (md_convert_frag <all args>): Likewise.
1186 (md_undefined_symbol <name>): Likewise.
1187 (md_pcrel_from_section <sec>): Likewise.
1188 (tc_gen_reloc <seg>): Likewise.
1189 (i370_section_letter): #if 0 unused functions.
1190 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1191 (symbol_locate): Prototype.
1192 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1193 (md_number_to_disp, md_number_to_field): Remove.
1194 (md_apply_fix3): Correct format string and cast "fup".
1195 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1196 (s_endian <ignore>): Likewise.
1197 (md_undefined_symbol <name>): Likewise.
1198 (tc_crawl_symbol_chain <headers>): Likewise.
1199 (tc_set_bal_of_call): Likewise.
1200 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1201 (i960_handle_align <fragp>): Likewise.
1202 (i960_validate_fix <this_segment_type>): Likewise
1203 (tc_gen_reloc <section>): Likewise.
1204 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1205 (struct memS, struct regop): Forward declare.
1206 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1207 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1208 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1209 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1210 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1211 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1212 (md_number_to_field): Likewise.
1213 (md_number_to_disp): Remove unused function.
1214 (md_atof): Remove declaration of atof_ieee.
1215 (md_apply_fix3): Correct md_number_to_imm call.
1216 * config/tc-ip2k.c (md_assemble): Warning fix.
1217 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1218 (fill_insn <ignore>): Likewise.
1219 (debug_sym <ignore>): Likewise.
1220 (md_undefined_symbol <name>): Likewise.
1221 (m32r_scomm <ignore>): Likewise.
1222 (md_convert_frag <abfd>): Likewise.
1223 (md_cgen_lookup_reloc <insn>): Likewise.
1224 (m32r_record_hi16 <seg>): Likewise.
1225 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1226 (allow_m32rx): Prototype.
1227 (first_writes_to_seconds_operands): Prototype.
1228 (writes_to_pc): Prototype.
1229 (can_make_parallel): Prototype.
1230 (make_parallel): Prototype.
1231 (target_make_parallel): Prototype.
1232 (assemble_two_insns): Prototype.
1233 (m32r_record_hi16): Prototype.
1234 (md_atof): Remove declaration of atof_ieee.
1235 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1236 (m32r_force_relocation): Prototype.
1237 (m32r_elf_section_change_hook): Prototype.
1238 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1239 (md_show_usage): Fix signed/unsigned warning.
1240 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1241 (calcop): Ditto for reg_prefix var.
1242 (hexval): Add cast to fix signed/unsigned warning.
1243 (md_number_to_disp): Delete unused function.
1244 (md_number_to_field): Likewise.
1245 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1246 (match_name): Prototype.
1247 (get_bf2): Prototype.
1248 (get_bf_offset_expression): Prototype.
1249 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1250 (md_undefined_symbol <ignore>): Likewise.
1251 (md_create_short_jump <all args>): Likewise.
1252 (md_create_long_jump <all args>): Likewise.
1253 (md_convert_frag <abfd, sec>): Likewise.
1254 (md_apply_fix3 <segment>): Likewise.
1255 (md_section_align <segment>): Likewise.
1256 (md_pcrel_from_section <sec>): Likewise.
1257 (tc_gen_reloc <section>): Likewise.
1258 (reg_m, reg_n, immediate): Delete unused vars.
1259 (dump_literals): Fix signed/unsigned warning.
1260 (enter_literal): Likewise.
1261 (parse_imm): Likewise. Also fix format string.
1262 (parse_mem): Remove unused var.
1263 (md_assemble <LS>): Abort on unexpected inst.
1264 (md_atof): Remove declaration of atof_ieee.
1265 (md_parse_option): Remove unused vars.
1266 (md_apply_fix3): Fix format strings, cast args.
1267 (tc_gen_reloc): Delete unused var.
1268 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1269 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1270 (md_undefined_symbol <name>): Likewise.
1271 (md_convert_frag <abfd>): Likewise.
1272 (tc_gen_reloc <seg>): Likewise.
1273 (check_operand <insn>): Likewise.
1274 (md_convert_frag): Fix format strings.
1275 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1276 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1277 (md_atof): Remove declaration of atof_ieee.
1278 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1279 (md_apply_fix3): Fix bogus >>='s.
1280 (md_undefined_symbol): Delete unused var.
1281 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1282 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1283 (fake_opcode): Adjust for pj_opc_int_t change.
1284 (md_begin): Likewise.
1285 (md_assemble): Likewise.
1286 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1287 instead of non-existent third arg of parse_exp_save_ilp.
1288 (md_parse_option): Correct "little" and "big" calls.
1289 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1290 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1291 (tc_gen_reloc <section>): Likewise.
1292 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1293 (debug): Rewrite using VA_* macros.
1294 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1295 (md_convert_frag): Likewise.
1296 (md_parse_option): Likewise.
1297 (md_show_usage): Likewise.
1298 (md_undefined_symbol): Likewise.
1299 (tc_gen_reloc): Likewise.
1300 (md_operand): Likewise.
1301 (tc_aout_pre_write_hook): Delete.
1302 (struct tic30_insn): Make "operands" unsigned.
1303 (struct tic30_par_insn): Likewise.
1304 (md_assemble): Likewise for "count", "i" and "numops".
1305 (tic30_parallel_insn): Likewise for vars here.
1306 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1307 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1308 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1309 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1310 (md_undefined_symbol): Likewise.
1311 (md_parse_option): Likewise.
1312 (md_convert_frag): Likewise.
1313 (tc_coff_symbol_emit_hook): Likewise.
1314 (md_atof): Remove declaration of atof_ieee.
1315 (const_overflow): Warning fixes, tidy.
1316 (get_operands): Delete unused vars.
1317 (internal_error_a): Adjust format string to expect a long for arg.
1318 (find_opcode): Warning fixes, simplify.
1319 (build_insn): Cast internal_error_a arg.
1320 (md_begin): Likewise.
1321 (md_apply_fix3): Likewise.
1322 (md_assemble): Delete unused var.
1323 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1324 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1325 (whatreg, parse_reg, parse_exp): Make static, prototype.
1326 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1327 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1328 (get_operand, get_operands, get_specific, newfix): Likewise.
1329 (apply_fix, build_bytes): Likewise.
1330 (md_atof): Remove declaration of atof_ieee.
1331 (tc_aout_fix_to_chars): Delete.
1332 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1334 (md_parse_option): Fix s_segm and s_unseg calls.
1336 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1338 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1340 (RELAX_BRANCH_RELOC_S2): Delete.
1341 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1342 Do not handle BFD_RELOC_16_PCREL.
1343 (macro_build, mips_ip): Likewise.
1344 (md_pcrel_from): Return 4 for undefined symbols regardless of
1346 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1347 Don't dereference howto if no such relocation is available.
1348 Do not apply hack for in-place zero addend in NEWABI.
1349 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1351 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1352 Alan Modra <amodra@bigpond.net.au>
1354 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1355 (TC_LINKRELAX_FIXUP): Add comments.
1357 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1359 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1361 (r_register_name, xr_register_name): Add prototype declarations.
1363 2002-12-08 H.J. Lu <hjl@gnu.org>
1365 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1366 copied from tc-i386.c.
1368 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1370 Fix Bug savannah/1825:
1371 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1372 (md_relax_table): Define specific relax for PC-rel offsets.
1373 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1374 (m68hc11_relax_frag): Handle the new relax code.
1375 (md_convert_frag): Likewise.
1376 (md_estimate_size_before_relax): Likewise.
1378 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1380 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1382 2002-12-05 Richard Henderson <rth@redhat.com>
1384 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1385 (ia64_gen_real_reloc_type): Handle it.
1386 (pseudo_func): Add @ltoffx.
1387 (md_begin): Build .<ltoffx>.
1388 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1390 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1392 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1393 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1394 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1395 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1396 COFF to call arm_force_relocation.
1398 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1400 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1402 (emit_one_bundle): Handle "hint" instruction.
1403 (operand_match): Match IA64_OPND_AR_CSD.
1405 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1407 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1410 2002-12-03 Nick Clifton <nickc@redhat.com>
1412 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1413 .PPC.EMB.apuinfo sections.
1415 2002-12-03 Richard Henderson <rth@redhat.com>
1417 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1419 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1421 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1422 (cons, s_align_bytes): Delete declaration.
1424 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1426 (dot): Delete unused function.
1427 (w65_expression): Remove unused arg.
1428 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1430 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1432 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1434 (check): Remove unused function.
1435 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1436 on unhandled switch case.
1437 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1439 (tc_crawl_symbol_chain): Delete unused function.
1440 (tc_headers_hook): Likewise.
1441 (tc_Nout_fix_to_chars): Likewise.
1442 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1443 (md_parse_option): Likewise.
1444 (md_convert_frag): Likewise.
1445 (tc_coff_symbol_emit_hook): Likewise.
1446 (md_show_usage): Likewise.
1447 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1448 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1449 (w65_expression): Declare.
1451 * po/POTFILES.in: Regenerate.
1453 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1454 and ARM_ADRL_IMMEDIATE.
1456 2002-12-02 Nick Clifton <nickc@redhat.com>
1458 * gasp.c: Delete. It has been deprecated.
1459 * NEWS: Mention that gasp has been removed.
1460 * Makefile.am: Remove references to gasp.
1461 * makefile.vms: Likewise.
1462 * mpw-make.sed: Likewise.
1463 * Makeile.in: Regenerate.
1464 * doc/gasp.texi: Delete.
1465 * doc/Makefile.am: Remove references to gasp.texi.
1466 * doc/Makefile.in: Regenerate.
1467 * macro.c: Delete references to gasp.
1468 Remove use of comment_char function parameter as it is no longer
1470 * macro.h: Update prototypes to remove comment_char parameter.
1472 * read.c (read_a_source_file, s_irp): Remove comment_char
1473 parameter from invocation of functions in macro.c
1475 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1477 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1479 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1481 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1482 (tc_gen_reloc): Mark section param as not used.
1484 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1486 Fix Bug savannah/1825:
1487 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1488 that are not pc-relative.
1489 (m68hc11_relax_frag): Declare.
1491 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1492 the offsetable indexed addressing modes (n,r).
1493 (build_insn): Cleanup some locals.
1494 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1495 relaxation of difference between two symbols of same section.
1496 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1497 only when this is a PC-relative operand and the offset is not absolute.
1498 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1499 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1500 be handled by m68hc11_relax_frag.
1502 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1504 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1505 (32-bit int, 64-bit double).
1506 (md_longopts): New options -mshort, -mlong, -mshort-double and
1507 -mlong-double to control the ABI.
1508 (md_show_usage): Update.
1509 (md_parse_option): Handle new options.
1510 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1512 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1514 * symbols.c (report_op_error): New function, broken out of ...
1515 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1518 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1520 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1521 for BFD_RELOC_32_PLT_PCREL.
1523 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1525 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1526 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1527 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1528 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1529 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1530 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1531 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1532 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1533 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1534 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1535 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1536 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1537 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1538 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1539 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1540 TRUE/FALSE. Formatting.
1542 2002-11-29 Nick Clifton <nickc@redhat.com>
1544 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1545 assume a value of zero.
1546 (do_bkpt): Likewise.
1548 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1550 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1551 for TLS relocations.
1553 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1555 * config/tc-ia64.c (md_apply_fix3): Add default case.
1557 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1559 * symbols.c (S_SET_THREAD_LOCAL): New function.
1560 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1561 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1562 for TLS relocations.
1563 * config/tc-ia64.c (md_apply_fix3): Likewise.
1564 * config/tc-alpha.c (md_apply_fix3): Likewise.
1566 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1568 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1571 2002-11-26 DJ Delorie <dj@redhat.com.
1573 * dwarf2dbg.c (scale_addr_delta): New.
1574 (size_inc_line_addr): Use it.
1575 (emit_inc_line_addr): Use it.
1577 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1579 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1580 (md_assemble): Don't pass on branches to constants as relaxable.
1583 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1585 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1587 2002-11-21 Randolph Chung <randolph@tausq.org>
1589 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1590 only if they have default visibility.
1592 2002-11-21 Richard Henderson <rth@redhat.com>
1594 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1597 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1599 * config/tc-mcore.c (mcore_pool_count): New function.
1600 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1602 2002-11-20 Klee Dienes <kdienes@apple.com>
1604 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1605 coalesce the name fields to use the same pointer.
1607 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1608 the name fields to use the same pointer.
1609 (get_specific): Check for opcodes with the same name using strcmp
1610 as well as comparing the pointer.
1612 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1614 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1617 2002-11-19 Richard Henderson <rth@redhat.com>
1619 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1620 visibility portion of st_other.
1622 2002-11-19 Klee Dienes <kdienes@apple.com>
1624 * config/tc-h8300.c (struct h8_instruction): New type, used to
1625 wrap h8_opcodes with length, noperands, idx, and size fields
1626 (computed at run-time).
1627 (h8_instructions): New variable.
1628 (md_begin): Allocate the storage for h8_instructions. Fill
1629 h8_instructions with pointers to the appropriate opcode and the
1630 correct value for the additional fields.
1631 (clever_message): Update to use h8_instructions instead of
1633 (build_bytes): Ditto.
1634 (get_specific): Ditto.
1635 (md_assemble): Ditto.
1637 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1639 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1640 adjustments to symbols in merge sections.
1642 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1644 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1646 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1648 * dwarf2dbg.h (dwarf2_format): New enum.
1649 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1650 (out_debug_line, out_debug_info): Add code for handling 64-bit
1652 * config/tc-mips.h (mips_dwarf2_format): Declare.
1653 * config/tc-mips.c (mips_dwarf2_format): New function.
1654 * doc/internals.texi (DWARF2_FORMAT): Document.
1656 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1658 * config/tc-mips.c (s_change_section): Make sure input buffer
1659 is not accessed past the end. Don't hand
1660 obj_elf_change_section a pointer into the input buffer.
1662 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1664 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1667 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1669 * config/tc-tic4x.c: Fixed proper commandline
1670 parameters. Added support for new opcode-list format. General
1671 error message fixups.
1672 (c4x_inst_add): Reject insn not for our CPU
1673 (md_begin): Added matrix for setting the proper opcode-level &
1674 device-flags according to cpu type and revision. Rewrite the
1676 (c4x_operand_parse): Fix opcode bug
1677 (c4x_operands_match): New function argument. Added dry-run
1678 mechanism, that is optional error generation. Added constraint 'i'
1680 (c4x_insn_check): Added new function for post-verification of the
1682 (md_assemble): Check all opcodes before croaking because of an
1683 argument mismatch. Need this to be able to fully support
1684 ortogonally arguments.
1685 (md_parse_options): Revised commandprompt swicthes and added new
1687 (md_show_usage): Complete rewrite of printout.
1689 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1691 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1692 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1693 warning when using constant direct bigger than 2^16. Add the new
1696 2002-11-11 Christopher Faylor <cgf@redhat.com>
1698 * configure.in: Use .gdbinit under Cygwin.
1699 * configure: Regenerate.
1701 2002-11-11 Christopher Faylor <cgf@redhat.com>
1703 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1706 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1708 * config/tc-tic4x.c: Declare as many functions as possible as
1709 static. Maintenance on the general indenting. Removed unnecessary
1710 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1711 function. Add support for new DSP, TMS320VC33. Fix bug for
1712 converting flonum constants.
1713 (c4x_do_align): Add proper align handling. Setup align to insert
1715 (c4x_gen_to_words): Support for extended TI type floats.
1716 (md_atof): Proper dumping of multiple-word littlenums.
1717 (c4x_atof): Added support for extended TI type floats.
1718 (c4x_stringer): Added new function to handle compact strings.
1719 (c4x_emit_char): Added new function argument to handle custom
1720 length inserts, like single-byte strings.
1721 * config/tc-tic4x.h: Add proper align handling with NOP's.
1722 * Makefile.am: Added tic4x dependecy
1723 * Makefile.in: Regenerate
1725 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1727 * macro.c (get_any_string): Correct logic for not going beyond end
1730 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1732 * config/tc-mmix.c (get_putget_operands): Mark both possible
1733 operands as invalid at beginning.
1735 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1736 Initialize target of fixup to zero.
1738 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1740 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1741 NEWABI, but we should still emit HI16_S for non-PIC n32.
1743 2002-11-06 Richard Henderson <rth@redhat.com>
1745 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1746 (alpha_fix_adjustable): ... here.
1747 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1749 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1751 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1754 2002-11-05 H.J. Lu <hjl@gnu.org>
1756 * config/tc-mips.c (support_64bit_objects): Check *l before it
1759 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1761 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1762 SEC_LOAD flags for sections marked as 's'.
1764 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1766 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1767 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1768 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1771 * dep-in.sed: Fix typo.
1773 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1775 * configure.in: Update ARM CPU patterns.
1776 * configure: Regenerated.
1778 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1780 * itbl-lex.l: Use #include <> for generated headers.
1781 * itbl-ops.c: Likewise.
1783 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1785 * doc/gasp.texi: Fix typo in deprecation note.
1787 2002-10-23 Nick Clifton <nickc@redhat.com>
1789 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1790 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1792 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1794 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1795 (tc_frob_file_before_adjust): Don't define.
1796 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1798 (mmix_frob_file_before_adjust): Remove ineffective function.
1800 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1802 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1803 (cris_relax_frag): New function.
1804 (md_estimate_size_before_relax) <case ENCODE_RELAX
1805 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1806 expressions that will become absolute expressions to relaxation.
1807 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1808 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1809 value, not distance to symbol.
1810 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1811 Ditto. Correct placement of fixup.
1812 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1814 * config/tc-cris.h (cris_relax_frag): Declare.
1815 (md_relax_frag): Define.
1817 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1819 * config/obj-elf.c (special_sections): Use correct types for init
1821 (obj_elf_change_section): Don't mess with init array section type.
1823 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1825 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1826 for relocs against symbols in a merged section.
1828 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1830 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1831 table as register names.
1833 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1835 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1838 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1840 * expr.c (operand): Add support for n.nn flonums.
1842 2002-10-17 Johannes Stezenbach <js@convergence.de>
1844 * itbl-parse.y (entry): Provide empty action.
1846 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1848 * configure.in (BFDVER_H): Set and subst.
1849 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1850 * Makefile.am: Run "make dep-am".
1852 * configure: Regenerate.
1853 * Makefile.in: Regenerate.
1854 * doc/Makefile.in: Regenerate.
1856 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1858 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1859 (MD_APPLY_SYM_VALUE): Define for PE too.
1861 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1863 * Makefile.am: Run "make dep-am".
1864 (CPU_OBJ_VALID): sh64 coff is invalid.
1865 * as.c: #include "bfdver.h".
1866 * Makefile.in: Regenerate.
1867 * config.in: Regenerate.
1869 2002-10-14 Momchil Velikov <velco@fadata.bg>
1871 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1873 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1875 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1876 * configure: Regenerate.
1878 2002-10-13 Eric Christopher <echristo@redhat.com>
1879 Alexandre Oliva <aoliva@redhat.com>
1881 * config/tc-mips.c (s_gpdword): New function.
1882 (mips_pseudo_table): Add .gpdword.
1883 (mips_need_elf_addend_fixup): never for NEWABI.
1884 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1886 (s_cpadd): Generate .cpadd on NEWABI.
1888 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1890 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1892 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1894 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1895 (md_relax_frag): Adjust macro.
1896 * config/tc-mips.c (mips_relax_branch): New variable.
1897 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1898 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1899 (RELAX_MIPS16_P): Adjust.
1900 (append_insn): Emit branch to non-constant in a frag_var if
1901 branch-relaxation is desirable and possible.
1902 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1903 (OPTION_ELF_BASE): Adjust.
1904 (md_parse_option): Handle new options.
1905 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1907 (relaxed_branch_length): New function.
1908 (md_estimate_size_before_relax): Handle branch frags.
1909 (mips_relax_frag): Likewise.
1910 (md_convert_frag): Handle branch frags. Warn if branch is
1913 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1915 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1917 (md_apply_fix3): Add TLS relocs.
1918 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1921 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1922 Alan Modra <amodra@bigpond.net.au>
1924 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1925 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1927 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1929 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1932 2002-10-09 Richard Shann <richard.shann@superh.com>
1933 Stephen Clarke <stephen.clarke@superh.com>
1935 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1938 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1940 * contig/tc-sh.c (sh_local_pcrel): New.
1941 (sh_force_relocation): Use sh_local_pcrel.
1942 (md_pcrel_from_section): Check the relocation type whether it
1943 should be resolved locally. Use S_FORCE_RELOC.
1945 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1947 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1948 (TC_FORCE_RELOCATION): Tidy arg.
1950 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1951 Ken Raeburn <raeburn@cygnus.com>
1952 Aldy Hernandez <aldyh@redhat.com>
1953 DJ Delorie <dj@redhat.com>
1954 Michael Meissner <meissner@redhat.com>
1955 Eric Christopher <echristo@redhat.com>
1956 Richard Sandiford <rsandifo@redhat.com>
1958 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1959 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1960 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1961 (hilo_interlocks): True for CPU_VR5500.
1962 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1963 (mips_fix_vr4122_bugs): New.
1964 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1965 (mips_emit_delays): Likewise.
1966 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1967 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1968 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1969 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1970 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1971 (OPTION_ELF_BASE): Bump.
1972 (md_parse_option): Handle the new options.
1973 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1976 2002-09-29 H.J. Lu <hjl@gnu.org>
1978 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1979 twice if howto->pcrel_offset is true.
1981 2002-09-28 Matt Thomas <matt@3am-software.com>
1982 Jason Thorpe <thorpej@wasabisystems.com>
1984 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1985 convert undefined references to GOT32/PLT32 if PIC code is
1986 requested. Fix comment.
1988 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1990 * config/tc-sh.c (sh_force_relocation): Return 0 for
1991 some PC relative relocations when not relaxing.
1993 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1995 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1996 Define them if not BFD_ASSEMBLER.
1997 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1999 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2000 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2001 (tc_gen_reloc): Handle x86-64 TLS relocs.
2003 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2005 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2006 fixups to current or absolute section.
2008 2002-09-26 Jim Wilson <wilson@redhat.com>
2010 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2013 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2015 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2016 capable configuration.
2017 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2019 (mips_ip): Likewise.
2021 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2023 * config/tc-mips.c (append_insn): Fix jump overflow check.
2025 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2027 * config/tc-i386.c (process_operands): Warn about "lea" segment
2030 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2032 * write.c: Delete set_segment_vma and prototype. Update all callers.
2034 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2036 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2037 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2038 Rename "fseg" to "sym_seg".
2039 * Makefile.am: Run "make dep-am".
2040 * Makefile.in: Regenerate.
2041 * doc/Makefile.in: Regenerate.
2043 2002-09-20 Nick Clifton <nickc@redhat.com>
2045 * symbols.c (colon): Do not allow symbols to be created in the
2046 absolute section if WORKING_DOT_WORD is not defined and
2047 new_broken_words would require a new frag to be created.
2049 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2051 * expr.c (expr): Simplify foo-foo here.
2052 (clean_up_expression): Remove O_subtract code.
2054 * write.h (struct fix): Add fx_dot_value.
2055 (dot_value): Declare.
2056 * write.c (dot_value): New var.
2057 (fix_new_internal): Save dot_value as fx_dot_value.
2058 (fixup_segment): Adjust fx_offset using fx_dot_value.
2059 * expr.c (expr): Update dot_value.
2061 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2063 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2064 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2065 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2067 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2068 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2069 BFD_RELOC_386_TLS_GOTIE.
2071 2002-09-19 Richard Henderson <rth@redhat.com>
2073 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2075 (alpha_force_relocation): Don't special-case branch type relocs.
2077 2002-09-19 Nick Clifton <nickc@redhat.com>
2079 * config/tc-m68k.c (select_control_regs): Handle situation where
2080 architecture has not yet been selected.
2082 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2084 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2085 (IS_SEXT_16BIT_NUM): New macro.
2086 (macro_build_ldst_constoffset): New function, to build a set of
2087 instructions to do a load or store from a constant offset relative
2088 to a given register.
2089 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2090 .cprestore pseudo-op.
2092 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2094 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2096 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2098 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2100 2002-09-17 Stan Cox <scox@redhat.com>
2102 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2103 (macro): Likewise for la. Likewise for ld.
2104 (mips_after_parse_args): Make -xgot optional, not the default.
2105 (md_apply_fix3): Allow composite relocation to set up gp.
2106 (tc_gen_reloc): Allow relaxing for newabi.
2107 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2108 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2110 2002-09-17 Nick Clifton <nickc@redhat.com>
2112 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2113 BFD_RELOC_ARM_IMMEDIATE has been done.
2114 (tc_gen_reloc): Do not issue reloc number of unimplemented
2115 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2116 their name is already in the error message - plus remove them
2117 from the default case.
2119 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2120 behavior of instructions.
2122 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2124 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2125 Convert functions to K&R format.
2127 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2129 * config/tc-mips.c (pdr_seg): Define only for ELF.
2130 (s_change_section): Remove unused variable. Don't use for nonELF.
2132 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2134 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2136 * config/obj-elf.h (obj_elf_change_section): Likewise.
2138 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2140 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2141 (out_debug_info): Likewise.
2143 2002-09-16 Bruno Haible <bruno@clisp.org>
2145 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2146 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2147 * config/tc-i386.c (i386_target_format): Likewise.
2148 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2149 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2151 2002-09-13 Nick Clifton <nickc@redhat.com>
2153 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2154 when deciding if any operands have been skipped.
2156 2002-09-11 Nick Clifton <nickc@redhat.com>
2158 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2160 * po/tr.po: Updated Turkish translation.
2162 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2164 * config/tc-i386.c (md_apply_fix3): Allow addend for
2165 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2166 BFD_RELOC_386_TLS_LE_32.
2168 2002-09-05 Jeff Law <law@redhat.com>
2170 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2171 marker relocations such as ENTRY/EXIT.
2172 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2173 to both OBJ_ELF and OBJ_SOM.
2175 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2177 * doc/internals.texi (md_apply_fix3): Expand.
2178 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2179 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2180 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2181 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2182 EXTERN_FORCE_RELOC): Document.
2183 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2184 * as.h: Don't include struc-symbol.h for arc.
2186 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2187 subtract absolute symbol.
2188 * obj.h (struct format_ops): Add frob_file_before_fix.
2189 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2190 * symbols.c (S_FORCE_RELOC): New function.
2191 * symbols.h (S_FORCE_RELOC): Declare.
2192 * write.c (TC_FORCE_RELOCATION): Change default.
2193 (TC_FORCE_RELOCATION_ABS): Define.
2194 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2195 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2196 (TC_FORCE_RELOCATION_SECTION): Don't define.
2197 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2198 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2199 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2200 (TC_VALIDATE_FIX_SUB): Define.
2201 (TC_FIX_ADJUSTABLE): Don't define.
2202 (MD_APPLY_SYM_VALUE): Define this instead.
2203 (abs_section_sym): New variable.
2204 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2205 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2206 Don't put the absolute section sym on fixups here.
2207 (fix_segment): New function.
2208 (write_relocs): Don't call fixup_segment from here.
2209 (write_object_file): Instead call tc_frob_file_before_fix,
2210 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2211 Don't output the absolute section symbol.
2212 (fixup_segment): Rewrite.
2213 * write.h (abs_section_sym): Declare.
2214 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2216 (aout_format_ops): Adjust to suit.
2217 * config/obj-aout.h (obj_frob_file): Don't define.
2218 (obj_frob_file_before_fix): Define.
2219 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2220 (S_FORCE_RELOC): Define.
2221 * config/obj-bout.h (S_FORCE_RELOC): Define.
2222 * config/obj-coff.c (coff_format_ops): Init new field.
2223 * config/obj-coff.h: Formatting fixes.
2224 (obj_sec_sym_ok_for_reloc): Define.
2225 (S_FORCE_RELOC): Define.
2226 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2227 (ecoff_frob_file): .. from here.
2228 (ecoff_format_ops): Add new function.
2229 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2230 (obj_frob_file_before_fix): Define.
2231 * config/obj-elf.c (elf_format_ops): Init new field.
2232 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2233 * config/obj-ieee.h: Formatting fixes.
2234 (S_FORCE_RELOC): Define.
2235 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2236 * config/obj-vms.h (S_FORCE_RELOC): Define.
2237 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2238 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2239 for BFD_RELOC_32 and BFD_RELOC_64.
2240 (alpha_fix_adjustable): Remove extern and weak tests.
2241 (alpha_before_fix): Rename from alpha_adjust_symtab.
2242 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2243 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2244 (TC_VALIDATE_FIX): Tweak param name.
2245 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2246 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2247 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2248 (MD_APPLY_SYM_VALUE): Define.
2249 (tc_adjust_symtab): Don't define.
2250 (alpha_adjust_symtab): Don't declare.
2251 (tc_frob_file_before_fix): Define.
2252 (alpha_before_fix): Declare.
2253 (TC_INIT_FIX_DATA): Tweak param names.
2254 * config/tc-arc.c: Include "struc-symbol.h".
2255 (md_pcrel_from): Remove undefined sym fudge.
2256 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2257 Don't set fx_addnumber.
2258 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2259 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2260 (EXTERN_FORCE_RELOC): Define.
2261 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2262 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2263 (arm_validate_fix): Return void.
2264 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2265 Add plt and got reloc tests.
2266 (arm_force_relocation): Call S_FORCE_RELOC.
2267 * config/tc-arm.h (struct fix): Forward declare.
2268 (TC_VALIDATE_FIX): No longer set add_symbolP.
2269 (arm_validate_fix): Adjust declaration.
2270 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2271 (TC_FORCE_RELOCATION): Tweak param name.
2272 (TC_INIT_FIX_DATA): Likewise.
2273 (obj_fix_adjustable): Don't define.
2274 (tc_fix_adjustable): Call arm_fix_adjustable.
2275 (TC_FIX_ADJUSTABLE): Don't define.
2276 (MD_APPLY_SYM_VALUE): Define.
2277 (EXTERN_FORCE_RELOC): Define.
2278 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2279 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2280 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2281 Remove *valP fudges and code to subtract abs sym. Don't set
2283 * config/tc-avr.h: Formatting.
2284 (EXTERN_FORCE_RELOC): Define.
2285 (MD_APPLY_SYM_VALUE): Define.
2286 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2287 (md_apply_fix3): Remove code to subtract abs sym.
2288 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2289 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2290 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2291 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2292 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2293 (tc_fix_adjustable): Remove extern, weak tests.
2294 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2295 BFD_RELOC_VTABLE_INHERIT relocs. 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 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2299 (d10v_force_relocation): Call S_FORCE_RELOC.
2300 * config/tc-d10v.h: Don't include write.h.
2301 (struct fix): Instead, forward declare.
2302 (MD_PCREL_FROM_SECTION): Tweak param names.
2303 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2304 (d10v_fix_adjustable): Likewise.
2305 (obj_fix_adjustable): Don't define.
2306 (tc_fix_adjustable): Define.
2307 (TC_FORCE_RELOCATION): Tweak param name.
2308 (MD_APPLY_SYM_VALUE): Define.
2309 (EXTERN_FORCE_RELOC): Define.
2310 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2311 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2312 and code to subtract abs sym.
2313 * config/tc-d30v.h: Don't include write.h.
2314 (struct fix): Instead, forward declare.
2315 (MD_PCREL_FROM_SECTION): Tweak param names.
2316 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2317 (MD_APPLY_SYM_VALUE): Define.
2318 (EXTERN_FORCE_RELOC): Define.
2319 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2320 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2321 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2322 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2323 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2324 Don't use fx_addnumber.
2325 * config/tc-dlx.h: Don't include write.h.
2326 (md_convert_frag): We're not alpha twice over.
2327 (EXTERN_FORCE_RELOC): Define.
2328 (obj_fix_adjustable): Don't define.
2329 (tc_fix_adjustable): Define.
2330 (TC_FIX_ADJUSTABLE): Don't define.
2331 (MD_APPLY_SYM_VALUE): Define.
2332 (LOCAL_LABELS_DOLLAR): Undef always.
2333 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2334 (fr30_fix_adjustable): Remove extern, weak tests.
2335 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2336 (obj_fix_adjustable): Don't define.
2337 (tc_fix_adjustable): Define.
2338 (struct fix): Forward declare.
2339 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2340 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2341 (frv_fix_adjustable): Don't do extern, weak tests.
2342 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2343 (TC_FIX_ADJUSTABLE): Don't define.
2344 (obj_fix_adjustable): Don't define.
2345 (tc_fix_adjustable): Define.
2346 (struct fix): Forward declare.
2347 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2348 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2349 * config/tc-h8300.h (struct fix): Forward declare.
2350 (EXTERN_FORCE_RELOC): Define.
2351 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2352 (hppa_fix_adjustable): Don't test extern or weak. Don't
2353 symbol_mark_used_in_reloc.
2354 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2356 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2357 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2358 (TC_FORCE_RELOCATION_SECTION): Don't define.
2359 (MD_APPLY_SYM_VALUE): Define.
2360 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2361 to subtract abs sym.
2362 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2363 (MD_APPLY_SYM_VALUE): Define.
2364 (MD_PCREL_FROM_SECTION): Tweak param name.
2365 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2366 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2367 (i386_force_relocation): New function.
2368 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2369 (TC_VALIDATE_FIX): Likewise.
2370 (TC_FIX_ADJUSTABLE): Don't define.
2371 (MD_APPLY_SYM_VALUE): Define.
2372 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2373 (i386_force_relocation): Declare.
2374 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2375 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2376 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2377 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2378 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2379 (EXTERN_FORCE_RELOC): Define.
2380 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2381 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2382 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2383 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2384 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2385 Remove #if 0 code. Invert return boolean.
2386 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2387 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2388 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2389 (tc_coff_sizemachdep): Prototype.
2390 (i960_handle_align): Likewise.
2391 (i960_validate_fix): Adjust declaration.
2392 (reloc_callj): Likewise.
2393 (EXTERN_FORCE_RELOC): Define.
2394 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2395 (TC_FORCE_RELOCATION_ABS): Define.
2396 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2397 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2398 (TC_FIX_ADJUSTABLE): Don't define.
2399 (MD_APPLY_SYM_VALUE): Define.
2400 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2401 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2402 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2403 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2404 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2405 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2406 (MD_APPLY_SYM_VALUE): Define.
2407 (EXTERN_FORCE_RELOC): Define.
2408 (TC_FORCE_RELOCATION): Tweak param name.
2409 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2410 (m32r_fix_adjustable): Don't test extern, weak.
2411 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2412 (MD_APPLY_SYM_VALUE): Define.
2413 (obj_fix_adjustable): Don't define.
2414 (tc_fix_adjustable): Define.
2415 (tc_frob_file): Don't define.
2416 (tc_frob_file_before_fix): Define.
2417 (EXTERN_FORCE_RELOC): Define.
2418 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2419 BFD_RELOC_VTABLE_ENTRY address.
2420 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2421 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2422 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2423 Remove duplicated fx_done code.
2424 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2425 (EXTERN_FORCE_RELOC): Define.
2426 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2428 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2429 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2430 (TC_FIX_ADJUSTABLE): Don't define.
2431 (EXTERN_FORCE_RELOC): Define.
2432 (MD_APPLY_SYM_VALUE): Define.
2433 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2434 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2435 Remove fx_addsy tests.
2436 (mcore_force_relocation): Call S_FORCE_RELOC.
2437 (mcore_fix_adjustable): Don't test fx_addsy.
2438 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2439 (EXTERN_FORCE_RELOC): Define.
2440 (obj_fix_adjustable): Don't define.
2441 (tc_fix_adjustable): Define.
2442 (MD_APPLY_SYM_VALUE): Define.
2443 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2444 (mips_pic): No longer static.
2445 (mips_force_relocation): Call S_FORCE_RELOC.
2446 (mips_fix_adjustable): Remove extern, weak tests.
2447 * config/tc-mips.h (enum mips_pic_level): Declare.
2448 (mips_pic): Declare.
2449 (tc_frob_file): Don't define.
2450 (tc_frob_file_before_fix): Define this instead.
2451 (EXTERN_FORCE_RELOC): Define.
2452 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2453 with reg_section tests. Set fx_done instead of calling
2454 symbol_clear_used_in_reloc on bad relocs.
2455 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2456 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2457 (mmix_adjust_symtab): Simplify list handling. Abort on any
2459 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2460 BFD_RELOC_MMIX_LOCAL.
2461 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2462 (EXTERN_FORCE_RELOC): Define.
2463 (MD_PCREL_FROM_SECTION): Tweak param name.
2464 (tc_frob_file): Don't define.
2465 (tc_frob_file_before_fix): Define this instead.
2466 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2467 Remove SEC_CODE checks.
2468 (mn10300_fix_adjustable): Remove extern and weak tests.
2469 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2470 (TC_FORCE_RELOCATION): Tweak param name.
2471 (obj_fix_adjustable): Don't define.
2472 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2473 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2474 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2475 (openrisc_fix_adjustable): Don't test fx_addsy.
2476 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2477 (obj_fix_adjustable): Don't define.
2478 (tc_fix_adjustable): Define this instead.
2479 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2480 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2481 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2482 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2483 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2484 (MD_APPLY_SYM_VALUE): Define.
2485 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2486 Don't subtract symbol value.
2487 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2488 (EXTERN_FORCE_RELOC): Define.
2489 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2490 (MD_APPLY_SYM_VALUE): Define.
2491 (obj_fix_adjustable): Don't define.
2492 (tc_fix_adjustable): Define this instead.
2493 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2495 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2496 (ppc_force_relocation <elf version>): New.
2497 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2498 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2499 comments. Don't subtract fx_subsy as that is already done.
2500 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2501 (MD_PCREL_FROM_SECTION): Likewise.
2502 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2503 ppc_force_relocation.
2504 (TC_FORCE_RELOCATION_SECTION): Delete.
2505 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2506 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2507 (MD_APPLY_SYM_VALUE): Define.
2508 * config/tc-s390.c: #include "dwarf2dbg.h".
2509 (s390_insn): Remove excess parens.
2510 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2511 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2512 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2513 non-NULL. Don't subtract off fx_addsy value.
2514 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2515 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2516 (TC_FIX_ADJUSTABLE): Don't define.
2517 (MD_APPLY_SYM_VALUE): Define.
2518 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2519 (SWITCH_TABLE): Likewise.
2520 (sh_force_relocation): Call S_FORCE_RELOC.
2521 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2522 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2523 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2524 fx_addnumber is zero on entry. Save val in fx_addnumber.
2525 (tc_gen_reloc): Don't subtract fx_subsy.
2526 * config/tc-sh.h (struct fix): Move.
2527 (obj_fix_adjustable): Don't define.
2528 (tc_fix_adjustable): Define this instead.
2529 (TC_FIX_ADJUSTABLE): Don't define.
2530 (MD_APPLY_SYM_VALUE): Define.
2531 (SWITCH_TABLE_CONS): Define.
2532 (SWITCH_TABLE): Define.
2533 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2534 (TC_VALIDATE_FIX_SUB): Define.
2535 (MD_PCREL_FROM_SECTION): Tweak param name.
2536 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2537 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2538 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2539 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2540 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2541 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2542 (TC_VALIDATE_FIX_SUB): Define.
2543 (MD_PCREL_FROM_SECTION): Tweak param name.
2544 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2545 (tc_gen_reloc): Use S_FORCE_RELOC.
2546 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2547 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2548 (TC_FORCE_RELOCATION_ABS): Define this instead.
2549 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2550 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2551 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2552 (MD_APPLY_SYM_VALUE): Define.
2553 (TC_FIX_DATA_PRINT): Tweak param name.
2554 * config/tc-tic30.c (USE_STDOUT): Don't define.
2555 (md_parse_option): Remove stupid debug code.
2556 (tc_gen_reloc): Don't use fx_addnumber.
2557 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2558 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2559 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2560 (tc_fix_adjustable): Define this instead.
2561 (TC_FIX_ADJUSTABLE): Don't define.
2562 (MD_APPLY_SYM_VALUE): Define this instead.
2563 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2564 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2565 (TC_FIX_ADJUSTABLE): Don't define.
2566 (MD_APPLY_SYM_VALUE): Define this instead.
2567 (tc_fix_adjustable): Remove extern and weak tests.
2568 * config/tc-w65.h (struct fix): Forward declare.
2569 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2571 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2572 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2573 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2575 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2576 (MD_APPLY_SYM_VALUE): Define.
2577 (obj_fix_adjustable): Don't define.
2578 (tc_fix_adjustable): Define this instead.
2579 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2581 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2583 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2584 (ppc_fix_adjustable <coff version>): Cleanup.
2586 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2587 (md_parse_option): No -a64 without BFD64.
2588 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2589 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2591 2002-09-04 Nick Clifton <nickc@redhat.com>
2593 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2594 instructions into the hash table if the target cpu is the BookE32.
2596 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2598 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2601 2000-08-28 Catherine Moore <clm@redhat.com>
2603 * tc-v850.c (v850_relax): Declare.
2604 (v850_longcode): New routine.
2605 (v850_handle_align): New routine.
2606 (md_pseudo_table): Add longcall and longjump.
2607 (md_parse_option): Check for relax option.
2608 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2609 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2610 (md_apply_fix3): Likewise.
2611 (v850_force_relocation): Likewise.
2612 (v850_comm): Change the current section.
2613 (md_assemble): Ensure that the correct value is put in the
2615 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2616 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2617 Remove redundant v850ea support.
2618 * tc-v850.h (HANDLE_ALIGN): Define.
2619 (v850_handle_align): Declare.
2620 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2622 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2624 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2625 * configure: Regenerate.
2626 * NEWS: Mention new port.
2628 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2630 * config/obj-coff.c: Add sdef definition.
2631 * config/obj-coff.h: Add tic4x include file and set
2633 * config/tc-tic4x.c: New file.
2634 * config/tc-tic4x.h: New file.
2636 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2638 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2639 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2640 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2641 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2642 (RELOC_ENUM): Define.
2643 (fix_new_internal): Use RELOC_ENUM.
2644 (fix_new, fix_new_exp): Likewise.
2645 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2646 Replace gotos with continue.
2647 (write_relocs): Formatting. Avoid symbol loops in
2648 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2649 errors, and error number in other cases.
2650 (fixup_segment): Remove param names from prototype. Rename
2651 "this_segment_type" to "this_segment". Update linkrelax comment.
2652 Remove "size, "place" and "where" local vars. Formatting. Update
2653 "no symbol" comment. Remove #if 0 and #if 1.
2655 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2657 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2659 * dwarf2dbg.c: Always include dwarf2dbg.h.
2660 (dwarf2_directive_file): Adjust dummy version args.
2661 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2662 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2663 when symbol values differ.
2664 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2665 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2666 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2668 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2670 * config/tc-w65.c (md_section_align): Fix typo.
2671 (md_parse_option): Return 0, not 1.
2673 2002-08-22 Nick Clifton <nickc@redhat.com>
2675 * doc/as.texinfo (Section): Note that if '@' is a comment
2676 character then another symbol is used to prefix the section's
2679 2002-08-22 Christian Groessler <chris@groessler.org>
2681 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2684 2002-08-12 Graeme Peterson <gp@qnx.com>
2686 * configure.in: Add support for sh-**-nto* target.
2687 * configure: Regenerate.
2689 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2691 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2693 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2695 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2697 (ppc_apuinfo_section_add): Define only if format is ELF.
2698 (md_assemble): Emit APUinfo section only if format is ELF.
2701 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2703 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2704 * config/tc-frv.c: Likewise.
2705 * config/tc-hppa.c: Likewise.
2706 * config/tc-ia64.c: Likewise.
2707 * config/tc-ip2k.c: Likewise.
2708 * config/tc-m68hc11.c: Likewise.
2709 * config/tc-m68k.c: Likewise.
2710 * config/tc-mmix.c: Likewise.
2711 * config/tc-mn10300.c: Likewise.
2712 * config/tc-sh.c: Likewise.
2713 * config/tc-sparc.c: Likewise.
2714 * config/tc-v850.c: Likewise.
2716 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2718 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2721 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2723 From matthew green <mrg@redhat.com>
2725 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2726 PPC_OPCODE_PPC is, except for BookE architectures.
2727 (md_parse_option): Add support for -mspe.
2728 (md_show_usage): Add -mspe.
2729 (md_parse_option): Add support for -me500 and
2730 -me500x2 to generate code for Motorola e500 core complex.
2731 (md_show_usage): Add -me500 and -me500x2.
2733 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2734 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2735 PPC_APUINFO_BRLOCK): New macros.
2737 (ppc_cleanup): New function.
2738 (ppc_apuinfo_section_add): New function.
2740 (md_assemble): Collect info and write the APUinfo section.
2742 * config/tc-ppc.h (md_cleanup): Define.
2743 (ppc_cleanup): Export.
2744 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2746 2002-08-17 Stan Cox <scox@redhat.com>
2748 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2749 config/tc-mips.c (s_change_section): New function to support
2750 IRIX .section pseudo-op.
2752 2002-08-16 Nick Clifton <nickc@redhat.com>
2754 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2756 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2758 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2759 the fix-up against on the right frag.
2760 (s_cpsetup): Likewise. Parse third argument as expression, to
2761 handle global symbols and forward/backward labels correctly.
2763 2002-08-14 Nick Clifton <nickc@redhat.com>
2765 * read.c (stringer): Catch attempts to create strings in the abs
2768 * config/tc-alpha.c: Fix compiling for COFF targets.
2769 Some minor formatting tidyups.
2771 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2773 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2774 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2775 according to the reloc.
2776 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2777 (TC_FORCE_RELOCATION): Define.
2778 (tc_m68hc11_force_relocation): Declare.
2780 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2781 (s_m68hc11_relax): New function for relax group.
2782 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2783 beginning of jump instruction.
2784 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2785 address computation.
2786 (tc-gen_reloc): Update.
2787 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2789 (tc_m68hc11_force_relocation): New function, handle new relocs.
2790 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2791 reloc for the linker relax pass.
2792 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2795 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2797 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2798 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2799 (s_m68hc11_mode): New function for .mode pseudo op.
2800 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2802 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2803 (m68hc11_elf_final_processing): Declare.
2805 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2807 * config/tc-m68hc11.c (md_begin): Take into account additional
2808 page operand for call instruction.
2809 (print_opcode_format): Likewise.
2810 (check_range): Likewise for page range checking.
2811 (get_operand): Don't skip a possible comma in operands.
2812 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2813 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2814 (fixup24): New to handle call reloc.
2815 (build_insn): Handle missing page operand for call instruction.
2817 (md_apply_fix3): Take into account new relocs.
2818 (get_operand): Fix the mode for indexed indirect addressing.
2819 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2821 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2823 * config/tc-mips.c (mips_ip): Don't work out the value of
2824 constant %hi()s here.
2826 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2828 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2829 for ELF, and don't bother checking ELF relocs when non-ELF.
2830 (i386_immediate): Allow absolute_section expressions for aout.
2831 (i386_displacement): Likewise. Also test bfd_is_com_section.
2832 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2833 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2834 not when fx_addsy. Remove dead code.
2836 2002-08-09 Graeme Peterson <gp@qnx.com>
2838 * configure.in: Add support for ppc-*-nto* target.
2839 * configure: Regenerate.
2841 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2843 * config/tc-i386.h: Reorganize.
2845 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2847 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2848 immediate offset in "dla" and "la" expansions.
2850 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2852 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2853 Remove "bfd_gas=yes" from target table when covered later.
2854 Consolidate some entries.
2855 * configure: Regenerate
2857 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2859 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2860 at start of insn, pass it to output_disp and output_imm.
2861 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2862 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2864 (output_imm): Added arguments. Compute properly addend for
2866 (md_apply_fix3): Remove R_386_GOTPC handling.
2868 2002-08-06 George France <france@handhelds.org>
2870 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2871 and m21264b processor names and cpu types.
2872 * doc/c-alpha.texi: Documented new types.
2874 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2876 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2878 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2880 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2881 handling to BFD_RELOC_MIPS16_GPREL.
2883 2002-08-01 Nick Clifton <nickc@redhat.com>
2885 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2886 pool is computed using signed arithmetic so that proper sign
2887 extension is performed if X_add_number is a 64-bit integer.
2889 2002-08-01 H.J. Lu <hjl@gnu.org>
2890 Daniel Jacobowitz <drow@mvista.com>
2892 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2893 .debug_line section unless it has line information.
2895 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2897 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2898 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2899 Allow default displacement size to be an option "--disp-size-default".
2900 (md_number_to_disp): Make error messages include value. Use %d to
2901 print integers, not %s.
2902 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2903 get duplicate messages sometimes.
2904 (convert_iif): Grow frag to max possible instruction size. Avoid
2905 creating unnecessary fixes.
2906 (md_number_to_field) Add prototype.
2907 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2908 prototypes and make static.
2909 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2910 (evaluate_expr): Use resultP argument instead of exprP global.
2911 (get_addr_mode): Quiten compiler warnings.
2912 (encode_operand): eliminate unused variables. Quiten compiler
2913 warnings. Eliminate nul character in format strings.
2914 (parse): argc is unsigned.
2915 (reloc): Type cast index to quieten compiler.
2916 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2917 (md_convert_frag): Note unused parameters. Remove unused
2919 (md_create_long_jump, md_create_short_jump,
2920 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2923 2002-07-31 Nick Clifton <nickc@redhat.com>
2925 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2926 of the PDP-11 and 2.11BSD a.out support.
2928 2002-07-31 Momchil Velikov <velco@fadata.bg>
2930 * config/tc-v850.c (md_assemble): Fix range check for immediate
2933 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2935 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2936 to Broadcom SB-1 core support.
2938 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2940 * config/tc-mips.c (mips_target_format): Fix formatting.
2941 Add recognition of n32 ABI formats.
2943 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2945 * tc-mips.c (load_address): Don't clobber $at when loading a
2946 64-bit address in non-PIC code if noat is in effect.
2949 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2951 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2952 used in division/multiply macro expansions similarly to how they
2953 are used in the variants with break instructions.
2956 2002-07-30 Graeme Peterson <gp@qnx.com>
2958 * configure.in: Add support for arm-*-nto target.
2959 * configure: Regenerate.
2961 2002-07-30 Nick Clifton <nickc@redhat.com>
2963 * config/tc-arm.c (struct literal_pool): Add fields to allow
2964 multiple literal pools to be maintained.
2965 (find_literal_pool): New function.
2966 (find_or_make_literal_pool): New function.
2967 (add_to_literal_pool): Use find_or_make_literal_pool.
2968 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2970 (s_ltorg): Use find_literal_pool.
2971 (arm_cleanup): Dump all literal pools.
2972 * doc/c-arm.texi: Document new behaviour of only dumping literal
2975 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2977 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2978 rather than PPC_OPCODE_32 for powerpc64*.
2980 2002-07-25 Nick Clifton <nickc@redhat.com>
2982 * po/es.po: Updated Spanish translation.
2983 * po/fr.po: Updated French translation.
2985 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2987 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2988 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2989 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2990 * configure, config.in: Regenerate.
2991 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2992 (mips_set_options): Remove "abi" field.
2993 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2996 (mips_arch_string, mips_arch_info): New vars.
2997 (mips_tune_string, mips_tune_info): New vars.
2998 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2999 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3000 (mips_isa_to_str, mips_cpu_to_str): Remove.
3001 (mips_ip): If the selected architecture is a generic ISA rather
3002 than a processor, only mention the ISA level in error messages.
3003 (OPTION_MCPU): Remove.
3005 (md_longopts): Add -mfp64, remove -mcpu.
3006 (mips_set_option_string): New fn.
3007 (md_parse_option): Make -mipsN update file_mips_isa rather than
3008 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3009 Don't let -mgp32 and -mfp32 change the ABI.
3010 (show): Move to end of file. Constify string argument.
3011 (md_show_usage): Move to the end of the file. Read available
3012 architectures from mips_cpu_info_table.
3013 (mips_set_architecture): New fn.
3014 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3015 is an alias for -march=mipsN. Don't change the ABI based on other
3016 flags. Infer the register size from the ABI as well as the
3017 architecture. Complain about more conflicting arguments.
3018 Unify logic with GCC.
3019 (s_mipsset): Don't change the ABI.
3020 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3021 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3022 "mipsN"-type entries. Remove entries that vary only in the
3023 manufacturer's prefix, or that have "000" replaced by "k".
3024 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3025 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3026 (mips_parse_cpu): New fn.
3027 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3028 (mips_cpu_info_from_isa): Minor formatting tweak.
3030 2002-07-24 Nick Clifton <nickc@redhat.com>
3032 * po/sv.po: Updated Swedish translation.
3033 * po/es.po: Updated Spanish translation.
3035 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3037 * Makefile.am: Run "make dep-am".
3038 * Makefile.in: Regenerate.
3039 * doc/Makefile.in: Regenerate.
3040 * config.in: Regenerate.
3041 * po/POTFILES.in: Regenerate.
3043 2002-07-23 Nick Clifton <nickc@redhat.com>
3045 * po/fr.po: Updated French translation.
3047 2002-07-23 Nick Clifton <nickc@redhat.com>
3049 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3052 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3054 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3055 instead of S_IS_EXTERN.
3056 (md_estimate_size_before_relax): Likewise.
3057 (mips_fix_adjustable): Likewise.
3059 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3061 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3063 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3064 Nick Clifton <nickc@redhat.com>
3066 * cond.c (s_ifdef): Treat a referenced but not yet defined
3067 symbol as if it were undefined, in exactly the same way as
3070 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3071 consider referenced bug not yet defined symbols to be
3074 2002-07-18 Denis Chertykov <denisc@overta.ru>
3075 Frank Ch. Eigler <fche@redhat.com>
3076 Alan Lehotsky <alehotsky@cygnus.com>
3077 John Healy <jhealy@redhat.com>
3078 Jeff Johnston <jjohnstn@redhat.com>
3080 * configure.in: Add ip2k configuraton.
3081 * configure: Regenerate.
3082 * Makefile.am: Add ip2k configuraton.
3083 * Makefile.in: Regenerate.
3084 * configure: Regenerate.
3085 * Makefile.in: Regenerate.
3086 * config/tc-ip2k.c: New file.
3087 * config/tc-ip2k.h: New files.
3088 * NEWS: Mention new support.
3089 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3090 * doc/Makefile.in: Regenerate.
3091 * doc/all.texi: Set IP2K
3092 * doc/as.texinfo: Add IP2K description.
3093 * doc/c-ip2k.texi: New file.
3095 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3097 * NEWS: Reformat to match style of other NEWS files.
3099 2002-07-17 Jan Hubicka <jh@suse.cz>
3101 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3103 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3105 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3107 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3109 * NEWS: Add 'Changes in 2.13'.
3111 2002-07-15 Matt Fredette <fredette@netbsd.org>
3113 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3115 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3117 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3118 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3121 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3123 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3124 (ppc_frob_file_before_adjust): New function.
3125 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3126 (ppc_elf_frob_symbol): Don't declare.
3127 (tc_frob_file_before_adjust): Define.
3128 (ppc_frob_file_before_adjust): Declare.
3130 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3131 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3134 (ppc_xcoff64): Rename to ppc_obj64.
3135 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3136 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3137 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3139 (ppc_target_format): Use ppc_obj64 to select format.
3140 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3141 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3142 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3143 (tc_frob_symbol): Likewise.
3144 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3145 BFD_DEFAULT_TARGET_SIZE.
3147 (ppc_is_toc_sym): Likewise.
3148 (md_apply_fix3): Likewise.
3149 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3150 BFD_DEFAULT_TARGET_SIZE.
3151 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3152 (tc_frob_symbol): Likewise.
3154 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3156 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3157 (mips_ip): Likewise.
3159 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3161 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3162 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3163 (md_apply_fix3): Formatting. Remove redundant test.
3164 (tc_gen_reloc): Remove redundant code.
3165 (tc_i386_force_relocation): Delete. Movy body of function to..
3166 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3168 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3170 * configure.in: Add hppa-*-openbsd* target, change
3171 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3173 * configure: Regenerate.
3175 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3177 * config/tc-mips.c (macro): Shift the 32-bit address range
3178 accessible with a lone "lui" down by 32768.
3180 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3182 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3183 instead of "dadd" in address calculations.
3186 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3188 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3190 (md_assemble): Instead, zap the suffix here.
3192 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3194 * NEWS: Remove next release number until the release is actually
3197 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3199 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3201 * Makefile.in: Regenerate.
3203 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3205 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3206 to symbols in merge sections, even non pc-relative ones.
3208 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3210 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3212 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3214 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3215 .softregs and .eeprom.
3217 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3219 * NEWS: Note the next release is 2.13.
3221 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3223 * po/tr.po: New translation imported.
3225 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3227 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3228 (ecoff_directive_def): Likewise.
3229 (ecoff_directive_tag): Likewise.
3230 * listing.c (file_info): Likewise.
3231 * hash.c (what): Likewise.
3233 2002-06-25 H.J. Lu <hjl@gnu.org>
3235 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3236 * Makefile.in: Regenerated.
3238 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3240 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3241 (assemble_ppi): Generate warning if the same register is used
3242 twice as destination in the same padd / pmuls instruction.
3244 2002-06-18 Dave Brolley <brolley@redhat.com>
3246 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3247 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3248 * configure.in: Support frv-*-*.
3249 * Makefile.am (CPU_TYPES): Add frv.
3250 (TARGET_CPU_CFILES): Add tc-frv.c.
3251 (TARGET_CPU_HFILES): Add tc-frv.h.
3252 (DEPTC_frv_coff): New variable.
3253 (DEPTC_frv_elf): New variable.
3254 (DEPOBJ_frv_coff): New variable.
3255 (DEPOBJ_frv_elf): New variable.
3256 (DEP_frv_coff): New variable.
3257 (DEP_frv_elf): New variable.
3258 * tc-frv.c: New file.
3259 * tc-frv.h: New file.
3261 2002-06-17 Catherine Moore <clm@redhat.com>
3263 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3265 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3267 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3269 2002-06-17 Tom Rix <trix@redhat.com>
3271 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3273 2002-06-14 H.J. Lu <hjl@gnu.org>
3274 Daniel Jacobowitz <drow@mvista.com>
3276 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3277 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3278 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3279 and new_logical_line for the first .file directive.
3280 * read.c (s_app_file_string): New function.
3281 (s_app_file): Call it.
3282 * read.h (s_app_file_string): Add declaration.
3284 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3286 * configure.in: Remove MIPS_STABS_ELF.
3287 * configure: Regenerated.
3288 * config.in: Regenerated.
3289 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3291 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3293 (pdr_seg): Declare unconditionally.
3294 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3295 (s_mips_end): Likewise. Generate stabs function markers.
3296 (s_mips_ent): Generate stabs function markers.
3297 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3299 (s_mips_mask): Likewise.
3300 (mips_flag_mdebug): New.
3301 (md_longopts): Add "mdebug" and "no-mdebug".
3302 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3303 (mips_after_parse_args): Set mips_flag_mdebug.
3304 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3306 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3308 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3309 value twice for RELA relocations.
3311 2002-06-12 Ben Elliston <bje@redhat.com>
3313 * symbols.c (resolve_symbol_value): Initialise final_val.
3315 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3317 2002-06-11 Tom Rix <trix@redhat.com>
3319 * config/tc-ppc.c (ppc_subseg_align): Delete.
3320 (ppc_change_csect): Default csect align is 2.
3321 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3323 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3325 * config/tc-avr.c (mcu_types): Update.
3327 2002-06-08 Matt Thomas <matt@3am-software.com>
3329 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3330 (vax-*-netbsd*): New targets.
3331 * configure: Regenerate.
3332 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3333 * config/tc-vax.c: Add support for ELF and PIC.
3334 (flag_want_pic): New flag.
3335 (float_cons): Fix prototype.
3336 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3337 (md_assemble): Introduce a new is_absolute local, and use it
3338 rather than repeating the test. Make fatal errors actually
3339 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3340 Add support for ELF. Add support for PIC.
3341 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3342 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3344 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3345 optional for a.out, and not allowed for VMS. Adjust all callers.
3346 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3347 (md_create_long_jump): Likewise.
3348 (md_undefined_symbol): Likewise.
3349 (md_section_align): Likewise.
3350 (md_shortopts): Allow -k and -K for ELF.
3351 (md_parse_option): Set flag_want_pic if -k or -K.
3352 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3353 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3354 * config/tc-vax.h (tc_headers_hook): Remove.
3355 (TARGET_FORMAT): Set according to object format and target
3357 (BFD_ARCH, TARGET_ARCH): Define.
3358 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3359 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3360 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3361 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3363 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3365 * Makefile.am: Run "make dep-am".
3366 * Makefile.in: Regenerate.
3368 * as.c: Replace CONST with const.
3369 * write.c: Likewise.
3370 * config/obj-coff.c: Likewise.
3371 * config/tc-a29k.c: Likewise.
3372 * config/tc-arm.c: Likewise.
3373 * config/tc-dlx.c: Likewise.
3374 * config/tc-h8300.c: Likewise.
3375 * config/tc-h8500.c: Likewise.
3376 * config/tc-i370.c: Likewise.
3377 * config/tc-i860.c: Likewise.
3378 * config/tc-i960.c: Likewise.
3379 * config/tc-m68hc11.c: Likewise.
3380 * config/tc-m68k.c: Likewise.
3381 * config/tc-m88k.c: Likewise.
3382 * config/tc-mcore.c: Likewise.
3383 * config/tc-mips.c: Likewise.
3384 * config/tc-ns32k.c: Likewise.
3385 * config/tc-pdp11.c: Likewise.
3386 * config/tc-pj.c: Likewise.
3387 * config/tc-s390.c: Likewise.
3388 * config/tc-sh.c: Likewise.
3389 * config/tc-sparc.c: Likewise.
3390 * config/tc-tahoe.c: Likewise.
3391 * config/tc-tic80.c: Likewise.
3392 * config/tc-v850.c: Likewise.
3393 * config/tc-vax.c: Likewise.
3394 * config/tc-w65.c: Likewise.
3395 * config/tc-z8k.c: Likewise.
3397 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3399 Based on patch from Matt Green:
3400 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3401 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3402 (s_mips_loc): New function.
3403 (mips_nonecoff_pseudo_table): Call them.
3404 (append_insn): Call dwarf2_emit_insn.
3406 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3408 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3410 (file_ase_mips16): New veriable.
3411 (mips_eabi64): Remove.
3412 (CPU_HAS_MIPS16): New define.
3413 (CPU_HAS_MDMX): Fix data type.
3414 (md_begin): Code cleanup. Use file_ase_mips16.
3415 (mips_elf_final_processing): Handle mips16 header flag.
3416 Handle EABI flag without intermediate variable.
3418 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3420 * doc/as.texinfo: Update MIPS documentation.
3422 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3424 * config/tc-mips.c: Add define for $zero register.
3425 (md_begin): Add $zero as alias name for $0.
3426 (insn_uses_reg): Use ZERO define.
3427 (mips_ip): Add $zero as alias name for $0.
3428 (mips16_ip): Likewise.
3429 (s_cplocal): Demand empty rest of input line.
3430 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3431 names. Use ZERO define. Fix input_line_pointer progress.
3433 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3435 * symbols.c: Replace CONST by const throughout.
3436 (symbol_find_exact): Split out from..
3437 (symbol_find_base): ..here.
3438 * symbols.h: Replace CONST by const throughout.
3439 (symbol_find_exact): Declare.
3440 * config/obj-elf.c: #include "struc-symbol.h".
3441 (elf_frob_file): If group name matches an exported symbol, use that
3442 symbol for the signature and ".group" as the section name.
3444 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3446 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3449 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3451 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3452 and mips_opts.ase_mdmx if they are uninitialized.
3454 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3456 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3457 (hppa_force_relocation): Check if a stub just before the start symbol
3458 of the last call_info is reachable before forcing relocation. Fix
3461 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3463 * config/tc-mips.c (mips_after_parse_args): New function.
3464 (md_begin): Move processing of defaults to mips_after_parse_args.
3465 config/tc-mips.h (md_after_parse_args): Define.
3467 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3469 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3470 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3471 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3472 * configure: Regenerate.
3473 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3476 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3478 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3480 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3482 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3483 linkonce flag. Print all warnings.
3484 (obj_elf_section): Parse ",comdat" for groups.
3485 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3486 consistency of comdat flag.
3488 2002-06-02 Richard Henderson <rth@redhat.com>
3490 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3491 with LITERALs without sequence numbers.
3493 2002-06-01 Richard Henderson <rth@redhat.com>
3495 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3496 Rename them LITUSE_ALPHA_*.
3498 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3500 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3501 accept parentheses enclosed register lists.
3503 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3505 * Makefile.am: Run "make dep-am".
3506 * Makefile.in: Regenerate.
3507 * po/POTFILES.in: Regenerate.
3509 2002-05-31 Graeme Peterson <gp@qnx.com>
3511 * configure.in: Add i386-*-nto-qnx*.
3512 * configure: Regenerate.
3514 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3516 * config/tc-mips.c (mips_ip): Use unsigned long values for
3519 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3521 * config/tc-mips.c (s_cpsetup): Fix initialization of
3522 mips_cpreturn_register and mips_cpreturn_offset.
3524 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3526 * config/tc-mips.c (s_cpsetup): Fix comment.
3528 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3530 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3531 (mips_ip): Likewise.
3532 (mips16_ip): Likewise.
3533 (tc_get_register): Likewise.
3535 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3536 Ed Satterthwaite <ehs@broadcom.com>
3538 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3539 (mips_opts): Initialize "ase_mdmx" member.
3540 (file_ase_mdmx): New variable.
3541 (CPU_HAS_MDMX): New macro.
3542 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3543 based on command line options and configuration defaults.
3544 (macro_build): Note in comment that use of MDMX in macros is
3545 not currently allowed.
3546 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3547 "Z" MDMX operand types.
3548 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3549 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3551 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3552 Add support for "-mdmx" and "-no-mdmx" options.
3553 (OPTION_ELF_BASE): Move to accomodate new options.
3554 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3555 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3556 file_ase_mdmx was set.
3557 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3558 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3561 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3563 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3564 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3565 command line switch conforming to gcc conventions.
3566 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3568 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3570 * config/tc-mips.c (macro_build_jalr): New Function.
3571 (md_begin): NewABI uses big GOTs.
3572 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3573 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3574 (load_address): Add some NewABI PIC support.
3576 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3577 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3579 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3581 * config/tc-mips.c (load_address): Use mips_gp_register instead
3582 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3584 (macro): Use mips_gp_register instead of hardcoded value.
3586 2002-05-30 Richard Henderson <rth@redhat.com>
3588 * expr.h (operatorT): Add O_md17..O_md32.
3589 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3590 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3591 O_tprelhi, O_tprello, O_tprel): New.
3592 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3593 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3594 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3595 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3596 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3597 (md_apply_fix3): Handle TLS relocations.
3598 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3599 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3600 associated TLS reloc. Check lituse_tls relocs match up.
3601 (emit_insn): Handle TLS relocations.
3604 * doc/c-alpha.texi: Add docs for tls relocations.
3606 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3608 * config/tc-mips.c (mips_gprel_offset): New variable.
3609 (s_gpvalue): Use it.
3611 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3613 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3614 write-write conflicts.
3615 (md_assemble): Reformat introductory comment.
3616 (parallel_ok): Prevent packing only if the first
3617 instruction cannot be packed.
3619 2002-05-30 Jason Eckhardt <jle@redhat.com>
3620 Tom Rix <trix@redhat.com>
3622 * config/tc-d10v.c (build_insn): Check for immediates.
3624 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3626 * config/tc-mips.c: Replace GP in comments by $gp.
3627 (mips_big_got): Initialize.
3628 (mips_trap): Initialize.
3629 (load_address): Use mips_gp_register instead of hardcoded value.
3630 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3631 (macro): Use mips_gp_register instead of hardcoded value.
3632 (macro2): Change load_address calls.
3633 (md_pcrel_from): Comment formatting.
3634 (s_cpload): Use mips_gp_register instead of hardcoded value.
3635 (s_cprestore): Likewise. Comment formatting.
3636 (s_gpword): Fix data type.
3637 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3638 (nopic_need_relax): Replace GP in comments by $gp.
3639 (mips_elf_final_processing): Better comment.
3641 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3643 * configure.in: Add DLX configuraton
3644 * Makefile.am: Add DLX configuraton
3645 * configure: Regenerate.
3646 * Makefile.in: Regenerate.
3647 * config/tc-dlx.c: New file.
3648 * config/tc-dlx.h: New files.
3649 * NEWS: Mention new support.
3651 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3653 * config/obj-coff.c (write_object_file): Add missing semicolon.
3655 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3657 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3658 by the define. Remove superfluous check of mips_opts.mips16.
3659 (append_insn): Likewise. Canonicalize variable increments.
3660 (macro_build): Canonicalize variable increments.
3661 (macro_build_lui): Likewise.
3662 (load_register): Likewise.
3663 (load_address): Move pointer initialization.
3664 (macro): Move pointer to a more local scope. Canonicalize variable
3665 increments. Better comments. Replace magic constant for RA by the
3667 (macro2): Replace magic constant for RA by the define. Canonicalize
3668 variable increments.
3669 (mips_ip): Canonicalize variable increments.
3670 (mips16_ip): Replace magic constant for RA by the define.
3671 (my_getSmallParser): Canonicalize variable increments/decrements.
3672 (my_getPercentOp): Likewise.
3673 (my_getSmallExpression): Likewise.
3674 (s_align): Likewise.
3675 (s_mipsset): Likewise.
3676 (s_cpsetup): Likewise.
3677 (s_insn): Remove superfluous check of mips_opts.mips16.
3678 (s_mips_stab): Likewise.
3679 (mips_handle_align): Canonicalize variable increments.
3680 (s_mips_ent): Likewise.
3681 (s_mips_end): Add comment.
3683 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3685 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3686 * configure: Regenerate.
3688 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3690 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3691 * Makefile.in: Regenerate.
3692 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3693 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3694 * configure: Regenerate.
3695 * as.h: Use #include "" instead of <> for local header files.
3696 * flonum-konst.c: Likewise.
3697 * flonum-mult.c: Likewise.
3699 * listing.c: Likewise.
3700 * config/tc-ia64.h: Likewise.
3701 * config/tc-v850.h: Likewise.
3703 2002-05-24 TAMURA Kent <kent@netbsd.org>
3705 * configure.in: Add a target for i386-netbsdpe.
3706 * configure: Regenerate.
3708 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3710 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3711 (obj_elf_common): Call elf_common.
3712 (obj_elf_tls_common): New function.
3713 (elf_pseudo_tab): Support .tls_common.
3714 (special_sections): Add .tdata and .tbss.
3715 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3717 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3718 (obj_elf_parse_section_letters): Include T in error message.
3719 * config/tc-ppc.c (ppc_section_letter): Likewise.
3720 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3721 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3723 * config/tc-sparc.c (md_apply_fix3): Likewise.
3724 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3725 Define them if not BFD_ASSEMBLER.
3726 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3728 (md_apply_fix3): Add TLS relocs.
3729 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3730 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3731 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3732 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3733 (ia64_elf_section_letter): Include T in error message.
3734 (md_begin): Support TLS operators.
3735 (md_operand): Likewise.
3736 (ia64_gen_real_reloc_type): Support TLS relocs.
3737 * write.c (adjust_reloc_syms): Don't change symbols in
3738 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3740 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3742 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3743 round the relocation up rather than down.
3745 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3747 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3749 * doc/as.texinfo: Document that the COFF version of .section
3750 ignores the 'a' flag.
3752 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3754 * config/tc-alpha.c (assemble_tokens): Protect use of
3755 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3757 * write.c (size_seg): Check adjustment to last frag.
3758 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3760 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3761 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3762 (write_object_file): Invoke md_do_align if available, and use
3763 frag_align_code on text sections.
3764 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3765 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3766 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3767 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3768 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3771 2002-05-22 H.J. Lu <hjl@gnu.org>
3773 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3776 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3778 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3781 2002-05-22 H.J. Lu <hjl@gnu.org>
3783 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3784 for one .loc for compiler.
3786 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3788 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3791 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3793 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3794 Optimize the rotate by zero case.
3796 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3798 * configure.in: Remove accidental enabling of bfd_gas=yes for
3800 * configure: Regenerate.
3802 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3804 * app.c: Fix formatting.
3806 * ehopt.c: Likewise.
3808 * input-file.c: Likewise.
3809 * listing.c: Likewise.
3810 * macro.h: Likewise.
3811 * stabs.c: Likewise.
3812 * symbols.c: Likewise.
3814 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3816 * config/obj-generic.c: Delete file.
3817 * config/obj-generic.h: Likewise.
3819 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3821 * config/tc-avr.c (mcu_types): Update for new devices.
3823 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3825 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3827 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3829 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3830 worked sometimes by accident. Fix copy&paste comment.
3832 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3834 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3835 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3836 (mips_elf_final_processing): Let n32 use .reginfo.
3838 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3840 * config/tc-mips.c (append_insn): Fix too small range of variable.
3842 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3844 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3845 listing_prev_line().
3847 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3849 * config/tc-arm.c (md_assemble): Remove redundant call to
3852 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3855 * stabs.c (s_stab_generic): Fix grammatical error in warning
3858 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3860 * write.c (subsegs_finish): Don't specially align last subseg.
3862 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3864 * stabs.c (s_stab_generic): Warn about a description field that is
3867 * config/obj-coff.c: Fix compile time warnings when compiling
3868 without BFD_ASSEMBLER defined.
3871 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3873 (md_pcrel_from_section): Use md_pcrel_from().
3875 2002-05-11 Bruno Haible <bruno@clisp.org>
3877 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3878 by dwarf2_directive_loc, instead of calling dwarf2_where.
3880 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3882 * config/obj-coff.h: Fix formatting.
3883 * config/tc-mcore.c: Likewise.
3884 * config/tc-mn10300.c: Likewise.
3885 * config/tc-openrisc.c: Likewise.
3886 * config/tc-or32.c: Likewise.
3887 * config/tc-pdp11.c: Likewise.
3888 * config/tc-ppc.c: Likewise.
3889 * config/tc-ppc.h: Likewise.
3890 * config/tc-sh64.c: Likewise.
3891 * config/tc-sh.c: Likewise.
3892 * config/tc-tic54x.c: Likewise.
3893 * config/tc-xstormy16.c: Likewise.
3894 * config/tc-xstormy16.h: Likewise.
3896 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3898 * config/obj-coff.c: Fix formatting.
3899 * config/obj-elf.c: Likewise.
3900 * config/tc-alpha.c: Likewise.
3901 * config/tc-arm.c: Likewise.
3902 * config/tc-d10v.c: Likewise.
3903 * config/tc-d30v.c: Likewise.
3904 * config/tc-h8300.c: Likewise.
3905 * config/tc-hppa.c: Likewise.
3907 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3909 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3910 reloc when no_cond_jump_promotion.
3912 2002-05-08 Jim Wilson <wilson@redhat.com>
3914 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3915 current variable part of frag.
3917 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3919 * config/tc-mmix.c: Fix formatting.
3920 * config/tc-mmix.h: Likewise.
3922 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3924 * configure: Regenerate.
3926 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3928 * config/tc-m68k.c: Fix formatting.
3930 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3932 * Makefile.am: Honour DESTDIR.
3933 * Makefile.in: Regenerate.
3935 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3937 * config/tc-ia64.c: Fix formatting.
3938 * config/tc-ia64.h: Likewise.
3940 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3942 * config/tc-mips.c: Fix formatting.
3943 * config/tc-s390.c: Likewise.
3944 * config/tc-s390.h: Likewise.
3946 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3948 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3949 information for instructions.
3951 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3953 * as.h: Fix formatting.
3956 * dwarf2dbg.c: Likewise.
3957 * frags.h: Likewise.
3959 * macro.c: Likewise.
3961 * stabs.c: Likewise.
3962 * symbols.c: Likewise.
3964 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3966 * app.c (mri_pseudo): Only declare for TC_M68K.
3968 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3969 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3970 BFD_RELOC_16_BASEREL.
3971 (md_assemble): Likewise.
3972 (md_apply_fix3): Likewise.
3974 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3976 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3977 zero into an add of zero - it is not the same.
3979 2002-05-01 Arati Dikey <aratid@kpit.com>
3981 * tc-sh.c (get_specific): Generate warning if the same
3982 destination register is used in parallel instructions.
3984 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3986 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3988 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3990 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3991 backwards to prevent cascading errors.
3993 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3995 * configure.in: Add support for powerpc-*-windiss.
3996 * configure: Regenerated.
3998 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4000 * config/tc-s390.c (md_parse_option): Formatting.
4002 * config/tc-i386.c: Formatting fixes, add missing space in error
4005 2002-04-24 Christian Groessler <chris@groessler.org>
4007 * config/tc-z8k.c (build_bytes): Add support for new cases:
4008 CLASS_IGNORE and ARG_NIM4.
4009 (md_assemble): Prevent destruction of input_line_pointer if
4010 get_operands returns failure.
4012 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4014 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4015 instructions to be generated by macros.
4017 2002-04-24 Andreas Schwab <schwab@suse.de>
4019 * config/tc-i386.c (output_jump, output_disp)
4020 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4022 (md_apply_fix3): Remember addend value for rela relocations.
4023 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4025 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4027 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4028 from previous change.
4030 2002-04-22 Eric Christopher <echristo@redhat.com>
4032 * config/tc-mips.c (macro_build): Add warning if macro instructions
4033 are expanded into a branch delay slot.
4035 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4037 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4038 numbers, gdb relies on them to detect the start of the prologue.
4040 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4042 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4043 symbols in merge sections.
4045 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4047 * as.c (main): Don't reference _bfd_chunksize.
4049 2002-04-15 Tom Rix <trix@redhat.com>
4051 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4052 symbols in merge sections.
4054 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4056 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4057 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4058 argument for the precision.
4059 (gen_to_words): Update accordingly.
4061 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4063 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4064 BFD_VERSION_STRING unavailable.
4065 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4067 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4069 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4070 symbol_used_in_reloc_p is true.
4072 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4075 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4077 * dep-in.sed: Cope with absolute paths.
4078 * Makefile.am (dep.sed): Subst TOPDIR.
4080 * Makefile.in: Regenerate.
4082 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4084 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4085 (mips_ip): Remove unused variable.
4086 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4087 unsigned char with bfd_byte.
4088 (s_file): Remove unused variable.
4089 (s_mips_ent): Likewise.
4091 2002-04-03 Tom Rix <trix@redhat.com>
4093 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4095 (find_opcode): Fix warning in as_warn.
4096 * config/tc-d10v.h: Update Copyright.
4098 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4099 Tom Rix <trix@redhat.com>
4101 From Jeff Knaggs <jknaggs@redhat.com>
4102 * config/tc-d10v.c (check_resource_conflict): New function to
4103 check for resource conflicts.
4105 From Jason Eckhardt <jle@redhat.com>
4106 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4108 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4109 reserved control registers is used.
4110 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4113 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4114 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4115 instruction cannot be packed.
4117 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4118 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4119 write-write conflicts.
4120 (md_assemble): Reformat introductory comment.
4121 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4124 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4126 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4127 O_logical_not>): Derive final_seg from add_symbol.
4128 <O_multiply..O_logical_or>: More final_seg twiddles.
4130 2002-04-01 Jessica Han <jessica@cup.hp.com>
4132 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4135 2002-03-27 Andreas Schwab <schwab@suse.de>
4137 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4138 field for pc-relative fixups.
4139 (output_disp): Likewise.
4140 (md_estimate_size_before_relax): Likewise.
4141 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4142 pc-relative fixups in 64bit mode.
4144 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4146 * config/te-aix5.h: Typo fix.
4148 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4150 * Makefile.am: Run "make dep-am".
4151 * Makefile.in: Regenerate.
4152 * doc/Makefile.in: Regenerate.
4154 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4156 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4157 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4159 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4161 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4162 the EXTENDED bit here; report the estimate according to the
4165 2002-03-18 Tom Rix <trix@redhat.com>
4167 * configure.in: Add AIX 5 support.
4168 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4169 * config/te-aix5.h: New file. AIX 5 support.
4170 * configure: Regenerate.
4172 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4174 * po/fr.po: Updated version.
4176 2002-03-16 Andreas Jaeger <aj@suse.de>
4178 * doc/c-mips.texi (Machine Dependencies): Add new node.
4180 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4182 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4183 (mips_opts): Initialize "ase_mips3d" member.
4184 (file_ase_mips3d): New variable.
4185 (CPU_HAS_MIPS3D): New macro.
4186 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4187 based on command line options and configuration defaults.
4188 (macro_build, mips_ip): Accept MIPS-3D instructions if
4189 mips_opts.ase_mips3d is set.
4190 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4191 Add support for "-mips3d" and "-no-mips3d" options.
4192 (OPTION_ELF_BASE): Move to accomodate new options.
4193 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4194 (mips_elf_final_processing): Add a comment indicating that a
4195 MIPS-3D ASE ELF header flag should be set, when one exists.
4196 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4197 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4198 nomips3d" directives.
4200 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4202 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4203 a weak symbol in same section to be within reach.
4205 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4207 * po/fr.po: Updated version.
4209 2002-03-12 Andreas Schwab <schwab@suse.de>
4211 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4212 body record so that an error is given for misplaced .save
4215 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4217 * config/tc-i386.h (REX_OPCODE): Define.
4218 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4219 (rex_byte): typedef to int.
4220 * config/tc-i386.c: Group prototypes and vars together.
4221 Formatting fixes. Remove occurrences of "register" keyword.
4224 (mode_from_disp_size): Add INLINE keyword to prototype.
4225 (fits_in_signed_byte): Likewise.
4226 (fits_in_unsigned_byte): Likewise.
4227 (fits_in_unsigned_word): Likewise.
4228 (fits_in_signed_word): Likewise.
4229 (fits_in_unsigned_long): Likewise.
4230 (fits_in_signed_long): Likewise.
4231 (type_names): Constify.
4232 (intel_float_operand): Constify param.
4233 (add_prefix): Use REX_OPCODE.
4234 (md_assemble): Likewise. Modify for changed rex_byte.
4235 (parse_insn): Split out of md_assemble.
4236 (parse_operands): Likewise.
4237 (swap_operands): Likewise.
4238 (optimize_imm): Likewise.
4239 (optimize_disp): Likewise.
4240 (match_template): Likewise.
4241 (check_string): Likewise.
4242 (process_suffix): Likewise.
4243 (check_byte_reg): Likewise.
4244 (check_long_reg): Likewise.
4245 (check_qword_reg): Likewise.
4246 (check_word_reg): Likewise.
4247 (finalize_imm): Likewise.
4248 (process_operands): Likewise.
4249 (build_modrm_byte): Likewise.
4250 (output_insn): Likewise.
4251 (output_branch): Likewise.
4252 (output_jump): Likewise.
4253 (output_interseg_jump): Likewise.
4254 (output_disp): Likewise.
4255 (output_imm): Likewise.
4257 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4259 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4261 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4263 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4264 relocs except when BFD64.
4266 * write.c (number_to_chars_bigendian): Don't abort when N is
4267 larger than sizeof (VAL).
4268 (number_to_chars_littleendian): Likewise.
4270 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4272 * config/tc-hppa.c (md_apply_fix3): Add cast.
4273 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4276 2002-03-05 Paul Koning <pkoning@equallogic.com>
4278 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4279 (parse_ac5): New function for parsing float regs in float operand.
4280 (parse_expression): Remove attempt to make literals be octal.
4281 (parse_op_no_deferred): Support float literals.
4282 (parse_op): Reject attempts to refer to float regs.
4283 (parse_fop): New function, like parse_op but for float operand.
4284 (md_assemble): Add cases to parse float operands. Also fix
4285 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4287 2002-03-04 H.J. Lu <hjl@gnu.org>
4289 * config/obj-elf.c (special_section): Add .init_array,
4290 .fini_array and .preinit_array.
4292 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4293 .init_array and .fini_array.
4295 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4297 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4299 (obj_frob_symbol): Copy visibility.
4301 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4303 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4305 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4307 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4309 * po/es.po: Updated.
4311 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4313 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4314 only, undo the changes made on 2001-06-08, with the
4315 effect being that common or extern symbols are
4316 adjusted for embedded-PIC, but weak symbols are not.
4317 (md_estimate_size_before_relax: Likewise, with the effect
4318 that extern symbols are treated the same as weak symbols
4319 only if not embedded-PIC.
4320 (mips_fix_adjustable) Likewise, with the effect that
4321 weak or extern symbols are not adjusted for embedded-PIC.
4322 (md_apply_fix3): Tweak so that the case where value is zero
4323 is handled more correctly for embedded-PIC code.
4325 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4327 * doc/as.texinfo (Overview): Add missing @ifset IA64
4329 * configure.in (LINGUAS): Add es.po.
4330 * configure: Regenerate.
4331 * po/es.po: New file.
4333 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4335 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4336 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4337 and NO_PIC cases. Code cleanup.
4338 (macro2): Fix handling of 64bit register loads.
4340 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4342 * doc/as.texinfo: Add entry for IA64.
4343 * doc/c-ia64.texi: New file.
4345 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4347 * config/tc-hppa.c: Update copyright date.
4349 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4350 Remove references to chip manufacturers.
4351 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4353 (md_show_usage): Remove references to chip manufacturers. Mention
4355 (md_begin): Test power4 opcode flag bits.
4357 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4359 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4360 count exceeds prologue count.
4361 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4362 (unwind.label_prologue_count): New member.
4364 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4366 (get_saved_prologue_count): New function.
4367 (save_prologue_count): New function.
4368 (free_saved_prologue_count): New function.
4369 (dot_label_state): Record state label by calling save_prologue_count().
4370 (dot_copy_state): Restore prologue count by calling
4371 get_saved_prologue_count().
4372 (generate_unwind_image): Free up list of saved prologue
4373 counts by calling free_saved_prologue_counts().
4375 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4377 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4378 function declarations.
4380 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4382 * NEWS: Note that GASP is now deprecated.
4383 * Makefile.am: Do not build gasp-new by default.
4384 * Makefile.in: Regenerate.
4385 * doc/Makefile.am: Do not install gasp.info.
4386 * doc/Makefile.in: Regenerate.
4387 * gas/gasp.texi: Note that gasp is now deprecated.
4389 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4391 * NEWS: Mark 2.12 branch.
4393 2002-02-19 Tom Tromey <tromey@redhat.com>
4395 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4397 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4399 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4402 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4404 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4405 Make bit size independent of architecture switch.
4406 (md_begin): Add warning for -m64 with -Aesa.
4407 (s390_md_end): Use renamed architecture defines.
4409 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4411 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4413 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4415 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4418 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4420 * config/tc-mips.c (md_estimate_size_before_relax): Really
4421 make sure we treat weak like extern only for ELF. (Fixes
4422 patch from 2001-07-25.)
4424 2002-02-15 Ben Elliston <bje@redhat.com>
4426 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4429 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4431 * NEWS: Mention support for MMIX.
4433 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4435 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4436 a sequence of indpendent 'if' statements for easier debugging
4437 and future modification.
4439 2002-02-13 Matt Fredette <fredette@netbsd.org>
4441 * config/tc-m68k.c (md_show_usage): No longer display a
4442 hard-coded "68020" for the default CPU, instead display the
4443 canonical name of the true, configured default CPU.
4444 (m68k_elf_final_processing): Mark objects for sub-68020
4445 CPUs with the new EF_M68000 flag.
4447 2002-02-13 Andreas Schwab <schwab@suse.de>
4449 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4450 pc-relative relocations to merge sections in 64-bit mode.
4452 2002-02-13 Ben Elliston <bje@redhat.com>
4454 * NEWS: Document floating point number handling in gasp.
4455 * gasp.c: Include <assert.h> and "xregex.h".
4456 (is_flonum): New function.
4457 (chew_flownum): Likewise.
4458 (change_base): Consume flonums from the input, where possible.
4459 * doc/gasp.texi (Constants): Document floating point numbers.
4461 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4463 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4464 that implicitly use LR and RR selectors.
4466 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4468 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4469 and `epsw' as available on AM33 and above only.
4470 (other_register_name): Add logic to handle machine type encoded in
4473 2002-02-11 Tom Rix <trix@redhat.com>
4475 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4478 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4480 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4483 2002-02-11 Jan Hubicka <jh@suse.cz>
4485 * i386.c (md_assemble): Support 32bit address prefix.
4486 (i386_displacement): Likewise.
4487 (i386_index_check): Accept 32bit addressing in 64bit mode.
4489 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4491 * config/tc-sh.c (dot): Removed unused function.
4493 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4495 * Makefile.am: "make dep-am".
4496 * Makefile.in: Regenerate.
4497 * aclocal.m4: Regenerate.
4498 * config.in: Regenerate.
4499 * configure: Regenerate.
4500 * doc/Makefile.in: Regenerate.
4502 2002-02-10 Richard Henderson <rth@redhat.com>
4504 * doc/c-alpha.texi: New file.
4505 * doc/Makefile.am (CPU_DOCS): Add it.
4506 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4508 2002-02-09 Richard Henderson <rth@redhat.com>
4510 * config/tc-alpha.c (O_samegp): New.
4511 (USER_RELOC_P): Include it.
4512 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4513 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4514 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4515 (alpha_validate_fix): New.
4516 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4518 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4520 * doc/c-cris.texi: New.
4521 * doc/all.texi: @set CRIS.
4522 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4523 Include c-cris.texi.
4524 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4525 * doc/Makefile.in: Regenerate.
4527 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4529 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4530 determine if a number is a sign-extended 32-bit number.
4531 (load_register): Use IS_SEXT_32BIT_NUM.
4532 (macro): Check if load/store macro handling is using a
4533 constant 32-bit address on 64-bit address systems, and if
4534 so optimize the generation of that address.
4536 2002-02-08 Richard Henderson <rth@redhat.com>
4538 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4539 we've eliminated all foreign relocation types yet.
4540 (alpha_fix_adjustable): Likewise.
4542 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4544 Contribute sh64-elf.
4545 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4546 Stephen Clarke <Stephen.Clarke@st.com>
4547 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4548 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4549 * config/tc-sh.c (md_relax_table): Added default sizes for
4550 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4551 MOVI_16, MOVI_32 and MOVI_48.
4552 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4553 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4555 (shmedia_md_estimate_size_before_relax): Remove redundant
4556 blocks. Set fragP->fr_var even if relaxation type unchanged.
4557 Retain UNDEF_MOVI until expression decays to number.
4558 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4559 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4560 relocation types. Take fixP->fx_addnumber into account too.
4561 (shmedia_md_apply_fix): Likewise.
4562 (shmedia_md_convert_frag): Likewise.
4563 (shmedia_build_Mytes): Likewise.
4564 (sh64_consume_datalabel): Complain about nested datalabel.
4565 Support PIC relocs. Call sh_parse_name.
4566 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4567 in tc-sh.h to SHmedia reloc types.
4568 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4569 MOVI_GOTPC): New relaxation constants.
4570 (md_relax_table): Introduce relaxation directives for PIC-related
4572 (sh_PIC_related_p): Handle datalabel.
4573 (sh_check_fixup): Choose SH5 PIC relocations.
4574 (sh_cons_fix_new): Added BDF_RELOC_64.
4575 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4576 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4577 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4578 current ISA is SHmedia, get 7 bytes.
4579 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4580 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4582 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4583 shmedia_apply_fix3 and make void.
4584 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4585 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4587 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4588 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4589 2001-03-14 DJ Delorie <dj@redhat.com>
4590 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4591 * doc/Makefile.in(CPU_DOCS): Ditto.
4592 * doc/c-sh64.texi: New file.
4593 * doc/as.texinfo: Add SH64 support.
4594 2001-03-13 DJ Delorie <dj@redhat.com>
4595 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4596 A_REUSE_PREV so that its purpose is more obvious.
4597 (shmedia_build_Mytes): Ditto.
4598 2001-03-07 DJ Delorie <dj@redhat.com>
4599 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4601 (sh64_vtable_inherit): Ditto.
4602 (strip_datalabels): New, strip "datalabel" from given line.
4603 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4605 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4606 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4608 (shmedia_build_Mytes): ... to here.
4609 2001-03-06 DJ Delorie <dj@redhat.com>
4610 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4612 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4613 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4614 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4615 address by one in call to dwarf2_emit_insn.
4616 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4617 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4618 alignment handling broken by imported changes.
4619 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4620 (sh64_handle_align): Declare.
4621 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4622 (sh64_max_mem_for_rs_align_code): Declare.
4623 (enum sh64_isa_values): Moved here from tc-sh64.c.
4624 (md_do_align): Define.
4625 (sh64_do_align): Declare.
4626 (struct sh64_tc_frag_data): New.
4627 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4629 (TC_FRAG_INIT): Change to set new datatype.
4630 (struct sh64_segment_info_type): Rename member
4631 last_flushed_location to last_contents_mark. All users changed.
4632 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4633 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4634 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4635 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4636 of unsetting seen_insn.
4637 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4638 call sh64_update_contents_mark.
4639 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4640 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4641 enum sh64_isa_values.
4642 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4643 (emitting_crange): Boolean guard moved to file scope from function
4644 scope in sh64_set_contents_type.
4646 (sh64_update_contents_mark): New; most split out from
4647 sh64_flush_pending_output.
4648 (shmedia_md_end): Call sh64_update_contents_mark. Set
4649 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4650 (sh64_do_align): New function.
4651 (sh64_max_mem_for_rs_align_code): New function.
4652 (sh64_handle_align): Rename from shmedia_do_align. Make
4653 non-static. Add head comment. Emit zero bytes for n bytes modulo
4654 four. Change return-type to void.
4655 (shmedia_elf_new_section): Remove.
4656 (shmedia_md_assemble): Call sh64_update_contents_mark.
4657 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4658 new frag. Call sh64_update_contents_mark after making the new
4660 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4661 and sh_flush_pending_output.
4662 (sh64_flag_output): Also call md_flush_pending_output, but add
4663 condition on not emitting_crange.
4664 (sh64_tc_cons_fix_new): Remove.
4665 2001-01-12 Nick Clifton <nickc@redhat.com>
4666 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4667 alignment handling scheme imported from sourceware.
4668 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4669 * config/tc-sh64.h (TARGET_FORMAT): Define.
4670 (sh64_target_format): Prototype.
4671 * config/tc-sh64.c (sh64_target_mach): New function.
4672 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4673 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4674 zero_address_frag instead of copying the frag of the symbol.
4675 (shmedia_frob_file_before_adjust): Ditto.
4676 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4677 to valueT to remove signedness.
4678 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4679 headers to output_bfd. Do not evaluate symbols if final is false;
4681 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4682 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4683 to the current frag, call shmedia_md_convert_frag to emit fixups
4684 and make frag_wane neutralize the frag. Update comments.
4685 * config/tc-sh.c (md_convert_frag): Change caller of
4686 shmedia_md_convert_frag.
4687 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4688 * config/tc-sh64.h: Tweak comments and correct formatting.
4689 * config/tc-sh64.c: Ditto.
4690 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4691 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4692 for the no-relocation case.
4693 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4694 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4696 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4698 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4699 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4701 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4703 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4704 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4705 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4706 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4707 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4708 if reloc is emitted.
4709 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4710 New options plus bugfixes.
4711 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4713 (md_parse_option): Handle new options.
4714 (md_show_usage): Add blurb for new options.
4715 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4716 (sh64_expand, sh64_pt32): New variables.
4717 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4718 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4719 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4720 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4721 <resolved previously-pc-relative relocs>: Handle
4722 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4723 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4724 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4725 points to SHcompact code.
4726 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4727 SH64PCREL16)>: Check that ISA of what operand points at and
4728 PTA/PTB matches, or emit error.
4729 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4730 SHMEDIA_BFD_RELOC_PT.
4731 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4733 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4734 condition for MOVI expansion.
4735 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4736 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4738 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4740 (sh64_target_format): Error-check setting of sh64_pt32 and
4741 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4742 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4743 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4744 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4745 * config/tc-sh64.c: Improve comments.
4746 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4747 not say the linker will check correctness of PTA/PTB expansion.
4748 (shmedia_md_end): Make non-static.
4749 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4751 * config/tc-sh.c (sh_finalize): Remove.
4752 * config/tc-sh.h (md_end): Do not define.
4753 Remove prototype for sh_finalize.
4754 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4755 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4756 sh64_section_data container when storing section type in tdata
4757 field in elf_section_data.
4758 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4760 * Makefile.am: Update dependencies.
4761 * Makefile.in: Regenerate.
4762 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4763 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4764 dwarf2_emit_insn call with test on debug_type.
4765 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4766 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4767 CRT_SH5_ISA32 sticky for 64-bit.
4768 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4769 Generate .crange sections when switching ISA mode or emitting
4770 constants in same section as code.
4771 * config/tc-sh64.c: Reformat structure definitions.
4772 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4774 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4775 to emit a .cranges descriptor when contents type changes. Only
4776 emit error if changing contents type and -no-mix is in effect.
4777 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4778 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4779 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4780 sh64_flush_last_crange over sections.
4781 When checking main symbol of datalabel symbol, check for
4782 STO_SH5_ISA32, not ISA type of section in definition.
4783 (shmedia_frob_file_before_adjust): Check main symbol for
4784 STO_SH5_ISA32; don't check ISA type of section in definition.
4785 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4786 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4787 .cranges entries have been output.
4788 (shmedia_elf_new_section): Just call md_flush_pending_output.
4789 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4790 fix. Do not set tc_segment_info_data.in_code for section. Call
4791 sh64_set_contents_type for SHmedia code.
4792 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4793 false. Call md_flush_pending_output.
4794 (sh64_target_format): Check that -no-mix and
4795 -shcompact-const-crange are used in sane combination with other
4797 (shmedia_md_pcrel_from_section): Check type of fix for how to
4799 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4800 not ISA type of section in definition.
4801 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4802 hold contents-type state.
4803 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4804 (sh64_flush_pending_output): Declare.
4805 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4806 (sh64_tc_cons_fix_new): Declare.
4807 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4808 call sh64_flag_output.
4809 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4810 call sh64_set_contents_type to mark SHcompact code and set
4812 (md_longopts): New options "-no-mix" and
4813 "-shcompact-const-crange".
4814 (md_parse_option): Handle new options.
4815 (md_show_usage): Add blurb for new options.
4816 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4817 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4818 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4819 (sh64_last_insn_frag): New.
4820 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4821 to get frag for insn opcode for generating fixups; do not assume it
4823 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4825 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4827 (TC_FRAG_TYPE): Define as fragS *.
4828 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4829 (sh64_last_insn_frag): Declare.
4830 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4831 not == NULL before dereferencing.
4832 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4833 Get rid of BFD section flag and EF_SH64_ABI64.
4834 * config/tc-sh64.c (shmedia_frob_section_type): Use
4835 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4836 communicate the section as containing SHmedia code. Describe why.
4837 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4838 EF_SH64 regardless of ABI.
4839 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4840 in error message. Handle resolved expressions for
4841 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4842 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4843 (shmedia_check_limits): Handle BFD_RELOC_64.
4844 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4845 a STO_SH5_ISA32 symbol, only the BFD value.
4846 2000-12-11 Ben Elliston <bje@redhat.com>
4847 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4848 dwarf2_generate_asm_lineno.
4849 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4850 Handle PC-relative MOVI expansions with assembler relaxation.
4851 Generate PC-relative relocs from 16-bit PC-relative expressions.
4852 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4853 (shmedia_md_pcrel_from_section): ...here.
4854 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4855 turned completely resolved. Adjust relocation type for 16-bit
4856 immediate operands that has turned PC-relative. Adjust back for
4857 MD_PCREL_FROM_SECTION being applied twice.
4858 (shmedia_md_convert_frag): Always emit reloc for expression with
4859 global or weak symbol. Handle relaxation result for PC-relative
4861 (shmedia_md_estimate_size_before_relax): An expression with a weak
4862 or global symbol can not be relaxed. Break out tests for
4863 relaxable symbol into variable sym_relaxable.
4864 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4865 UNDEF_MOVI)>: Break out any PC-relative expression and change
4867 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4869 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4870 MOVI expansion. If X_op_symbol of the immediate expression is
4871 set, make an expression symbol for the argument to frag_var.
4872 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4874 (END): Adjust for new relaxations.
4875 (md_relax_table): Add entries for new relaxations.
4876 2000-12-07 Ben Elliston <bje@redhat.com>
4877 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4878 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4879 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4880 SHORI operand offsets in PT/PTA/PTB expansions.
4881 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4882 Implement DataLabel semantics.
4883 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4884 shmedia_frob_file_before_adjust.
4885 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4886 (DATALABEL_SUFFIX): Define.
4887 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4888 symbol list to update "datalabel" symbols to their main symbol
4890 (shmedia_frob_file_before_adjust): New.
4891 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4892 undefined and set STT_DATALABEL.
4893 (sh64_frob_label): Initialize TC symbol field.
4894 (sh64_consume_datalabel): Actually implement semantics. New
4895 parameter operandf, call it instead of expression.
4896 (sh64_exclude_symbol): New.
4897 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4898 to sh64_consume_datalabel.
4899 (tc_symbol_new_hook): Define to tc_frob_symbol.
4900 (TC_SYMFIELD_TYPE): Define to symbolS *.
4901 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4902 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4903 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4905 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4906 generating dwarf2 debug information.
4907 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4908 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4909 elf64-sh64 for the 64-bit ABI.
4910 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4912 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4913 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4915 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4916 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4917 (enum sh64_abi_values): New type.
4918 (enum sh64_isa_values): New type.
4919 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4920 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4921 (sh64_abi): Replace shmedia_64.
4922 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4923 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4924 (s_sh64_mode): Check validity for this target.
4925 (sh64_target_format): Initialize defaults for ISA and ABI.
4926 Fallback to old object format if no SH64 ISA or ABI has been
4928 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4929 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4930 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4931 * config/tc-sh64.h: Fix typo in comment.
4932 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4933 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4934 <PT fixups for absolute values>: Size will be longest, not
4936 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4937 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4938 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4939 and l1 to hold lowercase of two first characters. Change all
4940 remaining TO_LOWER to tolower.
4941 * config/tc-sh64.c (TO_LOWER): Delete.
4942 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4943 (md_parse_name): Define.
4944 (sh64_consume_datalabel): Declare.
4945 (DOLLAR_DOT): Define.
4946 * config/tc-sh64.c (shmedia_parse_exp): New.
4947 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4948 (shmedia_parse_reg): Remove const from src
4950 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4951 (shmedia_md_assemble): Ditto for op_end variable.
4952 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4953 Use shmedia_parse_exp, not parse_exp.
4954 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4955 parameter. All callers changed.
4956 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4958 (shmedia_parse_reg): Put first two character in local variables.
4959 Use tolower, not TO_LOWER. If no register is found and argtype
4960 indicates a control register, scan shmedia_creg_table
4962 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4963 * Makefile.am (CPU_TYPES): Add sh64.
4964 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4965 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4966 Regenerate dependencies.
4967 * Makefile.in: Regenerate.
4968 * configure.in: Add support for sh64-*-elf*.
4969 * configure: Regenerate.
4970 * config/tc-sh64.h: New.
4971 * config/tc-sh64.c: New.
4972 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4973 .mode, .isa and .uaquad.
4974 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4975 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4976 [HAVE_SH64] (END): Define as 10.
4977 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4978 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4980 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4981 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4982 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4983 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4985 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4986 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4987 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4988 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4989 SHmedia instructions. Handle state-change after switching to
4991 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4992 (md_parse_option) [HAVE_SH64]: Parse new options.
4993 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4994 (md_convert_frag) [HAVE_SH64] <default>: Call
4995 shmedia_md_convert_frag instead of abort.
4996 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4997 BFD_RELOC_SH_SHMEDIA_CODE.
4998 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4999 SHcompact or SHmedia code.
5000 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5001 shmedia_md_apply_fix instead of abort.
5002 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5003 result from calling shmedia_md_estimate_size_before_relax instead
5005 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5007 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5008 shmedia_init_reloc and do nothing more if it returns non-zero.
5009 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5010 * po/POTFILES.in: Regenerate.
5011 * po/gas.pot: Regenerate.
5013 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5015 * config/tc-sh.c (parse_at): Install the correct version of
5018 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5019 assume fixP->fx_subsy is non-NULL.
5021 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5023 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5024 A_DISP_PC_ABS, and adjust it by -4.
5025 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5027 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5028 the operand type is not A_DISP_PC_ABS.
5030 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5032 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5033 common and weak symbols. Handle common and weak symbols as
5034 undefined symbols with regards to GREG handling and merging.
5035 (mmix_frob_file): Ditto.
5037 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5039 * configure.in (hppa-*-netbsd*): New target.
5040 * configure: Regenerate.
5041 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5043 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5045 * config/tc-v850.c: Add missing prototypes amd use old-style
5046 function definitions.
5047 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5048 (sdata_section tdata_section, zdata_section, sbss_section,
5049 tbss_section, zbss_section, rosdata_section, rozdata_section,
5050 scommon_section, tcommon_section, zcommon_section,
5051 call_table_data_section, call_table_text_section): Delete.
5052 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5053 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5054 v850_call_table_data, v850_call_table_text): Delete.
5055 (struct v850_seg_entry): New.
5056 (v850_seg_table): New.
5057 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5058 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5059 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5060 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5063 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5064 recording of alignment.
5065 (md_pseudo_table): Use v850_seg.
5066 (md_begin): Don't init .call_table_data and .call_table_text here.
5067 Set v850_seg_table bss entry.
5069 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5071 Support on-demand global register allocation by passing on
5072 base-plus-offset relocs to the linker.
5073 * config/tc-mmix.c: Tweak and fix typos in comments.
5074 (allocate_undefined_gregs_in_linker): New variable.
5075 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5076 (md_longopts): Add --linker-allocated-gregs.
5077 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5078 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5079 (md_show_usage): Update text for -x. Add text for
5080 --linker-allocated-gregs.
5081 (tc_gen_reloc): Derive default value for addend from val and
5082 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5083 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5084 GREG if allocate_undefined_gregs_in_linker.
5085 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5086 --linker-allocated-gregs.
5087 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5088 --linker-allocated-gregs. Mention that it's implied by -x.
5089 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5090 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5092 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5094 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5096 * Makefile.am: Run "make dep-am"
5097 * Makefile.in: Regenerate.
5099 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5101 * config/tc-or32.c: New file.
5102 * config/tc-or32.h: New file.
5103 * configure.in: Add support for or32 targets.
5104 * configure: Regenerate.
5105 * config/obj-coff.c: Add support for or32 targets.
5106 * config/obj-coff.h: Add support for or32 targets.
5107 * Makefile.am: Add support for or32 targets.
5108 * Makefile.in: Regenerate.
5109 * NEWS: Mention support for OpenRISC.
5110 * doc/Makefile.in: Regenerate.
5111 * po/POTFILES.in: Regenerate.
5112 * po/gas.pot: Regenerate.
5114 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5116 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5119 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5121 * config/tc-mips.c (tc_gen_reloc): Arrange for
5122 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5123 their LO16 parts, even for ELF.
5125 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5127 * config/tc-i386.c: Protect definitions of true and false
5130 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5132 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5133 made because of .weak, if they are neither defined nor used in any
5136 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5138 * configure: Regenerated.
5140 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5142 * doc/Makefile.am (install): Depend on install-info.
5143 * doc/Makefile.in: Regenerate.
5145 2002-01-26 Nick Clifton <nick@redhat.com>
5147 * po/fr.po: Updated version
5149 2002-01-24 Kazu Hirata <kazu@hxi.com>
5151 * config/tc-h8300.c (check_operand): Don't print a warning
5152 when a valid 24-bit address is given to a 16-bit address
5155 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5157 * config/tc-sh.c (sh_elf_suffix): Removed.
5158 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5159 sh_end_of_match, sh_parse_name): New functions.
5160 (sh_elf_cons): Simplify.
5161 (parse_exp): Reject misplaced PIC operands.
5162 (md_undefined_symbol): Simplify.
5163 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5164 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5165 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5166 Complain if subsy remains at the end.
5167 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5168 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5170 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5172 * config/tc-mn10300.c (xr_registers): Move `pc'...
5173 (other_registers): ... here.
5175 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5177 * Makefile.am: Run "make dep-am".
5178 * Makefile.in: Regenerate.
5179 * gas/po/POTFILES.in: Regenerate.
5181 2002-01-21 DJ Delorie <dj@redhat.com>
5183 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5184 stabstr_name allocation permanent, as it will be referenced from
5187 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5189 * configure.in (ia64-*-netbsd*): New target.
5190 * configure: Regenerate.
5192 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5194 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5196 <Detailed description, ARM options>: Ditto.
5197 * doc/c-arm.texi (ARM Options): Ditto.
5199 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5201 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5202 do_mia, do_mar and do_mra respectively.
5203 (do_mav_*): Renamed from do_c_*.
5204 (mav_reg_required_here, mav_parse_offset): Renamed from
5205 cirrus_reg_required_here and cirrus_parse_offset respectively.
5206 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5208 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5209 Keith Walker <keith.walker@arm.com>
5211 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5212 (insns): Add pattern for bxj instruction.
5213 (do_bxj): New function.
5214 (arm_cpus): Add arm926ej.
5215 (arm_archs): Add armv5tej.
5217 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5219 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5221 2002-01-19 Keith Walker <keith.walker@arm.com>
5223 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5225 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5227 * NEWS: Mention new ARM command-line options and VFP support.
5229 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5231 (ARM_CEXT_MAVERICK): Similarly.
5232 (ARM_ANY): Now means any core instruction.
5233 (CPU_DEFAULT): Default to ARM_ANY.
5234 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5235 (pic_code): Declare for all object types. Make type int.
5236 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5237 (march_fpu_opt, mfpu_opt): Declare.
5238 (md_longopts): Tidy up conditional definitions.
5239 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5240 (arm_long_opts): New tables.
5241 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5242 (arm_parse_extension): New function.
5243 (md_parse_option): Rewrite using new table-driven system.
5244 (md_show_usage): Use new table-driven system.
5245 (md_begin): Calculate cpu_variant from command line option data.
5246 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5247 command-line options.
5248 * doc/c-arm.texi: Likewise.
5250 2002-01-18 Andreas Jaeger <aj@suse.de>
5252 * as.c (parse_args): Update year.
5254 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5256 * config/tc-tic54x.c (encode_address): Add a more informative
5257 warning about incorrect syntax.
5259 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5261 * po/gas.pot: Regenerate.
5263 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5265 * macro.c (get_any_string): Add no-c-format comment to prevent
5266 confusion when translating string.
5267 * gasp.c (get_any_string): Add no-c-format comment to prevent
5268 confusion when translating string.
5270 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5271 Johannes Stezenbach <js@convergence.de>
5272 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5273 matched before the shorter ones.
5274 (my_getSmallParser): Fix handling of nested parentheses in
5275 percent_op's. Code cleanup.
5276 (my_getPercentOp): New function, code from my_getSmallParser.
5277 (my_getSmallExpression): Fix handling of closing parentheses.
5278 Code cleanup. Better comments.
5280 2002-01-16 Nick Clifton <nickc@redhat.com>
5282 po/tr.po: New file: Turkish translation.
5283 configure.in (LINGUAS): Add "tr".
5284 configure: Regenerate.
5286 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5288 Support for VFP instructions
5289 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5290 (cp_address_required_here): New argument wb_ok. When false, do not
5291 accept write-back forms of addressing. Change all callers.
5292 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5293 (FPU_VFP_EXT_V2): Define.
5294 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5295 Define in terms of above.
5296 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5297 (vfp_reg): New struct.
5298 (vfp_regs): New array of registers.
5299 (insns): Add VFP instructions.
5300 (sn_table): New array of VFP single-precision register names.
5301 (dn_table): New array of VFP double-precision register names.
5302 (all_reg_maps): Add the new register tables.
5303 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5304 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5305 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5306 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5307 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5308 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5309 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5310 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5311 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5312 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5313 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5314 (do_vfp_sp_dp_cvt): New functions.
5315 (md_begin): Set soft-float flag for appropriate VFP work.
5316 (md_atof): Handle VFP-format doubles.
5317 (md_parse_option): Handle VFP command-line options.
5318 (md_show_usage): Display VFP command-line options.
5320 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5322 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5323 various command line options.
5325 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5327 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5329 (xstormy16_md_apply_fix3): Do not return a value.
5331 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5333 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5334 the -EL/-EB option that matches the target's endianness.
5335 (md_parse_option): Likewise.
5337 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5339 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5340 is not dependent on ARM_BI_ENDIAN.
5342 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5344 * tc-arm.c (all error messages): Normalize capitalization of messages.
5346 * tc-arm.h (md_operand): Delete define.
5347 * tc-arm.c (in_my_get_expression): New static variable.
5348 (my_get_expression): Set and clear it.
5349 (md_operand): New function. If called from my_get_expression
5350 put the error in inst.error.
5351 (output_inst): Now takes argument of instruction being assembled.
5352 Print it out with any error message.
5353 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5355 (end_of_line): Don't update inst.error if it is already set.
5357 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5359 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5360 op that can be translated into a mvn instruction.
5362 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5364 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5365 setting default md.flags.
5366 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5367 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5368 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5369 for 32 bit unwind info blocks.
5370 (generate_unwind_image): Add support for different types
5371 of unwind images (32 bits and/or big-endian).
5372 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5373 (ia64_target_format): Add support for hpux target formats.
5374 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5375 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5376 SHT_FINI_ARRAY elf section types.
5378 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5380 * tc-arm.c (struct reg_entry): Move before prototypes.
5381 (int_register, cp_register, fp_register): Delete.
5382 (reg_table): Delete. Replaced with ...
5383 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5384 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5385 (mav_dspsc_table): ... one table per register set.
5386 (arm_reg_hsh): Delete.
5387 (struct reg_map): New structure.
5388 (all_reg_maps): New array.
5389 (enum arm_reg_type): New enums.
5390 (build_reg_hsh): New function.
5391 (insert_reg_alias): Use hash table passed by caller. Adjust all
5393 (create_register_alias): New function, split out from ...
5394 (md_assemble): ... here.
5395 (md_begin): Build new register hash tables.
5396 (arm_reg_parse): New argument for the hash table to search. Adjust all
5398 (arm_reg_parse_any): New function.
5399 (co_proc_number): Look up the processor number in the processor hash
5401 (cirrus_regtype): Delete.
5402 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5403 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5404 (ARM_EXT_MAVERICKsc_register): Delete.
5405 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5406 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5408 (do_c_triple_4, do_c_triple_5): Delete.
5409 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5410 (do_c_quad_6): Delete.
5411 (do_c_quad_6[ab]): New functions.
5412 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5413 arguments to use new register parsing methods.
5414 (cirrus_reg_required_here): Likewise.
5415 (insns): Reclassify cirrus maverick worker functions.
5416 (cirrus_valid_reg): Delete.
5418 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5420 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5421 (sh*-*-netbsdelf*): New target.
5422 * configure: Regenerate.
5423 * tc-sh.h: Update copyright years.
5424 (TARGET_FORMAT): Add version for TE_NetBSD.
5426 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5428 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5431 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5433 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5434 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5436 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5438 * tc-mips.c (mips_cprestore_valid): New flag.
5439 (mips_frame_reg_valid): New flag.
5440 (macro) [M_JAL_2]: Check both flags.
5441 [M_JAL_A]: Likewise.
5442 (s_cprestore): Set mips_cprestore_valid.
5443 (tc_get_register): If setting mips_frame_reg, set
5444 mips_frame_reg_valid and clear mips_cprestore_valid.
5445 (s_mips_ent): Clear both flags.
5446 (s_mips_end): Clear both flags.
5448 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5450 * write.c (write_object_file): Make use of bfd_section_list_remove.
5451 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5452 * config/tc-mmix.c (mmix_frob_file): Likewise.
5454 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5456 * configure.in (i386-*-netbsdelf*): Collapse target into...
5457 (i386-*-netbsd*): ...this. Add support for x86-64.
5458 * configure: Regenerated.
5460 2002-01-03 matthew green <mrg@redhat.com>
5462 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5464 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5466 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5469 For older changes see ChangeLog-0001
5475 version-control: never