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