1 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
3 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
4 symbol_used_in_reloc_p check.
5 (md_apply_fix3): Remove check for howto->pcrel_offset.
7 2003-05-03 H.J. Lu <hjl@gnu.org>
9 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
10 fatal error for unknown section attribute.
12 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
13 unknown section attribute.
14 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
15 * config/tc-ppc.c (ppc_section_letter): Likewise.
17 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
18 (ia64_elf_section_type): Accept "unwind".
20 2003-05-02 H.J. Lu <hjl@gnu.org>
22 * read.h (demand_copy_string): New.
24 * config/tc-alpha.c (demand_copy_string): Removed.
26 2003-05-02 Michael Snyder <msnyder@redhat.com>
28 * write.h (FAKE_LABEL_NAME): Allow override
29 (for targets that like eg. a leading dot in a local label).
31 2003-05-02 Nick Clifton <nickc@redhat.com>
33 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
34 addend with the symbol's value for pc-relative relocations against
35 a defined symbol - this will be done automatically.
37 2003-05-01 H.J. Lu <hjl@gnu.org>
39 * config/obj-elf.c (obj_elf_type): Accept "notype" and
42 2003-05-01 H.J. Lu <hjl@gnu.org>
44 * config/tc-ia64.h (tc_canonicalize_section_name): New.
46 * config/obj-elf.c (obj_elf_section_name): Call
47 tc_canonicalize_section_name if it is defined.
49 2003-05-01 H.J. Lu <hjl@gnu.org>
51 * config/tc-ia64.c (ia64_check_label): New.
52 * config/tc-ia64.h (tc_check_label): New.
54 * read.c (read_a_source_file): Call tc_check_label after
55 creating a user-defined label if defined.
57 2003-05-02 Alan Modra <amodra@bigpond.net.au>
59 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
60 -be and split strings to below 509 bytes in length.
62 2003-05-01 Christian Groessler <chris@groessler.org>
64 * expr.h: Fix comments in operatorT typedef.
65 * config/tc-z8k.c: Add 2003 to copyright message.
66 Fold s_segm() and s_unseg() into one function s_segm(parm) which
67 decides by the parameter.
68 (md_begin): Don't set linkrelax. Only set Z8002 default if no
69 command line argument was given to select the intended
71 (get_interrupt_operand): Warn if NOP type code is emitted.
72 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
73 (apply_fix): Call newfix with additional 'size' parameter.
74 (build_bytes): Remove unused variable 'nib'. Detect overflow in
75 4 bit immediate arguments.
76 (md_longopts): Add 'linkrelax' option.
77 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
78 variable when 'linkrelax' command line option is specified.
79 (md_show_usage): Display 'linkrelax' option.
80 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
82 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
84 2003-04-30 H.J. Lu <hjl@gnu.org>
86 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
87 (ia64_float_to_chars): Likewise.
88 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
89 and ia64_float_to_chars by tc_segment_info_data.endian from
90 the current segment if byteorder == -1.
91 (md_begin): Call dot_byteorder to set target_big_endian.
92 (md_atof): Call ia64_float_to_chars to convert floating point.
93 (ia64_float_to_chars_bigendian): New function.
94 (ia64_float_to_chars_littleendian): Likewise.
95 (ia64_elf_section_change_hook): Likewise.
97 * config/tc-ia64.h (ia64_number_to_chars): New.
98 (md_number_to_chars): Changed to (*ia64_number_to_chars)
99 (ia64_elf_section_change_hook): New.
100 (md_elf_section_change_hook): Defined.
101 (ia64_segment_info_type): New struct.
102 (TC_SEGMENT_INFO_TYPE): Defined.
104 2003-04-30 H.J. Lu <hjl@gnu.org>
106 * config/tc-ia64.c (md_section_align): Deleted.
108 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
109 (md_section_align): New.
111 2003-04-30 H.J. Lu <hjl@gnu.org>
113 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
115 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
117 (md_atof): Add 6 byte padding of zero for real16.
119 2003-04-29 Nick Clifton <nickc@redhat.com>
121 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
122 start of a version name.
124 2003-04-28 Chris Demetriou <cgd@broadcom.com>
126 * configure.in (mips-*-*n*bsd*): Replace with...
127 (mips-*-netbsd*, mips-*-openbsd*): These.
128 * configure: Regenerate.
130 2003-04-28 H.J. Lu <hjl@gnu.org>
132 * config/tc-hppa.c (hppa_symbol_chars): New.
133 * config/tc-hppa.h (tc_symbol_chars): Likewise.
135 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
137 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
139 2003-04-25 Chris Demetriou <cgd@broadcom.com>
141 * NEWS: Belatedly mention support for MIPS32 Release 2.
143 2003-04-24 Eric Christopher <echristo@redhat.com>
145 * config/tc-mips.c (nopic_need_relax): Revert previous
148 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
150 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
151 * config/tc-h8300.c (dwarf2dbg.h): Include
152 (md_pseudo_table): Handle .loc and .file
153 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
154 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
155 * Makefile.in: Regenerate.
157 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
159 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
160 (md_pseudo_table): Add h8300hn, h8300sn.
161 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
162 * doc/c-h8300.texi : Add documentation for new machine directives.
164 2003-04-24 Nick Clifton <nickc@redhat.com>
166 * config/tc-ppc.c (ppc_symbol_chars): Define.
167 * config/tc-ppc.h (tc_symbol_chars): Define.
169 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
171 * config/tc-sh.c: Amend comment to refer to SuperH.
172 * config/tc-sh.h: Likewise.
173 (LISTING_HEADER): Amend to refer to SuperH.
174 * config/tc-sh64.c: Change comment to refer to SuperH.
175 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
176 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
177 * doc/c-sh.texi: Amend to refer to SuperH.
178 Add SuperH architecture documentation references.
179 * doc/c-sh64.texi: Change to refer to SuperH.
181 2003-04-23 H.J. Lu <hjl@gnu.org>
183 * app.c (do_scrub_chars): More checks for valid labels.
185 2003-04-22 H.J. Lu <hjl@gnu.org>
187 * app.c (do_scrub_chars): Check for valid label.
189 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
191 * doc/as.texinfo: Replace references to Mitsubishi M32R with
192 references to Renesas M32R.
193 * doc/c-m32r.texi: Likewise.
195 2003-04-21 Richard Henderson <rth@redhat.com>
197 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
198 (out_file_list): Assign non-null filename after generating error.
200 2003-04-18 Jakub Jelinek <jakub@redhat.com>
202 * ehopt.c (check_eh_frame): For aug_size == 0
203 in state_seeing_aug_size state skip the state_skipping_aug
206 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
208 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
210 * doc/c-h8500.texi: Likewise.
211 * doc/c-sh.texi: Likewise.
212 * doc/c-sh64.texi: Likewise.
213 * doc/h8.texi: Likewise.
214 * config/tc-h8300.c: Likewise.
215 * config/tc-h8300.h: Likewise.
216 * config/tc-h8500.c: Likewise.
217 * config/tc-h8500.h: Likewise.
218 * config/tc-sh.c: Likewise.
219 * config/tc-sh.h: Likewise.
220 * config/tc-sh64.c: Likewise.
221 * config/tc-sh64.h: Likewise.
223 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
225 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
226 * config/tc-mips.c: Use signed add for n32 address arithmetic.
227 (append_insn): When filling delay slots with instructions
228 that have fixups that tc_gen_reloc might consider modifyable
229 in variant frags, start a new frag.
230 (load_address): Generate GOT_DISP with of without offset
231 depending on whether symbol is local. For -xgot, use
232 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
233 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
234 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
235 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
236 <ld_st>: In NewABI with small got, always use
237 GOT_PAGE/GOT_OFST, with the latter in the load/store
238 instruction. With big got, use GOT_HI16/GOT_LO16 or
240 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
241 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
242 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
243 (md_convert_frag): Use memmove for safe copying of overlapping
246 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
248 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
249 -mlong, -mshort-double and -mlong-double options; use table @code.
250 (M68HC11-Syntax): Update to document 68HC12 operands.
251 (M68HC11-Modifiers): New section for operand modifiers.
252 (M68HC11-Directives): New section for specific assembler directives.
253 (M68HC11-Branch): Fix Overfull hbox error.
255 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
257 * config/tc-mips.c (macro): Add comments explaining the rationale
260 2003-04-09 Chris Demetriou <cgd@broadcom.com>
262 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
263 constant address that Alexandre took out by accident. Reject
264 64-bit addresses that are not sign extensions of 32 bits only if
265 we don't support 64-bit address constants.
267 2003-04-09 Alan Modra <amodra@bigpond.net.au>
269 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
271 2003-04-08 Nick Clifton <nickc@redhat.com>
273 * as.c (perform_an_assembly_pass): If using cgen, call
275 * cgen.c (gas_cgen_begin): New function. If
276 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
277 otherwise call cgen_clear_signed_overflow_ok.
278 * cgen.h: Prototype gas_cgen_begin.
280 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
282 * write.c (write_relocs): Remove unused variable.
284 2003-04-06 Chris Demetriou <cgd@broadcom.com>
286 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
287 (macro): Use new macro to decide whether to emit constant address
288 as 32 or 64 bits if addresses are 32-bit wide but registers are
291 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
293 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
294 (M6811_OP_PAGE_ADDR): New internal define.
295 (get_operand): New modifier %page and %addr to obtain page and
296 address part of a far-function.
297 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
298 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
300 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
301 (find_opcode): Add comment.
302 (md_estimate_size_before_relax): Force relocation of
303 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
304 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
305 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
306 on the symbol itself so that DWARF2 strings are merged correctly.
308 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
310 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
311 default tic4x target format to 'coff2-tic4x'.
312 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
314 * config/tc-tic4x.h: Ditto
316 2003-04-03 Nick Clifton <nickc@redhat.com>
318 * NEWS: Mention support for Xtensa architecture.
320 2003-04-02 Philip Blundell <philb@gnu.org>
322 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
324 2003-04-02 Chris Demetriou <cgd@broadcom.com>
326 * config/tc-mips.c (macro2): Adjust implementation of
327 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
328 in the case where the source and destination registers
331 2003-04-01 Bob Wilson <bob.wilson@acm.org>
333 * Makefile.am (CPU_TYPES): Add xtensa.
334 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
335 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
336 (xtensa-relax.o): New target.
338 * Makefile.in: Regenerate.
339 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
340 extra_objects for xtensa targets.
341 * configure: Regenerate.
342 * write.c (write_object_file): Add new md_post_relax_hook.
343 * config/tc-xtensa.c: New file.
344 * config/tc-xtensa.h: Likewise.
345 * config/xtensa-istack.h: Likewise.
346 * config/xtensa-relax.c: Likewise.
347 * config/xtensa-relax.h: Likewise.
348 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
349 * doc/Makefile.in: Regenerate.
350 * doc/all.texi: Set new XTENSA variable.
351 * doc/as.texinfo: Set new Xtensa variable. Describe
352 Xtensa-specific options. Define line comment character for
353 Xtensa. Add Xtensa processors to list of ELF targets where
354 alignment is specified in bytes. Add new Xtensa-Dependent node.
355 Add acknowledgements for those contributing to the Xtensa port.
356 * doc/internals.texi: Describe new md_post_relax_hook.
357 * doc/c-xtensa.texi: New file.
360 2003-04-01 Nick Clifton <nickc@redhat.com>
361 Richard Earnshaw <rearnsha@arm.com>
363 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
364 (ARM_ARCH_IWMMXT): Simplify.
365 (insns): Place iwmmx instructions in correct place in table.
366 (arm_add_note): New function: Add a note entry to a .note section.
367 (md_begin): Make the default architecture be unknown.
368 Suppress the creation of an arm note section.
370 2003-03-26 Eric Christopher <echristo@redhat.com>
372 * config/tc-mips.c (nopic_need_relax): Check for
375 2003-03-25 Stan Cox <scox@redhat.com>
376 Nick Clifton <nickc@redhat.com>
378 Contribute support for Intel's iWMMXt chip - an ARM variant:
380 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
381 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
382 (enum wreg_type, enum iwmmxt_insn_type): New types.
383 (wr_register, wc_register, wcg_register): New macros.
384 (iwmmxt_table): New variable.
385 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
386 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
387 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
388 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
389 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
390 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
391 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
392 cp_byte_address_offset, cp_byte_address_required_here,
393 check_iwmmxt_insn): New functions.
394 (asm_opcode_insns): Add iWMMXt instructions.
395 (md_begin): Set the mach value for iWMMXt targets. Create a note
396 section to identify iwmmxt binaries.
397 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
398 * doc/c-arm.texi: Document the support for the iWMMXt.
399 * NEWS: Mention new support.
401 2003-03-24 Daniel Néri <dne@mayonnaise.net>
403 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
404 * doc/all.texi: Likewise.
405 * doc/c-tic54x.texi: Likewise.
407 2003-03-21 Andreas Schwab <schwab@suse.de>
409 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
410 avoid aliasing issue.
412 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
414 * config/tc-s390.c (s390_arch_size): Initialize to zero.
415 (current_arch_mask): Rename to current_mode_mask.
416 (current_arch_requested): Remove variable.
417 (current_cpu): New variable.
418 (init_default_arch): Set defaults values for s390_arch_size,
419 current_mode_mask and current_cpu.
420 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
421 (md_begin): Replace current_arch_mask by current_cpu.
422 (md_assemble): Adapt check and error message to current_mode_mask and
425 2003-03-09 James E Wilson <wilson@tuliptree.org>
427 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
428 * read.c (get_line_sb): Return end of line character or '\n' if
429 it is zero or non-existent.
431 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
433 * config/tc-mips.c (mips_validate_fix): New function.
434 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
435 (mips_validate_fix): Declare.
437 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
439 * Reverted 2003-03-02's patch.
441 2003-03-11 Steve Ellcey <sje@cup.hp.com>
443 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
444 (TC_DWARF2_EMIT_OFFSET): Provide default.
445 (out_debug_aranges, out_debug_info): Use it.
446 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
447 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
448 (ia64_gen_real_reloc_type): ... here.
449 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
451 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
453 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
454 (s_mips_ent): Likewise.
456 2003-03-04 Dmitry Diky <diwil@mail.ru>
458 * config/tc-msp430.c (mcu_types): Add recently announced x1122
459 and x1123 devices, add missed x437.
460 (md_show_usage): Sort device list.
462 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
464 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
465 (md_begin): Use preset_target_arch.
466 (md_longopts): Make isa option unconditional.
467 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
468 set preset_target_arch.
469 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
470 by -S_GET_VALUE (fixP->fx_subsy).
471 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
473 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
474 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
476 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
478 * config/tc-mips.c (append_insn): Add handling of
479 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
480 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
481 misaligned address and reange overflow.
482 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
483 earlier warnings about misaligned address and reange overflow.
484 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
485 (md_apply_fix): Likewise. Fix warning output.
486 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
487 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
488 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
490 2003-02-21 Nick Clifton <nickc@redhat.com>
492 * NEWS: Mention availability of test generator program.
494 2003-02-21 Miles Bader <miles@gnu.org>
496 * config/tc-v850.c (system_registers): Add v850e debug registers.
497 (system_register_name): Accept up to 27 (the last v850e sys register).
499 2003-02-21 Bob Wilson <bob.wilson@acm.org>
501 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
502 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
503 Capitalize section headings consistently. Format index entries more
504 consistently. Unconditionalize text about whether text and data
505 sections are alterable. Use @ifnottex for alternatives to @tex output
506 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
507 .size and .type directives. Be more polite about bad bug reports.
508 Move FDL into a separate file.
509 * doc/fdl.texi: New file.
511 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
513 * config/tc-mips.c (prev_reloc_op_frag): New variable.
514 (macro): Check it to decide whether a new frag is needed.
515 (my_getSmallExpression): Set it.
517 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
519 * cgen.c: Fix typo: intial -> initial.
521 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
523 * app.c (do_scrub_chars): Handle '||' in two states.
525 2003-02-13 Alan Modra <amodra@bigpond.net.au>
527 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
528 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
530 2003-02-11 Uwe Stieber <uwe@wwws.de>
532 * configure.in: Add support for kaOS as cross build target system.
533 * configure: Regenerated.
535 2003-02-10 Nick Clifton <nickc@redhat.com>
537 * config/tc-arm.c (md_begin): If the Maverick co-processor is
538 selected, set the EF_ARM_MAVERICK_FLOAT flag and
539 bfd_mach_arm_ep9312 machine number.
541 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
543 * config/tc-mips.c (reloc_needs_lo_p): New function.
544 (fixup_has_matching_lo_p): New function.
545 (append_insn): Use reloc_needs_lo_p to check whether a relocation
546 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
547 if that fixup already has a matching %lo(). Don't call frag_wane here.
548 (macro): Call frag_wane here if the last unmatched hi was in the
550 (pic_need_relax): New function, split out from...
551 (md_estimate_size_before_relax): ...here.
552 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
553 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
555 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
557 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
559 2003-02-06 Alan Modra <amodra@bigpond.net.au>
561 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
564 2003-02-05 Alan Modra <amodra@bigpond.net.au>
566 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
567 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
568 accept x@got+off etc.
569 (md_assemble): Handle TLS relocs.
570 (ppc_force_relocation): Force for all TLS relocs.
571 (ppc_fix_adjustable): Likewise.
572 (md_apply_fix3): Handle TLS relocs.
574 2003-02-04 Alan Modra <amodra@bigpond.net.au>
576 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
577 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
579 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
581 * config/tc-mips.c (enum small_ex_type): Remove.
582 (imm_unmatched_hi): Remove.
583 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
584 argument from calls to append_insn.
585 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
587 (macro_build): Update append_insn calls.
588 (mips16_macro_build, macro_build_lui): Likewise.
589 (mips_ip): Rework handling of small expressions. Move explicit
590 relocation handling into my_getSmallExpression. Assume that the
591 value of 'o' operands is zero if there is only one bracketed
593 (percent_op): Make constant. Record the BFD relocation code
594 associated with each operator.
595 (my_getSmallParser, my_getPercentOp): Remove.
596 (parse_relocation): New function.
597 (my_getSamllExpression): Rework. Fill in relocations here
598 rather than in mips_ip.
600 2003-01-29 Nick Clifton <nickc@redhat.com>
602 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
603 assembler's handling of # <linenum> "<filename>" directives work.
605 2003-01-28 Jakub Jelinek <jakub@redhat.com>
607 * dwarf2dbg.c: Include filenames.h.
608 (struct file_entry): Make filename const char *.
609 (dirs, dirs_in_use, dirs_allocated): New variables.
610 (get_filenum): Add NUM argument. Build directory table.
611 (dwarf2_where): Adjust caller.
612 (dwarf2_directive_file): Use get_filenum to allocate
613 slot in file and directory tables.
614 (dwarf2_directive_loc): Recreate full filename from
615 directory and filename part if needed for listing.
616 (out_file_list): Output directory table.
617 Output main source file dirname before its filename.
619 2003-01-28 Dmitry Diky <diwil@mail.ru>
621 * config/tc-msp430.c: Replace occurences of 'tolower' with
624 2003-01-27 David Mosberger <davidm@hpl.hp.com>
626 * config/tc-ia64.c (dot_vframesp): Correct error message.
627 (dot_vframepsp): Ditto.
629 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
631 * configure.in (em): Set to irix on all Irix systems.
632 * configure: Rebuilt.
633 * config/te-irix.h: New file.
634 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
635 whether to use Irix-specific 64-bit format.
637 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
639 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
641 2003-01-25 Jakub Jelinek <jakub@redhat.com>
643 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
644 (tc_gen_reloc): Handle TLS relocs.
645 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
646 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
648 * config/obj-elf.c (obj_elf_section_word): Handle tls.
649 (obj_elf_type): Handle tls_object.
651 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
653 * config/tc-s390.c (s390_tls_suffix): New function.
654 (elf_suffix_type): Add suffix enums for TLS relocations.
655 (s390_elf_suffix): Add suffix strings for TLS relocations.
656 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
658 (md_gather_operands): Map new instruction operand/elf suffix
659 combinations for TLS to bfd relocations.
660 (tc_s390_fix_adjustable): Add new TLS relocations.
661 (tc_s390_force_relocation): Likewise.
662 (md_apply_fix3): Likewise.
664 2003-01-24 Alan Modra <amodra@bigpond.net.au>
666 * as.h: Update copyright date.
667 * symbols.c: Likewise.
668 * config/tc-d10v.h: Likewise.
669 * config/tc-fr30.h: Likewise.
670 * config/tc-i960.h: Likewise.
671 * config/tc-mips.h: Likewise.
673 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
674 (MD_APPLY_SYM_VALUE): Move.
676 2003-01-23 Nick Clifton <nickc@redhat.com>
678 NEWS: Announce sh2e support.
682 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
684 * config/tc-sh.c (md_show_usage): Added sh2e next to
686 (sh_elf_final_processing): Handle arch_sh2e.
688 2003-01-23 Alan Modra <amodra@bigpond.net.au>
690 * symbols.c (S_FORCE_RELOC): Add "strict" param.
691 * symbols.h (S_FORCE_RELOC): Likewise.
692 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
693 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
694 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
695 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
696 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
697 * write.c (generic_force_reloc): New function.
698 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
699 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
700 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
701 * as.h (generic_force_reloc): Declare.
702 * doc/internals.texi (S_FORCE_RELOC): Update.
703 (TC_FORCE_RELOCATION_SUB_SAME): Update.
705 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
707 (alpha_fix_adjustable): Likewise.
708 * config/tc-arm.c (arm_force_relocation): Likewise.
709 * config/tc-cris.c (md_cris_force_relocation): Likewise.
710 * config/tc-frv.c (frv_force_relocation): Likewise.
711 * config/tc-i386.c (md_apply_fix3): Likewise.
712 * config/tc-ia64.c (ia64_force_relocation): Likewise.
713 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
714 * config/tc-m32r.c (m32r_force_relocation): Likewise.
715 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
716 * config/tc-mcore.c (mcore_force_relocation): Likewise.
717 * config/tc-mips.c (mips_force_relocation): Likewise.
718 * config/tc-mmix.c (mmix_force_relocation): Likewise.
719 * config/tc-ppc.c (ppc_force_relocation): Likewise.
720 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
721 * config/tc-sh.c (sh_force_relocation): Likewise.
722 (md_pcrel_from_section): Likewise.
723 * config/tc-sparc.c (tc_gen_reloc): Likewise.
724 * config/tc-v850.c (v850_force_relocation): Likewise.
725 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
726 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
727 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
728 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
730 * config/tc-d10v.c (d10v_force_relocation): Delete.
731 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
732 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
733 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
734 * config/tc-fr30.c (fr30_force_relocation): Delete.
735 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
736 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
737 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
738 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
739 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
740 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
741 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
742 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
743 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
744 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
745 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
746 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
747 * config/tc-i386.c (i386_force_relocation): Delete.
748 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
750 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
751 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
752 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
753 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
755 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
756 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
758 2003-01-23 Alan Modra <amodra@bigpond.net.au>
760 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
761 sh64_elf_section_data.
762 * config/tc-sh64.h: Include elf32-sh64.h.
763 * config/tc-m68hc11.c: Don't include stdio.h.
764 (md_show_usage): Fix missing continuation.
765 * Makefile.am: Run "make dep-am".
766 * Makefile.in: Regenerate.
768 2003-01-22 Nick Clifton <nickc@redhat.com>
770 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
772 2003-01-21 Fabio Alemagna <falemagn@aros.org>
774 * configure.in: Handle *-*-aros*.
775 * configure: Regenerated from configure.in.
777 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
779 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
780 gotplt and pltoff relocations.
781 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
782 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
783 gotplt and pltoff to bfd relocations.
784 (md_gather_operands): Map new instruction operand/elf suffix
785 combinations to bfd relocations.
786 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
787 to the list of unadjustable relocations.
788 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
789 and pltoff relocations.
790 (md_apply_fix3): Add the new relocations.
792 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
794 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
797 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
799 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
800 of relocs for memory bank addressing.
802 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
804 * config/tc-m68hc11.c (md_show_usage): Update usage.
805 (md_parse_option): Recognize -m68hcs12.
806 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
808 * doc/as.texinfo (Overview): Document new option -m68hcs12.
810 2003-01-16 Jakub Jelinek <jakub@redhat.com>
812 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
814 2003-01-16 Alan Modra <amodra@bigpond.net.au>
816 * Makefile.am: Run "make dep-am".
817 * Makefile.in: Regenerate.
818 * po/POTFILES.in: Regenerate.
820 2003-01-11 Alan Modra <amodra@bigpond.net.au>
822 * read.c (get_absolute_expr): New, split out from..
823 (get_absolute_expression): ..here.
824 * read.h (get_absolute_expr): Declare.
825 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
826 Trim size to arch bits_per_address, and test for negative input
827 via get_absolute_expr.
829 2003-01-07 DJ Delorie <dj@redhat.com>
831 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
833 (xstormy16_md_apply_fix3): Use adjustment.
835 2003-01-02 Ben Elliston <bje@redhat.com>
837 * configure.in: Add iq2000-elf target.
838 * configure: Regenerate.
839 * config/tc-iq2000.c: New file.
840 * config/tc-iq2000.h: Likewise.
841 * po/gas.pot: Regenerate.
843 2003-01-02 Chris Demetriou <cgd@broadcom.com>
845 * config/tc-mips.c: Update copyright years to include 2003.
846 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
847 Additionally, clean up their code slightly and clean up their
850 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
852 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
854 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
856 * doc/Makefile.in: Regenerate.
858 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
860 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
861 of .init and .fini sections for array initializers and finalizers.
863 2002-12-31 Chris Demetriou <cgd@broadcom.com>
865 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
866 the "+D" operand, which will be used only by the disassembler.
868 2002-12-30 Chris Demetriou <cgd@broadcom.com>
870 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
872 * configure: Regenerate.
873 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
874 (macro_build): Handle "K" operand.
875 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
876 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
877 (mips_ip): New variable "lastpos", and implement "+A", "+B",
878 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
879 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
880 (validate_mips_insn): Implement "+" as a way to extend the
881 allowed operands, and implement "K", "+A", "+B", and "+C"
883 (OPTION_MIPS32R2): New define.
884 (md_longopts): Add entry for OPTION_MIPS32R2.
885 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
886 (md_parse_option): Handle OPTION_MIPS32R2.
887 (s_mipsset): Reimplement handling of ".set mipsN" options
888 and add support for ".set mips32r2".
889 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
890 (md_show_usage): Document "-mips32r2" option.
891 * doc/as.texinfo: Document "-mips32r2" option.
892 * doc/c-mips.texi: Likewise.
894 2002-12-30 Dmitry Diky <diwil@mail.ru>
896 * configure.in: Add msp430 target.
897 * configure: Regenerate.
898 * Makefile.am: Add msp430 target.
899 * Makefile.in: Regenerate.
900 * config/tc-msp430.c: New file: msp430 assembler.
901 * config/tc-msp430.h: New file: target macros for msp430.
902 * doc/Makefile.am: Add msp430 target.
903 * doc/Makefile.in: Regenerate.
904 * doc/as.texinfo: Include msp430 documenation.
905 * doc/all.texi: Enable msp430 documentation.
906 * doc/c-msp430.texi: New file: document msp430 specific features
909 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
911 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
912 (dwarf2_finish): Use it.
913 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
914 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
916 2002-12-20 DJ Delorie <dj@redhat.com>
918 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
919 BFD_RELOC_XSTORMY16_12.
921 2002-12-19 Alan Modra <amodra@bigpond.net.au>
923 * doc/as.texinfo (Invoking): Typo fix.
924 * config/tc-tic54x.c (encode_operand): Comment typo fix.
926 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
928 * doc/c-alpha.texi: Fix typos.
929 * doc/c-arm.texi: Likewise.
930 * doc/c-d10v.texi: Likewise.
931 * doc/c-i370.texi: Likewise.
932 * doc/c-i960.texi: Likewise.
933 * doc/c-ia64.texi: Likewise.
934 * doc/c-mmix.texi: Likewise.
935 * doc/c-ns32k.texi: Likewise.
936 * doc/c-pdp11.texi: Likewise.
937 * doc/c-pj.texi: Likewise.
938 * doc/c-sh64.texi: Likewise.
939 * doc/c-sparc.texi: Likewise.
940 * doc/c-tic54x.texi: Likewise.
941 * doc/c-v850.texi: Likewise.
942 * doc/c-vax.texi: Likewise.
943 * doc/internals.texi: Likewise.
945 2002-12-18 Chris Demetriou <cgd@broadcom.com>
947 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
948 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
949 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
950 arrange not to issue warnings about use of AT when AT is not
953 2002-12-17 Nick Clifton <nickc@redhat.com>
955 * as.c (std_longopts): Duplicate --keep-locals entry in order to
956 prevent it being confused with -k.
958 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
960 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
961 has already been set up, use it.
963 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
965 * ChangeLog-9295: Fix a typo.
967 * config/tc-d10v.c: Fix a comment typo.
968 * config/tc-dlx.c: Likewise.
969 * config/tc-h8300.h: Likewise.
970 * config/tc-h8500.h: Likewise.
971 * config/tc-mips.c: Likewise.
972 * config/tc-s390.c: Likewise.
973 * config/tc-sh.h: Likewise.
974 * config/tc-tic80.h: Likewise.
975 * config/tc-w65.h: Likewise.
976 * config/tc-z8k.c: Likewise.
977 * config/tc-z8k.h: Likewise.
978 * testsuite/gas/h8300/cmpsi2.s: Likewise.
980 2002-12-16 Alan Modra <amodra@bigpond.net.au>
982 * config/tc-d30v.c (check_range): Warning fixes, formatting.
983 Simplify sign extension. Remove redundant unsigned < 0 test.
984 * config/tc-i960.c (md_ri_to_chars): Prototype.
985 * config/tc-mcore.c (md_pseudo_table): Fix typo.
986 (dump_literals): Init brarsym, and test later instead of isforce.
988 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
989 (parse): Constify line and lineptr.
990 (md_begin): Calculate endop here.
992 2002-12-13 Alan Modra <amodra@bigpond.net.au>
994 * config/obj-vms.c: Formatting. Include fnctl.h.
995 (Create_VMS_Object_File): Fix creat call for sane unix systems.
996 (Object_Record_Offset): Make it a size_t.
997 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
998 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
999 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1000 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1001 (vms_fixup_data_section <data_size>): Add here instead.
1002 * config/e-criself.c: Fix typo in last change.
1004 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1006 * write.c (write_object_file): Fix signed/unsigned warning.
1007 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1008 * config/e-criself.c (criself_bfd_name): Prototype.
1009 * config/obj-aout.c (s_sect): Remove unused function.
1010 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1011 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1012 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1013 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1014 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1015 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1016 (vms_fixup_text_section <text_siz>): Likewise.
1017 (synthesize_data_segment <data_size>): Likewise.
1018 (vms_fixup_xtors_section <sect_no>): Likewise.
1019 (structure_count): Don't use implicit int type.
1020 * config/tc-a29k.c (insert_sreg): Prototype.
1021 (define_some_regs): Prototype, make static.
1022 (parse_operand): Likewise.
1023 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1024 (md_show_usage <stream>): Likewise.
1025 (md_section_align <segment>): Likewise.
1026 (md_convert_frag <all args>): Likewise.
1027 (md_estimate_size_before_relax <all args>): Likewise.
1028 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1029 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1030 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1031 (md_undefined_symbol <name>): Likewise.
1032 (md_convert_frag <all args>): Likewise.
1033 (write_long <opcode>): Likewise.
1034 (tc_gen_reloc <seg>): Likewise.
1035 (md_estimate_size_before_relax <all args>): Likewise.
1036 (md_apply_fix3 <seg>): Likewise.
1037 (s_d30v_align <ignore>): Likewise.
1038 (build_insn): Correct format string.
1039 (md_apply_fix3): Likewise.
1040 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1041 (md_undefined_symbol <name>): Likewise.
1042 (md_convert_frag <all args>): Likewise.
1043 (md_cgen_lookup_reloc <insn>): Likewise.
1044 (md_begin): Delete unused vars.
1045 (md_assemble): Likewise.
1046 (md_estimate_size_before_relax): Likewise.
1047 (fr30_relax_frag): #if 0 out, seems unused.
1048 (md_atof): Remove declaration of atof_ieee.
1049 (restore_colon): Prototype.
1050 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1051 (frv_find_in_vliw): Likewise.
1052 (frv_debug_tomcat): Likewise.
1053 (frv_adjust_vliw_count): Likewise.
1054 (frv_tomcat_shuffle): Likewise.
1055 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1056 frv_find_in_vliw call.
1057 (md_atof): Remove declaration of atof_ieee.
1058 * config/tc-h8500.c (cons): Delete declaration.
1059 (md_begin <opcode>): Constify.
1060 (displacement_size, immediate_size, absolute_size): Remove.
1061 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1062 (tc_crawl_symbol_chain <headers>): Likewise.
1063 (md_undefined_symbol <name>): Likewise.
1064 (tc_headers_hook <headers>): Likewise.
1065 (md_parse_option <c,arg>): Likewise.
1066 (md_show_usage <stream>): Likewise.
1067 (md_convert_frag <headers, seg>): Likewise.
1068 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1069 (md_atof): Remove declaration of atof_ieee.
1070 (tc_aout_fix_to_chars): Remove unused function.
1071 (parse_reg): Prototype.
1072 (parse_exp): Prototype.
1073 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1074 (parse_reglist): Prototype.
1075 (get_operand): Prototype.
1076 (get_operands): Prototype.
1077 (get_specific): Prototype. Make "this_index" signed.
1078 (check): Prototype, make static.
1080 (build_relaxable_instruction): Prototype, make static.
1081 (build_bytes): Prototype.
1082 (wordify_scb): Prototype.
1083 * config/tc-h8500.h (start_label): Declare.
1084 (tc_coff_sizemachdep): Declare.
1085 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1086 (i370_rmode <unused>): Likewise.
1087 (i370_csect <unused>): Likewise.
1088 (i370_dc <unused>): Likewise.
1089 (i370_ds <unused>): Likewise.
1090 (i370_elf_lcomm <unused>): Likewise.
1091 (i370_ltorg <ignore>): Likewise.
1092 (i370_using <ignore>): Likewise.
1093 (i370_drop <ignore>): Likewise.
1094 (i370_byte <ignore>): Likewise.
1095 (i370_tc <ignore>): Likewise.
1096 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1097 (md_convert_frag <all args>): Likewise.
1098 (md_undefined_symbol <name>): Likewise.
1099 (md_pcrel_from_section <sec>): Likewise.
1100 (tc_gen_reloc <seg>): Likewise.
1101 (i370_section_letter): #if 0 unused functions.
1102 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1103 (symbol_locate): Prototype.
1104 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1105 (md_number_to_disp, md_number_to_field): Remove.
1106 (md_apply_fix3): Correct format string and cast "fup".
1107 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1108 (s_endian <ignore>): Likewise.
1109 (md_undefined_symbol <name>): Likewise.
1110 (tc_crawl_symbol_chain <headers>): Likewise.
1111 (tc_set_bal_of_call): Likewise.
1112 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1113 (i960_handle_align <fragp>): Likewise.
1114 (i960_validate_fix <this_segment_type>): Likewise
1115 (tc_gen_reloc <section>): Likewise.
1116 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1117 (struct memS, struct regop): Forward declare.
1118 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1119 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1120 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1121 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1122 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1123 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1124 (md_number_to_field): Likewise.
1125 (md_number_to_disp): Remove unused function.
1126 (md_atof): Remove declaration of atof_ieee.
1127 (md_apply_fix3): Correct md_number_to_imm call.
1128 * config/tc-ip2k.c (md_assemble): Warning fix.
1129 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1130 (fill_insn <ignore>): Likewise.
1131 (debug_sym <ignore>): Likewise.
1132 (md_undefined_symbol <name>): Likewise.
1133 (m32r_scomm <ignore>): Likewise.
1134 (md_convert_frag <abfd>): Likewise.
1135 (md_cgen_lookup_reloc <insn>): Likewise.
1136 (m32r_record_hi16 <seg>): Likewise.
1137 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1138 (allow_m32rx): Prototype.
1139 (first_writes_to_seconds_operands): Prototype.
1140 (writes_to_pc): Prototype.
1141 (can_make_parallel): Prototype.
1142 (make_parallel): Prototype.
1143 (target_make_parallel): Prototype.
1144 (assemble_two_insns): Prototype.
1145 (m32r_record_hi16): Prototype.
1146 (md_atof): Remove declaration of atof_ieee.
1147 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1148 (m32r_force_relocation): Prototype.
1149 (m32r_elf_section_change_hook): Prototype.
1150 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1151 (md_show_usage): Fix signed/unsigned warning.
1152 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1153 (calcop): Ditto for reg_prefix var.
1154 (hexval): Add cast to fix signed/unsigned warning.
1155 (md_number_to_disp): Delete unused function.
1156 (md_number_to_field): Likewise.
1157 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1158 (match_name): Prototype.
1159 (get_bf2): Prototype.
1160 (get_bf_offset_expression): Prototype.
1161 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1162 (md_undefined_symbol <ignore>): Likewise.
1163 (md_create_short_jump <all args>): Likewise.
1164 (md_create_long_jump <all args>): Likewise.
1165 (md_convert_frag <abfd, sec>): Likewise.
1166 (md_apply_fix3 <segment>): Likewise.
1167 (md_section_align <segment>): Likewise.
1168 (md_pcrel_from_section <sec>): Likewise.
1169 (tc_gen_reloc <section>): Likewise.
1170 (reg_m, reg_n, immediate): Delete unused vars.
1171 (dump_literals): Fix signed/unsigned warning.
1172 (enter_literal): Likewise.
1173 (parse_imm): Likewise. Also fix format string.
1174 (parse_mem): Remove unused var.
1175 (md_assemble <LS>): Abort on unexpected inst.
1176 (md_atof): Remove declaration of atof_ieee.
1177 (md_parse_option): Remove unused vars.
1178 (md_apply_fix3): Fix format strings, cast args.
1179 (tc_gen_reloc): Delete unused var.
1180 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1181 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1182 (md_undefined_symbol <name>): Likewise.
1183 (md_convert_frag <abfd>): Likewise.
1184 (tc_gen_reloc <seg>): Likewise.
1185 (check_operand <insn>): Likewise.
1186 (md_convert_frag): Fix format strings.
1187 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1188 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1189 (md_atof): Remove declaration of atof_ieee.
1190 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1191 (md_apply_fix3): Fix bogus >>='s.
1192 (md_undefined_symbol): Delete unused var.
1193 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1194 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1195 (fake_opcode): Adjust for pj_opc_int_t change.
1196 (md_begin): Likewise.
1197 (md_assemble): Likewise.
1198 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1199 instead of non-existent third arg of parse_exp_save_ilp.
1200 (md_parse_option): Correct "little" and "big" calls.
1201 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1202 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1203 (tc_gen_reloc <section>): Likewise.
1204 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1205 (debug): Rewrite using VA_* macros.
1206 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1207 (md_convert_frag): Likewise.
1208 (md_parse_option): Likewise.
1209 (md_show_usage): Likewise.
1210 (md_undefined_symbol): Likewise.
1211 (tc_gen_reloc): Likewise.
1212 (md_operand): Likewise.
1213 (tc_aout_pre_write_hook): Delete.
1214 (struct tic30_insn): Make "operands" unsigned.
1215 (struct tic30_par_insn): Likewise.
1216 (md_assemble): Likewise for "count", "i" and "numops".
1217 (tic30_parallel_insn): Likewise for vars here.
1218 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1219 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1220 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1221 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1222 (md_undefined_symbol): Likewise.
1223 (md_parse_option): Likewise.
1224 (md_convert_frag): Likewise.
1225 (tc_coff_symbol_emit_hook): Likewise.
1226 (md_atof): Remove declaration of atof_ieee.
1227 (const_overflow): Warning fixes, tidy.
1228 (get_operands): Delete unused vars.
1229 (internal_error_a): Adjust format string to expect a long for arg.
1230 (find_opcode): Warning fixes, simplify.
1231 (build_insn): Cast internal_error_a arg.
1232 (md_begin): Likewise.
1233 (md_apply_fix3): Likewise.
1234 (md_assemble): Delete unused var.
1235 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1236 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1237 (whatreg, parse_reg, parse_exp): Make static, prototype.
1238 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1239 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1240 (get_operand, get_operands, get_specific, newfix): Likewise.
1241 (apply_fix, build_bytes): Likewise.
1242 (md_atof): Remove declaration of atof_ieee.
1243 (tc_aout_fix_to_chars): Delete.
1244 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1246 (md_parse_option): Fix s_segm and s_unseg calls.
1248 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1250 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1252 (RELAX_BRANCH_RELOC_S2): Delete.
1253 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1254 Do not handle BFD_RELOC_16_PCREL.
1255 (macro_build, mips_ip): Likewise.
1256 (md_pcrel_from): Return 4 for undefined symbols regardless of
1258 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1259 Don't dereference howto if no such relocation is available.
1260 Do not apply hack for in-place zero addend in NEWABI.
1261 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1263 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1264 Alan Modra <amodra@bigpond.net.au>
1266 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1267 (TC_LINKRELAX_FIXUP): Add comments.
1269 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1271 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1273 (r_register_name, xr_register_name): Add prototype declarations.
1275 2002-12-08 H.J. Lu <hjl@gnu.org>
1277 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1278 copied from tc-i386.c.
1280 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1282 Fix Bug savannah/1825:
1283 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1284 (md_relax_table): Define specific relax for PC-rel offsets.
1285 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1286 (m68hc11_relax_frag): Handle the new relax code.
1287 (md_convert_frag): Likewise.
1288 (md_estimate_size_before_relax): Likewise.
1290 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1292 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1294 2002-12-05 Richard Henderson <rth@redhat.com>
1296 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1297 (ia64_gen_real_reloc_type): Handle it.
1298 (pseudo_func): Add @ltoffx.
1299 (md_begin): Build .<ltoffx>.
1300 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1302 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1304 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1305 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1306 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1307 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1308 COFF to call arm_force_relocation.
1310 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1312 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1314 (emit_one_bundle): Handle "hint" instruction.
1315 (operand_match): Match IA64_OPND_AR_CSD.
1317 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1319 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1322 2002-12-03 Nick Clifton <nickc@redhat.com>
1324 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1325 .PPC.EMB.apuinfo sections.
1327 2002-12-03 Richard Henderson <rth@redhat.com>
1329 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1331 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1333 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1334 (cons, s_align_bytes): Delete declaration.
1336 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1338 (dot): Delete unused function.
1339 (w65_expression): Remove unused arg.
1340 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1342 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1344 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1346 (check): Remove unused function.
1347 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1348 on unhandled switch case.
1349 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1351 (tc_crawl_symbol_chain): Delete unused function.
1352 (tc_headers_hook): Likewise.
1353 (tc_Nout_fix_to_chars): Likewise.
1354 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1355 (md_parse_option): Likewise.
1356 (md_convert_frag): Likewise.
1357 (tc_coff_symbol_emit_hook): Likewise.
1358 (md_show_usage): Likewise.
1359 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1360 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1361 (w65_expression): Declare.
1363 * po/POTFILES.in: Regenerate.
1365 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1366 and ARM_ADRL_IMMEDIATE.
1368 2002-12-02 Nick Clifton <nickc@redhat.com>
1370 * gasp.c: Delete. It has been deprecated.
1371 * NEWS: Mention that gasp has been removed.
1372 * Makefile.am: Remove references to gasp.
1373 * makefile.vms: Likewise.
1374 * mpw-make.sed: Likewise.
1375 * Makeile.in: Regenerate.
1376 * doc/gasp.texi: Delete.
1377 * doc/Makefile.am: Remove references to gasp.texi.
1378 * doc/Makefile.in: Regenerate.
1379 * macro.c: Delete references to gasp.
1380 Remove use of comment_char function parameter as it is no longer
1382 * macro.h: Update prototypes to remove comment_char parameter.
1384 * read.c (read_a_source_file, s_irp): Remove comment_char
1385 parameter from invocation of functions in macro.c
1387 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1389 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1391 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1393 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1394 (tc_gen_reloc): Mark section param as not used.
1396 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1398 Fix Bug savannah/1825:
1399 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1400 that are not pc-relative.
1401 (m68hc11_relax_frag): Declare.
1403 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1404 the offsetable indexed addressing modes (n,r).
1405 (build_insn): Cleanup some locals.
1406 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1407 relaxation of difference between two symbols of same section.
1408 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1409 only when this is a PC-relative operand and the offset is not absolute.
1410 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1411 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1412 be handled by m68hc11_relax_frag.
1414 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1416 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1417 (32-bit int, 64-bit double).
1418 (md_longopts): New options -mshort, -mlong, -mshort-double and
1419 -mlong-double to control the ABI.
1420 (md_show_usage): Update.
1421 (md_parse_option): Handle new options.
1422 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1424 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1426 * symbols.c (report_op_error): New function, broken out of ...
1427 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1430 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1432 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1433 for BFD_RELOC_32_PLT_PCREL.
1435 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1437 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1438 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1439 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1440 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1441 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1442 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1443 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1444 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1445 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1446 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1447 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1448 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1449 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1450 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1451 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1452 TRUE/FALSE. Formatting.
1454 2002-11-29 Nick Clifton <nickc@redhat.com>
1456 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1457 assume a value of zero.
1458 (do_bkpt): Likewise.
1460 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1462 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1463 for TLS relocations.
1465 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1467 * config/tc-ia64.c (md_apply_fix3): Add default case.
1469 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1471 * symbols.c (S_SET_THREAD_LOCAL): New function.
1472 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1473 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1474 for TLS relocations.
1475 * config/tc-ia64.c (md_apply_fix3): Likewise.
1476 * config/tc-alpha.c (md_apply_fix3): Likewise.
1478 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1480 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1483 2002-11-26 DJ Delorie <dj@redhat.com.
1485 * dwarf2dbg.c (scale_addr_delta): New.
1486 (size_inc_line_addr): Use it.
1487 (emit_inc_line_addr): Use it.
1489 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1491 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1492 (md_assemble): Don't pass on branches to constants as relaxable.
1495 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1497 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1499 2002-11-21 Randolph Chung <randolph@tausq.org>
1501 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1502 only if they have default visibility.
1504 2002-11-21 Richard Henderson <rth@redhat.com>
1506 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1509 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1511 * config/tc-mcore.c (mcore_pool_count): New function.
1512 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1514 2002-11-20 Klee Dienes <kdienes@apple.com>
1516 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1517 coalesce the name fields to use the same pointer.
1519 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1520 the name fields to use the same pointer.
1521 (get_specific): Check for opcodes with the same name using strcmp
1522 as well as comparing the pointer.
1524 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1526 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1529 2002-11-19 Richard Henderson <rth@redhat.com>
1531 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1532 visibility portion of st_other.
1534 2002-11-19 Klee Dienes <kdienes@apple.com>
1536 * config/tc-h8300.c (struct h8_instruction): New type, used to
1537 wrap h8_opcodes with length, noperands, idx, and size fields
1538 (computed at run-time).
1539 (h8_instructions): New variable.
1540 (md_begin): Allocate the storage for h8_instructions. Fill
1541 h8_instructions with pointers to the appropriate opcode and the
1542 correct value for the additional fields.
1543 (clever_message): Update to use h8_instructions instead of
1545 (build_bytes): Ditto.
1546 (get_specific): Ditto.
1547 (md_assemble): Ditto.
1549 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1551 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1552 adjustments to symbols in merge sections.
1554 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1556 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1558 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1560 * dwarf2dbg.h (dwarf2_format): New enum.
1561 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1562 (out_debug_line, out_debug_info): Add code for handling 64-bit
1564 * config/tc-mips.h (mips_dwarf2_format): Declare.
1565 * config/tc-mips.c (mips_dwarf2_format): New function.
1566 * doc/internals.texi (DWARF2_FORMAT): Document.
1568 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1570 * config/tc-mips.c (s_change_section): Make sure input buffer
1571 is not accessed past the end. Don't hand
1572 obj_elf_change_section a pointer into the input buffer.
1574 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1576 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1579 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1581 * config/tc-tic4x.c: Fixed proper commandline
1582 parameters. Added support for new opcode-list format. General
1583 error message fixups.
1584 (c4x_inst_add): Reject insn not for our CPU
1585 (md_begin): Added matrix for setting the proper opcode-level &
1586 device-flags according to cpu type and revision. Rewrite the
1588 (c4x_operand_parse): Fix opcode bug
1589 (c4x_operands_match): New function argument. Added dry-run
1590 mechanism, that is optional error generation. Added constraint 'i'
1592 (c4x_insn_check): Added new function for post-verification of the
1594 (md_assemble): Check all opcodes before croaking because of an
1595 argument mismatch. Need this to be able to fully support
1596 ortogonally arguments.
1597 (md_parse_options): Revised commandprompt swicthes and added new
1599 (md_show_usage): Complete rewrite of printout.
1601 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1603 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1604 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1605 warning when using constant direct bigger than 2^16. Add the new
1608 2002-11-11 Christopher Faylor <cgf@redhat.com>
1610 * configure.in: Use .gdbinit under Cygwin.
1611 * configure: Regenerate.
1613 2002-11-11 Christopher Faylor <cgf@redhat.com>
1615 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1618 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1620 * config/tc-tic4x.c: Declare as many functions as possible as
1621 static. Maintenance on the general indenting. Removed unnecessary
1622 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1623 function. Add support for new DSP, TMS320VC33. Fix bug for
1624 converting flonum constants.
1625 (c4x_do_align): Add proper align handling. Setup align to insert
1627 (c4x_gen_to_words): Support for extended TI type floats.
1628 (md_atof): Proper dumping of multiple-word littlenums.
1629 (c4x_atof): Added support for extended TI type floats.
1630 (c4x_stringer): Added new function to handle compact strings.
1631 (c4x_emit_char): Added new function argument to handle custom
1632 length inserts, like single-byte strings.
1633 * config/tc-tic4x.h: Add proper align handling with NOP's.
1634 * Makefile.am: Added tic4x dependecy
1635 * Makefile.in: Regenerate
1637 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1639 * macro.c (get_any_string): Correct logic for not going beyond end
1642 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1644 * config/tc-mmix.c (get_putget_operands): Mark both possible
1645 operands as invalid at beginning.
1647 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1648 Initialize target of fixup to zero.
1650 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1652 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1653 NEWABI, but we should still emit HI16_S for non-PIC n32.
1655 2002-11-06 Richard Henderson <rth@redhat.com>
1657 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1658 (alpha_fix_adjustable): ... here.
1659 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1661 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1663 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1666 2002-11-05 H.J. Lu <hjl@gnu.org>
1668 * config/tc-mips.c (support_64bit_objects): Check *l before it
1671 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1673 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1674 SEC_LOAD flags for sections marked as 's'.
1676 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1678 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1679 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1680 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1683 * dep-in.sed: Fix typo.
1685 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1687 * configure.in: Update ARM CPU patterns.
1688 * configure: Regenerated.
1690 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1692 * itbl-lex.l: Use #include <> for generated headers.
1693 * itbl-ops.c: Likewise.
1695 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1697 * doc/gasp.texi: Fix typo in deprecation note.
1699 2002-10-23 Nick Clifton <nickc@redhat.com>
1701 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1702 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1704 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1706 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1707 (tc_frob_file_before_adjust): Don't define.
1708 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1710 (mmix_frob_file_before_adjust): Remove ineffective function.
1712 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1714 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1715 (cris_relax_frag): New function.
1716 (md_estimate_size_before_relax) <case ENCODE_RELAX
1717 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1718 expressions that will become absolute expressions to relaxation.
1719 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1720 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1721 value, not distance to symbol.
1722 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1723 Ditto. Correct placement of fixup.
1724 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1726 * config/tc-cris.h (cris_relax_frag): Declare.
1727 (md_relax_frag): Define.
1729 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1731 * config/obj-elf.c (special_sections): Use correct types for init
1733 (obj_elf_change_section): Don't mess with init array section type.
1735 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1737 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1738 for relocs against symbols in a merged section.
1740 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1742 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1743 table as register names.
1745 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1747 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1750 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1752 * expr.c (operand): Add support for n.nn flonums.
1754 2002-10-17 Johannes Stezenbach <js@convergence.de>
1756 * itbl-parse.y (entry): Provide empty action.
1758 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1760 * configure.in (BFDVER_H): Set and subst.
1761 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1762 * Makefile.am: Run "make dep-am".
1764 * configure: Regenerate.
1765 * Makefile.in: Regenerate.
1766 * doc/Makefile.in: Regenerate.
1768 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1770 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1771 (MD_APPLY_SYM_VALUE): Define for PE too.
1773 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1775 * Makefile.am: Run "make dep-am".
1776 (CPU_OBJ_VALID): sh64 coff is invalid.
1777 * as.c: #include "bfdver.h".
1778 * Makefile.in: Regenerate.
1779 * config.in: Regenerate.
1781 2002-10-14 Momchil Velikov <velco@fadata.bg>
1783 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1785 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1787 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1788 * configure: Regenerate.
1790 2002-10-13 Eric Christopher <echristo@redhat.com>
1791 Alexandre Oliva <aoliva@redhat.com>
1793 * config/tc-mips.c (s_gpdword): New function.
1794 (mips_pseudo_table): Add .gpdword.
1795 (mips_need_elf_addend_fixup): never for NEWABI.
1796 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1798 (s_cpadd): Generate .cpadd on NEWABI.
1800 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1802 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1804 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1806 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1807 (md_relax_frag): Adjust macro.
1808 * config/tc-mips.c (mips_relax_branch): New variable.
1809 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1810 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1811 (RELAX_MIPS16_P): Adjust.
1812 (append_insn): Emit branch to non-constant in a frag_var if
1813 branch-relaxation is desirable and possible.
1814 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1815 (OPTION_ELF_BASE): Adjust.
1816 (md_parse_option): Handle new options.
1817 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1819 (relaxed_branch_length): New function.
1820 (md_estimate_size_before_relax): Handle branch frags.
1821 (mips_relax_frag): Likewise.
1822 (md_convert_frag): Handle branch frags. Warn if branch is
1825 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1827 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1829 (md_apply_fix3): Add TLS relocs.
1830 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1833 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1834 Alan Modra <amodra@bigpond.net.au>
1836 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1837 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1839 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1841 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1844 2002-10-09 Richard Shann <richard.shann@superh.com>
1845 Stephen Clarke <stephen.clarke@superh.com>
1847 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1850 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1852 * contig/tc-sh.c (sh_local_pcrel): New.
1853 (sh_force_relocation): Use sh_local_pcrel.
1854 (md_pcrel_from_section): Check the relocation type whether it
1855 should be resolved locally. Use S_FORCE_RELOC.
1857 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1859 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1860 (TC_FORCE_RELOCATION): Tidy arg.
1862 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1863 Ken Raeburn <raeburn@cygnus.com>
1864 Aldy Hernandez <aldyh@redhat.com>
1865 DJ Delorie <dj@redhat.com>
1866 Michael Meissner <meissner@redhat.com>
1867 Eric Christopher <echristo@redhat.com>
1868 Richard Sandiford <rsandifo@redhat.com>
1870 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1871 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1872 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1873 (hilo_interlocks): True for CPU_VR5500.
1874 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1875 (mips_fix_vr4122_bugs): New.
1876 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1877 (mips_emit_delays): Likewise.
1878 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1879 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1880 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1881 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1882 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1883 (OPTION_ELF_BASE): Bump.
1884 (md_parse_option): Handle the new options.
1885 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1888 2002-09-29 H.J. Lu <hjl@gnu.org>
1890 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1891 twice if howto->pcrel_offset is true.
1893 2002-09-28 Matt Thomas <matt@3am-software.com>
1894 Jason Thorpe <thorpej@wasabisystems.com>
1896 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1897 convert undefined references to GOT32/PLT32 if PIC code is
1898 requested. Fix comment.
1900 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1902 * config/tc-sh.c (sh_force_relocation): Return 0 for
1903 some PC relative relocations when not relaxing.
1905 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1907 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1908 Define them if not BFD_ASSEMBLER.
1909 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1911 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1912 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1913 (tc_gen_reloc): Handle x86-64 TLS relocs.
1915 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1917 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1918 fixups to current or absolute section.
1920 2002-09-26 Jim Wilson <wilson@redhat.com>
1922 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1925 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1927 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1928 capable configuration.
1929 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1931 (mips_ip): Likewise.
1933 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1935 * config/tc-mips.c (append_insn): Fix jump overflow check.
1937 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1939 * config/tc-i386.c (process_operands): Warn about "lea" segment
1942 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1944 * write.c: Delete set_segment_vma and prototype. Update all callers.
1946 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1948 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1949 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1950 Rename "fseg" to "sym_seg".
1951 * Makefile.am: Run "make dep-am".
1952 * Makefile.in: Regenerate.
1953 * doc/Makefile.in: Regenerate.
1955 2002-09-20 Nick Clifton <nickc@redhat.com>
1957 * symbols.c (colon): Do not allow symbols to be created in the
1958 absolute section if WORKING_DOT_WORD is not defined and
1959 new_broken_words would require a new frag to be created.
1961 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1963 * expr.c (expr): Simplify foo-foo here.
1964 (clean_up_expression): Remove O_subtract code.
1966 * write.h (struct fix): Add fx_dot_value.
1967 (dot_value): Declare.
1968 * write.c (dot_value): New var.
1969 (fix_new_internal): Save dot_value as fx_dot_value.
1970 (fixup_segment): Adjust fx_offset using fx_dot_value.
1971 * expr.c (expr): Update dot_value.
1973 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1975 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1976 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1977 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1979 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1980 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1981 BFD_RELOC_386_TLS_GOTIE.
1983 2002-09-19 Richard Henderson <rth@redhat.com>
1985 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1987 (alpha_force_relocation): Don't special-case branch type relocs.
1989 2002-09-19 Nick Clifton <nickc@redhat.com>
1991 * config/tc-m68k.c (select_control_regs): Handle situation where
1992 architecture has not yet been selected.
1994 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1996 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1997 (IS_SEXT_16BIT_NUM): New macro.
1998 (macro_build_ldst_constoffset): New function, to build a set of
1999 instructions to do a load or store from a constant offset relative
2000 to a given register.
2001 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2002 .cprestore pseudo-op.
2004 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2006 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2008 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2010 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2012 2002-09-17 Stan Cox <scox@redhat.com>
2014 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2015 (macro): Likewise for la. Likewise for ld.
2016 (mips_after_parse_args): Make -xgot optional, not the default.
2017 (md_apply_fix3): Allow composite relocation to set up gp.
2018 (tc_gen_reloc): Allow relaxing for newabi.
2019 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2020 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2022 2002-09-17 Nick Clifton <nickc@redhat.com>
2024 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2025 BFD_RELOC_ARM_IMMEDIATE has been done.
2026 (tc_gen_reloc): Do not issue reloc number of unimplemented
2027 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2028 their name is already in the error message - plus remove them
2029 from the default case.
2031 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2032 behavior of instructions.
2034 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2036 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2037 Convert functions to K&R format.
2039 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2041 * config/tc-mips.c (pdr_seg): Define only for ELF.
2042 (s_change_section): Remove unused variable. Don't use for nonELF.
2044 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2046 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2048 * config/obj-elf.h (obj_elf_change_section): Likewise.
2050 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2052 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2053 (out_debug_info): Likewise.
2055 2002-09-16 Bruno Haible <bruno@clisp.org>
2057 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2058 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2059 * config/tc-i386.c (i386_target_format): Likewise.
2060 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2061 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2063 2002-09-13 Nick Clifton <nickc@redhat.com>
2065 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2066 when deciding if any operands have been skipped.
2068 2002-09-11 Nick Clifton <nickc@redhat.com>
2070 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2072 * po/tr.po: Updated Turkish translation.
2074 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2076 * config/tc-i386.c (md_apply_fix3): Allow addend for
2077 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2078 BFD_RELOC_386_TLS_LE_32.
2080 2002-09-05 Jeff Law <law@redhat.com>
2082 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2083 marker relocations such as ENTRY/EXIT.
2084 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2085 to both OBJ_ELF and OBJ_SOM.
2087 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2089 * doc/internals.texi (md_apply_fix3): Expand.
2090 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2091 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2092 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2093 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2094 EXTERN_FORCE_RELOC): Document.
2095 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2096 * as.h: Don't include struc-symbol.h for arc.
2098 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2099 subtract absolute symbol.
2100 * obj.h (struct format_ops): Add frob_file_before_fix.
2101 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2102 * symbols.c (S_FORCE_RELOC): New function.
2103 * symbols.h (S_FORCE_RELOC): Declare.
2104 * write.c (TC_FORCE_RELOCATION): Change default.
2105 (TC_FORCE_RELOCATION_ABS): Define.
2106 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2107 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2108 (TC_FORCE_RELOCATION_SECTION): Don't define.
2109 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2110 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2111 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2112 (TC_VALIDATE_FIX_SUB): Define.
2113 (TC_FIX_ADJUSTABLE): Don't define.
2114 (MD_APPLY_SYM_VALUE): Define this instead.
2115 (abs_section_sym): New variable.
2116 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2117 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2118 Don't put the absolute section sym on fixups here.
2119 (fix_segment): New function.
2120 (write_relocs): Don't call fixup_segment from here.
2121 (write_object_file): Instead call tc_frob_file_before_fix,
2122 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2123 Don't output the absolute section symbol.
2124 (fixup_segment): Rewrite.
2125 * write.h (abs_section_sym): Declare.
2126 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2128 (aout_format_ops): Adjust to suit.
2129 * config/obj-aout.h (obj_frob_file): Don't define.
2130 (obj_frob_file_before_fix): Define.
2131 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2132 (S_FORCE_RELOC): Define.
2133 * config/obj-bout.h (S_FORCE_RELOC): Define.
2134 * config/obj-coff.c (coff_format_ops): Init new field.
2135 * config/obj-coff.h: Formatting fixes.
2136 (obj_sec_sym_ok_for_reloc): Define.
2137 (S_FORCE_RELOC): Define.
2138 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2139 (ecoff_frob_file): .. from here.
2140 (ecoff_format_ops): Add new function.
2141 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2142 (obj_frob_file_before_fix): Define.
2143 * config/obj-elf.c (elf_format_ops): Init new field.
2144 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2145 * config/obj-ieee.h: Formatting fixes.
2146 (S_FORCE_RELOC): Define.
2147 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2148 * config/obj-vms.h (S_FORCE_RELOC): Define.
2149 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2150 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2151 for BFD_RELOC_32 and BFD_RELOC_64.
2152 (alpha_fix_adjustable): Remove extern and weak tests.
2153 (alpha_before_fix): Rename from alpha_adjust_symtab.
2154 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2155 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2156 (TC_VALIDATE_FIX): Tweak param name.
2157 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2158 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2159 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2160 (MD_APPLY_SYM_VALUE): Define.
2161 (tc_adjust_symtab): Don't define.
2162 (alpha_adjust_symtab): Don't declare.
2163 (tc_frob_file_before_fix): Define.
2164 (alpha_before_fix): Declare.
2165 (TC_INIT_FIX_DATA): Tweak param names.
2166 * config/tc-arc.c: Include "struc-symbol.h".
2167 (md_pcrel_from): Remove undefined sym fudge.
2168 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2169 Don't set fx_addnumber.
2170 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2171 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2172 (EXTERN_FORCE_RELOC): Define.
2173 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2174 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2175 (arm_validate_fix): Return void.
2176 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2177 Add plt and got reloc tests.
2178 (arm_force_relocation): Call S_FORCE_RELOC.
2179 * config/tc-arm.h (struct fix): Forward declare.
2180 (TC_VALIDATE_FIX): No longer set add_symbolP.
2181 (arm_validate_fix): Adjust declaration.
2182 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2183 (TC_FORCE_RELOCATION): Tweak param name.
2184 (TC_INIT_FIX_DATA): Likewise.
2185 (obj_fix_adjustable): Don't define.
2186 (tc_fix_adjustable): Call arm_fix_adjustable.
2187 (TC_FIX_ADJUSTABLE): Don't define.
2188 (MD_APPLY_SYM_VALUE): Define.
2189 (EXTERN_FORCE_RELOC): Define.
2190 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2191 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2192 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2193 Remove *valP fudges and code to subtract abs sym. Don't set
2195 * config/tc-avr.h: Formatting.
2196 (EXTERN_FORCE_RELOC): Define.
2197 (MD_APPLY_SYM_VALUE): Define.
2198 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2199 (md_apply_fix3): Remove code to subtract abs sym.
2200 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2201 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2202 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2203 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2204 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2205 (tc_fix_adjustable): Remove extern, weak tests.
2206 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2207 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2208 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2209 and code to subtract abs sym.
2210 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2211 (d10v_force_relocation): Call S_FORCE_RELOC.
2212 * config/tc-d10v.h: Don't include write.h.
2213 (struct fix): Instead, forward declare.
2214 (MD_PCREL_FROM_SECTION): Tweak param names.
2215 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2216 (d10v_fix_adjustable): Likewise.
2217 (obj_fix_adjustable): Don't define.
2218 (tc_fix_adjustable): Define.
2219 (TC_FORCE_RELOCATION): Tweak param name.
2220 (MD_APPLY_SYM_VALUE): Define.
2221 (EXTERN_FORCE_RELOC): Define.
2222 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2223 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2224 and code to subtract abs sym.
2225 * config/tc-d30v.h: Don't include write.h.
2226 (struct fix): Instead, forward declare.
2227 (MD_PCREL_FROM_SECTION): Tweak param names.
2228 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2229 (MD_APPLY_SYM_VALUE): Define.
2230 (EXTERN_FORCE_RELOC): Define.
2231 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2232 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2233 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2234 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2235 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2236 Don't use fx_addnumber.
2237 * config/tc-dlx.h: Don't include write.h.
2238 (md_convert_frag): We're not alpha twice over.
2239 (EXTERN_FORCE_RELOC): Define.
2240 (obj_fix_adjustable): Don't define.
2241 (tc_fix_adjustable): Define.
2242 (TC_FIX_ADJUSTABLE): Don't define.
2243 (MD_APPLY_SYM_VALUE): Define.
2244 (LOCAL_LABELS_DOLLAR): Undef always.
2245 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2246 (fr30_fix_adjustable): Remove extern, weak tests.
2247 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2248 (obj_fix_adjustable): Don't define.
2249 (tc_fix_adjustable): Define.
2250 (struct fix): Forward declare.
2251 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2252 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2253 (frv_fix_adjustable): Don't do extern, weak tests.
2254 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2255 (TC_FIX_ADJUSTABLE): Don't define.
2256 (obj_fix_adjustable): Don't define.
2257 (tc_fix_adjustable): Define.
2258 (struct fix): Forward declare.
2259 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2260 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2261 * config/tc-h8300.h (struct fix): Forward declare.
2262 (EXTERN_FORCE_RELOC): Define.
2263 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2264 (hppa_fix_adjustable): Don't test extern or weak. Don't
2265 symbol_mark_used_in_reloc.
2266 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2268 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2269 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2270 (TC_FORCE_RELOCATION_SECTION): Don't define.
2271 (MD_APPLY_SYM_VALUE): Define.
2272 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2273 to subtract abs sym.
2274 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2275 (MD_APPLY_SYM_VALUE): Define.
2276 (MD_PCREL_FROM_SECTION): Tweak param name.
2277 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2278 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2279 (i386_force_relocation): New function.
2280 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2281 (TC_VALIDATE_FIX): Likewise.
2282 (TC_FIX_ADJUSTABLE): Don't define.
2283 (MD_APPLY_SYM_VALUE): Define.
2284 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2285 (i386_force_relocation): Declare.
2286 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2287 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2288 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2289 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2290 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2291 (EXTERN_FORCE_RELOC): Define.
2292 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2293 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2294 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2295 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2296 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2297 Remove #if 0 code. Invert return boolean.
2298 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2299 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2300 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2301 (tc_coff_sizemachdep): Prototype.
2302 (i960_handle_align): Likewise.
2303 (i960_validate_fix): Adjust declaration.
2304 (reloc_callj): Likewise.
2305 (EXTERN_FORCE_RELOC): Define.
2306 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2307 (TC_FORCE_RELOCATION_ABS): Define.
2308 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2309 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2310 (TC_FIX_ADJUSTABLE): Don't define.
2311 (MD_APPLY_SYM_VALUE): Define.
2312 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2313 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2314 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2315 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2316 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2317 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2318 (MD_APPLY_SYM_VALUE): Define.
2319 (EXTERN_FORCE_RELOC): Define.
2320 (TC_FORCE_RELOCATION): Tweak param name.
2321 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2322 (m32r_fix_adjustable): Don't test extern, weak.
2323 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2324 (MD_APPLY_SYM_VALUE): Define.
2325 (obj_fix_adjustable): Don't define.
2326 (tc_fix_adjustable): Define.
2327 (tc_frob_file): Don't define.
2328 (tc_frob_file_before_fix): Define.
2329 (EXTERN_FORCE_RELOC): Define.
2330 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2331 BFD_RELOC_VTABLE_ENTRY address.
2332 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2333 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2334 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2335 Remove duplicated fx_done code.
2336 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2337 (EXTERN_FORCE_RELOC): Define.
2338 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2340 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2341 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2342 (TC_FIX_ADJUSTABLE): Don't define.
2343 (EXTERN_FORCE_RELOC): Define.
2344 (MD_APPLY_SYM_VALUE): Define.
2345 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2346 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2347 Remove fx_addsy tests.
2348 (mcore_force_relocation): Call S_FORCE_RELOC.
2349 (mcore_fix_adjustable): Don't test fx_addsy.
2350 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2351 (EXTERN_FORCE_RELOC): Define.
2352 (obj_fix_adjustable): Don't define.
2353 (tc_fix_adjustable): Define.
2354 (MD_APPLY_SYM_VALUE): Define.
2355 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2356 (mips_pic): No longer static.
2357 (mips_force_relocation): Call S_FORCE_RELOC.
2358 (mips_fix_adjustable): Remove extern, weak tests.
2359 * config/tc-mips.h (enum mips_pic_level): Declare.
2360 (mips_pic): Declare.
2361 (tc_frob_file): Don't define.
2362 (tc_frob_file_before_fix): Define this instead.
2363 (EXTERN_FORCE_RELOC): Define.
2364 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2365 with reg_section tests. Set fx_done instead of calling
2366 symbol_clear_used_in_reloc on bad relocs.
2367 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2368 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2369 (mmix_adjust_symtab): Simplify list handling. Abort on any
2371 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2372 BFD_RELOC_MMIX_LOCAL.
2373 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2374 (EXTERN_FORCE_RELOC): Define.
2375 (MD_PCREL_FROM_SECTION): Tweak param name.
2376 (tc_frob_file): Don't define.
2377 (tc_frob_file_before_fix): Define this instead.
2378 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2379 Remove SEC_CODE checks.
2380 (mn10300_fix_adjustable): Remove extern and weak tests.
2381 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2382 (TC_FORCE_RELOCATION): Tweak param name.
2383 (obj_fix_adjustable): Don't define.
2384 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2385 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2386 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2387 (openrisc_fix_adjustable): Don't test fx_addsy.
2388 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2389 (obj_fix_adjustable): Don't define.
2390 (tc_fix_adjustable): Define this instead.
2391 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2392 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2393 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2394 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2395 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2396 (MD_APPLY_SYM_VALUE): Define.
2397 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2398 Don't subtract symbol value.
2399 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2400 (EXTERN_FORCE_RELOC): Define.
2401 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2402 (MD_APPLY_SYM_VALUE): Define.
2403 (obj_fix_adjustable): Don't define.
2404 (tc_fix_adjustable): Define this instead.
2405 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2407 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2408 (ppc_force_relocation <elf version>): New.
2409 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2410 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2411 comments. Don't subtract fx_subsy as that is already done.
2412 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2413 (MD_PCREL_FROM_SECTION): Likewise.
2414 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2415 ppc_force_relocation.
2416 (TC_FORCE_RELOCATION_SECTION): Delete.
2417 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2418 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2419 (MD_APPLY_SYM_VALUE): Define.
2420 * config/tc-s390.c: #include "dwarf2dbg.h".
2421 (s390_insn): Remove excess parens.
2422 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2423 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2424 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2425 non-NULL. Don't subtract off fx_addsy value.
2426 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2427 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2428 (TC_FIX_ADJUSTABLE): Don't define.
2429 (MD_APPLY_SYM_VALUE): Define.
2430 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2431 (SWITCH_TABLE): Likewise.
2432 (sh_force_relocation): Call S_FORCE_RELOC.
2433 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2434 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2435 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2436 fx_addnumber is zero on entry. Save val in fx_addnumber.
2437 (tc_gen_reloc): Don't subtract fx_subsy.
2438 * config/tc-sh.h (struct fix): Move.
2439 (obj_fix_adjustable): Don't define.
2440 (tc_fix_adjustable): Define this instead.
2441 (TC_FIX_ADJUSTABLE): Don't define.
2442 (MD_APPLY_SYM_VALUE): Define.
2443 (SWITCH_TABLE_CONS): Define.
2444 (SWITCH_TABLE): Define.
2445 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2446 (TC_VALIDATE_FIX_SUB): Define.
2447 (MD_PCREL_FROM_SECTION): Tweak param name.
2448 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2449 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2450 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2451 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2452 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2453 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2454 (TC_VALIDATE_FIX_SUB): Define.
2455 (MD_PCREL_FROM_SECTION): Tweak param name.
2456 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2457 (tc_gen_reloc): Use S_FORCE_RELOC.
2458 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2459 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2460 (TC_FORCE_RELOCATION_ABS): Define this instead.
2461 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2462 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2463 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2464 (MD_APPLY_SYM_VALUE): Define.
2465 (TC_FIX_DATA_PRINT): Tweak param name.
2466 * config/tc-tic30.c (USE_STDOUT): Don't define.
2467 (md_parse_option): Remove stupid debug code.
2468 (tc_gen_reloc): Don't use fx_addnumber.
2469 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2470 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2471 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2472 (tc_fix_adjustable): Define this instead.
2473 (TC_FIX_ADJUSTABLE): Don't define.
2474 (MD_APPLY_SYM_VALUE): Define this instead.
2475 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2476 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2477 (TC_FIX_ADJUSTABLE): Don't define.
2478 (MD_APPLY_SYM_VALUE): Define this instead.
2479 (tc_fix_adjustable): Remove extern and weak tests.
2480 * config/tc-w65.h (struct fix): Forward declare.
2481 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2483 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2484 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2485 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2487 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2488 (MD_APPLY_SYM_VALUE): Define.
2489 (obj_fix_adjustable): Don't define.
2490 (tc_fix_adjustable): Define this instead.
2491 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2493 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2495 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2496 (ppc_fix_adjustable <coff version>): Cleanup.
2498 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2499 (md_parse_option): No -a64 without BFD64.
2500 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2501 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2503 2002-09-04 Nick Clifton <nickc@redhat.com>
2505 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2506 instructions into the hash table if the target cpu is the BookE32.
2508 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2510 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2513 2000-08-28 Catherine Moore <clm@redhat.com>
2515 * tc-v850.c (v850_relax): Declare.
2516 (v850_longcode): New routine.
2517 (v850_handle_align): New routine.
2518 (md_pseudo_table): Add longcall and longjump.
2519 (md_parse_option): Check for relax option.
2520 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2521 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2522 (md_apply_fix3): Likewise.
2523 (v850_force_relocation): Likewise.
2524 (v850_comm): Change the current section.
2525 (md_assemble): Ensure that the correct value is put in the
2527 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2528 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2529 Remove redundant v850ea support.
2530 * tc-v850.h (HANDLE_ALIGN): Define.
2531 (v850_handle_align): Declare.
2532 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2534 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2536 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2537 * configure: Regenerate.
2538 * NEWS: Mention new port.
2540 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2542 * config/obj-coff.c: Add sdef definition.
2543 * config/obj-coff.h: Add tic4x include file and set
2545 * config/tc-tic4x.c: New file.
2546 * config/tc-tic4x.h: New file.
2548 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2550 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2551 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2552 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2553 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2554 (RELOC_ENUM): Define.
2555 (fix_new_internal): Use RELOC_ENUM.
2556 (fix_new, fix_new_exp): Likewise.
2557 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2558 Replace gotos with continue.
2559 (write_relocs): Formatting. Avoid symbol loops in
2560 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2561 errors, and error number in other cases.
2562 (fixup_segment): Remove param names from prototype. Rename
2563 "this_segment_type" to "this_segment". Update linkrelax comment.
2564 Remove "size, "place" and "where" local vars. Formatting. Update
2565 "no symbol" comment. Remove #if 0 and #if 1.
2567 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2569 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2571 * dwarf2dbg.c: Always include dwarf2dbg.h.
2572 (dwarf2_directive_file): Adjust dummy version args.
2573 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2574 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2575 when symbol values differ.
2576 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2577 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2578 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2580 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2582 * config/tc-w65.c (md_section_align): Fix typo.
2583 (md_parse_option): Return 0, not 1.
2585 2002-08-22 Nick Clifton <nickc@redhat.com>
2587 * doc/as.texinfo (Section): Note that if '@' is a comment
2588 character then another symbol is used to prefix the section's
2591 2002-08-22 Christian Groessler <chris@groessler.org>
2593 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2596 2002-08-12 Graeme Peterson <gp@qnx.com>
2598 * configure.in: Add support for sh-**-nto* target.
2599 * configure: Regenerate.
2601 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2603 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2605 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2607 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2609 (ppc_apuinfo_section_add): Define only if format is ELF.
2610 (md_assemble): Emit APUinfo section only if format is ELF.
2613 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2615 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2616 * config/tc-frv.c: Likewise.
2617 * config/tc-hppa.c: Likewise.
2618 * config/tc-ia64.c: Likewise.
2619 * config/tc-ip2k.c: Likewise.
2620 * config/tc-m68hc11.c: Likewise.
2621 * config/tc-m68k.c: Likewise.
2622 * config/tc-mmix.c: Likewise.
2623 * config/tc-mn10300.c: Likewise.
2624 * config/tc-sh.c: Likewise.
2625 * config/tc-sparc.c: Likewise.
2626 * config/tc-v850.c: Likewise.
2628 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2630 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2633 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2635 From matthew green <mrg@redhat.com>
2637 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2638 PPC_OPCODE_PPC is, except for BookE architectures.
2639 (md_parse_option): Add support for -mspe.
2640 (md_show_usage): Add -mspe.
2641 (md_parse_option): Add support for -me500 and
2642 -me500x2 to generate code for Motorola e500 core complex.
2643 (md_show_usage): Add -me500 and -me500x2.
2645 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2646 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2647 PPC_APUINFO_BRLOCK): New macros.
2649 (ppc_cleanup): New function.
2650 (ppc_apuinfo_section_add): New function.
2652 (md_assemble): Collect info and write the APUinfo section.
2654 * config/tc-ppc.h (md_cleanup): Define.
2655 (ppc_cleanup): Export.
2656 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2658 2002-08-17 Stan Cox <scox@redhat.com>
2660 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2661 config/tc-mips.c (s_change_section): New function to support
2662 IRIX .section pseudo-op.
2664 2002-08-16 Nick Clifton <nickc@redhat.com>
2666 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2668 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2670 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2671 the fix-up against on the right frag.
2672 (s_cpsetup): Likewise. Parse third argument as expression, to
2673 handle global symbols and forward/backward labels correctly.
2675 2002-08-14 Nick Clifton <nickc@redhat.com>
2677 * read.c (stringer): Catch attempts to create strings in the abs
2680 * config/tc-alpha.c: Fix compiling for COFF targets.
2681 Some minor formatting tidyups.
2683 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2685 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2686 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2687 according to the reloc.
2688 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2689 (TC_FORCE_RELOCATION): Define.
2690 (tc_m68hc11_force_relocation): Declare.
2692 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2693 (s_m68hc11_relax): New function for relax group.
2694 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2695 beginning of jump instruction.
2696 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2697 address computation.
2698 (tc-gen_reloc): Update.
2699 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2701 (tc_m68hc11_force_relocation): New function, handle new relocs.
2702 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2703 reloc for the linker relax pass.
2704 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2707 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2709 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2710 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2711 (s_m68hc11_mode): New function for .mode pseudo op.
2712 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2714 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2715 (m68hc11_elf_final_processing): Declare.
2717 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2719 * config/tc-m68hc11.c (md_begin): Take into account additional
2720 page operand for call instruction.
2721 (print_opcode_format): Likewise.
2722 (check_range): Likewise for page range checking.
2723 (get_operand): Don't skip a possible comma in operands.
2724 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2725 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2726 (fixup24): New to handle call reloc.
2727 (build_insn): Handle missing page operand for call instruction.
2729 (md_apply_fix3): Take into account new relocs.
2730 (get_operand): Fix the mode for indexed indirect addressing.
2731 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2733 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2735 * config/tc-mips.c (mips_ip): Don't work out the value of
2736 constant %hi()s here.
2738 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2740 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2741 for ELF, and don't bother checking ELF relocs when non-ELF.
2742 (i386_immediate): Allow absolute_section expressions for aout.
2743 (i386_displacement): Likewise. Also test bfd_is_com_section.
2744 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2745 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2746 not when fx_addsy. Remove dead code.
2748 2002-08-09 Graeme Peterson <gp@qnx.com>
2750 * configure.in: Add support for ppc-*-nto* target.
2751 * configure: Regenerate.
2753 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2755 * config/tc-i386.h: Reorganize.
2757 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2759 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2760 immediate offset in "dla" and "la" expansions.
2762 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2764 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2765 Remove "bfd_gas=yes" from target table when covered later.
2766 Consolidate some entries.
2767 * configure: Regenerate
2769 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2771 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2772 at start of insn, pass it to output_disp and output_imm.
2773 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2774 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2776 (output_imm): Added arguments. Compute properly addend for
2778 (md_apply_fix3): Remove R_386_GOTPC handling.
2780 2002-08-06 George France <france@handhelds.org>
2782 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2783 and m21264b processor names and cpu types.
2784 * doc/c-alpha.texi: Documented new types.
2786 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2788 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2790 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2792 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2793 handling to BFD_RELOC_MIPS16_GPREL.
2795 2002-08-01 Nick Clifton <nickc@redhat.com>
2797 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2798 pool is computed using signed arithmetic so that proper sign
2799 extension is performed if X_add_number is a 64-bit integer.
2801 2002-08-01 H.J. Lu <hjl@gnu.org>
2802 Daniel Jacobowitz <drow@mvista.com>
2804 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2805 .debug_line section unless it has line information.
2807 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2809 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2810 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2811 Allow default displacement size to be an option "--disp-size-default".
2812 (md_number_to_disp): Make error messages include value. Use %d to
2813 print integers, not %s.
2814 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2815 get duplicate messages sometimes.
2816 (convert_iif): Grow frag to max possible instruction size. Avoid
2817 creating unnecessary fixes.
2818 (md_number_to_field) Add prototype.
2819 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2820 prototypes and make static.
2821 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2822 (evaluate_expr): Use resultP argument instead of exprP global.
2823 (get_addr_mode): Quiten compiler warnings.
2824 (encode_operand): eliminate unused variables. Quiten compiler
2825 warnings. Eliminate nul character in format strings.
2826 (parse): argc is unsigned.
2827 (reloc): Type cast index to quieten compiler.
2828 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2829 (md_convert_frag): Note unused parameters. Remove unused
2831 (md_create_long_jump, md_create_short_jump,
2832 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2835 2002-07-31 Nick Clifton <nickc@redhat.com>
2837 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2838 of the PDP-11 and 2.11BSD a.out support.
2840 2002-07-31 Momchil Velikov <velco@fadata.bg>
2842 * config/tc-v850.c (md_assemble): Fix range check for immediate
2845 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2847 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2848 to Broadcom SB-1 core support.
2850 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2852 * config/tc-mips.c (mips_target_format): Fix formatting.
2853 Add recognition of n32 ABI formats.
2855 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2857 * tc-mips.c (load_address): Don't clobber $at when loading a
2858 64-bit address in non-PIC code if noat is in effect.
2861 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2863 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2864 used in division/multiply macro expansions similarly to how they
2865 are used in the variants with break instructions.
2868 2002-07-30 Graeme Peterson <gp@qnx.com>
2870 * configure.in: Add support for arm-*-nto target.
2871 * configure: Regenerate.
2873 2002-07-30 Nick Clifton <nickc@redhat.com>
2875 * config/tc-arm.c (struct literal_pool): Add fields to allow
2876 multiple literal pools to be maintained.
2877 (find_literal_pool): New function.
2878 (find_or_make_literal_pool): New function.
2879 (add_to_literal_pool): Use find_or_make_literal_pool.
2880 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2882 (s_ltorg): Use find_literal_pool.
2883 (arm_cleanup): Dump all literal pools.
2884 * doc/c-arm.texi: Document new behaviour of only dumping literal
2887 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2889 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2890 rather than PPC_OPCODE_32 for powerpc64*.
2892 2002-07-25 Nick Clifton <nickc@redhat.com>
2894 * po/es.po: Updated Spanish translation.
2895 * po/fr.po: Updated French translation.
2897 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2899 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2900 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2901 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2902 * configure, config.in: Regenerate.
2903 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2904 (mips_set_options): Remove "abi" field.
2905 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2908 (mips_arch_string, mips_arch_info): New vars.
2909 (mips_tune_string, mips_tune_info): New vars.
2910 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2911 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2912 (mips_isa_to_str, mips_cpu_to_str): Remove.
2913 (mips_ip): If the selected architecture is a generic ISA rather
2914 than a processor, only mention the ISA level in error messages.
2915 (OPTION_MCPU): Remove.
2917 (md_longopts): Add -mfp64, remove -mcpu.
2918 (mips_set_option_string): New fn.
2919 (md_parse_option): Make -mipsN update file_mips_isa rather than
2920 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2921 Don't let -mgp32 and -mfp32 change the ABI.
2922 (show): Move to end of file. Constify string argument.
2923 (md_show_usage): Move to the end of the file. Read available
2924 architectures from mips_cpu_info_table.
2925 (mips_set_architecture): New fn.
2926 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2927 is an alias for -march=mipsN. Don't change the ABI based on other
2928 flags. Infer the register size from the ABI as well as the
2929 architecture. Complain about more conflicting arguments.
2930 Unify logic with GCC.
2931 (s_mipsset): Don't change the ABI.
2932 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2933 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2934 "mipsN"-type entries. Remove entries that vary only in the
2935 manufacturer's prefix, or that have "000" replaced by "k".
2936 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2937 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2938 (mips_parse_cpu): New fn.
2939 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2940 (mips_cpu_info_from_isa): Minor formatting tweak.
2942 2002-07-24 Nick Clifton <nickc@redhat.com>
2944 * po/sv.po: Updated Swedish translation.
2945 * po/es.po: Updated Spanish translation.
2947 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2949 * Makefile.am: Run "make dep-am".
2950 * Makefile.in: Regenerate.
2951 * doc/Makefile.in: Regenerate.
2952 * config.in: Regenerate.
2953 * po/POTFILES.in: Regenerate.
2955 2002-07-23 Nick Clifton <nickc@redhat.com>
2957 * po/fr.po: Updated French translation.
2959 2002-07-23 Nick Clifton <nickc@redhat.com>
2961 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2964 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2966 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2967 instead of S_IS_EXTERN.
2968 (md_estimate_size_before_relax): Likewise.
2969 (mips_fix_adjustable): Likewise.
2971 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2973 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2975 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2976 Nick Clifton <nickc@redhat.com>
2978 * cond.c (s_ifdef): Treat a referenced but not yet defined
2979 symbol as if it were undefined, in exactly the same way as
2982 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2983 consider referenced bug not yet defined symbols to be
2986 2002-07-18 Denis Chertykov <denisc@overta.ru>
2987 Frank Ch. Eigler <fche@redhat.com>
2988 Alan Lehotsky <alehotsky@cygnus.com>
2989 John Healy <jhealy@redhat.com>
2990 Jeff Johnston <jjohnstn@redhat.com>
2992 * configure.in: Add ip2k configuraton.
2993 * configure: Regenerate.
2994 * Makefile.am: Add ip2k configuraton.
2995 * Makefile.in: Regenerate.
2996 * configure: Regenerate.
2997 * Makefile.in: Regenerate.
2998 * config/tc-ip2k.c: New file.
2999 * config/tc-ip2k.h: New files.
3000 * NEWS: Mention new support.
3001 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3002 * doc/Makefile.in: Regenerate.
3003 * doc/all.texi: Set IP2K
3004 * doc/as.texinfo: Add IP2K description.
3005 * doc/c-ip2k.texi: New file.
3007 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3009 * NEWS: Reformat to match style of other NEWS files.
3011 2002-07-17 Jan Hubicka <jh@suse.cz>
3013 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3015 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3017 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3019 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3021 * NEWS: Add 'Changes in 2.13'.
3023 2002-07-15 Matt Fredette <fredette@netbsd.org>
3025 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3027 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3029 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3030 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3033 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3035 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3036 (ppc_frob_file_before_adjust): New function.
3037 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3038 (ppc_elf_frob_symbol): Don't declare.
3039 (tc_frob_file_before_adjust): Define.
3040 (ppc_frob_file_before_adjust): Declare.
3042 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3043 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3046 (ppc_xcoff64): Rename to ppc_obj64.
3047 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3048 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3049 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3051 (ppc_target_format): Use ppc_obj64 to select format.
3052 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3053 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3054 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3055 (tc_frob_symbol): Likewise.
3056 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3057 BFD_DEFAULT_TARGET_SIZE.
3059 (ppc_is_toc_sym): Likewise.
3060 (md_apply_fix3): Likewise.
3061 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3062 BFD_DEFAULT_TARGET_SIZE.
3063 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3064 (tc_frob_symbol): Likewise.
3066 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3068 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3069 (mips_ip): Likewise.
3071 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3073 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3074 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3075 (md_apply_fix3): Formatting. Remove redundant test.
3076 (tc_gen_reloc): Remove redundant code.
3077 (tc_i386_force_relocation): Delete. Movy body of function to..
3078 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3080 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3082 * configure.in: Add hppa-*-openbsd* target, change
3083 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3085 * configure: Regenerate.
3087 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3089 * config/tc-mips.c (macro): Shift the 32-bit address range
3090 accessible with a lone "lui" down by 32768.
3092 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3094 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3095 instead of "dadd" in address calculations.
3098 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3100 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3102 (md_assemble): Instead, zap the suffix here.
3104 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3106 * NEWS: Remove next release number until the release is actually
3109 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3111 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3113 * Makefile.in: Regenerate.
3115 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3117 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3118 to symbols in merge sections, even non pc-relative ones.
3120 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3122 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3124 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3126 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3127 .softregs and .eeprom.
3129 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3131 * NEWS: Note the next release is 2.13.
3133 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3135 * po/tr.po: New translation imported.
3137 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3139 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3140 (ecoff_directive_def): Likewise.
3141 (ecoff_directive_tag): Likewise.
3142 * listing.c (file_info): Likewise.
3143 * hash.c (what): Likewise.
3145 2002-06-25 H.J. Lu <hjl@gnu.org>
3147 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3148 * Makefile.in: Regenerated.
3150 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3152 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3153 (assemble_ppi): Generate warning if the same register is used
3154 twice as destination in the same padd / pmuls instruction.
3156 2002-06-18 Dave Brolley <brolley@redhat.com>
3158 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3159 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3160 * configure.in: Support frv-*-*.
3161 * Makefile.am (CPU_TYPES): Add frv.
3162 (TARGET_CPU_CFILES): Add tc-frv.c.
3163 (TARGET_CPU_HFILES): Add tc-frv.h.
3164 (DEPTC_frv_coff): New variable.
3165 (DEPTC_frv_elf): New variable.
3166 (DEPOBJ_frv_coff): New variable.
3167 (DEPOBJ_frv_elf): New variable.
3168 (DEP_frv_coff): New variable.
3169 (DEP_frv_elf): New variable.
3170 * tc-frv.c: New file.
3171 * tc-frv.h: New file.
3173 2002-06-17 Catherine Moore <clm@redhat.com>
3175 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3177 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3179 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3181 2002-06-17 Tom Rix <trix@redhat.com>
3183 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3185 2002-06-14 H.J. Lu <hjl@gnu.org>
3186 Daniel Jacobowitz <drow@mvista.com>
3188 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3189 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3190 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3191 and new_logical_line for the first .file directive.
3192 * read.c (s_app_file_string): New function.
3193 (s_app_file): Call it.
3194 * read.h (s_app_file_string): Add declaration.
3196 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3198 * configure.in: Remove MIPS_STABS_ELF.
3199 * configure: Regenerated.
3200 * config.in: Regenerated.
3201 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3203 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3205 (pdr_seg): Declare unconditionally.
3206 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3207 (s_mips_end): Likewise. Generate stabs function markers.
3208 (s_mips_ent): Generate stabs function markers.
3209 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3211 (s_mips_mask): Likewise.
3212 (mips_flag_mdebug): New.
3213 (md_longopts): Add "mdebug" and "no-mdebug".
3214 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3215 (mips_after_parse_args): Set mips_flag_mdebug.
3216 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3218 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3220 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3221 value twice for RELA relocations.
3223 2002-06-12 Ben Elliston <bje@redhat.com>
3225 * symbols.c (resolve_symbol_value): Initialise final_val.
3227 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3229 2002-06-11 Tom Rix <trix@redhat.com>
3231 * config/tc-ppc.c (ppc_subseg_align): Delete.
3232 (ppc_change_csect): Default csect align is 2.
3233 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3235 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3237 * config/tc-avr.c (mcu_types): Update.
3239 2002-06-08 Matt Thomas <matt@3am-software.com>
3241 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3242 (vax-*-netbsd*): New targets.
3243 * configure: Regenerate.
3244 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3245 * config/tc-vax.c: Add support for ELF and PIC.
3246 (flag_want_pic): New flag.
3247 (float_cons): Fix prototype.
3248 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3249 (md_assemble): Introduce a new is_absolute local, and use it
3250 rather than repeating the test. Make fatal errors actually
3251 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3252 Add support for ELF. Add support for PIC.
3253 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3254 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3256 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3257 optional for a.out, and not allowed for VMS. Adjust all callers.
3258 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3259 (md_create_long_jump): Likewise.
3260 (md_undefined_symbol): Likewise.
3261 (md_section_align): Likewise.
3262 (md_shortopts): Allow -k and -K for ELF.
3263 (md_parse_option): Set flag_want_pic if -k or -K.
3264 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3265 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3266 * config/tc-vax.h (tc_headers_hook): Remove.
3267 (TARGET_FORMAT): Set according to object format and target
3269 (BFD_ARCH, TARGET_ARCH): Define.
3270 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3271 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3272 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3273 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3275 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3277 * Makefile.am: Run "make dep-am".
3278 * Makefile.in: Regenerate.
3280 * as.c: Replace CONST with const.
3281 * write.c: Likewise.
3282 * config/obj-coff.c: Likewise.
3283 * config/tc-a29k.c: Likewise.
3284 * config/tc-arm.c: Likewise.
3285 * config/tc-dlx.c: Likewise.
3286 * config/tc-h8300.c: Likewise.
3287 * config/tc-h8500.c: Likewise.
3288 * config/tc-i370.c: Likewise.
3289 * config/tc-i860.c: Likewise.
3290 * config/tc-i960.c: Likewise.
3291 * config/tc-m68hc11.c: Likewise.
3292 * config/tc-m68k.c: Likewise.
3293 * config/tc-m88k.c: Likewise.
3294 * config/tc-mcore.c: Likewise.
3295 * config/tc-mips.c: Likewise.
3296 * config/tc-ns32k.c: Likewise.
3297 * config/tc-pdp11.c: Likewise.
3298 * config/tc-pj.c: Likewise.
3299 * config/tc-s390.c: Likewise.
3300 * config/tc-sh.c: Likewise.
3301 * config/tc-sparc.c: Likewise.
3302 * config/tc-tahoe.c: Likewise.
3303 * config/tc-tic80.c: Likewise.
3304 * config/tc-v850.c: Likewise.
3305 * config/tc-vax.c: Likewise.
3306 * config/tc-w65.c: Likewise.
3307 * config/tc-z8k.c: Likewise.
3309 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3311 Based on patch from Matt Green:
3312 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3313 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3314 (s_mips_loc): New function.
3315 (mips_nonecoff_pseudo_table): Call them.
3316 (append_insn): Call dwarf2_emit_insn.
3318 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3320 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3322 (file_ase_mips16): New veriable.
3323 (mips_eabi64): Remove.
3324 (CPU_HAS_MIPS16): New define.
3325 (CPU_HAS_MDMX): Fix data type.
3326 (md_begin): Code cleanup. Use file_ase_mips16.
3327 (mips_elf_final_processing): Handle mips16 header flag.
3328 Handle EABI flag without intermediate variable.
3330 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3332 * doc/as.texinfo: Update MIPS documentation.
3334 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3336 * config/tc-mips.c: Add define for $zero register.
3337 (md_begin): Add $zero as alias name for $0.
3338 (insn_uses_reg): Use ZERO define.
3339 (mips_ip): Add $zero as alias name for $0.
3340 (mips16_ip): Likewise.
3341 (s_cplocal): Demand empty rest of input line.
3342 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3343 names. Use ZERO define. Fix input_line_pointer progress.
3345 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3347 * symbols.c: Replace CONST by const throughout.
3348 (symbol_find_exact): Split out from..
3349 (symbol_find_base): ..here.
3350 * symbols.h: Replace CONST by const throughout.
3351 (symbol_find_exact): Declare.
3352 * config/obj-elf.c: #include "struc-symbol.h".
3353 (elf_frob_file): If group name matches an exported symbol, use that
3354 symbol for the signature and ".group" as the section name.
3356 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3358 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3361 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3363 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3364 and mips_opts.ase_mdmx if they are uninitialized.
3366 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3368 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3369 (hppa_force_relocation): Check if a stub just before the start symbol
3370 of the last call_info is reachable before forcing relocation. Fix
3373 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3375 * config/tc-mips.c (mips_after_parse_args): New function.
3376 (md_begin): Move processing of defaults to mips_after_parse_args.
3377 config/tc-mips.h (md_after_parse_args): Define.
3379 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3381 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3382 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3383 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3384 * configure: Regenerate.
3385 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3388 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3390 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3392 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3394 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3395 linkonce flag. Print all warnings.
3396 (obj_elf_section): Parse ",comdat" for groups.
3397 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3398 consistency of comdat flag.
3400 2002-06-02 Richard Henderson <rth@redhat.com>
3402 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3403 with LITERALs without sequence numbers.
3405 2002-06-01 Richard Henderson <rth@redhat.com>
3407 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3408 Rename them LITUSE_ALPHA_*.
3410 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3412 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3413 accept parentheses enclosed register lists.
3415 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3417 * Makefile.am: Run "make dep-am".
3418 * Makefile.in: Regenerate.
3419 * po/POTFILES.in: Regenerate.
3421 2002-05-31 Graeme Peterson <gp@qnx.com>
3423 * configure.in: Add i386-*-nto-qnx*.
3424 * configure: Regenerate.
3426 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3428 * config/tc-mips.c (mips_ip): Use unsigned long values for
3431 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3433 * config/tc-mips.c (s_cpsetup): Fix initialization of
3434 mips_cpreturn_register and mips_cpreturn_offset.
3436 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3438 * config/tc-mips.c (s_cpsetup): Fix comment.
3440 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3442 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3443 (mips_ip): Likewise.
3444 (mips16_ip): Likewise.
3445 (tc_get_register): Likewise.
3447 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3448 Ed Satterthwaite <ehs@broadcom.com>
3450 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3451 (mips_opts): Initialize "ase_mdmx" member.
3452 (file_ase_mdmx): New variable.
3453 (CPU_HAS_MDMX): New macro.
3454 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3455 based on command line options and configuration defaults.
3456 (macro_build): Note in comment that use of MDMX in macros is
3457 not currently allowed.
3458 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3459 "Z" MDMX operand types.
3460 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3461 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3463 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3464 Add support for "-mdmx" and "-no-mdmx" options.
3465 (OPTION_ELF_BASE): Move to accomodate new options.
3466 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3467 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3468 file_ase_mdmx was set.
3469 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3470 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3473 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3475 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3476 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3477 command line switch conforming to gcc conventions.
3478 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3480 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3482 * config/tc-mips.c (macro_build_jalr): New Function.
3483 (md_begin): NewABI uses big GOTs.
3484 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3485 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3486 (load_address): Add some NewABI PIC support.
3488 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3489 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3491 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3493 * config/tc-mips.c (load_address): Use mips_gp_register instead
3494 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3496 (macro): Use mips_gp_register instead of hardcoded value.
3498 2002-05-30 Richard Henderson <rth@redhat.com>
3500 * expr.h (operatorT): Add O_md17..O_md32.
3501 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3502 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3503 O_tprelhi, O_tprello, O_tprel): New.
3504 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3505 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3506 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3507 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3508 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3509 (md_apply_fix3): Handle TLS relocations.
3510 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3511 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3512 associated TLS reloc. Check lituse_tls relocs match up.
3513 (emit_insn): Handle TLS relocations.
3516 * doc/c-alpha.texi: Add docs for tls relocations.
3518 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3520 * config/tc-mips.c (mips_gprel_offset): New variable.
3521 (s_gpvalue): Use it.
3523 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3525 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3526 write-write conflicts.
3527 (md_assemble): Reformat introductory comment.
3528 (parallel_ok): Prevent packing only if the first
3529 instruction cannot be packed.
3531 2002-05-30 Jason Eckhardt <jle@redhat.com>
3532 Tom Rix <trix@redhat.com>
3534 * config/tc-d10v.c (build_insn): Check for immediates.
3536 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3538 * config/tc-mips.c: Replace GP in comments by $gp.
3539 (mips_big_got): Initialize.
3540 (mips_trap): Initialize.
3541 (load_address): Use mips_gp_register instead of hardcoded value.
3542 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3543 (macro): Use mips_gp_register instead of hardcoded value.
3544 (macro2): Change load_address calls.
3545 (md_pcrel_from): Comment formatting.
3546 (s_cpload): Use mips_gp_register instead of hardcoded value.
3547 (s_cprestore): Likewise. Comment formatting.
3548 (s_gpword): Fix data type.
3549 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3550 (nopic_need_relax): Replace GP in comments by $gp.
3551 (mips_elf_final_processing): Better comment.
3553 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3555 * configure.in: Add DLX configuraton
3556 * Makefile.am: Add DLX configuraton
3557 * configure: Regenerate.
3558 * Makefile.in: Regenerate.
3559 * config/tc-dlx.c: New file.
3560 * config/tc-dlx.h: New files.
3561 * NEWS: Mention new support.
3563 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3565 * config/obj-coff.c (write_object_file): Add missing semicolon.
3567 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3569 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3570 by the define. Remove superfluous check of mips_opts.mips16.
3571 (append_insn): Likewise. Canonicalize variable increments.
3572 (macro_build): Canonicalize variable increments.
3573 (macro_build_lui): Likewise.
3574 (load_register): Likewise.
3575 (load_address): Move pointer initialization.
3576 (macro): Move pointer to a more local scope. Canonicalize variable
3577 increments. Better comments. Replace magic constant for RA by the
3579 (macro2): Replace magic constant for RA by the define. Canonicalize
3580 variable increments.
3581 (mips_ip): Canonicalize variable increments.
3582 (mips16_ip): Replace magic constant for RA by the define.
3583 (my_getSmallParser): Canonicalize variable increments/decrements.
3584 (my_getPercentOp): Likewise.
3585 (my_getSmallExpression): Likewise.
3586 (s_align): Likewise.
3587 (s_mipsset): Likewise.
3588 (s_cpsetup): Likewise.
3589 (s_insn): Remove superfluous check of mips_opts.mips16.
3590 (s_mips_stab): Likewise.
3591 (mips_handle_align): Canonicalize variable increments.
3592 (s_mips_ent): Likewise.
3593 (s_mips_end): Add comment.
3595 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3597 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3598 * configure: Regenerate.
3600 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3602 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3603 * Makefile.in: Regenerate.
3604 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3605 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3606 * configure: Regenerate.
3607 * as.h: Use #include "" instead of <> for local header files.
3608 * flonum-konst.c: Likewise.
3609 * flonum-mult.c: Likewise.
3611 * listing.c: Likewise.
3612 * config/tc-ia64.h: Likewise.
3613 * config/tc-v850.h: Likewise.
3615 2002-05-24 TAMURA Kent <kent@netbsd.org>
3617 * configure.in: Add a target for i386-netbsdpe.
3618 * configure: Regenerate.
3620 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3622 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3623 (obj_elf_common): Call elf_common.
3624 (obj_elf_tls_common): New function.
3625 (elf_pseudo_tab): Support .tls_common.
3626 (special_sections): Add .tdata and .tbss.
3627 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3629 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3630 (obj_elf_parse_section_letters): Include T in error message.
3631 * config/tc-ppc.c (ppc_section_letter): Likewise.
3632 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3633 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3635 * config/tc-sparc.c (md_apply_fix3): Likewise.
3636 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3637 Define them if not BFD_ASSEMBLER.
3638 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3640 (md_apply_fix3): Add TLS relocs.
3641 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3642 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3643 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3644 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3645 (ia64_elf_section_letter): Include T in error message.
3646 (md_begin): Support TLS operators.
3647 (md_operand): Likewise.
3648 (ia64_gen_real_reloc_type): Support TLS relocs.
3649 * write.c (adjust_reloc_syms): Don't change symbols in
3650 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3652 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3654 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3655 round the relocation up rather than down.
3657 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3659 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3661 * doc/as.texinfo: Document that the COFF version of .section
3662 ignores the 'a' flag.
3664 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3666 * config/tc-alpha.c (assemble_tokens): Protect use of
3667 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3669 * write.c (size_seg): Check adjustment to last frag.
3670 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3672 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3673 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3674 (write_object_file): Invoke md_do_align if available, and use
3675 frag_align_code on text sections.
3676 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3677 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3678 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3679 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3680 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3683 2002-05-22 H.J. Lu <hjl@gnu.org>
3685 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3688 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3690 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3693 2002-05-22 H.J. Lu <hjl@gnu.org>
3695 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3696 for one .loc for compiler.
3698 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3700 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3703 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3705 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3706 Optimize the rotate by zero case.
3708 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3710 * configure.in: Remove accidental enabling of bfd_gas=yes for
3712 * configure: Regenerate.
3714 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3716 * app.c: Fix formatting.
3718 * ehopt.c: Likewise.
3720 * input-file.c: Likewise.
3721 * listing.c: Likewise.
3722 * macro.h: Likewise.
3723 * stabs.c: Likewise.
3724 * symbols.c: Likewise.
3726 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3728 * config/obj-generic.c: Delete file.
3729 * config/obj-generic.h: Likewise.
3731 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3733 * config/tc-avr.c (mcu_types): Update for new devices.
3735 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3737 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3739 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3741 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3742 worked sometimes by accident. Fix copy&paste comment.
3744 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3746 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3747 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3748 (mips_elf_final_processing): Let n32 use .reginfo.
3750 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3752 * config/tc-mips.c (append_insn): Fix too small range of variable.
3754 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3756 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3757 listing_prev_line().
3759 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3761 * config/tc-arm.c (md_assemble): Remove redundant call to
3764 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3767 * stabs.c (s_stab_generic): Fix grammatical error in warning
3770 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3772 * write.c (subsegs_finish): Don't specially align last subseg.
3774 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3776 * stabs.c (s_stab_generic): Warn about a description field that is
3779 * config/obj-coff.c: Fix compile time warnings when compiling
3780 without BFD_ASSEMBLER defined.
3783 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3785 (md_pcrel_from_section): Use md_pcrel_from().
3787 2002-05-11 Bruno Haible <bruno@clisp.org>
3789 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3790 by dwarf2_directive_loc, instead of calling dwarf2_where.
3792 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3794 * config/obj-coff.h: Fix formatting.
3795 * config/tc-mcore.c: Likewise.
3796 * config/tc-mn10300.c: Likewise.
3797 * config/tc-openrisc.c: Likewise.
3798 * config/tc-or32.c: Likewise.
3799 * config/tc-pdp11.c: Likewise.
3800 * config/tc-ppc.c: Likewise.
3801 * config/tc-ppc.h: Likewise.
3802 * config/tc-sh64.c: Likewise.
3803 * config/tc-sh.c: Likewise.
3804 * config/tc-tic54x.c: Likewise.
3805 * config/tc-xstormy16.c: Likewise.
3806 * config/tc-xstormy16.h: Likewise.
3808 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3810 * config/obj-coff.c: Fix formatting.
3811 * config/obj-elf.c: Likewise.
3812 * config/tc-alpha.c: Likewise.
3813 * config/tc-arm.c: Likewise.
3814 * config/tc-d10v.c: Likewise.
3815 * config/tc-d30v.c: Likewise.
3816 * config/tc-h8300.c: Likewise.
3817 * config/tc-hppa.c: Likewise.
3819 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3821 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3822 reloc when no_cond_jump_promotion.
3824 2002-05-08 Jim Wilson <wilson@redhat.com>
3826 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3827 current variable part of frag.
3829 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3831 * config/tc-mmix.c: Fix formatting.
3832 * config/tc-mmix.h: Likewise.
3834 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3836 * configure: Regenerate.
3838 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3840 * config/tc-m68k.c: Fix formatting.
3842 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3844 * Makefile.am: Honour DESTDIR.
3845 * Makefile.in: Regenerate.
3847 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3849 * config/tc-ia64.c: Fix formatting.
3850 * config/tc-ia64.h: Likewise.
3852 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3854 * config/tc-mips.c: Fix formatting.
3855 * config/tc-s390.c: Likewise.
3856 * config/tc-s390.h: Likewise.
3858 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3860 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3861 information for instructions.
3863 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3865 * as.h: Fix formatting.
3868 * dwarf2dbg.c: Likewise.
3869 * frags.h: Likewise.
3871 * macro.c: Likewise.
3873 * stabs.c: Likewise.
3874 * symbols.c: Likewise.
3876 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3878 * app.c (mri_pseudo): Only declare for TC_M68K.
3880 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3881 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3882 BFD_RELOC_16_BASEREL.
3883 (md_assemble): Likewise.
3884 (md_apply_fix3): Likewise.
3886 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3888 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3889 zero into an add of zero - it is not the same.
3891 2002-05-01 Arati Dikey <aratid@kpit.com>
3893 * tc-sh.c (get_specific): Generate warning if the same
3894 destination register is used in parallel instructions.
3896 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3898 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3900 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3902 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3903 backwards to prevent cascading errors.
3905 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3907 * configure.in: Add support for powerpc-*-windiss.
3908 * configure: Regenerated.
3910 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3912 * config/tc-s390.c (md_parse_option): Formatting.
3914 * config/tc-i386.c: Formatting fixes, add missing space in error
3917 2002-04-24 Christian Groessler <chris@groessler.org>
3919 * config/tc-z8k.c (build_bytes): Add support for new cases:
3920 CLASS_IGNORE and ARG_NIM4.
3921 (md_assemble): Prevent destruction of input_line_pointer if
3922 get_operands returns failure.
3924 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3926 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3927 instructions to be generated by macros.
3929 2002-04-24 Andreas Schwab <schwab@suse.de>
3931 * config/tc-i386.c (output_jump, output_disp)
3932 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3934 (md_apply_fix3): Remember addend value for rela relocations.
3935 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3937 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3939 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3940 from previous change.
3942 2002-04-22 Eric Christopher <echristo@redhat.com>
3944 * config/tc-mips.c (macro_build): Add warning if macro instructions
3945 are expanded into a branch delay slot.
3947 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3949 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3950 numbers, gdb relies on them to detect the start of the prologue.
3952 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3954 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3955 symbols in merge sections.
3957 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3959 * as.c (main): Don't reference _bfd_chunksize.
3961 2002-04-15 Tom Rix <trix@redhat.com>
3963 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3964 symbols in merge sections.
3966 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3968 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3969 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3970 argument for the precision.
3971 (gen_to_words): Update accordingly.
3973 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3975 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3976 BFD_VERSION_STRING unavailable.
3977 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3979 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3981 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3982 symbol_used_in_reloc_p is true.
3984 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3987 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3989 * dep-in.sed: Cope with absolute paths.
3990 * Makefile.am (dep.sed): Subst TOPDIR.
3992 * Makefile.in: Regenerate.
3994 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3996 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3997 (mips_ip): Remove unused variable.
3998 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3999 unsigned char with bfd_byte.
4000 (s_file): Remove unused variable.
4001 (s_mips_ent): Likewise.
4003 2002-04-03 Tom Rix <trix@redhat.com>
4005 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4007 (find_opcode): Fix warning in as_warn.
4008 * config/tc-d10v.h: Update Copyright.
4010 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4011 Tom Rix <trix@redhat.com>
4013 From Jeff Knaggs <jknaggs@redhat.com>
4014 * config/tc-d10v.c (check_resource_conflict): New function to
4015 check for resource conflicts.
4017 From Jason Eckhardt <jle@redhat.com>
4018 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4020 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4021 reserved control registers is used.
4022 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4025 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4026 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4027 instruction cannot be packed.
4029 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4030 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4031 write-write conflicts.
4032 (md_assemble): Reformat introductory comment.
4033 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4036 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4038 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4039 O_logical_not>): Derive final_seg from add_symbol.
4040 <O_multiply..O_logical_or>: More final_seg twiddles.
4042 2002-04-01 Jessica Han <jessica@cup.hp.com>
4044 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4047 2002-03-27 Andreas Schwab <schwab@suse.de>
4049 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4050 field for pc-relative fixups.
4051 (output_disp): Likewise.
4052 (md_estimate_size_before_relax): Likewise.
4053 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4054 pc-relative fixups in 64bit mode.
4056 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4058 * config/te-aix5.h: Typo fix.
4060 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4062 * Makefile.am: Run "make dep-am".
4063 * Makefile.in: Regenerate.
4064 * doc/Makefile.in: Regenerate.
4066 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4068 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4069 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4071 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4073 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4074 the EXTENDED bit here; report the estimate according to the
4077 2002-03-18 Tom Rix <trix@redhat.com>
4079 * configure.in: Add AIX 5 support.
4080 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4081 * config/te-aix5.h: New file. AIX 5 support.
4082 * configure: Regenerate.
4084 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4086 * po/fr.po: Updated version.
4088 2002-03-16 Andreas Jaeger <aj@suse.de>
4090 * doc/c-mips.texi (Machine Dependencies): Add new node.
4092 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4094 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4095 (mips_opts): Initialize "ase_mips3d" member.
4096 (file_ase_mips3d): New variable.
4097 (CPU_HAS_MIPS3D): New macro.
4098 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4099 based on command line options and configuration defaults.
4100 (macro_build, mips_ip): Accept MIPS-3D instructions if
4101 mips_opts.ase_mips3d is set.
4102 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4103 Add support for "-mips3d" and "-no-mips3d" options.
4104 (OPTION_ELF_BASE): Move to accomodate new options.
4105 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4106 (mips_elf_final_processing): Add a comment indicating that a
4107 MIPS-3D ASE ELF header flag should be set, when one exists.
4108 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4109 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4110 nomips3d" directives.
4112 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4114 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4115 a weak symbol in same section to be within reach.
4117 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4119 * po/fr.po: Updated version.
4121 2002-03-12 Andreas Schwab <schwab@suse.de>
4123 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4124 body record so that an error is given for misplaced .save
4127 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4129 * config/tc-i386.h (REX_OPCODE): Define.
4130 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4131 (rex_byte): typedef to int.
4132 * config/tc-i386.c: Group prototypes and vars together.
4133 Formatting fixes. Remove occurrences of "register" keyword.
4136 (mode_from_disp_size): Add INLINE keyword to prototype.
4137 (fits_in_signed_byte): Likewise.
4138 (fits_in_unsigned_byte): Likewise.
4139 (fits_in_unsigned_word): Likewise.
4140 (fits_in_signed_word): Likewise.
4141 (fits_in_unsigned_long): Likewise.
4142 (fits_in_signed_long): Likewise.
4143 (type_names): Constify.
4144 (intel_float_operand): Constify param.
4145 (add_prefix): Use REX_OPCODE.
4146 (md_assemble): Likewise. Modify for changed rex_byte.
4147 (parse_insn): Split out of md_assemble.
4148 (parse_operands): Likewise.
4149 (swap_operands): Likewise.
4150 (optimize_imm): Likewise.
4151 (optimize_disp): Likewise.
4152 (match_template): Likewise.
4153 (check_string): Likewise.
4154 (process_suffix): Likewise.
4155 (check_byte_reg): Likewise.
4156 (check_long_reg): Likewise.
4157 (check_qword_reg): Likewise.
4158 (check_word_reg): Likewise.
4159 (finalize_imm): Likewise.
4160 (process_operands): Likewise.
4161 (build_modrm_byte): Likewise.
4162 (output_insn): Likewise.
4163 (output_branch): Likewise.
4164 (output_jump): Likewise.
4165 (output_interseg_jump): Likewise.
4166 (output_disp): Likewise.
4167 (output_imm): Likewise.
4169 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4171 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4173 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4175 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4176 relocs except when BFD64.
4178 * write.c (number_to_chars_bigendian): Don't abort when N is
4179 larger than sizeof (VAL).
4180 (number_to_chars_littleendian): Likewise.
4182 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4184 * config/tc-hppa.c (md_apply_fix3): Add cast.
4185 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4188 2002-03-05 Paul Koning <pkoning@equallogic.com>
4190 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4191 (parse_ac5): New function for parsing float regs in float operand.
4192 (parse_expression): Remove attempt to make literals be octal.
4193 (parse_op_no_deferred): Support float literals.
4194 (parse_op): Reject attempts to refer to float regs.
4195 (parse_fop): New function, like parse_op but for float operand.
4196 (md_assemble): Add cases to parse float operands. Also fix
4197 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4199 2002-03-04 H.J. Lu <hjl@gnu.org>
4201 * config/obj-elf.c (special_section): Add .init_array,
4202 .fini_array and .preinit_array.
4204 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4205 .init_array and .fini_array.
4207 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4209 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4211 (obj_frob_symbol): Copy visibility.
4213 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4215 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4217 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4219 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4221 * po/es.po: Updated.
4223 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4225 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4226 only, undo the changes made on 2001-06-08, with the
4227 effect being that common or extern symbols are
4228 adjusted for embedded-PIC, but weak symbols are not.
4229 (md_estimate_size_before_relax: Likewise, with the effect
4230 that extern symbols are treated the same as weak symbols
4231 only if not embedded-PIC.
4232 (mips_fix_adjustable) Likewise, with the effect that
4233 weak or extern symbols are not adjusted for embedded-PIC.
4234 (md_apply_fix3): Tweak so that the case where value is zero
4235 is handled more correctly for embedded-PIC code.
4237 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4239 * doc/as.texinfo (Overview): Add missing @ifset IA64
4241 * configure.in (LINGUAS): Add es.po.
4242 * configure: Regenerate.
4243 * po/es.po: New file.
4245 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4247 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4248 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4249 and NO_PIC cases. Code cleanup.
4250 (macro2): Fix handling of 64bit register loads.
4252 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4254 * doc/as.texinfo: Add entry for IA64.
4255 * doc/c-ia64.texi: New file.
4257 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4259 * config/tc-hppa.c: Update copyright date.
4261 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4262 Remove references to chip manufacturers.
4263 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4265 (md_show_usage): Remove references to chip manufacturers. Mention
4267 (md_begin): Test power4 opcode flag bits.
4269 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4271 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4272 count exceeds prologue count.
4273 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4274 (unwind.label_prologue_count): New member.
4276 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4278 (get_saved_prologue_count): New function.
4279 (save_prologue_count): New function.
4280 (free_saved_prologue_count): New function.
4281 (dot_label_state): Record state label by calling save_prologue_count().
4282 (dot_copy_state): Restore prologue count by calling
4283 get_saved_prologue_count().
4284 (generate_unwind_image): Free up list of saved prologue
4285 counts by calling free_saved_prologue_counts().
4287 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4289 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4290 function declarations.
4292 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4294 * NEWS: Note that GASP is now deprecated.
4295 * Makefile.am: Do not build gasp-new by default.
4296 * Makefile.in: Regenerate.
4297 * doc/Makefile.am: Do not install gasp.info.
4298 * doc/Makefile.in: Regenerate.
4299 * gas/gasp.texi: Note that gasp is now deprecated.
4301 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4303 * NEWS: Mark 2.12 branch.
4305 2002-02-19 Tom Tromey <tromey@redhat.com>
4307 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4309 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4311 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4314 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4316 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4317 Make bit size independent of architecture switch.
4318 (md_begin): Add warning for -m64 with -Aesa.
4319 (s390_md_end): Use renamed architecture defines.
4321 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4323 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4325 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4327 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4330 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4332 * config/tc-mips.c (md_estimate_size_before_relax): Really
4333 make sure we treat weak like extern only for ELF. (Fixes
4334 patch from 2001-07-25.)
4336 2002-02-15 Ben Elliston <bje@redhat.com>
4338 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4341 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4343 * NEWS: Mention support for MMIX.
4345 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4347 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4348 a sequence of indpendent 'if' statements for easier debugging
4349 and future modification.
4351 2002-02-13 Matt Fredette <fredette@netbsd.org>
4353 * config/tc-m68k.c (md_show_usage): No longer display a
4354 hard-coded "68020" for the default CPU, instead display the
4355 canonical name of the true, configured default CPU.
4356 (m68k_elf_final_processing): Mark objects for sub-68020
4357 CPUs with the new EF_M68000 flag.
4359 2002-02-13 Andreas Schwab <schwab@suse.de>
4361 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4362 pc-relative relocations to merge sections in 64-bit mode.
4364 2002-02-13 Ben Elliston <bje@redhat.com>
4366 * NEWS: Document floating point number handling in gasp.
4367 * gasp.c: Include <assert.h> and "xregex.h".
4368 (is_flonum): New function.
4369 (chew_flownum): Likewise.
4370 (change_base): Consume flonums from the input, where possible.
4371 * doc/gasp.texi (Constants): Document floating point numbers.
4373 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4375 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4376 that implicitly use LR and RR selectors.
4378 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4380 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4381 and `epsw' as available on AM33 and above only.
4382 (other_register_name): Add logic to handle machine type encoded in
4385 2002-02-11 Tom Rix <trix@redhat.com>
4387 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4390 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4392 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4395 2002-02-11 Jan Hubicka <jh@suse.cz>
4397 * i386.c (md_assemble): Support 32bit address prefix.
4398 (i386_displacement): Likewise.
4399 (i386_index_check): Accept 32bit addressing in 64bit mode.
4401 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4403 * config/tc-sh.c (dot): Removed unused function.
4405 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4407 * Makefile.am: "make dep-am".
4408 * Makefile.in: Regenerate.
4409 * aclocal.m4: Regenerate.
4410 * config.in: Regenerate.
4411 * configure: Regenerate.
4412 * doc/Makefile.in: Regenerate.
4414 2002-02-10 Richard Henderson <rth@redhat.com>
4416 * doc/c-alpha.texi: New file.
4417 * doc/Makefile.am (CPU_DOCS): Add it.
4418 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4420 2002-02-09 Richard Henderson <rth@redhat.com>
4422 * config/tc-alpha.c (O_samegp): New.
4423 (USER_RELOC_P): Include it.
4424 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4425 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4426 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4427 (alpha_validate_fix): New.
4428 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4430 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4432 * doc/c-cris.texi: New.
4433 * doc/all.texi: @set CRIS.
4434 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4435 Include c-cris.texi.
4436 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4437 * doc/Makefile.in: Regenerate.
4439 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4441 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4442 determine if a number is a sign-extended 32-bit number.
4443 (load_register): Use IS_SEXT_32BIT_NUM.
4444 (macro): Check if load/store macro handling is using a
4445 constant 32-bit address on 64-bit address systems, and if
4446 so optimize the generation of that address.
4448 2002-02-08 Richard Henderson <rth@redhat.com>
4450 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4451 we've eliminated all foreign relocation types yet.
4452 (alpha_fix_adjustable): Likewise.
4454 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4456 Contribute sh64-elf.
4457 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4458 Stephen Clarke <Stephen.Clarke@st.com>
4459 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4460 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4461 * config/tc-sh.c (md_relax_table): Added default sizes for
4462 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4463 MOVI_16, MOVI_32 and MOVI_48.
4464 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4465 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4467 (shmedia_md_estimate_size_before_relax): Remove redundant
4468 blocks. Set fragP->fr_var even if relaxation type unchanged.
4469 Retain UNDEF_MOVI until expression decays to number.
4470 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4471 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4472 relocation types. Take fixP->fx_addnumber into account too.
4473 (shmedia_md_apply_fix): Likewise.
4474 (shmedia_md_convert_frag): Likewise.
4475 (shmedia_build_Mytes): Likewise.
4476 (sh64_consume_datalabel): Complain about nested datalabel.
4477 Support PIC relocs. Call sh_parse_name.
4478 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4479 in tc-sh.h to SHmedia reloc types.
4480 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4481 MOVI_GOTPC): New relaxation constants.
4482 (md_relax_table): Introduce relaxation directives for PIC-related
4484 (sh_PIC_related_p): Handle datalabel.
4485 (sh_check_fixup): Choose SH5 PIC relocations.
4486 (sh_cons_fix_new): Added BDF_RELOC_64.
4487 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4488 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4489 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4490 current ISA is SHmedia, get 7 bytes.
4491 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4492 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4494 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4495 shmedia_apply_fix3 and make void.
4496 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4497 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4499 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4500 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4501 2001-03-14 DJ Delorie <dj@redhat.com>
4502 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4503 * doc/Makefile.in(CPU_DOCS): Ditto.
4504 * doc/c-sh64.texi: New file.
4505 * doc/as.texinfo: Add SH64 support.
4506 2001-03-13 DJ Delorie <dj@redhat.com>
4507 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4508 A_REUSE_PREV so that its purpose is more obvious.
4509 (shmedia_build_Mytes): Ditto.
4510 2001-03-07 DJ Delorie <dj@redhat.com>
4511 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4513 (sh64_vtable_inherit): Ditto.
4514 (strip_datalabels): New, strip "datalabel" from given line.
4515 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4517 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4518 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4520 (shmedia_build_Mytes): ... to here.
4521 2001-03-06 DJ Delorie <dj@redhat.com>
4522 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4524 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4525 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4526 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4527 address by one in call to dwarf2_emit_insn.
4528 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4529 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4530 alignment handling broken by imported changes.
4531 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4532 (sh64_handle_align): Declare.
4533 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4534 (sh64_max_mem_for_rs_align_code): Declare.
4535 (enum sh64_isa_values): Moved here from tc-sh64.c.
4536 (md_do_align): Define.
4537 (sh64_do_align): Declare.
4538 (struct sh64_tc_frag_data): New.
4539 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4541 (TC_FRAG_INIT): Change to set new datatype.
4542 (struct sh64_segment_info_type): Rename member
4543 last_flushed_location to last_contents_mark. All users changed.
4544 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4545 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4546 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4547 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4548 of unsetting seen_insn.
4549 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4550 call sh64_update_contents_mark.
4551 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4552 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4553 enum sh64_isa_values.
4554 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4555 (emitting_crange): Boolean guard moved to file scope from function
4556 scope in sh64_set_contents_type.
4558 (sh64_update_contents_mark): New; most split out from
4559 sh64_flush_pending_output.
4560 (shmedia_md_end): Call sh64_update_contents_mark. Set
4561 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4562 (sh64_do_align): New function.
4563 (sh64_max_mem_for_rs_align_code): New function.
4564 (sh64_handle_align): Rename from shmedia_do_align. Make
4565 non-static. Add head comment. Emit zero bytes for n bytes modulo
4566 four. Change return-type to void.
4567 (shmedia_elf_new_section): Remove.
4568 (shmedia_md_assemble): Call sh64_update_contents_mark.
4569 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4570 new frag. Call sh64_update_contents_mark after making the new
4572 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4573 and sh_flush_pending_output.
4574 (sh64_flag_output): Also call md_flush_pending_output, but add
4575 condition on not emitting_crange.
4576 (sh64_tc_cons_fix_new): Remove.
4577 2001-01-12 Nick Clifton <nickc@redhat.com>
4578 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4579 alignment handling scheme imported from sourceware.
4580 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4581 * config/tc-sh64.h (TARGET_FORMAT): Define.
4582 (sh64_target_format): Prototype.
4583 * config/tc-sh64.c (sh64_target_mach): New function.
4584 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4585 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4586 zero_address_frag instead of copying the frag of the symbol.
4587 (shmedia_frob_file_before_adjust): Ditto.
4588 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4589 to valueT to remove signedness.
4590 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4591 headers to output_bfd. Do not evaluate symbols if final is false;
4593 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4594 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4595 to the current frag, call shmedia_md_convert_frag to emit fixups
4596 and make frag_wane neutralize the frag. Update comments.
4597 * config/tc-sh.c (md_convert_frag): Change caller of
4598 shmedia_md_convert_frag.
4599 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4600 * config/tc-sh64.h: Tweak comments and correct formatting.
4601 * config/tc-sh64.c: Ditto.
4602 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4603 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4604 for the no-relocation case.
4605 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4606 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4608 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4610 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4611 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4613 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4615 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4616 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4617 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4618 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4619 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4620 if reloc is emitted.
4621 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4622 New options plus bugfixes.
4623 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4625 (md_parse_option): Handle new options.
4626 (md_show_usage): Add blurb for new options.
4627 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4628 (sh64_expand, sh64_pt32): New variables.
4629 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4630 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4631 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4632 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4633 <resolved previously-pc-relative relocs>: Handle
4634 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4635 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4636 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4637 points to SHcompact code.
4638 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4639 SH64PCREL16)>: Check that ISA of what operand points at and
4640 PTA/PTB matches, or emit error.
4641 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4642 SHMEDIA_BFD_RELOC_PT.
4643 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4645 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4646 condition for MOVI expansion.
4647 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4648 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4650 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4652 (sh64_target_format): Error-check setting of sh64_pt32 and
4653 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4654 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4655 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4656 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4657 * config/tc-sh64.c: Improve comments.
4658 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4659 not say the linker will check correctness of PTA/PTB expansion.
4660 (shmedia_md_end): Make non-static.
4661 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4663 * config/tc-sh.c (sh_finalize): Remove.
4664 * config/tc-sh.h (md_end): Do not define.
4665 Remove prototype for sh_finalize.
4666 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4667 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4668 sh64_section_data container when storing section type in tdata
4669 field in elf_section_data.
4670 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4672 * Makefile.am: Update dependencies.
4673 * Makefile.in: Regenerate.
4674 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4675 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4676 dwarf2_emit_insn call with test on debug_type.
4677 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4678 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4679 CRT_SH5_ISA32 sticky for 64-bit.
4680 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4681 Generate .crange sections when switching ISA mode or emitting
4682 constants in same section as code.
4683 * config/tc-sh64.c: Reformat structure definitions.
4684 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4686 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4687 to emit a .cranges descriptor when contents type changes. Only
4688 emit error if changing contents type and -no-mix is in effect.
4689 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4690 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4691 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4692 sh64_flush_last_crange over sections.
4693 When checking main symbol of datalabel symbol, check for
4694 STO_SH5_ISA32, not ISA type of section in definition.
4695 (shmedia_frob_file_before_adjust): Check main symbol for
4696 STO_SH5_ISA32; don't check ISA type of section in definition.
4697 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4698 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4699 .cranges entries have been output.
4700 (shmedia_elf_new_section): Just call md_flush_pending_output.
4701 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4702 fix. Do not set tc_segment_info_data.in_code for section. Call
4703 sh64_set_contents_type for SHmedia code.
4704 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4705 false. Call md_flush_pending_output.
4706 (sh64_target_format): Check that -no-mix and
4707 -shcompact-const-crange are used in sane combination with other
4709 (shmedia_md_pcrel_from_section): Check type of fix for how to
4711 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4712 not ISA type of section in definition.
4713 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4714 hold contents-type state.
4715 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4716 (sh64_flush_pending_output): Declare.
4717 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4718 (sh64_tc_cons_fix_new): Declare.
4719 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4720 call sh64_flag_output.
4721 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4722 call sh64_set_contents_type to mark SHcompact code and set
4724 (md_longopts): New options "-no-mix" and
4725 "-shcompact-const-crange".
4726 (md_parse_option): Handle new options.
4727 (md_show_usage): Add blurb for new options.
4728 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4729 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4730 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4731 (sh64_last_insn_frag): New.
4732 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4733 to get frag for insn opcode for generating fixups; do not assume it
4735 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4737 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4739 (TC_FRAG_TYPE): Define as fragS *.
4740 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4741 (sh64_last_insn_frag): Declare.
4742 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4743 not == NULL before dereferencing.
4744 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4745 Get rid of BFD section flag and EF_SH64_ABI64.
4746 * config/tc-sh64.c (shmedia_frob_section_type): Use
4747 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4748 communicate the section as containing SHmedia code. Describe why.
4749 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4750 EF_SH64 regardless of ABI.
4751 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4752 in error message. Handle resolved expressions for
4753 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4754 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4755 (shmedia_check_limits): Handle BFD_RELOC_64.
4756 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4757 a STO_SH5_ISA32 symbol, only the BFD value.
4758 2000-12-11 Ben Elliston <bje@redhat.com>
4759 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4760 dwarf2_generate_asm_lineno.
4761 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4762 Handle PC-relative MOVI expansions with assembler relaxation.
4763 Generate PC-relative relocs from 16-bit PC-relative expressions.
4764 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4765 (shmedia_md_pcrel_from_section): ...here.
4766 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4767 turned completely resolved. Adjust relocation type for 16-bit
4768 immediate operands that has turned PC-relative. Adjust back for
4769 MD_PCREL_FROM_SECTION being applied twice.
4770 (shmedia_md_convert_frag): Always emit reloc for expression with
4771 global or weak symbol. Handle relaxation result for PC-relative
4773 (shmedia_md_estimate_size_before_relax): An expression with a weak
4774 or global symbol can not be relaxed. Break out tests for
4775 relaxable symbol into variable sym_relaxable.
4776 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4777 UNDEF_MOVI)>: Break out any PC-relative expression and change
4779 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4781 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4782 MOVI expansion. If X_op_symbol of the immediate expression is
4783 set, make an expression symbol for the argument to frag_var.
4784 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4786 (END): Adjust for new relaxations.
4787 (md_relax_table): Add entries for new relaxations.
4788 2000-12-07 Ben Elliston <bje@redhat.com>
4789 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4790 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4791 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4792 SHORI operand offsets in PT/PTA/PTB expansions.
4793 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4794 Implement DataLabel semantics.
4795 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4796 shmedia_frob_file_before_adjust.
4797 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4798 (DATALABEL_SUFFIX): Define.
4799 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4800 symbol list to update "datalabel" symbols to their main symbol
4802 (shmedia_frob_file_before_adjust): New.
4803 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4804 undefined and set STT_DATALABEL.
4805 (sh64_frob_label): Initialize TC symbol field.
4806 (sh64_consume_datalabel): Actually implement semantics. New
4807 parameter operandf, call it instead of expression.
4808 (sh64_exclude_symbol): New.
4809 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4810 to sh64_consume_datalabel.
4811 (tc_symbol_new_hook): Define to tc_frob_symbol.
4812 (TC_SYMFIELD_TYPE): Define to symbolS *.
4813 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4814 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4815 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4817 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4818 generating dwarf2 debug information.
4819 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4820 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4821 elf64-sh64 for the 64-bit ABI.
4822 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4824 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4825 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4827 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4828 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4829 (enum sh64_abi_values): New type.
4830 (enum sh64_isa_values): New type.
4831 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4832 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4833 (sh64_abi): Replace shmedia_64.
4834 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4835 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4836 (s_sh64_mode): Check validity for this target.
4837 (sh64_target_format): Initialize defaults for ISA and ABI.
4838 Fallback to old object format if no SH64 ISA or ABI has been
4840 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4841 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4842 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4843 * config/tc-sh64.h: Fix typo in comment.
4844 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4845 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4846 <PT fixups for absolute values>: Size will be longest, not
4848 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4849 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4850 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4851 and l1 to hold lowercase of two first characters. Change all
4852 remaining TO_LOWER to tolower.
4853 * config/tc-sh64.c (TO_LOWER): Delete.
4854 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4855 (md_parse_name): Define.
4856 (sh64_consume_datalabel): Declare.
4857 (DOLLAR_DOT): Define.
4858 * config/tc-sh64.c (shmedia_parse_exp): New.
4859 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4860 (shmedia_parse_reg): Remove const from src
4862 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4863 (shmedia_md_assemble): Ditto for op_end variable.
4864 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4865 Use shmedia_parse_exp, not parse_exp.
4866 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4867 parameter. All callers changed.
4868 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4870 (shmedia_parse_reg): Put first two character in local variables.
4871 Use tolower, not TO_LOWER. If no register is found and argtype
4872 indicates a control register, scan shmedia_creg_table
4874 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4875 * Makefile.am (CPU_TYPES): Add sh64.
4876 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4877 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4878 Regenerate dependencies.
4879 * Makefile.in: Regenerate.
4880 * configure.in: Add support for sh64-*-elf*.
4881 * configure: Regenerate.
4882 * config/tc-sh64.h: New.
4883 * config/tc-sh64.c: New.
4884 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4885 .mode, .isa and .uaquad.
4886 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4887 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4888 [HAVE_SH64] (END): Define as 10.
4889 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4890 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4892 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4893 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4894 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4895 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4897 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4898 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4899 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4900 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4901 SHmedia instructions. Handle state-change after switching to
4903 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4904 (md_parse_option) [HAVE_SH64]: Parse new options.
4905 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4906 (md_convert_frag) [HAVE_SH64] <default>: Call
4907 shmedia_md_convert_frag instead of abort.
4908 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4909 BFD_RELOC_SH_SHMEDIA_CODE.
4910 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4911 SHcompact or SHmedia code.
4912 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4913 shmedia_md_apply_fix instead of abort.
4914 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4915 result from calling shmedia_md_estimate_size_before_relax instead
4917 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4919 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4920 shmedia_init_reloc and do nothing more if it returns non-zero.
4921 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4922 * po/POTFILES.in: Regenerate.
4923 * po/gas.pot: Regenerate.
4925 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4927 * config/tc-sh.c (parse_at): Install the correct version of
4930 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4931 assume fixP->fx_subsy is non-NULL.
4933 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4935 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4936 A_DISP_PC_ABS, and adjust it by -4.
4937 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4939 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4940 the operand type is not A_DISP_PC_ABS.
4942 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4944 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4945 common and weak symbols. Handle common and weak symbols as
4946 undefined symbols with regards to GREG handling and merging.
4947 (mmix_frob_file): Ditto.
4949 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4951 * configure.in (hppa-*-netbsd*): New target.
4952 * configure: Regenerate.
4953 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4955 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4957 * config/tc-v850.c: Add missing prototypes amd use old-style
4958 function definitions.
4959 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4960 (sdata_section tdata_section, zdata_section, sbss_section,
4961 tbss_section, zbss_section, rosdata_section, rozdata_section,
4962 scommon_section, tcommon_section, zcommon_section,
4963 call_table_data_section, call_table_text_section): Delete.
4964 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4965 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4966 v850_call_table_data, v850_call_table_text): Delete.
4967 (struct v850_seg_entry): New.
4968 (v850_seg_table): New.
4969 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4970 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4971 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4972 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4975 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4976 recording of alignment.
4977 (md_pseudo_table): Use v850_seg.
4978 (md_begin): Don't init .call_table_data and .call_table_text here.
4979 Set v850_seg_table bss entry.
4981 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4983 Support on-demand global register allocation by passing on
4984 base-plus-offset relocs to the linker.
4985 * config/tc-mmix.c: Tweak and fix typos in comments.
4986 (allocate_undefined_gregs_in_linker): New variable.
4987 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4988 (md_longopts): Add --linker-allocated-gregs.
4989 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4990 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4991 (md_show_usage): Update text for -x. Add text for
4992 --linker-allocated-gregs.
4993 (tc_gen_reloc): Derive default value for addend from val and
4994 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4995 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4996 GREG if allocate_undefined_gregs_in_linker.
4997 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4998 --linker-allocated-gregs.
4999 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5000 --linker-allocated-gregs. Mention that it's implied by -x.
5001 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5002 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5004 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5006 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5008 * Makefile.am: Run "make dep-am"
5009 * Makefile.in: Regenerate.
5011 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5013 * config/tc-or32.c: New file.
5014 * config/tc-or32.h: New file.
5015 * configure.in: Add support for or32 targets.
5016 * configure: Regenerate.
5017 * config/obj-coff.c: Add support for or32 targets.
5018 * config/obj-coff.h: Add support for or32 targets.
5019 * Makefile.am: Add support for or32 targets.
5020 * Makefile.in: Regenerate.
5021 * NEWS: Mention support for OpenRISC.
5022 * doc/Makefile.in: Regenerate.
5023 * po/POTFILES.in: Regenerate.
5024 * po/gas.pot: Regenerate.
5026 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5028 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5031 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5033 * config/tc-mips.c (tc_gen_reloc): Arrange for
5034 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5035 their LO16 parts, even for ELF.
5037 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5039 * config/tc-i386.c: Protect definitions of true and false
5042 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5044 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5045 made because of .weak, if they are neither defined nor used in any
5048 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5050 * configure: Regenerated.
5052 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5054 * doc/Makefile.am (install): Depend on install-info.
5055 * doc/Makefile.in: Regenerate.
5057 2002-01-26 Nick Clifton <nick@redhat.com>
5059 * po/fr.po: Updated version
5061 2002-01-24 Kazu Hirata <kazu@hxi.com>
5063 * config/tc-h8300.c (check_operand): Don't print a warning
5064 when a valid 24-bit address is given to a 16-bit address
5067 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5069 * config/tc-sh.c (sh_elf_suffix): Removed.
5070 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5071 sh_end_of_match, sh_parse_name): New functions.
5072 (sh_elf_cons): Simplify.
5073 (parse_exp): Reject misplaced PIC operands.
5074 (md_undefined_symbol): Simplify.
5075 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5076 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5077 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5078 Complain if subsy remains at the end.
5079 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5080 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5082 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5084 * config/tc-mn10300.c (xr_registers): Move `pc'...
5085 (other_registers): ... here.
5087 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5089 * Makefile.am: Run "make dep-am".
5090 * Makefile.in: Regenerate.
5091 * gas/po/POTFILES.in: Regenerate.
5093 2002-01-21 DJ Delorie <dj@redhat.com>
5095 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5096 stabstr_name allocation permanent, as it will be referenced from
5099 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5101 * configure.in (ia64-*-netbsd*): New target.
5102 * configure: Regenerate.
5104 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5106 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5108 <Detailed description, ARM options>: Ditto.
5109 * doc/c-arm.texi (ARM Options): Ditto.
5111 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5113 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5114 do_mia, do_mar and do_mra respectively.
5115 (do_mav_*): Renamed from do_c_*.
5116 (mav_reg_required_here, mav_parse_offset): Renamed from
5117 cirrus_reg_required_here and cirrus_parse_offset respectively.
5118 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5120 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5121 Keith Walker <keith.walker@arm.com>
5123 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5124 (insns): Add pattern for bxj instruction.
5125 (do_bxj): New function.
5126 (arm_cpus): Add arm926ej.
5127 (arm_archs): Add armv5tej.
5129 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5131 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5133 2002-01-19 Keith Walker <keith.walker@arm.com>
5135 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5137 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5139 * NEWS: Mention new ARM command-line options and VFP support.
5141 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5143 (ARM_CEXT_MAVERICK): Similarly.
5144 (ARM_ANY): Now means any core instruction.
5145 (CPU_DEFAULT): Default to ARM_ANY.
5146 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5147 (pic_code): Declare for all object types. Make type int.
5148 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5149 (march_fpu_opt, mfpu_opt): Declare.
5150 (md_longopts): Tidy up conditional definitions.
5151 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5152 (arm_long_opts): New tables.
5153 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5154 (arm_parse_extension): New function.
5155 (md_parse_option): Rewrite using new table-driven system.
5156 (md_show_usage): Use new table-driven system.
5157 (md_begin): Calculate cpu_variant from command line option data.
5158 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5159 command-line options.
5160 * doc/c-arm.texi: Likewise.
5162 2002-01-18 Andreas Jaeger <aj@suse.de>
5164 * as.c (parse_args): Update year.
5166 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5168 * config/tc-tic54x.c (encode_address): Add a more informative
5169 warning about incorrect syntax.
5171 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5173 * po/gas.pot: Regenerate.
5175 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5177 * macro.c (get_any_string): Add no-c-format comment to prevent
5178 confusion when translating string.
5179 * gasp.c (get_any_string): Add no-c-format comment to prevent
5180 confusion when translating string.
5182 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5183 Johannes Stezenbach <js@convergence.de>
5184 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5185 matched before the shorter ones.
5186 (my_getSmallParser): Fix handling of nested parentheses in
5187 percent_op's. Code cleanup.
5188 (my_getPercentOp): New function, code from my_getSmallParser.
5189 (my_getSmallExpression): Fix handling of closing parentheses.
5190 Code cleanup. Better comments.
5192 2002-01-16 Nick Clifton <nickc@redhat.com>
5194 po/tr.po: New file: Turkish translation.
5195 configure.in (LINGUAS): Add "tr".
5196 configure: Regenerate.
5198 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5200 Support for VFP instructions
5201 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5202 (cp_address_required_here): New argument wb_ok. When false, do not
5203 accept write-back forms of addressing. Change all callers.
5204 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5205 (FPU_VFP_EXT_V2): Define.
5206 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5207 Define in terms of above.
5208 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5209 (vfp_reg): New struct.
5210 (vfp_regs): New array of registers.
5211 (insns): Add VFP instructions.
5212 (sn_table): New array of VFP single-precision register names.
5213 (dn_table): New array of VFP double-precision register names.
5214 (all_reg_maps): Add the new register tables.
5215 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5216 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5217 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5218 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5219 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5220 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5221 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5222 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5223 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5224 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5225 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5226 (do_vfp_sp_dp_cvt): New functions.
5227 (md_begin): Set soft-float flag for appropriate VFP work.
5228 (md_atof): Handle VFP-format doubles.
5229 (md_parse_option): Handle VFP command-line options.
5230 (md_show_usage): Display VFP command-line options.
5232 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5234 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5235 various command line options.
5237 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5239 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5241 (xstormy16_md_apply_fix3): Do not return a value.
5243 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5245 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5246 the -EL/-EB option that matches the target's endianness.
5247 (md_parse_option): Likewise.
5249 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5251 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5252 is not dependent on ARM_BI_ENDIAN.
5254 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5256 * tc-arm.c (all error messages): Normalize capitalization of messages.
5258 * tc-arm.h (md_operand): Delete define.
5259 * tc-arm.c (in_my_get_expression): New static variable.
5260 (my_get_expression): Set and clear it.
5261 (md_operand): New function. If called from my_get_expression
5262 put the error in inst.error.
5263 (output_inst): Now takes argument of instruction being assembled.
5264 Print it out with any error message.
5265 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5267 (end_of_line): Don't update inst.error if it is already set.
5269 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5271 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5272 op that can be translated into a mvn instruction.
5274 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5276 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5277 setting default md.flags.
5278 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5279 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5280 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5281 for 32 bit unwind info blocks.
5282 (generate_unwind_image): Add support for different types
5283 of unwind images (32 bits and/or big-endian).
5284 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5285 (ia64_target_format): Add support for hpux target formats.
5286 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5287 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5288 SHT_FINI_ARRAY elf section types.
5290 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5292 * tc-arm.c (struct reg_entry): Move before prototypes.
5293 (int_register, cp_register, fp_register): Delete.
5294 (reg_table): Delete. Replaced with ...
5295 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5296 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5297 (mav_dspsc_table): ... one table per register set.
5298 (arm_reg_hsh): Delete.
5299 (struct reg_map): New structure.
5300 (all_reg_maps): New array.
5301 (enum arm_reg_type): New enums.
5302 (build_reg_hsh): New function.
5303 (insert_reg_alias): Use hash table passed by caller. Adjust all
5305 (create_register_alias): New function, split out from ...
5306 (md_assemble): ... here.
5307 (md_begin): Build new register hash tables.
5308 (arm_reg_parse): New argument for the hash table to search. Adjust all
5310 (arm_reg_parse_any): New function.
5311 (co_proc_number): Look up the processor number in the processor hash
5313 (cirrus_regtype): Delete.
5314 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5315 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5316 (ARM_EXT_MAVERICKsc_register): Delete.
5317 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5318 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5320 (do_c_triple_4, do_c_triple_5): Delete.
5321 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5322 (do_c_quad_6): Delete.
5323 (do_c_quad_6[ab]): New functions.
5324 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5325 arguments to use new register parsing methods.
5326 (cirrus_reg_required_here): Likewise.
5327 (insns): Reclassify cirrus maverick worker functions.
5328 (cirrus_valid_reg): Delete.
5330 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5332 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5333 (sh*-*-netbsdelf*): New target.
5334 * configure: Regenerate.
5335 * tc-sh.h: Update copyright years.
5336 (TARGET_FORMAT): Add version for TE_NetBSD.
5338 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5340 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5343 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5345 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5346 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5348 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5350 * tc-mips.c (mips_cprestore_valid): New flag.
5351 (mips_frame_reg_valid): New flag.
5352 (macro) [M_JAL_2]: Check both flags.
5353 [M_JAL_A]: Likewise.
5354 (s_cprestore): Set mips_cprestore_valid.
5355 (tc_get_register): If setting mips_frame_reg, set
5356 mips_frame_reg_valid and clear mips_cprestore_valid.
5357 (s_mips_ent): Clear both flags.
5358 (s_mips_end): Clear both flags.
5360 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5362 * write.c (write_object_file): Make use of bfd_section_list_remove.
5363 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5364 * config/tc-mmix.c (mmix_frob_file): Likewise.
5366 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5368 * configure.in (i386-*-netbsdelf*): Collapse target into...
5369 (i386-*-netbsd*): ...this. Add support for x86-64.
5370 * configure: Regenerated.
5372 2002-01-03 matthew green <mrg@redhat.com>
5374 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5376 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5378 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5381 For older changes see ChangeLog-0001
5387 version-control: never