1 2003-05-01 H.J. Lu <hjl@gnu.org>
3 * config/tc-ia64.c (ia64_check_label): New.
4 * config/tc-ia64.h (tc_check_label): New.
6 * read.c (read_a_source_file): Call tc_check_label after
7 creating a user-defined label if defined.
9 2003-05-02 Alan Modra <amodra@bigpond.net.au>
11 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
12 -be and split strings to below 509 bytes in length.
14 2003-05-01 Christian Groessler <chris@groessler.org>
16 * expr.h: Fix comments in operatorT typedef.
17 * config/tc-z8k.c: Add 2003 to copyright message.
18 Fold s_segm() and s_unseg() into one function s_segm(parm) which
19 decides by the parameter.
20 (md_begin): Don't set linkrelax. Only set Z8002 default if no
21 command line argument was given to select the intended
23 (get_interrupt_operand): Warn if NOP type code is emitted.
24 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
25 (apply_fix): Call newfix with additional 'size' parameter.
26 (build_bytes): Remove unused variable 'nib'. Detect overflow in
27 4 bit immediate arguments.
28 (md_longopts): Add 'linkrelax' option.
29 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
30 variable when 'linkrelax' command line option is specified.
31 (md_show_usage): Display 'linkrelax' option.
32 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
34 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
36 2003-04-30 H.J. Lu <hjl@gnu.org>
38 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
39 (ia64_float_to_chars): Likewise.
40 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
41 and ia64_float_to_chars by tc_segment_info_data.endian from
42 the current segment if byteorder == -1.
43 (md_begin): Call dot_byteorder to set target_big_endian.
44 (md_atof): Call ia64_float_to_chars to convert floating point.
45 (ia64_float_to_chars_bigendian): New function.
46 (ia64_float_to_chars_littleendian): Likewise.
47 (ia64_elf_section_change_hook): Likewise.
49 * config/tc-ia64.h (ia64_number_to_chars): New.
50 (md_number_to_chars): Changed to (*ia64_number_to_chars)
51 (ia64_elf_section_change_hook): New.
52 (md_elf_section_change_hook): Defined.
53 (ia64_segment_info_type): New struct.
54 (TC_SEGMENT_INFO_TYPE): Defined.
56 2003-04-30 H.J. Lu <hjl@gnu.org>
58 * config/tc-ia64.c (md_section_align): Deleted.
60 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
61 (md_section_align): New.
63 2003-04-30 H.J. Lu <hjl@gnu.org>
65 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
67 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
69 (md_atof): Add 6 byte padding of zero for real16.
71 2003-04-29 Nick Clifton <nickc@redhat.com>
73 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
74 start of a version name.
76 2003-04-28 Chris Demetriou <cgd@broadcom.com>
78 * configure.in (mips-*-*n*bsd*): Replace with...
79 (mips-*-netbsd*, mips-*-openbsd*): These.
80 * configure: Regenerate.
82 2003-04-28 H.J. Lu <hjl@gnu.org>
84 * config/tc-hppa.c (hppa_symbol_chars): New.
85 * config/tc-hppa.h (tc_symbol_chars): Likewise.
87 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
89 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
91 2003-04-25 Chris Demetriou <cgd@broadcom.com>
93 * NEWS: Belatedly mention support for MIPS32 Release 2.
95 2003-04-24 Eric Christopher <echristo@redhat.com>
97 * config/tc-mips.c (nopic_need_relax): Revert previous
100 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
102 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
103 * config/tc-h8300.c (dwarf2dbg.h): Include
104 (md_pseudo_table): Handle .loc and .file
105 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
106 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
107 * Makefile.in: Regenerate.
109 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
111 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
112 (md_pseudo_table): Add h8300hn, h8300sn.
113 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
114 * doc/c-h8300.texi : Add documentation for new machine directives.
116 2003-04-24 Nick Clifton <nickc@redhat.com>
118 * config/tc-ppc.c (ppc_symbol_chars): Define.
119 * config/tc-ppc.h (tc_symbol_chars): Define.
121 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
123 * config/tc-sh.c: Amend comment to refer to SuperH.
124 * config/tc-sh.h: Likewise.
125 (LISTING_HEADER): Amend to refer to SuperH.
126 * config/tc-sh64.c: Change comment to refer to SuperH.
127 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
128 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
129 * doc/c-sh.texi: Amend to refer to SuperH.
130 Add SuperH architecture documentation references.
131 * doc/c-sh64.texi: Change to refer to SuperH.
133 2003-04-23 H.J. Lu <hjl@gnu.org>
135 * app.c (do_scrub_chars): More checks for valid labels.
137 2003-04-22 H.J. Lu <hjl@gnu.org>
139 * app.c (do_scrub_chars): Check for valid label.
141 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
143 * doc/as.texinfo: Replace references to Mitsubishi M32R with
144 references to Renesas M32R.
145 * doc/c-m32r.texi: Likewise.
147 2003-04-21 Richard Henderson <rth@redhat.com>
149 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
150 (out_file_list): Assign non-null filename after generating error.
152 2003-04-18 Jakub Jelinek <jakub@redhat.com>
154 * ehopt.c (check_eh_frame): For aug_size == 0
155 in state_seeing_aug_size state skip the state_skipping_aug
158 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
160 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
162 * doc/c-h8500.texi: Likewise.
163 * doc/c-sh.texi: Likewise.
164 * doc/c-sh64.texi: Likewise.
165 * doc/h8.texi: Likewise.
166 * config/tc-h8300.c: Likewise.
167 * config/tc-h8300.h: Likewise.
168 * config/tc-h8500.c: Likewise.
169 * config/tc-h8500.h: Likewise.
170 * config/tc-sh.c: Likewise.
171 * config/tc-sh.h: Likewise.
172 * config/tc-sh64.c: Likewise.
173 * config/tc-sh64.h: Likewise.
175 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
177 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
178 * config/tc-mips.c: Use signed add for n32 address arithmetic.
179 (append_insn): When filling delay slots with instructions
180 that have fixups that tc_gen_reloc might consider modifyable
181 in variant frags, start a new frag.
182 (load_address): Generate GOT_DISP with of without offset
183 depending on whether symbol is local. For -xgot, use
184 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
185 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
186 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
187 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
188 <ld_st>: In NewABI with small got, always use
189 GOT_PAGE/GOT_OFST, with the latter in the load/store
190 instruction. With big got, use GOT_HI16/GOT_LO16 or
192 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
193 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
194 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
195 (md_convert_frag): Use memmove for safe copying of overlapping
198 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
200 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
201 -mlong, -mshort-double and -mlong-double options; use table @code.
202 (M68HC11-Syntax): Update to document 68HC12 operands.
203 (M68HC11-Modifiers): New section for operand modifiers.
204 (M68HC11-Directives): New section for specific assembler directives.
205 (M68HC11-Branch): Fix Overfull hbox error.
207 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
209 * config/tc-mips.c (macro): Add comments explaining the rationale
212 2003-04-09 Chris Demetriou <cgd@broadcom.com>
214 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
215 constant address that Alexandre took out by accident. Reject
216 64-bit addresses that are not sign extensions of 32 bits only if
217 we don't support 64-bit address constants.
219 2003-04-09 Alan Modra <amodra@bigpond.net.au>
221 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
223 2003-04-08 Nick Clifton <nickc@redhat.com>
225 * as.c (perform_an_assembly_pass): If using cgen, call
227 * cgen.c (gas_cgen_begin): New function. If
228 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
229 otherwise call cgen_clear_signed_overflow_ok.
230 * cgen.h: Prototype gas_cgen_begin.
232 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
234 * write.c (write_relocs): Remove unused variable.
236 2003-04-06 Chris Demetriou <cgd@broadcom.com>
238 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
239 (macro): Use new macro to decide whether to emit constant address
240 as 32 or 64 bits if addresses are 32-bit wide but registers are
243 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
245 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
246 (M6811_OP_PAGE_ADDR): New internal define.
247 (get_operand): New modifier %page and %addr to obtain page and
248 address part of a far-function.
249 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
250 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
252 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
253 (find_opcode): Add comment.
254 (md_estimate_size_before_relax): Force relocation of
255 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
256 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
257 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
258 on the symbol itself so that DWARF2 strings are merged correctly.
260 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
262 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
263 default tic4x target format to 'coff2-tic4x'.
264 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
266 * config/tc-tic4x.h: Ditto
268 2003-04-03 Nick Clifton <nickc@redhat.com>
270 * NEWS: Mention support for Xtensa architecture.
272 2003-04-02 Philip Blundell <philb@gnu.org>
274 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
276 2003-04-02 Chris Demetriou <cgd@broadcom.com>
278 * config/tc-mips.c (macro2): Adjust implementation of
279 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
280 in the case where the source and destination registers
283 2003-04-01 Bob Wilson <bob.wilson@acm.org>
285 * Makefile.am (CPU_TYPES): Add xtensa.
286 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
287 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
288 (xtensa-relax.o): New target.
290 * Makefile.in: Regenerate.
291 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
292 extra_objects for xtensa targets.
293 * configure: Regenerate.
294 * write.c (write_object_file): Add new md_post_relax_hook.
295 * config/tc-xtensa.c: New file.
296 * config/tc-xtensa.h: Likewise.
297 * config/xtensa-istack.h: Likewise.
298 * config/xtensa-relax.c: Likewise.
299 * config/xtensa-relax.h: Likewise.
300 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
301 * doc/Makefile.in: Regenerate.
302 * doc/all.texi: Set new XTENSA variable.
303 * doc/as.texinfo: Set new Xtensa variable. Describe
304 Xtensa-specific options. Define line comment character for
305 Xtensa. Add Xtensa processors to list of ELF targets where
306 alignment is specified in bytes. Add new Xtensa-Dependent node.
307 Add acknowledgements for those contributing to the Xtensa port.
308 * doc/internals.texi: Describe new md_post_relax_hook.
309 * doc/c-xtensa.texi: New file.
312 2003-04-01 Nick Clifton <nickc@redhat.com>
313 Richard Earnshaw <rearnsha@arm.com>
315 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
316 (ARM_ARCH_IWMMXT): Simplify.
317 (insns): Place iwmmx instructions in correct place in table.
318 (arm_add_note): New function: Add a note entry to a .note section.
319 (md_begin): Make the default architecture be unknown.
320 Suppress the creation of an arm note section.
322 2003-03-26 Eric Christopher <echristo@redhat.com>
324 * config/tc-mips.c (nopic_need_relax): Check for
327 2003-03-25 Stan Cox <scox@redhat.com>
328 Nick Clifton <nickc@redhat.com>
330 Contribute support for Intel's iWMMXt chip - an ARM variant:
332 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
333 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
334 (enum wreg_type, enum iwmmxt_insn_type): New types.
335 (wr_register, wc_register, wcg_register): New macros.
336 (iwmmxt_table): New variable.
337 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
338 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
339 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
340 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
341 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
342 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
343 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
344 cp_byte_address_offset, cp_byte_address_required_here,
345 check_iwmmxt_insn): New functions.
346 (asm_opcode_insns): Add iWMMXt instructions.
347 (md_begin): Set the mach value for iWMMXt targets. Create a note
348 section to identify iwmmxt binaries.
349 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
350 * doc/c-arm.texi: Document the support for the iWMMXt.
351 * NEWS: Mention new support.
353 2003-03-24 Daniel Néri <dne@mayonnaise.net>
355 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
356 * doc/all.texi: Likewise.
357 * doc/c-tic54x.texi: Likewise.
359 2003-03-21 Andreas Schwab <schwab@suse.de>
361 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
362 avoid aliasing issue.
364 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
366 * config/tc-s390.c (s390_arch_size): Initialize to zero.
367 (current_arch_mask): Rename to current_mode_mask.
368 (current_arch_requested): Remove variable.
369 (current_cpu): New variable.
370 (init_default_arch): Set defaults values for s390_arch_size,
371 current_mode_mask and current_cpu.
372 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
373 (md_begin): Replace current_arch_mask by current_cpu.
374 (md_assemble): Adapt check and error message to current_mode_mask and
377 2003-03-09 James E Wilson <wilson@tuliptree.org>
379 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
380 * read.c (get_line_sb): Return end of line character or '\n' if
381 it is zero or non-existent.
383 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
385 * config/tc-mips.c (mips_validate_fix): New function.
386 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
387 (mips_validate_fix): Declare.
389 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
391 * Reverted 2003-03-02's patch.
393 2003-03-11 Steve Ellcey <sje@cup.hp.com>
395 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
396 (TC_DWARF2_EMIT_OFFSET): Provide default.
397 (out_debug_aranges, out_debug_info): Use it.
398 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
399 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
400 (ia64_gen_real_reloc_type): ... here.
401 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
403 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
405 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
406 (s_mips_ent): Likewise.
408 2003-03-04 Dmitry Diky <diwil@mail.ru>
410 * config/tc-msp430.c (mcu_types): Add recently announced x1122
411 and x1123 devices, add missed x437.
412 (md_show_usage): Sort device list.
414 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
416 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
417 (md_begin): Use preset_target_arch.
418 (md_longopts): Make isa option unconditional.
419 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
420 set preset_target_arch.
421 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
422 by -S_GET_VALUE (fixP->fx_subsy).
423 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
425 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
426 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
428 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
430 * config/tc-mips.c (append_insn): Add handling of
431 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
432 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
433 misaligned address and reange overflow.
434 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
435 earlier warnings about misaligned address and reange overflow.
436 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
437 (md_apply_fix): Likewise. Fix warning output.
438 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
439 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
440 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
442 2003-02-21 Nick Clifton <nickc@redhat.com>
444 * NEWS: Mention availability of test generator program.
446 2003-02-21 Miles Bader <miles@gnu.org>
448 * config/tc-v850.c (system_registers): Add v850e debug registers.
449 (system_register_name): Accept up to 27 (the last v850e sys register).
451 2003-02-21 Bob Wilson <bob.wilson@acm.org>
453 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
454 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
455 Capitalize section headings consistently. Format index entries more
456 consistently. Unconditionalize text about whether text and data
457 sections are alterable. Use @ifnottex for alternatives to @tex output
458 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
459 .size and .type directives. Be more polite about bad bug reports.
460 Move FDL into a separate file.
461 * doc/fdl.texi: New file.
463 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
465 * config/tc-mips.c (prev_reloc_op_frag): New variable.
466 (macro): Check it to decide whether a new frag is needed.
467 (my_getSmallExpression): Set it.
469 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
471 * cgen.c: Fix typo: intial -> initial.
473 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
475 * app.c (do_scrub_chars): Handle '||' in two states.
477 2003-02-13 Alan Modra <amodra@bigpond.net.au>
479 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
480 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
482 2003-02-11 Uwe Stieber <uwe@wwws.de>
484 * configure.in: Add support for kaOS as cross build target system.
485 * configure: Regenerated.
487 2003-02-10 Nick Clifton <nickc@redhat.com>
489 * config/tc-arm.c (md_begin): If the Maverick co-processor is
490 selected, set the EF_ARM_MAVERICK_FLOAT flag and
491 bfd_mach_arm_ep9312 machine number.
493 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
495 * config/tc-mips.c (reloc_needs_lo_p): New function.
496 (fixup_has_matching_lo_p): New function.
497 (append_insn): Use reloc_needs_lo_p to check whether a relocation
498 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
499 if that fixup already has a matching %lo(). Don't call frag_wane here.
500 (macro): Call frag_wane here if the last unmatched hi was in the
502 (pic_need_relax): New function, split out from...
503 (md_estimate_size_before_relax): ...here.
504 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
505 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
507 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
509 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
511 2003-02-06 Alan Modra <amodra@bigpond.net.au>
513 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
516 2003-02-05 Alan Modra <amodra@bigpond.net.au>
518 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
519 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
520 accept x@got+off etc.
521 (md_assemble): Handle TLS relocs.
522 (ppc_force_relocation): Force for all TLS relocs.
523 (ppc_fix_adjustable): Likewise.
524 (md_apply_fix3): Handle TLS relocs.
526 2003-02-04 Alan Modra <amodra@bigpond.net.au>
528 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
529 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
531 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
533 * config/tc-mips.c (enum small_ex_type): Remove.
534 (imm_unmatched_hi): Remove.
535 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
536 argument from calls to append_insn.
537 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
539 (macro_build): Update append_insn calls.
540 (mips16_macro_build, macro_build_lui): Likewise.
541 (mips_ip): Rework handling of small expressions. Move explicit
542 relocation handling into my_getSmallExpression. Assume that the
543 value of 'o' operands is zero if there is only one bracketed
545 (percent_op): Make constant. Record the BFD relocation code
546 associated with each operator.
547 (my_getSmallParser, my_getPercentOp): Remove.
548 (parse_relocation): New function.
549 (my_getSamllExpression): Rework. Fill in relocations here
550 rather than in mips_ip.
552 2003-01-29 Nick Clifton <nickc@redhat.com>
554 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
555 assembler's handling of # <linenum> "<filename>" directives work.
557 2003-01-28 Jakub Jelinek <jakub@redhat.com>
559 * dwarf2dbg.c: Include filenames.h.
560 (struct file_entry): Make filename const char *.
561 (dirs, dirs_in_use, dirs_allocated): New variables.
562 (get_filenum): Add NUM argument. Build directory table.
563 (dwarf2_where): Adjust caller.
564 (dwarf2_directive_file): Use get_filenum to allocate
565 slot in file and directory tables.
566 (dwarf2_directive_loc): Recreate full filename from
567 directory and filename part if needed for listing.
568 (out_file_list): Output directory table.
569 Output main source file dirname before its filename.
571 2003-01-28 Dmitry Diky <diwil@mail.ru>
573 * config/tc-msp430.c: Replace occurences of 'tolower' with
576 2003-01-27 David Mosberger <davidm@hpl.hp.com>
578 * config/tc-ia64.c (dot_vframesp): Correct error message.
579 (dot_vframepsp): Ditto.
581 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
583 * configure.in (em): Set to irix on all Irix systems.
584 * configure: Rebuilt.
585 * config/te-irix.h: New file.
586 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
587 whether to use Irix-specific 64-bit format.
589 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
591 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
593 2003-01-25 Jakub Jelinek <jakub@redhat.com>
595 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
596 (tc_gen_reloc): Handle TLS relocs.
597 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
598 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
600 * config/obj-elf.c (obj_elf_section_word): Handle tls.
601 (obj_elf_type): Handle tls_object.
603 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
605 * config/tc-s390.c (s390_tls_suffix): New function.
606 (elf_suffix_type): Add suffix enums for TLS relocations.
607 (s390_elf_suffix): Add suffix strings for TLS relocations.
608 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
610 (md_gather_operands): Map new instruction operand/elf suffix
611 combinations for TLS to bfd relocations.
612 (tc_s390_fix_adjustable): Add new TLS relocations.
613 (tc_s390_force_relocation): Likewise.
614 (md_apply_fix3): Likewise.
616 2003-01-24 Alan Modra <amodra@bigpond.net.au>
618 * as.h: Update copyright date.
619 * symbols.c: Likewise.
620 * config/tc-d10v.h: Likewise.
621 * config/tc-fr30.h: Likewise.
622 * config/tc-i960.h: Likewise.
623 * config/tc-mips.h: Likewise.
625 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
626 (MD_APPLY_SYM_VALUE): Move.
628 2003-01-23 Nick Clifton <nickc@redhat.com>
630 NEWS: Announce sh2e support.
634 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
636 * config/tc-sh.c (md_show_usage): Added sh2e next to
638 (sh_elf_final_processing): Handle arch_sh2e.
640 2003-01-23 Alan Modra <amodra@bigpond.net.au>
642 * symbols.c (S_FORCE_RELOC): Add "strict" param.
643 * symbols.h (S_FORCE_RELOC): Likewise.
644 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
645 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
646 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
647 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
648 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
649 * write.c (generic_force_reloc): New function.
650 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
651 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
652 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
653 * as.h (generic_force_reloc): Declare.
654 * doc/internals.texi (S_FORCE_RELOC): Update.
655 (TC_FORCE_RELOCATION_SUB_SAME): Update.
657 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
659 (alpha_fix_adjustable): Likewise.
660 * config/tc-arm.c (arm_force_relocation): Likewise.
661 * config/tc-cris.c (md_cris_force_relocation): Likewise.
662 * config/tc-frv.c (frv_force_relocation): Likewise.
663 * config/tc-i386.c (md_apply_fix3): Likewise.
664 * config/tc-ia64.c (ia64_force_relocation): Likewise.
665 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
666 * config/tc-m32r.c (m32r_force_relocation): Likewise.
667 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
668 * config/tc-mcore.c (mcore_force_relocation): Likewise.
669 * config/tc-mips.c (mips_force_relocation): Likewise.
670 * config/tc-mmix.c (mmix_force_relocation): Likewise.
671 * config/tc-ppc.c (ppc_force_relocation): Likewise.
672 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
673 * config/tc-sh.c (sh_force_relocation): Likewise.
674 (md_pcrel_from_section): Likewise.
675 * config/tc-sparc.c (tc_gen_reloc): Likewise.
676 * config/tc-v850.c (v850_force_relocation): Likewise.
677 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
678 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
679 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
680 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
682 * config/tc-d10v.c (d10v_force_relocation): Delete.
683 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
684 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
685 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
686 * config/tc-fr30.c (fr30_force_relocation): Delete.
687 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
688 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
689 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
690 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
691 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
692 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
693 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
694 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
695 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
696 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
697 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
698 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
699 * config/tc-i386.c (i386_force_relocation): Delete.
700 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
702 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
703 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
704 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
705 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
707 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
708 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
710 2003-01-23 Alan Modra <amodra@bigpond.net.au>
712 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
713 sh64_elf_section_data.
714 * config/tc-sh64.h: Include elf32-sh64.h.
715 * config/tc-m68hc11.c: Don't include stdio.h.
716 (md_show_usage): Fix missing continuation.
717 * Makefile.am: Run "make dep-am".
718 * Makefile.in: Regenerate.
720 2003-01-22 Nick Clifton <nickc@redhat.com>
722 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
724 2003-01-21 Fabio Alemagna <falemagn@aros.org>
726 * configure.in: Handle *-*-aros*.
727 * configure: Regenerated from configure.in.
729 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
731 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
732 gotplt and pltoff relocations.
733 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
734 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
735 gotplt and pltoff to bfd relocations.
736 (md_gather_operands): Map new instruction operand/elf suffix
737 combinations to bfd relocations.
738 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
739 to the list of unadjustable relocations.
740 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
741 and pltoff relocations.
742 (md_apply_fix3): Add the new relocations.
744 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
746 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
749 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
751 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
752 of relocs for memory bank addressing.
754 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
756 * config/tc-m68hc11.c (md_show_usage): Update usage.
757 (md_parse_option): Recognize -m68hcs12.
758 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
760 * doc/as.texinfo (Overview): Document new option -m68hcs12.
762 2003-01-16 Jakub Jelinek <jakub@redhat.com>
764 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
766 2003-01-16 Alan Modra <amodra@bigpond.net.au>
768 * Makefile.am: Run "make dep-am".
769 * Makefile.in: Regenerate.
770 * po/POTFILES.in: Regenerate.
772 2003-01-11 Alan Modra <amodra@bigpond.net.au>
774 * read.c (get_absolute_expr): New, split out from..
775 (get_absolute_expression): ..here.
776 * read.h (get_absolute_expr): Declare.
777 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
778 Trim size to arch bits_per_address, and test for negative input
779 via get_absolute_expr.
781 2003-01-07 DJ Delorie <dj@redhat.com>
783 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
785 (xstormy16_md_apply_fix3): Use adjustment.
787 2003-01-02 Ben Elliston <bje@redhat.com>
789 * configure.in: Add iq2000-elf target.
790 * configure: Regenerate.
791 * config/tc-iq2000.c: New file.
792 * config/tc-iq2000.h: Likewise.
793 * po/gas.pot: Regenerate.
795 2003-01-02 Chris Demetriou <cgd@broadcom.com>
797 * config/tc-mips.c: Update copyright years to include 2003.
798 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
799 Additionally, clean up their code slightly and clean up their
802 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
804 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
806 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
808 * doc/Makefile.in: Regenerate.
810 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
812 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
813 of .init and .fini sections for array initializers and finalizers.
815 2002-12-31 Chris Demetriou <cgd@broadcom.com>
817 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
818 the "+D" operand, which will be used only by the disassembler.
820 2002-12-30 Chris Demetriou <cgd@broadcom.com>
822 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
824 * configure: Regenerate.
825 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
826 (macro_build): Handle "K" operand.
827 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
828 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
829 (mips_ip): New variable "lastpos", and implement "+A", "+B",
830 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
831 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
832 (validate_mips_insn): Implement "+" as a way to extend the
833 allowed operands, and implement "K", "+A", "+B", and "+C"
835 (OPTION_MIPS32R2): New define.
836 (md_longopts): Add entry for OPTION_MIPS32R2.
837 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
838 (md_parse_option): Handle OPTION_MIPS32R2.
839 (s_mipsset): Reimplement handling of ".set mipsN" options
840 and add support for ".set mips32r2".
841 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
842 (md_show_usage): Document "-mips32r2" option.
843 * doc/as.texinfo: Document "-mips32r2" option.
844 * doc/c-mips.texi: Likewise.
846 2002-12-30 Dmitry Diky <diwil@mail.ru>
848 * configure.in: Add msp430 target.
849 * configure: Regenerate.
850 * Makefile.am: Add msp430 target.
851 * Makefile.in: Regenerate.
852 * config/tc-msp430.c: New file: msp430 assembler.
853 * config/tc-msp430.h: New file: target macros for msp430.
854 * doc/Makefile.am: Add msp430 target.
855 * doc/Makefile.in: Regenerate.
856 * doc/as.texinfo: Include msp430 documenation.
857 * doc/all.texi: Enable msp430 documentation.
858 * doc/c-msp430.texi: New file: document msp430 specific features
861 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
863 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
864 (dwarf2_finish): Use it.
865 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
866 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
868 2002-12-20 DJ Delorie <dj@redhat.com>
870 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
871 BFD_RELOC_XSTORMY16_12.
873 2002-12-19 Alan Modra <amodra@bigpond.net.au>
875 * doc/as.texinfo (Invoking): Typo fix.
876 * config/tc-tic54x.c (encode_operand): Comment typo fix.
878 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
880 * doc/c-alpha.texi: Fix typos.
881 * doc/c-arm.texi: Likewise.
882 * doc/c-d10v.texi: Likewise.
883 * doc/c-i370.texi: Likewise.
884 * doc/c-i960.texi: Likewise.
885 * doc/c-ia64.texi: Likewise.
886 * doc/c-mmix.texi: Likewise.
887 * doc/c-ns32k.texi: Likewise.
888 * doc/c-pdp11.texi: Likewise.
889 * doc/c-pj.texi: Likewise.
890 * doc/c-sh64.texi: Likewise.
891 * doc/c-sparc.texi: Likewise.
892 * doc/c-tic54x.texi: Likewise.
893 * doc/c-v850.texi: Likewise.
894 * doc/c-vax.texi: Likewise.
895 * doc/internals.texi: Likewise.
897 2002-12-18 Chris Demetriou <cgd@broadcom.com>
899 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
900 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
901 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
902 arrange not to issue warnings about use of AT when AT is not
905 2002-12-17 Nick Clifton <nickc@redhat.com>
907 * as.c (std_longopts): Duplicate --keep-locals entry in order to
908 prevent it being confused with -k.
910 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
912 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
913 has already been set up, use it.
915 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
917 * ChangeLog-9295: Fix a typo.
919 * config/tc-d10v.c: Fix a comment typo.
920 * config/tc-dlx.c: Likewise.
921 * config/tc-h8300.h: Likewise.
922 * config/tc-h8500.h: Likewise.
923 * config/tc-mips.c: Likewise.
924 * config/tc-s390.c: Likewise.
925 * config/tc-sh.h: Likewise.
926 * config/tc-tic80.h: Likewise.
927 * config/tc-w65.h: Likewise.
928 * config/tc-z8k.c: Likewise.
929 * config/tc-z8k.h: Likewise.
930 * testsuite/gas/h8300/cmpsi2.s: Likewise.
932 2002-12-16 Alan Modra <amodra@bigpond.net.au>
934 * config/tc-d30v.c (check_range): Warning fixes, formatting.
935 Simplify sign extension. Remove redundant unsigned < 0 test.
936 * config/tc-i960.c (md_ri_to_chars): Prototype.
937 * config/tc-mcore.c (md_pseudo_table): Fix typo.
938 (dump_literals): Init brarsym, and test later instead of isforce.
940 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
941 (parse): Constify line and lineptr.
942 (md_begin): Calculate endop here.
944 2002-12-13 Alan Modra <amodra@bigpond.net.au>
946 * config/obj-vms.c: Formatting. Include fnctl.h.
947 (Create_VMS_Object_File): Fix creat call for sane unix systems.
948 (Object_Record_Offset): Make it a size_t.
949 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
950 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
951 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
952 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
953 (vms_fixup_data_section <data_size>): Add here instead.
954 * config/e-criself.c: Fix typo in last change.
956 2002-12-13 Alan Modra <amodra@bigpond.net.au>
958 * write.c (write_object_file): Fix signed/unsigned warning.
959 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
960 * config/e-criself.c (criself_bfd_name): Prototype.
961 * config/obj-aout.c (s_sect): Remove unused function.
962 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
963 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
964 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
965 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
966 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
967 (VMS_RSYM_Parse <Current_Routine>): Likewise.
968 (vms_fixup_text_section <text_siz>): Likewise.
969 (synthesize_data_segment <data_size>): Likewise.
970 (vms_fixup_xtors_section <sect_no>): Likewise.
971 (structure_count): Don't use implicit int type.
972 * config/tc-a29k.c (insert_sreg): Prototype.
973 (define_some_regs): Prototype, make static.
974 (parse_operand): Likewise.
975 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
976 (md_show_usage <stream>): Likewise.
977 (md_section_align <segment>): Likewise.
978 (md_convert_frag <all args>): Likewise.
979 (md_estimate_size_before_relax <all args>): Likewise.
980 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
981 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
982 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
983 (md_undefined_symbol <name>): Likewise.
984 (md_convert_frag <all args>): Likewise.
985 (write_long <opcode>): Likewise.
986 (tc_gen_reloc <seg>): Likewise.
987 (md_estimate_size_before_relax <all args>): Likewise.
988 (md_apply_fix3 <seg>): Likewise.
989 (s_d30v_align <ignore>): Likewise.
990 (build_insn): Correct format string.
991 (md_apply_fix3): Likewise.
992 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
993 (md_undefined_symbol <name>): Likewise.
994 (md_convert_frag <all args>): Likewise.
995 (md_cgen_lookup_reloc <insn>): Likewise.
996 (md_begin): Delete unused vars.
997 (md_assemble): Likewise.
998 (md_estimate_size_before_relax): Likewise.
999 (fr30_relax_frag): #if 0 out, seems unused.
1000 (md_atof): Remove declaration of atof_ieee.
1001 (restore_colon): Prototype.
1002 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1003 (frv_find_in_vliw): Likewise.
1004 (frv_debug_tomcat): Likewise.
1005 (frv_adjust_vliw_count): Likewise.
1006 (frv_tomcat_shuffle): Likewise.
1007 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1008 frv_find_in_vliw call.
1009 (md_atof): Remove declaration of atof_ieee.
1010 * config/tc-h8500.c (cons): Delete declaration.
1011 (md_begin <opcode>): Constify.
1012 (displacement_size, immediate_size, absolute_size): Remove.
1013 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1014 (tc_crawl_symbol_chain <headers>): Likewise.
1015 (md_undefined_symbol <name>): Likewise.
1016 (tc_headers_hook <headers>): Likewise.
1017 (md_parse_option <c,arg>): Likewise.
1018 (md_show_usage <stream>): Likewise.
1019 (md_convert_frag <headers, seg>): Likewise.
1020 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1021 (md_atof): Remove declaration of atof_ieee.
1022 (tc_aout_fix_to_chars): Remove unused function.
1023 (parse_reg): Prototype.
1024 (parse_exp): Prototype.
1025 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1026 (parse_reglist): Prototype.
1027 (get_operand): Prototype.
1028 (get_operands): Prototype.
1029 (get_specific): Prototype. Make "this_index" signed.
1030 (check): Prototype, make static.
1032 (build_relaxable_instruction): Prototype, make static.
1033 (build_bytes): Prototype.
1034 (wordify_scb): Prototype.
1035 * config/tc-h8500.h (start_label): Declare.
1036 (tc_coff_sizemachdep): Declare.
1037 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1038 (i370_rmode <unused>): Likewise.
1039 (i370_csect <unused>): Likewise.
1040 (i370_dc <unused>): Likewise.
1041 (i370_ds <unused>): Likewise.
1042 (i370_elf_lcomm <unused>): Likewise.
1043 (i370_ltorg <ignore>): Likewise.
1044 (i370_using <ignore>): Likewise.
1045 (i370_drop <ignore>): Likewise.
1046 (i370_byte <ignore>): Likewise.
1047 (i370_tc <ignore>): Likewise.
1048 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1049 (md_convert_frag <all args>): Likewise.
1050 (md_undefined_symbol <name>): Likewise.
1051 (md_pcrel_from_section <sec>): Likewise.
1052 (tc_gen_reloc <seg>): Likewise.
1053 (i370_section_letter): #if 0 unused functions.
1054 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1055 (symbol_locate): Prototype.
1056 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1057 (md_number_to_disp, md_number_to_field): Remove.
1058 (md_apply_fix3): Correct format string and cast "fup".
1059 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1060 (s_endian <ignore>): Likewise.
1061 (md_undefined_symbol <name>): Likewise.
1062 (tc_crawl_symbol_chain <headers>): Likewise.
1063 (tc_set_bal_of_call): Likewise.
1064 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1065 (i960_handle_align <fragp>): Likewise.
1066 (i960_validate_fix <this_segment_type>): Likewise
1067 (tc_gen_reloc <section>): Likewise.
1068 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1069 (struct memS, struct regop): Forward declare.
1070 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1071 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1072 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1073 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1074 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1075 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1076 (md_number_to_field): Likewise.
1077 (md_number_to_disp): Remove unused function.
1078 (md_atof): Remove declaration of atof_ieee.
1079 (md_apply_fix3): Correct md_number_to_imm call.
1080 * config/tc-ip2k.c (md_assemble): Warning fix.
1081 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1082 (fill_insn <ignore>): Likewise.
1083 (debug_sym <ignore>): Likewise.
1084 (md_undefined_symbol <name>): Likewise.
1085 (m32r_scomm <ignore>): Likewise.
1086 (md_convert_frag <abfd>): Likewise.
1087 (md_cgen_lookup_reloc <insn>): Likewise.
1088 (m32r_record_hi16 <seg>): Likewise.
1089 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1090 (allow_m32rx): Prototype.
1091 (first_writes_to_seconds_operands): Prototype.
1092 (writes_to_pc): Prototype.
1093 (can_make_parallel): Prototype.
1094 (make_parallel): Prototype.
1095 (target_make_parallel): Prototype.
1096 (assemble_two_insns): Prototype.
1097 (m32r_record_hi16): Prototype.
1098 (md_atof): Remove declaration of atof_ieee.
1099 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1100 (m32r_force_relocation): Prototype.
1101 (m32r_elf_section_change_hook): Prototype.
1102 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1103 (md_show_usage): Fix signed/unsigned warning.
1104 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1105 (calcop): Ditto for reg_prefix var.
1106 (hexval): Add cast to fix signed/unsigned warning.
1107 (md_number_to_disp): Delete unused function.
1108 (md_number_to_field): Likewise.
1109 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1110 (match_name): Prototype.
1111 (get_bf2): Prototype.
1112 (get_bf_offset_expression): Prototype.
1113 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1114 (md_undefined_symbol <ignore>): Likewise.
1115 (md_create_short_jump <all args>): Likewise.
1116 (md_create_long_jump <all args>): Likewise.
1117 (md_convert_frag <abfd, sec>): Likewise.
1118 (md_apply_fix3 <segment>): Likewise.
1119 (md_section_align <segment>): Likewise.
1120 (md_pcrel_from_section <sec>): Likewise.
1121 (tc_gen_reloc <section>): Likewise.
1122 (reg_m, reg_n, immediate): Delete unused vars.
1123 (dump_literals): Fix signed/unsigned warning.
1124 (enter_literal): Likewise.
1125 (parse_imm): Likewise. Also fix format string.
1126 (parse_mem): Remove unused var.
1127 (md_assemble <LS>): Abort on unexpected inst.
1128 (md_atof): Remove declaration of atof_ieee.
1129 (md_parse_option): Remove unused vars.
1130 (md_apply_fix3): Fix format strings, cast args.
1131 (tc_gen_reloc): Delete unused var.
1132 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1133 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1134 (md_undefined_symbol <name>): Likewise.
1135 (md_convert_frag <abfd>): Likewise.
1136 (tc_gen_reloc <seg>): Likewise.
1137 (check_operand <insn>): Likewise.
1138 (md_convert_frag): Fix format strings.
1139 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1140 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1141 (md_atof): Remove declaration of atof_ieee.
1142 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1143 (md_apply_fix3): Fix bogus >>='s.
1144 (md_undefined_symbol): Delete unused var.
1145 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1146 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1147 (fake_opcode): Adjust for pj_opc_int_t change.
1148 (md_begin): Likewise.
1149 (md_assemble): Likewise.
1150 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1151 instead of non-existent third arg of parse_exp_save_ilp.
1152 (md_parse_option): Correct "little" and "big" calls.
1153 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1154 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1155 (tc_gen_reloc <section>): Likewise.
1156 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1157 (debug): Rewrite using VA_* macros.
1158 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1159 (md_convert_frag): Likewise.
1160 (md_parse_option): Likewise.
1161 (md_show_usage): Likewise.
1162 (md_undefined_symbol): Likewise.
1163 (tc_gen_reloc): Likewise.
1164 (md_operand): Likewise.
1165 (tc_aout_pre_write_hook): Delete.
1166 (struct tic30_insn): Make "operands" unsigned.
1167 (struct tic30_par_insn): Likewise.
1168 (md_assemble): Likewise for "count", "i" and "numops".
1169 (tic30_parallel_insn): Likewise for vars here.
1170 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1171 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1172 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1173 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1174 (md_undefined_symbol): Likewise.
1175 (md_parse_option): Likewise.
1176 (md_convert_frag): Likewise.
1177 (tc_coff_symbol_emit_hook): Likewise.
1178 (md_atof): Remove declaration of atof_ieee.
1179 (const_overflow): Warning fixes, tidy.
1180 (get_operands): Delete unused vars.
1181 (internal_error_a): Adjust format string to expect a long for arg.
1182 (find_opcode): Warning fixes, simplify.
1183 (build_insn): Cast internal_error_a arg.
1184 (md_begin): Likewise.
1185 (md_apply_fix3): Likewise.
1186 (md_assemble): Delete unused var.
1187 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1188 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1189 (whatreg, parse_reg, parse_exp): Make static, prototype.
1190 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1191 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1192 (get_operand, get_operands, get_specific, newfix): Likewise.
1193 (apply_fix, build_bytes): Likewise.
1194 (md_atof): Remove declaration of atof_ieee.
1195 (tc_aout_fix_to_chars): Delete.
1196 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1198 (md_parse_option): Fix s_segm and s_unseg calls.
1200 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1202 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1204 (RELAX_BRANCH_RELOC_S2): Delete.
1205 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1206 Do not handle BFD_RELOC_16_PCREL.
1207 (macro_build, mips_ip): Likewise.
1208 (md_pcrel_from): Return 4 for undefined symbols regardless of
1210 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1211 Don't dereference howto if no such relocation is available.
1212 Do not apply hack for in-place zero addend in NEWABI.
1213 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1215 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1216 Alan Modra <amodra@bigpond.net.au>
1218 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1219 (TC_LINKRELAX_FIXUP): Add comments.
1221 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1223 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1225 (r_register_name, xr_register_name): Add prototype declarations.
1227 2002-12-08 H.J. Lu <hjl@gnu.org>
1229 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1230 copied from tc-i386.c.
1232 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1234 Fix Bug savannah/1825:
1235 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1236 (md_relax_table): Define specific relax for PC-rel offsets.
1237 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1238 (m68hc11_relax_frag): Handle the new relax code.
1239 (md_convert_frag): Likewise.
1240 (md_estimate_size_before_relax): Likewise.
1242 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1244 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1246 2002-12-05 Richard Henderson <rth@redhat.com>
1248 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1249 (ia64_gen_real_reloc_type): Handle it.
1250 (pseudo_func): Add @ltoffx.
1251 (md_begin): Build .<ltoffx>.
1252 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1254 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1256 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1257 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1258 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1259 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1260 COFF to call arm_force_relocation.
1262 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1264 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1266 (emit_one_bundle): Handle "hint" instruction.
1267 (operand_match): Match IA64_OPND_AR_CSD.
1269 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1271 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1274 2002-12-03 Nick Clifton <nickc@redhat.com>
1276 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1277 .PPC.EMB.apuinfo sections.
1279 2002-12-03 Richard Henderson <rth@redhat.com>
1281 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1283 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1285 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1286 (cons, s_align_bytes): Delete declaration.
1288 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1290 (dot): Delete unused function.
1291 (w65_expression): Remove unused arg.
1292 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1294 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1296 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1298 (check): Remove unused function.
1299 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1300 on unhandled switch case.
1301 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1303 (tc_crawl_symbol_chain): Delete unused function.
1304 (tc_headers_hook): Likewise.
1305 (tc_Nout_fix_to_chars): Likewise.
1306 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1307 (md_parse_option): Likewise.
1308 (md_convert_frag): Likewise.
1309 (tc_coff_symbol_emit_hook): Likewise.
1310 (md_show_usage): Likewise.
1311 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1312 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1313 (w65_expression): Declare.
1315 * po/POTFILES.in: Regenerate.
1317 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1318 and ARM_ADRL_IMMEDIATE.
1320 2002-12-02 Nick Clifton <nickc@redhat.com>
1322 * gasp.c: Delete. It has been deprecated.
1323 * NEWS: Mention that gasp has been removed.
1324 * Makefile.am: Remove references to gasp.
1325 * makefile.vms: Likewise.
1326 * mpw-make.sed: Likewise.
1327 * Makeile.in: Regenerate.
1328 * doc/gasp.texi: Delete.
1329 * doc/Makefile.am: Remove references to gasp.texi.
1330 * doc/Makefile.in: Regenerate.
1331 * macro.c: Delete references to gasp.
1332 Remove use of comment_char function parameter as it is no longer
1334 * macro.h: Update prototypes to remove comment_char parameter.
1336 * read.c (read_a_source_file, s_irp): Remove comment_char
1337 parameter from invocation of functions in macro.c
1339 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1341 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1343 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1345 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1346 (tc_gen_reloc): Mark section param as not used.
1348 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1350 Fix Bug savannah/1825:
1351 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1352 that are not pc-relative.
1353 (m68hc11_relax_frag): Declare.
1355 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1356 the offsetable indexed addressing modes (n,r).
1357 (build_insn): Cleanup some locals.
1358 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1359 relaxation of difference between two symbols of same section.
1360 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1361 only when this is a PC-relative operand and the offset is not absolute.
1362 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1363 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1364 be handled by m68hc11_relax_frag.
1366 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1368 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1369 (32-bit int, 64-bit double).
1370 (md_longopts): New options -mshort, -mlong, -mshort-double and
1371 -mlong-double to control the ABI.
1372 (md_show_usage): Update.
1373 (md_parse_option): Handle new options.
1374 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1376 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1378 * symbols.c (report_op_error): New function, broken out of ...
1379 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1382 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1384 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1385 for BFD_RELOC_32_PLT_PCREL.
1387 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1389 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1390 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1391 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1392 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1393 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1394 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1395 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1396 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1397 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1398 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1399 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1400 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1401 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1402 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1403 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1404 TRUE/FALSE. Formatting.
1406 2002-11-29 Nick Clifton <nickc@redhat.com>
1408 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1409 assume a value of zero.
1410 (do_bkpt): Likewise.
1412 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1414 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1415 for TLS relocations.
1417 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1419 * config/tc-ia64.c (md_apply_fix3): Add default case.
1421 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1423 * symbols.c (S_SET_THREAD_LOCAL): New function.
1424 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1425 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1426 for TLS relocations.
1427 * config/tc-ia64.c (md_apply_fix3): Likewise.
1428 * config/tc-alpha.c (md_apply_fix3): Likewise.
1430 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1432 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1435 2002-11-26 DJ Delorie <dj@redhat.com.
1437 * dwarf2dbg.c (scale_addr_delta): New.
1438 (size_inc_line_addr): Use it.
1439 (emit_inc_line_addr): Use it.
1441 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1443 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1444 (md_assemble): Don't pass on branches to constants as relaxable.
1447 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1449 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1451 2002-11-21 Randolph Chung <randolph@tausq.org>
1453 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1454 only if they have default visibility.
1456 2002-11-21 Richard Henderson <rth@redhat.com>
1458 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1461 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1463 * config/tc-mcore.c (mcore_pool_count): New function.
1464 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1466 2002-11-20 Klee Dienes <kdienes@apple.com>
1468 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1469 coalesce the name fields to use the same pointer.
1471 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1472 the name fields to use the same pointer.
1473 (get_specific): Check for opcodes with the same name using strcmp
1474 as well as comparing the pointer.
1476 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1478 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1481 2002-11-19 Richard Henderson <rth@redhat.com>
1483 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1484 visibility portion of st_other.
1486 2002-11-19 Klee Dienes <kdienes@apple.com>
1488 * config/tc-h8300.c (struct h8_instruction): New type, used to
1489 wrap h8_opcodes with length, noperands, idx, and size fields
1490 (computed at run-time).
1491 (h8_instructions): New variable.
1492 (md_begin): Allocate the storage for h8_instructions. Fill
1493 h8_instructions with pointers to the appropriate opcode and the
1494 correct value for the additional fields.
1495 (clever_message): Update to use h8_instructions instead of
1497 (build_bytes): Ditto.
1498 (get_specific): Ditto.
1499 (md_assemble): Ditto.
1501 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1503 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1504 adjustments to symbols in merge sections.
1506 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1508 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1510 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1512 * dwarf2dbg.h (dwarf2_format): New enum.
1513 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1514 (out_debug_line, out_debug_info): Add code for handling 64-bit
1516 * config/tc-mips.h (mips_dwarf2_format): Declare.
1517 * config/tc-mips.c (mips_dwarf2_format): New function.
1518 * doc/internals.texi (DWARF2_FORMAT): Document.
1520 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1522 * config/tc-mips.c (s_change_section): Make sure input buffer
1523 is not accessed past the end. Don't hand
1524 obj_elf_change_section a pointer into the input buffer.
1526 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1528 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1531 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1533 * config/tc-tic4x.c: Fixed proper commandline
1534 parameters. Added support for new opcode-list format. General
1535 error message fixups.
1536 (c4x_inst_add): Reject insn not for our CPU
1537 (md_begin): Added matrix for setting the proper opcode-level &
1538 device-flags according to cpu type and revision. Rewrite the
1540 (c4x_operand_parse): Fix opcode bug
1541 (c4x_operands_match): New function argument. Added dry-run
1542 mechanism, that is optional error generation. Added constraint 'i'
1544 (c4x_insn_check): Added new function for post-verification of the
1546 (md_assemble): Check all opcodes before croaking because of an
1547 argument mismatch. Need this to be able to fully support
1548 ortogonally arguments.
1549 (md_parse_options): Revised commandprompt swicthes and added new
1551 (md_show_usage): Complete rewrite of printout.
1553 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1555 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1556 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1557 warning when using constant direct bigger than 2^16. Add the new
1560 2002-11-11 Christopher Faylor <cgf@redhat.com>
1562 * configure.in: Use .gdbinit under Cygwin.
1563 * configure: Regenerate.
1565 2002-11-11 Christopher Faylor <cgf@redhat.com>
1567 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1570 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1572 * config/tc-tic4x.c: Declare as many functions as possible as
1573 static. Maintenance on the general indenting. Removed unnecessary
1574 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1575 function. Add support for new DSP, TMS320VC33. Fix bug for
1576 converting flonum constants.
1577 (c4x_do_align): Add proper align handling. Setup align to insert
1579 (c4x_gen_to_words): Support for extended TI type floats.
1580 (md_atof): Proper dumping of multiple-word littlenums.
1581 (c4x_atof): Added support for extended TI type floats.
1582 (c4x_stringer): Added new function to handle compact strings.
1583 (c4x_emit_char): Added new function argument to handle custom
1584 length inserts, like single-byte strings.
1585 * config/tc-tic4x.h: Add proper align handling with NOP's.
1586 * Makefile.am: Added tic4x dependecy
1587 * Makefile.in: Regenerate
1589 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1591 * macro.c (get_any_string): Correct logic for not going beyond end
1594 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1596 * config/tc-mmix.c (get_putget_operands): Mark both possible
1597 operands as invalid at beginning.
1599 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1600 Initialize target of fixup to zero.
1602 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1604 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1605 NEWABI, but we should still emit HI16_S for non-PIC n32.
1607 2002-11-06 Richard Henderson <rth@redhat.com>
1609 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1610 (alpha_fix_adjustable): ... here.
1611 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1613 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1615 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1618 2002-11-05 H.J. Lu <hjl@gnu.org>
1620 * config/tc-mips.c (support_64bit_objects): Check *l before it
1623 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1625 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1626 SEC_LOAD flags for sections marked as 's'.
1628 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1630 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1631 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1632 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1635 * dep-in.sed: Fix typo.
1637 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1639 * configure.in: Update ARM CPU patterns.
1640 * configure: Regenerated.
1642 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1644 * itbl-lex.l: Use #include <> for generated headers.
1645 * itbl-ops.c: Likewise.
1647 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1649 * doc/gasp.texi: Fix typo in deprecation note.
1651 2002-10-23 Nick Clifton <nickc@redhat.com>
1653 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1654 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1656 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1658 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1659 (tc_frob_file_before_adjust): Don't define.
1660 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1662 (mmix_frob_file_before_adjust): Remove ineffective function.
1664 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1666 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1667 (cris_relax_frag): New function.
1668 (md_estimate_size_before_relax) <case ENCODE_RELAX
1669 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1670 expressions that will become absolute expressions to relaxation.
1671 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1672 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1673 value, not distance to symbol.
1674 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1675 Ditto. Correct placement of fixup.
1676 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1678 * config/tc-cris.h (cris_relax_frag): Declare.
1679 (md_relax_frag): Define.
1681 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1683 * config/obj-elf.c (special_sections): Use correct types for init
1685 (obj_elf_change_section): Don't mess with init array section type.
1687 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1689 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1690 for relocs against symbols in a merged section.
1692 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1694 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1695 table as register names.
1697 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1699 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1702 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1704 * expr.c (operand): Add support for n.nn flonums.
1706 2002-10-17 Johannes Stezenbach <js@convergence.de>
1708 * itbl-parse.y (entry): Provide empty action.
1710 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1712 * configure.in (BFDVER_H): Set and subst.
1713 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1714 * Makefile.am: Run "make dep-am".
1716 * configure: Regenerate.
1717 * Makefile.in: Regenerate.
1718 * doc/Makefile.in: Regenerate.
1720 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1722 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1723 (MD_APPLY_SYM_VALUE): Define for PE too.
1725 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1727 * Makefile.am: Run "make dep-am".
1728 (CPU_OBJ_VALID): sh64 coff is invalid.
1729 * as.c: #include "bfdver.h".
1730 * Makefile.in: Regenerate.
1731 * config.in: Regenerate.
1733 2002-10-14 Momchil Velikov <velco@fadata.bg>
1735 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1737 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1739 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1740 * configure: Regenerate.
1742 2002-10-13 Eric Christopher <echristo@redhat.com>
1743 Alexandre Oliva <aoliva@redhat.com>
1745 * config/tc-mips.c (s_gpdword): New function.
1746 (mips_pseudo_table): Add .gpdword.
1747 (mips_need_elf_addend_fixup): never for NEWABI.
1748 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1750 (s_cpadd): Generate .cpadd on NEWABI.
1752 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1754 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1756 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1758 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1759 (md_relax_frag): Adjust macro.
1760 * config/tc-mips.c (mips_relax_branch): New variable.
1761 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1762 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1763 (RELAX_MIPS16_P): Adjust.
1764 (append_insn): Emit branch to non-constant in a frag_var if
1765 branch-relaxation is desirable and possible.
1766 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1767 (OPTION_ELF_BASE): Adjust.
1768 (md_parse_option): Handle new options.
1769 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1771 (relaxed_branch_length): New function.
1772 (md_estimate_size_before_relax): Handle branch frags.
1773 (mips_relax_frag): Likewise.
1774 (md_convert_frag): Handle branch frags. Warn if branch is
1777 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1779 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1781 (md_apply_fix3): Add TLS relocs.
1782 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1785 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1786 Alan Modra <amodra@bigpond.net.au>
1788 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1789 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1791 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1793 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1796 2002-10-09 Richard Shann <richard.shann@superh.com>
1797 Stephen Clarke <stephen.clarke@superh.com>
1799 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1802 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1804 * contig/tc-sh.c (sh_local_pcrel): New.
1805 (sh_force_relocation): Use sh_local_pcrel.
1806 (md_pcrel_from_section): Check the relocation type whether it
1807 should be resolved locally. Use S_FORCE_RELOC.
1809 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1811 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1812 (TC_FORCE_RELOCATION): Tidy arg.
1814 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1815 Ken Raeburn <raeburn@cygnus.com>
1816 Aldy Hernandez <aldyh@redhat.com>
1817 DJ Delorie <dj@redhat.com>
1818 Michael Meissner <meissner@redhat.com>
1819 Eric Christopher <echristo@redhat.com>
1820 Richard Sandiford <rsandifo@redhat.com>
1822 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1823 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1824 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1825 (hilo_interlocks): True for CPU_VR5500.
1826 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1827 (mips_fix_vr4122_bugs): New.
1828 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1829 (mips_emit_delays): Likewise.
1830 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1831 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1832 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1833 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1834 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1835 (OPTION_ELF_BASE): Bump.
1836 (md_parse_option): Handle the new options.
1837 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1840 2002-09-29 H.J. Lu <hjl@gnu.org>
1842 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1843 twice if howto->pcrel_offset is true.
1845 2002-09-28 Matt Thomas <matt@3am-software.com>
1846 Jason Thorpe <thorpej@wasabisystems.com>
1848 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1849 convert undefined references to GOT32/PLT32 if PIC code is
1850 requested. Fix comment.
1852 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1854 * config/tc-sh.c (sh_force_relocation): Return 0 for
1855 some PC relative relocations when not relaxing.
1857 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1859 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1860 Define them if not BFD_ASSEMBLER.
1861 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1863 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1864 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1865 (tc_gen_reloc): Handle x86-64 TLS relocs.
1867 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1869 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1870 fixups to current or absolute section.
1872 2002-09-26 Jim Wilson <wilson@redhat.com>
1874 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1877 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1879 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1880 capable configuration.
1881 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1883 (mips_ip): Likewise.
1885 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1887 * config/tc-mips.c (append_insn): Fix jump overflow check.
1889 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1891 * config/tc-i386.c (process_operands): Warn about "lea" segment
1894 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1896 * write.c: Delete set_segment_vma and prototype. Update all callers.
1898 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1900 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1901 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1902 Rename "fseg" to "sym_seg".
1903 * Makefile.am: Run "make dep-am".
1904 * Makefile.in: Regenerate.
1905 * doc/Makefile.in: Regenerate.
1907 2002-09-20 Nick Clifton <nickc@redhat.com>
1909 * symbols.c (colon): Do not allow symbols to be created in the
1910 absolute section if WORKING_DOT_WORD is not defined and
1911 new_broken_words would require a new frag to be created.
1913 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1915 * expr.c (expr): Simplify foo-foo here.
1916 (clean_up_expression): Remove O_subtract code.
1918 * write.h (struct fix): Add fx_dot_value.
1919 (dot_value): Declare.
1920 * write.c (dot_value): New var.
1921 (fix_new_internal): Save dot_value as fx_dot_value.
1922 (fixup_segment): Adjust fx_offset using fx_dot_value.
1923 * expr.c (expr): Update dot_value.
1925 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1927 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1928 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1929 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1931 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1932 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1933 BFD_RELOC_386_TLS_GOTIE.
1935 2002-09-19 Richard Henderson <rth@redhat.com>
1937 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1939 (alpha_force_relocation): Don't special-case branch type relocs.
1941 2002-09-19 Nick Clifton <nickc@redhat.com>
1943 * config/tc-m68k.c (select_control_regs): Handle situation where
1944 architecture has not yet been selected.
1946 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1948 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1949 (IS_SEXT_16BIT_NUM): New macro.
1950 (macro_build_ldst_constoffset): New function, to build a set of
1951 instructions to do a load or store from a constant offset relative
1952 to a given register.
1953 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1954 .cprestore pseudo-op.
1956 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1958 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1960 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1962 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1964 2002-09-17 Stan Cox <scox@redhat.com>
1966 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1967 (macro): Likewise for la. Likewise for ld.
1968 (mips_after_parse_args): Make -xgot optional, not the default.
1969 (md_apply_fix3): Allow composite relocation to set up gp.
1970 (tc_gen_reloc): Allow relaxing for newabi.
1971 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1972 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1974 2002-09-17 Nick Clifton <nickc@redhat.com>
1976 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1977 BFD_RELOC_ARM_IMMEDIATE has been done.
1978 (tc_gen_reloc): Do not issue reloc number of unimplemented
1979 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1980 their name is already in the error message - plus remove them
1981 from the default case.
1983 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1984 behavior of instructions.
1986 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1988 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1989 Convert functions to K&R format.
1991 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1993 * config/tc-mips.c (pdr_seg): Define only for ELF.
1994 (s_change_section): Remove unused variable. Don't use for nonELF.
1996 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1998 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2000 * config/obj-elf.h (obj_elf_change_section): Likewise.
2002 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2004 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2005 (out_debug_info): Likewise.
2007 2002-09-16 Bruno Haible <bruno@clisp.org>
2009 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2010 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2011 * config/tc-i386.c (i386_target_format): Likewise.
2012 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2013 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2015 2002-09-13 Nick Clifton <nickc@redhat.com>
2017 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2018 when deciding if any operands have been skipped.
2020 2002-09-11 Nick Clifton <nickc@redhat.com>
2022 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2024 * po/tr.po: Updated Turkish translation.
2026 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2028 * config/tc-i386.c (md_apply_fix3): Allow addend for
2029 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2030 BFD_RELOC_386_TLS_LE_32.
2032 2002-09-05 Jeff Law <law@redhat.com>
2034 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2035 marker relocations such as ENTRY/EXIT.
2036 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2037 to both OBJ_ELF and OBJ_SOM.
2039 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2041 * doc/internals.texi (md_apply_fix3): Expand.
2042 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2043 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2044 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2045 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2046 EXTERN_FORCE_RELOC): Document.
2047 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2048 * as.h: Don't include struc-symbol.h for arc.
2050 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2051 subtract absolute symbol.
2052 * obj.h (struct format_ops): Add frob_file_before_fix.
2053 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2054 * symbols.c (S_FORCE_RELOC): New function.
2055 * symbols.h (S_FORCE_RELOC): Declare.
2056 * write.c (TC_FORCE_RELOCATION): Change default.
2057 (TC_FORCE_RELOCATION_ABS): Define.
2058 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2059 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2060 (TC_FORCE_RELOCATION_SECTION): Don't define.
2061 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2062 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2063 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2064 (TC_VALIDATE_FIX_SUB): Define.
2065 (TC_FIX_ADJUSTABLE): Don't define.
2066 (MD_APPLY_SYM_VALUE): Define this instead.
2067 (abs_section_sym): New variable.
2068 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2069 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2070 Don't put the absolute section sym on fixups here.
2071 (fix_segment): New function.
2072 (write_relocs): Don't call fixup_segment from here.
2073 (write_object_file): Instead call tc_frob_file_before_fix,
2074 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2075 Don't output the absolute section symbol.
2076 (fixup_segment): Rewrite.
2077 * write.h (abs_section_sym): Declare.
2078 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2080 (aout_format_ops): Adjust to suit.
2081 * config/obj-aout.h (obj_frob_file): Don't define.
2082 (obj_frob_file_before_fix): Define.
2083 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2084 (S_FORCE_RELOC): Define.
2085 * config/obj-bout.h (S_FORCE_RELOC): Define.
2086 * config/obj-coff.c (coff_format_ops): Init new field.
2087 * config/obj-coff.h: Formatting fixes.
2088 (obj_sec_sym_ok_for_reloc): Define.
2089 (S_FORCE_RELOC): Define.
2090 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2091 (ecoff_frob_file): .. from here.
2092 (ecoff_format_ops): Add new function.
2093 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2094 (obj_frob_file_before_fix): Define.
2095 * config/obj-elf.c (elf_format_ops): Init new field.
2096 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2097 * config/obj-ieee.h: Formatting fixes.
2098 (S_FORCE_RELOC): Define.
2099 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2100 * config/obj-vms.h (S_FORCE_RELOC): Define.
2101 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2102 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2103 for BFD_RELOC_32 and BFD_RELOC_64.
2104 (alpha_fix_adjustable): Remove extern and weak tests.
2105 (alpha_before_fix): Rename from alpha_adjust_symtab.
2106 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2107 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2108 (TC_VALIDATE_FIX): Tweak param name.
2109 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2110 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2111 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2112 (MD_APPLY_SYM_VALUE): Define.
2113 (tc_adjust_symtab): Don't define.
2114 (alpha_adjust_symtab): Don't declare.
2115 (tc_frob_file_before_fix): Define.
2116 (alpha_before_fix): Declare.
2117 (TC_INIT_FIX_DATA): Tweak param names.
2118 * config/tc-arc.c: Include "struc-symbol.h".
2119 (md_pcrel_from): Remove undefined sym fudge.
2120 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2121 Don't set fx_addnumber.
2122 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2123 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2124 (EXTERN_FORCE_RELOC): Define.
2125 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2126 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2127 (arm_validate_fix): Return void.
2128 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2129 Add plt and got reloc tests.
2130 (arm_force_relocation): Call S_FORCE_RELOC.
2131 * config/tc-arm.h (struct fix): Forward declare.
2132 (TC_VALIDATE_FIX): No longer set add_symbolP.
2133 (arm_validate_fix): Adjust declaration.
2134 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2135 (TC_FORCE_RELOCATION): Tweak param name.
2136 (TC_INIT_FIX_DATA): Likewise.
2137 (obj_fix_adjustable): Don't define.
2138 (tc_fix_adjustable): Call arm_fix_adjustable.
2139 (TC_FIX_ADJUSTABLE): Don't define.
2140 (MD_APPLY_SYM_VALUE): Define.
2141 (EXTERN_FORCE_RELOC): Define.
2142 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2143 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2144 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2145 Remove *valP fudges and code to subtract abs sym. Don't set
2147 * config/tc-avr.h: Formatting.
2148 (EXTERN_FORCE_RELOC): Define.
2149 (MD_APPLY_SYM_VALUE): Define.
2150 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2151 (md_apply_fix3): Remove code to subtract abs sym.
2152 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2153 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2154 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2155 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2156 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2157 (tc_fix_adjustable): Remove extern, weak tests.
2158 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2159 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2160 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2161 and code to subtract abs sym.
2162 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2163 (d10v_force_relocation): Call S_FORCE_RELOC.
2164 * config/tc-d10v.h: Don't include write.h.
2165 (struct fix): Instead, forward declare.
2166 (MD_PCREL_FROM_SECTION): Tweak param names.
2167 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2168 (d10v_fix_adjustable): Likewise.
2169 (obj_fix_adjustable): Don't define.
2170 (tc_fix_adjustable): Define.
2171 (TC_FORCE_RELOCATION): Tweak param name.
2172 (MD_APPLY_SYM_VALUE): Define.
2173 (EXTERN_FORCE_RELOC): Define.
2174 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2175 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2176 and code to subtract abs sym.
2177 * config/tc-d30v.h: Don't include write.h.
2178 (struct fix): Instead, forward declare.
2179 (MD_PCREL_FROM_SECTION): Tweak param names.
2180 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2181 (MD_APPLY_SYM_VALUE): Define.
2182 (EXTERN_FORCE_RELOC): Define.
2183 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2184 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2185 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2186 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2187 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2188 Don't use fx_addnumber.
2189 * config/tc-dlx.h: Don't include write.h.
2190 (md_convert_frag): We're not alpha twice over.
2191 (EXTERN_FORCE_RELOC): Define.
2192 (obj_fix_adjustable): Don't define.
2193 (tc_fix_adjustable): Define.
2194 (TC_FIX_ADJUSTABLE): Don't define.
2195 (MD_APPLY_SYM_VALUE): Define.
2196 (LOCAL_LABELS_DOLLAR): Undef always.
2197 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2198 (fr30_fix_adjustable): Remove extern, weak tests.
2199 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2200 (obj_fix_adjustable): Don't define.
2201 (tc_fix_adjustable): Define.
2202 (struct fix): Forward declare.
2203 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2204 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2205 (frv_fix_adjustable): Don't do extern, weak tests.
2206 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2207 (TC_FIX_ADJUSTABLE): Don't define.
2208 (obj_fix_adjustable): Don't define.
2209 (tc_fix_adjustable): Define.
2210 (struct fix): Forward declare.
2211 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2212 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2213 * config/tc-h8300.h (struct fix): Forward declare.
2214 (EXTERN_FORCE_RELOC): Define.
2215 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2216 (hppa_fix_adjustable): Don't test extern or weak. Don't
2217 symbol_mark_used_in_reloc.
2218 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2220 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2221 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2222 (TC_FORCE_RELOCATION_SECTION): Don't define.
2223 (MD_APPLY_SYM_VALUE): Define.
2224 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2225 to subtract abs sym.
2226 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2227 (MD_APPLY_SYM_VALUE): Define.
2228 (MD_PCREL_FROM_SECTION): Tweak param name.
2229 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2230 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2231 (i386_force_relocation): New function.
2232 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2233 (TC_VALIDATE_FIX): Likewise.
2234 (TC_FIX_ADJUSTABLE): Don't define.
2235 (MD_APPLY_SYM_VALUE): Define.
2236 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2237 (i386_force_relocation): Declare.
2238 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2239 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2240 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2241 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2242 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2243 (EXTERN_FORCE_RELOC): Define.
2244 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2245 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2246 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2247 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2248 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2249 Remove #if 0 code. Invert return boolean.
2250 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2251 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2252 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2253 (tc_coff_sizemachdep): Prototype.
2254 (i960_handle_align): Likewise.
2255 (i960_validate_fix): Adjust declaration.
2256 (reloc_callj): Likewise.
2257 (EXTERN_FORCE_RELOC): Define.
2258 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2259 (TC_FORCE_RELOCATION_ABS): Define.
2260 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2261 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2262 (TC_FIX_ADJUSTABLE): Don't define.
2263 (MD_APPLY_SYM_VALUE): Define.
2264 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2265 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2266 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2267 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2268 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2269 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2270 (MD_APPLY_SYM_VALUE): Define.
2271 (EXTERN_FORCE_RELOC): Define.
2272 (TC_FORCE_RELOCATION): Tweak param name.
2273 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2274 (m32r_fix_adjustable): Don't test extern, weak.
2275 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2276 (MD_APPLY_SYM_VALUE): Define.
2277 (obj_fix_adjustable): Don't define.
2278 (tc_fix_adjustable): Define.
2279 (tc_frob_file): Don't define.
2280 (tc_frob_file_before_fix): Define.
2281 (EXTERN_FORCE_RELOC): Define.
2282 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2283 BFD_RELOC_VTABLE_ENTRY address.
2284 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2285 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2286 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2287 Remove duplicated fx_done code.
2288 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2289 (EXTERN_FORCE_RELOC): Define.
2290 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2292 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2293 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2294 (TC_FIX_ADJUSTABLE): Don't define.
2295 (EXTERN_FORCE_RELOC): Define.
2296 (MD_APPLY_SYM_VALUE): Define.
2297 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2298 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2299 Remove fx_addsy tests.
2300 (mcore_force_relocation): Call S_FORCE_RELOC.
2301 (mcore_fix_adjustable): Don't test fx_addsy.
2302 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2303 (EXTERN_FORCE_RELOC): Define.
2304 (obj_fix_adjustable): Don't define.
2305 (tc_fix_adjustable): Define.
2306 (MD_APPLY_SYM_VALUE): Define.
2307 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2308 (mips_pic): No longer static.
2309 (mips_force_relocation): Call S_FORCE_RELOC.
2310 (mips_fix_adjustable): Remove extern, weak tests.
2311 * config/tc-mips.h (enum mips_pic_level): Declare.
2312 (mips_pic): Declare.
2313 (tc_frob_file): Don't define.
2314 (tc_frob_file_before_fix): Define this instead.
2315 (EXTERN_FORCE_RELOC): Define.
2316 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2317 with reg_section tests. Set fx_done instead of calling
2318 symbol_clear_used_in_reloc on bad relocs.
2319 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2320 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2321 (mmix_adjust_symtab): Simplify list handling. Abort on any
2323 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2324 BFD_RELOC_MMIX_LOCAL.
2325 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2326 (EXTERN_FORCE_RELOC): Define.
2327 (MD_PCREL_FROM_SECTION): Tweak param name.
2328 (tc_frob_file): Don't define.
2329 (tc_frob_file_before_fix): Define this instead.
2330 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2331 Remove SEC_CODE checks.
2332 (mn10300_fix_adjustable): Remove extern and weak tests.
2333 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2334 (TC_FORCE_RELOCATION): Tweak param name.
2335 (obj_fix_adjustable): Don't define.
2336 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2337 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2338 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2339 (openrisc_fix_adjustable): Don't test fx_addsy.
2340 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2341 (obj_fix_adjustable): Don't define.
2342 (tc_fix_adjustable): Define this instead.
2343 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2344 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2345 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2346 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2347 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2348 (MD_APPLY_SYM_VALUE): Define.
2349 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2350 Don't subtract symbol value.
2351 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2352 (EXTERN_FORCE_RELOC): Define.
2353 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2354 (MD_APPLY_SYM_VALUE): Define.
2355 (obj_fix_adjustable): Don't define.
2356 (tc_fix_adjustable): Define this instead.
2357 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2359 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2360 (ppc_force_relocation <elf version>): New.
2361 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2362 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2363 comments. Don't subtract fx_subsy as that is already done.
2364 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2365 (MD_PCREL_FROM_SECTION): Likewise.
2366 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2367 ppc_force_relocation.
2368 (TC_FORCE_RELOCATION_SECTION): Delete.
2369 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2370 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2371 (MD_APPLY_SYM_VALUE): Define.
2372 * config/tc-s390.c: #include "dwarf2dbg.h".
2373 (s390_insn): Remove excess parens.
2374 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2375 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2376 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2377 non-NULL. Don't subtract off fx_addsy value.
2378 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2379 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2380 (TC_FIX_ADJUSTABLE): Don't define.
2381 (MD_APPLY_SYM_VALUE): Define.
2382 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2383 (SWITCH_TABLE): Likewise.
2384 (sh_force_relocation): Call S_FORCE_RELOC.
2385 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2386 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2387 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2388 fx_addnumber is zero on entry. Save val in fx_addnumber.
2389 (tc_gen_reloc): Don't subtract fx_subsy.
2390 * config/tc-sh.h (struct fix): Move.
2391 (obj_fix_adjustable): Don't define.
2392 (tc_fix_adjustable): Define this instead.
2393 (TC_FIX_ADJUSTABLE): Don't define.
2394 (MD_APPLY_SYM_VALUE): Define.
2395 (SWITCH_TABLE_CONS): Define.
2396 (SWITCH_TABLE): Define.
2397 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2398 (TC_VALIDATE_FIX_SUB): Define.
2399 (MD_PCREL_FROM_SECTION): Tweak param name.
2400 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2401 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2402 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2403 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2404 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2405 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2406 (TC_VALIDATE_FIX_SUB): Define.
2407 (MD_PCREL_FROM_SECTION): Tweak param name.
2408 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2409 (tc_gen_reloc): Use S_FORCE_RELOC.
2410 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2411 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2412 (TC_FORCE_RELOCATION_ABS): Define this instead.
2413 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2414 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2415 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2416 (MD_APPLY_SYM_VALUE): Define.
2417 (TC_FIX_DATA_PRINT): Tweak param name.
2418 * config/tc-tic30.c (USE_STDOUT): Don't define.
2419 (md_parse_option): Remove stupid debug code.
2420 (tc_gen_reloc): Don't use fx_addnumber.
2421 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2422 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2423 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2424 (tc_fix_adjustable): Define this instead.
2425 (TC_FIX_ADJUSTABLE): Don't define.
2426 (MD_APPLY_SYM_VALUE): Define this instead.
2427 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2428 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2429 (TC_FIX_ADJUSTABLE): Don't define.
2430 (MD_APPLY_SYM_VALUE): Define this instead.
2431 (tc_fix_adjustable): Remove extern and weak tests.
2432 * config/tc-w65.h (struct fix): Forward declare.
2433 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2435 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2436 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2437 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2439 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2440 (MD_APPLY_SYM_VALUE): Define.
2441 (obj_fix_adjustable): Don't define.
2442 (tc_fix_adjustable): Define this instead.
2443 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2445 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2447 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2448 (ppc_fix_adjustable <coff version>): Cleanup.
2450 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2451 (md_parse_option): No -a64 without BFD64.
2452 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2453 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2455 2002-09-04 Nick Clifton <nickc@redhat.com>
2457 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2458 instructions into the hash table if the target cpu is the BookE32.
2460 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2462 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2465 2000-08-28 Catherine Moore <clm@redhat.com>
2467 * tc-v850.c (v850_relax): Declare.
2468 (v850_longcode): New routine.
2469 (v850_handle_align): New routine.
2470 (md_pseudo_table): Add longcall and longjump.
2471 (md_parse_option): Check for relax option.
2472 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2473 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2474 (md_apply_fix3): Likewise.
2475 (v850_force_relocation): Likewise.
2476 (v850_comm): Change the current section.
2477 (md_assemble): Ensure that the correct value is put in the
2479 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2480 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2481 Remove redundant v850ea support.
2482 * tc-v850.h (HANDLE_ALIGN): Define.
2483 (v850_handle_align): Declare.
2484 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2486 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2488 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2489 * configure: Regenerate.
2490 * NEWS: Mention new port.
2492 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2494 * config/obj-coff.c: Add sdef definition.
2495 * config/obj-coff.h: Add tic4x include file and set
2497 * config/tc-tic4x.c: New file.
2498 * config/tc-tic4x.h: New file.
2500 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2502 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2503 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2504 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2505 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2506 (RELOC_ENUM): Define.
2507 (fix_new_internal): Use RELOC_ENUM.
2508 (fix_new, fix_new_exp): Likewise.
2509 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2510 Replace gotos with continue.
2511 (write_relocs): Formatting. Avoid symbol loops in
2512 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2513 errors, and error number in other cases.
2514 (fixup_segment): Remove param names from prototype. Rename
2515 "this_segment_type" to "this_segment". Update linkrelax comment.
2516 Remove "size, "place" and "where" local vars. Formatting. Update
2517 "no symbol" comment. Remove #if 0 and #if 1.
2519 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2521 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2523 * dwarf2dbg.c: Always include dwarf2dbg.h.
2524 (dwarf2_directive_file): Adjust dummy version args.
2525 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2526 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2527 when symbol values differ.
2528 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2529 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2530 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2532 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2534 * config/tc-w65.c (md_section_align): Fix typo.
2535 (md_parse_option): Return 0, not 1.
2537 2002-08-22 Nick Clifton <nickc@redhat.com>
2539 * doc/as.texinfo (Section): Note that if '@' is a comment
2540 character then another symbol is used to prefix the section's
2543 2002-08-22 Christian Groessler <chris@groessler.org>
2545 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2548 2002-08-12 Graeme Peterson <gp@qnx.com>
2550 * configure.in: Add support for sh-**-nto* target.
2551 * configure: Regenerate.
2553 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2555 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2557 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2559 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2561 (ppc_apuinfo_section_add): Define only if format is ELF.
2562 (md_assemble): Emit APUinfo section only if format is ELF.
2565 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2567 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2568 * config/tc-frv.c: Likewise.
2569 * config/tc-hppa.c: Likewise.
2570 * config/tc-ia64.c: Likewise.
2571 * config/tc-ip2k.c: Likewise.
2572 * config/tc-m68hc11.c: Likewise.
2573 * config/tc-m68k.c: Likewise.
2574 * config/tc-mmix.c: Likewise.
2575 * config/tc-mn10300.c: Likewise.
2576 * config/tc-sh.c: Likewise.
2577 * config/tc-sparc.c: Likewise.
2578 * config/tc-v850.c: Likewise.
2580 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2582 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2585 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2587 From matthew green <mrg@redhat.com>
2589 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2590 PPC_OPCODE_PPC is, except for BookE architectures.
2591 (md_parse_option): Add support for -mspe.
2592 (md_show_usage): Add -mspe.
2593 (md_parse_option): Add support for -me500 and
2594 -me500x2 to generate code for Motorola e500 core complex.
2595 (md_show_usage): Add -me500 and -me500x2.
2597 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2598 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2599 PPC_APUINFO_BRLOCK): New macros.
2601 (ppc_cleanup): New function.
2602 (ppc_apuinfo_section_add): New function.
2604 (md_assemble): Collect info and write the APUinfo section.
2606 * config/tc-ppc.h (md_cleanup): Define.
2607 (ppc_cleanup): Export.
2608 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2610 2002-08-17 Stan Cox <scox@redhat.com>
2612 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2613 config/tc-mips.c (s_change_section): New function to support
2614 IRIX .section pseudo-op.
2616 2002-08-16 Nick Clifton <nickc@redhat.com>
2618 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2620 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2622 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2623 the fix-up against on the right frag.
2624 (s_cpsetup): Likewise. Parse third argument as expression, to
2625 handle global symbols and forward/backward labels correctly.
2627 2002-08-14 Nick Clifton <nickc@redhat.com>
2629 * read.c (stringer): Catch attempts to create strings in the abs
2632 * config/tc-alpha.c: Fix compiling for COFF targets.
2633 Some minor formatting tidyups.
2635 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2637 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2638 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2639 according to the reloc.
2640 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2641 (TC_FORCE_RELOCATION): Define.
2642 (tc_m68hc11_force_relocation): Declare.
2644 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2645 (s_m68hc11_relax): New function for relax group.
2646 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2647 beginning of jump instruction.
2648 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2649 address computation.
2650 (tc-gen_reloc): Update.
2651 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2653 (tc_m68hc11_force_relocation): New function, handle new relocs.
2654 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2655 reloc for the linker relax pass.
2656 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2659 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2661 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2662 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2663 (s_m68hc11_mode): New function for .mode pseudo op.
2664 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2666 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2667 (m68hc11_elf_final_processing): Declare.
2669 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2671 * config/tc-m68hc11.c (md_begin): Take into account additional
2672 page operand for call instruction.
2673 (print_opcode_format): Likewise.
2674 (check_range): Likewise for page range checking.
2675 (get_operand): Don't skip a possible comma in operands.
2676 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2677 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2678 (fixup24): New to handle call reloc.
2679 (build_insn): Handle missing page operand for call instruction.
2681 (md_apply_fix3): Take into account new relocs.
2682 (get_operand): Fix the mode for indexed indirect addressing.
2683 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2685 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2687 * config/tc-mips.c (mips_ip): Don't work out the value of
2688 constant %hi()s here.
2690 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2692 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2693 for ELF, and don't bother checking ELF relocs when non-ELF.
2694 (i386_immediate): Allow absolute_section expressions for aout.
2695 (i386_displacement): Likewise. Also test bfd_is_com_section.
2696 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2697 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2698 not when fx_addsy. Remove dead code.
2700 2002-08-09 Graeme Peterson <gp@qnx.com>
2702 * configure.in: Add support for ppc-*-nto* target.
2703 * configure: Regenerate.
2705 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2707 * config/tc-i386.h: Reorganize.
2709 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2711 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2712 immediate offset in "dla" and "la" expansions.
2714 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2716 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2717 Remove "bfd_gas=yes" from target table when covered later.
2718 Consolidate some entries.
2719 * configure: Regenerate
2721 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2723 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2724 at start of insn, pass it to output_disp and output_imm.
2725 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2726 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2728 (output_imm): Added arguments. Compute properly addend for
2730 (md_apply_fix3): Remove R_386_GOTPC handling.
2732 2002-08-06 George France <france@handhelds.org>
2734 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2735 and m21264b processor names and cpu types.
2736 * doc/c-alpha.texi: Documented new types.
2738 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2740 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2742 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2744 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2745 handling to BFD_RELOC_MIPS16_GPREL.
2747 2002-08-01 Nick Clifton <nickc@redhat.com>
2749 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2750 pool is computed using signed arithmetic so that proper sign
2751 extension is performed if X_add_number is a 64-bit integer.
2753 2002-08-01 H.J. Lu <hjl@gnu.org>
2754 Daniel Jacobowitz <drow@mvista.com>
2756 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2757 .debug_line section unless it has line information.
2759 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2761 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2762 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2763 Allow default displacement size to be an option "--disp-size-default".
2764 (md_number_to_disp): Make error messages include value. Use %d to
2765 print integers, not %s.
2766 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2767 get duplicate messages sometimes.
2768 (convert_iif): Grow frag to max possible instruction size. Avoid
2769 creating unnecessary fixes.
2770 (md_number_to_field) Add prototype.
2771 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2772 prototypes and make static.
2773 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2774 (evaluate_expr): Use resultP argument instead of exprP global.
2775 (get_addr_mode): Quiten compiler warnings.
2776 (encode_operand): eliminate unused variables. Quiten compiler
2777 warnings. Eliminate nul character in format strings.
2778 (parse): argc is unsigned.
2779 (reloc): Type cast index to quieten compiler.
2780 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2781 (md_convert_frag): Note unused parameters. Remove unused
2783 (md_create_long_jump, md_create_short_jump,
2784 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2787 2002-07-31 Nick Clifton <nickc@redhat.com>
2789 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2790 of the PDP-11 and 2.11BSD a.out support.
2792 2002-07-31 Momchil Velikov <velco@fadata.bg>
2794 * config/tc-v850.c (md_assemble): Fix range check for immediate
2797 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2799 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2800 to Broadcom SB-1 core support.
2802 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2804 * config/tc-mips.c (mips_target_format): Fix formatting.
2805 Add recognition of n32 ABI formats.
2807 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2809 * tc-mips.c (load_address): Don't clobber $at when loading a
2810 64-bit address in non-PIC code if noat is in effect.
2813 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2815 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2816 used in division/multiply macro expansions similarly to how they
2817 are used in the variants with break instructions.
2820 2002-07-30 Graeme Peterson <gp@qnx.com>
2822 * configure.in: Add support for arm-*-nto target.
2823 * configure: Regenerate.
2825 2002-07-30 Nick Clifton <nickc@redhat.com>
2827 * config/tc-arm.c (struct literal_pool): Add fields to allow
2828 multiple literal pools to be maintained.
2829 (find_literal_pool): New function.
2830 (find_or_make_literal_pool): New function.
2831 (add_to_literal_pool): Use find_or_make_literal_pool.
2832 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2834 (s_ltorg): Use find_literal_pool.
2835 (arm_cleanup): Dump all literal pools.
2836 * doc/c-arm.texi: Document new behaviour of only dumping literal
2839 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2841 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2842 rather than PPC_OPCODE_32 for powerpc64*.
2844 2002-07-25 Nick Clifton <nickc@redhat.com>
2846 * po/es.po: Updated Spanish translation.
2847 * po/fr.po: Updated French translation.
2849 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2851 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2852 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2853 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2854 * configure, config.in: Regenerate.
2855 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2856 (mips_set_options): Remove "abi" field.
2857 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2860 (mips_arch_string, mips_arch_info): New vars.
2861 (mips_tune_string, mips_tune_info): New vars.
2862 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2863 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2864 (mips_isa_to_str, mips_cpu_to_str): Remove.
2865 (mips_ip): If the selected architecture is a generic ISA rather
2866 than a processor, only mention the ISA level in error messages.
2867 (OPTION_MCPU): Remove.
2869 (md_longopts): Add -mfp64, remove -mcpu.
2870 (mips_set_option_string): New fn.
2871 (md_parse_option): Make -mipsN update file_mips_isa rather than
2872 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2873 Don't let -mgp32 and -mfp32 change the ABI.
2874 (show): Move to end of file. Constify string argument.
2875 (md_show_usage): Move to the end of the file. Read available
2876 architectures from mips_cpu_info_table.
2877 (mips_set_architecture): New fn.
2878 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2879 is an alias for -march=mipsN. Don't change the ABI based on other
2880 flags. Infer the register size from the ABI as well as the
2881 architecture. Complain about more conflicting arguments.
2882 Unify logic with GCC.
2883 (s_mipsset): Don't change the ABI.
2884 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2885 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2886 "mipsN"-type entries. Remove entries that vary only in the
2887 manufacturer's prefix, or that have "000" replaced by "k".
2888 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2889 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2890 (mips_parse_cpu): New fn.
2891 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2892 (mips_cpu_info_from_isa): Minor formatting tweak.
2894 2002-07-24 Nick Clifton <nickc@redhat.com>
2896 * po/sv.po: Updated Swedish translation.
2897 * po/es.po: Updated Spanish translation.
2899 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2901 * Makefile.am: Run "make dep-am".
2902 * Makefile.in: Regenerate.
2903 * doc/Makefile.in: Regenerate.
2904 * config.in: Regenerate.
2905 * po/POTFILES.in: Regenerate.
2907 2002-07-23 Nick Clifton <nickc@redhat.com>
2909 * po/fr.po: Updated French translation.
2911 2002-07-23 Nick Clifton <nickc@redhat.com>
2913 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2916 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2918 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2919 instead of S_IS_EXTERN.
2920 (md_estimate_size_before_relax): Likewise.
2921 (mips_fix_adjustable): Likewise.
2923 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2925 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2927 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2928 Nick Clifton <nickc@redhat.com>
2930 * cond.c (s_ifdef): Treat a referenced but not yet defined
2931 symbol as if it were undefined, in exactly the same way as
2934 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2935 consider referenced bug not yet defined symbols to be
2938 2002-07-18 Denis Chertykov <denisc@overta.ru>
2939 Frank Ch. Eigler <fche@redhat.com>
2940 Alan Lehotsky <alehotsky@cygnus.com>
2941 John Healy <jhealy@redhat.com>
2942 Jeff Johnston <jjohnstn@redhat.com>
2944 * configure.in: Add ip2k configuraton.
2945 * configure: Regenerate.
2946 * Makefile.am: Add ip2k configuraton.
2947 * Makefile.in: Regenerate.
2948 * configure: Regenerate.
2949 * Makefile.in: Regenerate.
2950 * config/tc-ip2k.c: New file.
2951 * config/tc-ip2k.h: New files.
2952 * NEWS: Mention new support.
2953 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2954 * doc/Makefile.in: Regenerate.
2955 * doc/all.texi: Set IP2K
2956 * doc/as.texinfo: Add IP2K description.
2957 * doc/c-ip2k.texi: New file.
2959 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2961 * NEWS: Reformat to match style of other NEWS files.
2963 2002-07-17 Jan Hubicka <jh@suse.cz>
2965 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2967 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2969 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2971 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2973 * NEWS: Add 'Changes in 2.13'.
2975 2002-07-15 Matt Fredette <fredette@netbsd.org>
2977 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2979 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2981 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2982 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2985 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2987 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2988 (ppc_frob_file_before_adjust): New function.
2989 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2990 (ppc_elf_frob_symbol): Don't declare.
2991 (tc_frob_file_before_adjust): Define.
2992 (ppc_frob_file_before_adjust): Declare.
2994 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2995 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2998 (ppc_xcoff64): Rename to ppc_obj64.
2999 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3000 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3001 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3003 (ppc_target_format): Use ppc_obj64 to select format.
3004 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3005 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3006 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3007 (tc_frob_symbol): Likewise.
3008 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3009 BFD_DEFAULT_TARGET_SIZE.
3011 (ppc_is_toc_sym): Likewise.
3012 (md_apply_fix3): Likewise.
3013 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3014 BFD_DEFAULT_TARGET_SIZE.
3015 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3016 (tc_frob_symbol): Likewise.
3018 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3020 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3021 (mips_ip): Likewise.
3023 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3025 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3026 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3027 (md_apply_fix3): Formatting. Remove redundant test.
3028 (tc_gen_reloc): Remove redundant code.
3029 (tc_i386_force_relocation): Delete. Movy body of function to..
3030 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3032 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3034 * configure.in: Add hppa-*-openbsd* target, change
3035 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3037 * configure: Regenerate.
3039 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3041 * config/tc-mips.c (macro): Shift the 32-bit address range
3042 accessible with a lone "lui" down by 32768.
3044 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3046 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3047 instead of "dadd" in address calculations.
3050 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3052 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3054 (md_assemble): Instead, zap the suffix here.
3056 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3058 * NEWS: Remove next release number until the release is actually
3061 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3063 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3065 * Makefile.in: Regenerate.
3067 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3069 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3070 to symbols in merge sections, even non pc-relative ones.
3072 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3074 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3076 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3078 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3079 .softregs and .eeprom.
3081 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3083 * NEWS: Note the next release is 2.13.
3085 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3087 * po/tr.po: New translation imported.
3089 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3091 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3092 (ecoff_directive_def): Likewise.
3093 (ecoff_directive_tag): Likewise.
3094 * listing.c (file_info): Likewise.
3095 * hash.c (what): Likewise.
3097 2002-06-25 H.J. Lu <hjl@gnu.org>
3099 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3100 * Makefile.in: Regenerated.
3102 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3104 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3105 (assemble_ppi): Generate warning if the same register is used
3106 twice as destination in the same padd / pmuls instruction.
3108 2002-06-18 Dave Brolley <brolley@redhat.com>
3110 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3111 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3112 * configure.in: Support frv-*-*.
3113 * Makefile.am (CPU_TYPES): Add frv.
3114 (TARGET_CPU_CFILES): Add tc-frv.c.
3115 (TARGET_CPU_HFILES): Add tc-frv.h.
3116 (DEPTC_frv_coff): New variable.
3117 (DEPTC_frv_elf): New variable.
3118 (DEPOBJ_frv_coff): New variable.
3119 (DEPOBJ_frv_elf): New variable.
3120 (DEP_frv_coff): New variable.
3121 (DEP_frv_elf): New variable.
3122 * tc-frv.c: New file.
3123 * tc-frv.h: New file.
3125 2002-06-17 Catherine Moore <clm@redhat.com>
3127 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3129 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3131 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3133 2002-06-17 Tom Rix <trix@redhat.com>
3135 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3137 2002-06-14 H.J. Lu <hjl@gnu.org>
3138 Daniel Jacobowitz <drow@mvista.com>
3140 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3141 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3142 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3143 and new_logical_line for the first .file directive.
3144 * read.c (s_app_file_string): New function.
3145 (s_app_file): Call it.
3146 * read.h (s_app_file_string): Add declaration.
3148 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3150 * configure.in: Remove MIPS_STABS_ELF.
3151 * configure: Regenerated.
3152 * config.in: Regenerated.
3153 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3155 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3157 (pdr_seg): Declare unconditionally.
3158 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3159 (s_mips_end): Likewise. Generate stabs function markers.
3160 (s_mips_ent): Generate stabs function markers.
3161 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3163 (s_mips_mask): Likewise.
3164 (mips_flag_mdebug): New.
3165 (md_longopts): Add "mdebug" and "no-mdebug".
3166 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3167 (mips_after_parse_args): Set mips_flag_mdebug.
3168 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3170 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3172 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3173 value twice for RELA relocations.
3175 2002-06-12 Ben Elliston <bje@redhat.com>
3177 * symbols.c (resolve_symbol_value): Initialise final_val.
3179 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3181 2002-06-11 Tom Rix <trix@redhat.com>
3183 * config/tc-ppc.c (ppc_subseg_align): Delete.
3184 (ppc_change_csect): Default csect align is 2.
3185 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3187 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3189 * config/tc-avr.c (mcu_types): Update.
3191 2002-06-08 Matt Thomas <matt@3am-software.com>
3193 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3194 (vax-*-netbsd*): New targets.
3195 * configure: Regenerate.
3196 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3197 * config/tc-vax.c: Add support for ELF and PIC.
3198 (flag_want_pic): New flag.
3199 (float_cons): Fix prototype.
3200 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3201 (md_assemble): Introduce a new is_absolute local, and use it
3202 rather than repeating the test. Make fatal errors actually
3203 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3204 Add support for ELF. Add support for PIC.
3205 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3206 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3208 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3209 optional for a.out, and not allowed for VMS. Adjust all callers.
3210 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3211 (md_create_long_jump): Likewise.
3212 (md_undefined_symbol): Likewise.
3213 (md_section_align): Likewise.
3214 (md_shortopts): Allow -k and -K for ELF.
3215 (md_parse_option): Set flag_want_pic if -k or -K.
3216 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3217 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3218 * config/tc-vax.h (tc_headers_hook): Remove.
3219 (TARGET_FORMAT): Set according to object format and target
3221 (BFD_ARCH, TARGET_ARCH): Define.
3222 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3223 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3224 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3225 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3227 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3229 * Makefile.am: Run "make dep-am".
3230 * Makefile.in: Regenerate.
3232 * as.c: Replace CONST with const.
3233 * write.c: Likewise.
3234 * config/obj-coff.c: Likewise.
3235 * config/tc-a29k.c: Likewise.
3236 * config/tc-arm.c: Likewise.
3237 * config/tc-dlx.c: Likewise.
3238 * config/tc-h8300.c: Likewise.
3239 * config/tc-h8500.c: Likewise.
3240 * config/tc-i370.c: Likewise.
3241 * config/tc-i860.c: Likewise.
3242 * config/tc-i960.c: Likewise.
3243 * config/tc-m68hc11.c: Likewise.
3244 * config/tc-m68k.c: Likewise.
3245 * config/tc-m88k.c: Likewise.
3246 * config/tc-mcore.c: Likewise.
3247 * config/tc-mips.c: Likewise.
3248 * config/tc-ns32k.c: Likewise.
3249 * config/tc-pdp11.c: Likewise.
3250 * config/tc-pj.c: Likewise.
3251 * config/tc-s390.c: Likewise.
3252 * config/tc-sh.c: Likewise.
3253 * config/tc-sparc.c: Likewise.
3254 * config/tc-tahoe.c: Likewise.
3255 * config/tc-tic80.c: Likewise.
3256 * config/tc-v850.c: Likewise.
3257 * config/tc-vax.c: Likewise.
3258 * config/tc-w65.c: Likewise.
3259 * config/tc-z8k.c: Likewise.
3261 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3263 Based on patch from Matt Green:
3264 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3265 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3266 (s_mips_loc): New function.
3267 (mips_nonecoff_pseudo_table): Call them.
3268 (append_insn): Call dwarf2_emit_insn.
3270 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3272 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3274 (file_ase_mips16): New veriable.
3275 (mips_eabi64): Remove.
3276 (CPU_HAS_MIPS16): New define.
3277 (CPU_HAS_MDMX): Fix data type.
3278 (md_begin): Code cleanup. Use file_ase_mips16.
3279 (mips_elf_final_processing): Handle mips16 header flag.
3280 Handle EABI flag without intermediate variable.
3282 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3284 * doc/as.texinfo: Update MIPS documentation.
3286 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3288 * config/tc-mips.c: Add define for $zero register.
3289 (md_begin): Add $zero as alias name for $0.
3290 (insn_uses_reg): Use ZERO define.
3291 (mips_ip): Add $zero as alias name for $0.
3292 (mips16_ip): Likewise.
3293 (s_cplocal): Demand empty rest of input line.
3294 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3295 names. Use ZERO define. Fix input_line_pointer progress.
3297 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3299 * symbols.c: Replace CONST by const throughout.
3300 (symbol_find_exact): Split out from..
3301 (symbol_find_base): ..here.
3302 * symbols.h: Replace CONST by const throughout.
3303 (symbol_find_exact): Declare.
3304 * config/obj-elf.c: #include "struc-symbol.h".
3305 (elf_frob_file): If group name matches an exported symbol, use that
3306 symbol for the signature and ".group" as the section name.
3308 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3310 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3313 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3315 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3316 and mips_opts.ase_mdmx if they are uninitialized.
3318 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3320 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3321 (hppa_force_relocation): Check if a stub just before the start symbol
3322 of the last call_info is reachable before forcing relocation. Fix
3325 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3327 * config/tc-mips.c (mips_after_parse_args): New function.
3328 (md_begin): Move processing of defaults to mips_after_parse_args.
3329 config/tc-mips.h (md_after_parse_args): Define.
3331 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3333 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3334 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3335 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3336 * configure: Regenerate.
3337 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3340 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3342 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3344 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3346 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3347 linkonce flag. Print all warnings.
3348 (obj_elf_section): Parse ",comdat" for groups.
3349 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3350 consistency of comdat flag.
3352 2002-06-02 Richard Henderson <rth@redhat.com>
3354 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3355 with LITERALs without sequence numbers.
3357 2002-06-01 Richard Henderson <rth@redhat.com>
3359 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3360 Rename them LITUSE_ALPHA_*.
3362 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3364 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3365 accept parentheses enclosed register lists.
3367 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3369 * Makefile.am: Run "make dep-am".
3370 * Makefile.in: Regenerate.
3371 * po/POTFILES.in: Regenerate.
3373 2002-05-31 Graeme Peterson <gp@qnx.com>
3375 * configure.in: Add i386-*-nto-qnx*.
3376 * configure: Regenerate.
3378 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3380 * config/tc-mips.c (mips_ip): Use unsigned long values for
3383 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3385 * config/tc-mips.c (s_cpsetup): Fix initialization of
3386 mips_cpreturn_register and mips_cpreturn_offset.
3388 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3390 * config/tc-mips.c (s_cpsetup): Fix comment.
3392 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3394 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3395 (mips_ip): Likewise.
3396 (mips16_ip): Likewise.
3397 (tc_get_register): Likewise.
3399 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3400 Ed Satterthwaite <ehs@broadcom.com>
3402 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3403 (mips_opts): Initialize "ase_mdmx" member.
3404 (file_ase_mdmx): New variable.
3405 (CPU_HAS_MDMX): New macro.
3406 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3407 based on command line options and configuration defaults.
3408 (macro_build): Note in comment that use of MDMX in macros is
3409 not currently allowed.
3410 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3411 "Z" MDMX operand types.
3412 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3413 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3415 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3416 Add support for "-mdmx" and "-no-mdmx" options.
3417 (OPTION_ELF_BASE): Move to accomodate new options.
3418 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3419 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3420 file_ase_mdmx was set.
3421 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3422 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3425 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3427 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3428 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3429 command line switch conforming to gcc conventions.
3430 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3432 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3434 * config/tc-mips.c (macro_build_jalr): New Function.
3435 (md_begin): NewABI uses big GOTs.
3436 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3437 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3438 (load_address): Add some NewABI PIC support.
3440 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3441 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3443 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3445 * config/tc-mips.c (load_address): Use mips_gp_register instead
3446 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3448 (macro): Use mips_gp_register instead of hardcoded value.
3450 2002-05-30 Richard Henderson <rth@redhat.com>
3452 * expr.h (operatorT): Add O_md17..O_md32.
3453 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3454 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3455 O_tprelhi, O_tprello, O_tprel): New.
3456 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3457 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3458 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3459 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3460 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3461 (md_apply_fix3): Handle TLS relocations.
3462 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3463 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3464 associated TLS reloc. Check lituse_tls relocs match up.
3465 (emit_insn): Handle TLS relocations.
3468 * doc/c-alpha.texi: Add docs for tls relocations.
3470 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3472 * config/tc-mips.c (mips_gprel_offset): New variable.
3473 (s_gpvalue): Use it.
3475 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3477 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3478 write-write conflicts.
3479 (md_assemble): Reformat introductory comment.
3480 (parallel_ok): Prevent packing only if the first
3481 instruction cannot be packed.
3483 2002-05-30 Jason Eckhardt <jle@redhat.com>
3484 Tom Rix <trix@redhat.com>
3486 * config/tc-d10v.c (build_insn): Check for immediates.
3488 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3490 * config/tc-mips.c: Replace GP in comments by $gp.
3491 (mips_big_got): Initialize.
3492 (mips_trap): Initialize.
3493 (load_address): Use mips_gp_register instead of hardcoded value.
3494 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3495 (macro): Use mips_gp_register instead of hardcoded value.
3496 (macro2): Change load_address calls.
3497 (md_pcrel_from): Comment formatting.
3498 (s_cpload): Use mips_gp_register instead of hardcoded value.
3499 (s_cprestore): Likewise. Comment formatting.
3500 (s_gpword): Fix data type.
3501 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3502 (nopic_need_relax): Replace GP in comments by $gp.
3503 (mips_elf_final_processing): Better comment.
3505 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3507 * configure.in: Add DLX configuraton
3508 * Makefile.am: Add DLX configuraton
3509 * configure: Regenerate.
3510 * Makefile.in: Regenerate.
3511 * config/tc-dlx.c: New file.
3512 * config/tc-dlx.h: New files.
3513 * NEWS: Mention new support.
3515 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3517 * config/obj-coff.c (write_object_file): Add missing semicolon.
3519 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3521 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3522 by the define. Remove superfluous check of mips_opts.mips16.
3523 (append_insn): Likewise. Canonicalize variable increments.
3524 (macro_build): Canonicalize variable increments.
3525 (macro_build_lui): Likewise.
3526 (load_register): Likewise.
3527 (load_address): Move pointer initialization.
3528 (macro): Move pointer to a more local scope. Canonicalize variable
3529 increments. Better comments. Replace magic constant for RA by the
3531 (macro2): Replace magic constant for RA by the define. Canonicalize
3532 variable increments.
3533 (mips_ip): Canonicalize variable increments.
3534 (mips16_ip): Replace magic constant for RA by the define.
3535 (my_getSmallParser): Canonicalize variable increments/decrements.
3536 (my_getPercentOp): Likewise.
3537 (my_getSmallExpression): Likewise.
3538 (s_align): Likewise.
3539 (s_mipsset): Likewise.
3540 (s_cpsetup): Likewise.
3541 (s_insn): Remove superfluous check of mips_opts.mips16.
3542 (s_mips_stab): Likewise.
3543 (mips_handle_align): Canonicalize variable increments.
3544 (s_mips_ent): Likewise.
3545 (s_mips_end): Add comment.
3547 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3549 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3550 * configure: Regenerate.
3552 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3554 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3555 * Makefile.in: Regenerate.
3556 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3557 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3558 * configure: Regenerate.
3559 * as.h: Use #include "" instead of <> for local header files.
3560 * flonum-konst.c: Likewise.
3561 * flonum-mult.c: Likewise.
3563 * listing.c: Likewise.
3564 * config/tc-ia64.h: Likewise.
3565 * config/tc-v850.h: Likewise.
3567 2002-05-24 TAMURA Kent <kent@netbsd.org>
3569 * configure.in: Add a target for i386-netbsdpe.
3570 * configure: Regenerate.
3572 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3574 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3575 (obj_elf_common): Call elf_common.
3576 (obj_elf_tls_common): New function.
3577 (elf_pseudo_tab): Support .tls_common.
3578 (special_sections): Add .tdata and .tbss.
3579 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3581 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3582 (obj_elf_parse_section_letters): Include T in error message.
3583 * config/tc-ppc.c (ppc_section_letter): Likewise.
3584 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3585 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3587 * config/tc-sparc.c (md_apply_fix3): Likewise.
3588 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3589 Define them if not BFD_ASSEMBLER.
3590 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3592 (md_apply_fix3): Add TLS relocs.
3593 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3594 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3595 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3596 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3597 (ia64_elf_section_letter): Include T in error message.
3598 (md_begin): Support TLS operators.
3599 (md_operand): Likewise.
3600 (ia64_gen_real_reloc_type): Support TLS relocs.
3601 * write.c (adjust_reloc_syms): Don't change symbols in
3602 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3604 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3606 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3607 round the relocation up rather than down.
3609 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3611 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3613 * doc/as.texinfo: Document that the COFF version of .section
3614 ignores the 'a' flag.
3616 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3618 * config/tc-alpha.c (assemble_tokens): Protect use of
3619 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3621 * write.c (size_seg): Check adjustment to last frag.
3622 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3624 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3625 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3626 (write_object_file): Invoke md_do_align if available, and use
3627 frag_align_code on text sections.
3628 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3629 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3630 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3631 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3632 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3635 2002-05-22 H.J. Lu <hjl@gnu.org>
3637 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3640 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3642 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3645 2002-05-22 H.J. Lu <hjl@gnu.org>
3647 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3648 for one .loc for compiler.
3650 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3652 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3655 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3657 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3658 Optimize the rotate by zero case.
3660 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3662 * configure.in: Remove accidental enabling of bfd_gas=yes for
3664 * configure: Regenerate.
3666 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3668 * app.c: Fix formatting.
3670 * ehopt.c: Likewise.
3672 * input-file.c: Likewise.
3673 * listing.c: Likewise.
3674 * macro.h: Likewise.
3675 * stabs.c: Likewise.
3676 * symbols.c: Likewise.
3678 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3680 * config/obj-generic.c: Delete file.
3681 * config/obj-generic.h: Likewise.
3683 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3685 * config/tc-avr.c (mcu_types): Update for new devices.
3687 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3689 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3691 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3693 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3694 worked sometimes by accident. Fix copy&paste comment.
3696 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3698 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3699 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3700 (mips_elf_final_processing): Let n32 use .reginfo.
3702 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3704 * config/tc-mips.c (append_insn): Fix too small range of variable.
3706 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3708 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3709 listing_prev_line().
3711 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3713 * config/tc-arm.c (md_assemble): Remove redundant call to
3716 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3719 * stabs.c (s_stab_generic): Fix grammatical error in warning
3722 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3724 * write.c (subsegs_finish): Don't specially align last subseg.
3726 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3728 * stabs.c (s_stab_generic): Warn about a description field that is
3731 * config/obj-coff.c: Fix compile time warnings when compiling
3732 without BFD_ASSEMBLER defined.
3735 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3737 (md_pcrel_from_section): Use md_pcrel_from().
3739 2002-05-11 Bruno Haible <bruno@clisp.org>
3741 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3742 by dwarf2_directive_loc, instead of calling dwarf2_where.
3744 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3746 * config/obj-coff.h: Fix formatting.
3747 * config/tc-mcore.c: Likewise.
3748 * config/tc-mn10300.c: Likewise.
3749 * config/tc-openrisc.c: Likewise.
3750 * config/tc-or32.c: Likewise.
3751 * config/tc-pdp11.c: Likewise.
3752 * config/tc-ppc.c: Likewise.
3753 * config/tc-ppc.h: Likewise.
3754 * config/tc-sh64.c: Likewise.
3755 * config/tc-sh.c: Likewise.
3756 * config/tc-tic54x.c: Likewise.
3757 * config/tc-xstormy16.c: Likewise.
3758 * config/tc-xstormy16.h: Likewise.
3760 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3762 * config/obj-coff.c: Fix formatting.
3763 * config/obj-elf.c: Likewise.
3764 * config/tc-alpha.c: Likewise.
3765 * config/tc-arm.c: Likewise.
3766 * config/tc-d10v.c: Likewise.
3767 * config/tc-d30v.c: Likewise.
3768 * config/tc-h8300.c: Likewise.
3769 * config/tc-hppa.c: Likewise.
3771 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3773 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3774 reloc when no_cond_jump_promotion.
3776 2002-05-08 Jim Wilson <wilson@redhat.com>
3778 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3779 current variable part of frag.
3781 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3783 * config/tc-mmix.c: Fix formatting.
3784 * config/tc-mmix.h: Likewise.
3786 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3788 * configure: Regenerate.
3790 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3792 * config/tc-m68k.c: Fix formatting.
3794 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3796 * Makefile.am: Honour DESTDIR.
3797 * Makefile.in: Regenerate.
3799 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3801 * config/tc-ia64.c: Fix formatting.
3802 * config/tc-ia64.h: Likewise.
3804 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3806 * config/tc-mips.c: Fix formatting.
3807 * config/tc-s390.c: Likewise.
3808 * config/tc-s390.h: Likewise.
3810 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3812 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3813 information for instructions.
3815 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3817 * as.h: Fix formatting.
3820 * dwarf2dbg.c: Likewise.
3821 * frags.h: Likewise.
3823 * macro.c: Likewise.
3825 * stabs.c: Likewise.
3826 * symbols.c: Likewise.
3828 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3830 * app.c (mri_pseudo): Only declare for TC_M68K.
3832 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3833 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3834 BFD_RELOC_16_BASEREL.
3835 (md_assemble): Likewise.
3836 (md_apply_fix3): Likewise.
3838 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3840 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3841 zero into an add of zero - it is not the same.
3843 2002-05-01 Arati Dikey <aratid@kpit.com>
3845 * tc-sh.c (get_specific): Generate warning if the same
3846 destination register is used in parallel instructions.
3848 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3850 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3852 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3854 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3855 backwards to prevent cascading errors.
3857 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3859 * configure.in: Add support for powerpc-*-windiss.
3860 * configure: Regenerated.
3862 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3864 * config/tc-s390.c (md_parse_option): Formatting.
3866 * config/tc-i386.c: Formatting fixes, add missing space in error
3869 2002-04-24 Christian Groessler <chris@groessler.org>
3871 * config/tc-z8k.c (build_bytes): Add support for new cases:
3872 CLASS_IGNORE and ARG_NIM4.
3873 (md_assemble): Prevent destruction of input_line_pointer if
3874 get_operands returns failure.
3876 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3878 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3879 instructions to be generated by macros.
3881 2002-04-24 Andreas Schwab <schwab@suse.de>
3883 * config/tc-i386.c (output_jump, output_disp)
3884 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3886 (md_apply_fix3): Remember addend value for rela relocations.
3887 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3889 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3891 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3892 from previous change.
3894 2002-04-22 Eric Christopher <echristo@redhat.com>
3896 * config/tc-mips.c (macro_build): Add warning if macro instructions
3897 are expanded into a branch delay slot.
3899 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3901 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3902 numbers, gdb relies on them to detect the start of the prologue.
3904 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3906 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3907 symbols in merge sections.
3909 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3911 * as.c (main): Don't reference _bfd_chunksize.
3913 2002-04-15 Tom Rix <trix@redhat.com>
3915 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3916 symbols in merge sections.
3918 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3920 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3921 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3922 argument for the precision.
3923 (gen_to_words): Update accordingly.
3925 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3927 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3928 BFD_VERSION_STRING unavailable.
3929 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3931 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3933 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3934 symbol_used_in_reloc_p is true.
3936 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3939 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3941 * dep-in.sed: Cope with absolute paths.
3942 * Makefile.am (dep.sed): Subst TOPDIR.
3944 * Makefile.in: Regenerate.
3946 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3948 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3949 (mips_ip): Remove unused variable.
3950 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3951 unsigned char with bfd_byte.
3952 (s_file): Remove unused variable.
3953 (s_mips_ent): Likewise.
3955 2002-04-03 Tom Rix <trix@redhat.com>
3957 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3959 (find_opcode): Fix warning in as_warn.
3960 * config/tc-d10v.h: Update Copyright.
3962 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3963 Tom Rix <trix@redhat.com>
3965 From Jeff Knaggs <jknaggs@redhat.com>
3966 * config/tc-d10v.c (check_resource_conflict): New function to
3967 check for resource conflicts.
3969 From Jason Eckhardt <jle@redhat.com>
3970 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3972 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3973 reserved control registers is used.
3974 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3977 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3978 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3979 instruction cannot be packed.
3981 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3982 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3983 write-write conflicts.
3984 (md_assemble): Reformat introductory comment.
3985 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3988 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3990 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3991 O_logical_not>): Derive final_seg from add_symbol.
3992 <O_multiply..O_logical_or>: More final_seg twiddles.
3994 2002-04-01 Jessica Han <jessica@cup.hp.com>
3996 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3999 2002-03-27 Andreas Schwab <schwab@suse.de>
4001 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4002 field for pc-relative fixups.
4003 (output_disp): Likewise.
4004 (md_estimate_size_before_relax): Likewise.
4005 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4006 pc-relative fixups in 64bit mode.
4008 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4010 * config/te-aix5.h: Typo fix.
4012 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4014 * Makefile.am: Run "make dep-am".
4015 * Makefile.in: Regenerate.
4016 * doc/Makefile.in: Regenerate.
4018 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4020 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4021 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4023 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4025 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4026 the EXTENDED bit here; report the estimate according to the
4029 2002-03-18 Tom Rix <trix@redhat.com>
4031 * configure.in: Add AIX 5 support.
4032 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4033 * config/te-aix5.h: New file. AIX 5 support.
4034 * configure: Regenerate.
4036 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4038 * po/fr.po: Updated version.
4040 2002-03-16 Andreas Jaeger <aj@suse.de>
4042 * doc/c-mips.texi (Machine Dependencies): Add new node.
4044 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4046 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4047 (mips_opts): Initialize "ase_mips3d" member.
4048 (file_ase_mips3d): New variable.
4049 (CPU_HAS_MIPS3D): New macro.
4050 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4051 based on command line options and configuration defaults.
4052 (macro_build, mips_ip): Accept MIPS-3D instructions if
4053 mips_opts.ase_mips3d is set.
4054 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4055 Add support for "-mips3d" and "-no-mips3d" options.
4056 (OPTION_ELF_BASE): Move to accomodate new options.
4057 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4058 (mips_elf_final_processing): Add a comment indicating that a
4059 MIPS-3D ASE ELF header flag should be set, when one exists.
4060 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4061 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4062 nomips3d" directives.
4064 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4066 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4067 a weak symbol in same section to be within reach.
4069 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4071 * po/fr.po: Updated version.
4073 2002-03-12 Andreas Schwab <schwab@suse.de>
4075 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4076 body record so that an error is given for misplaced .save
4079 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4081 * config/tc-i386.h (REX_OPCODE): Define.
4082 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4083 (rex_byte): typedef to int.
4084 * config/tc-i386.c: Group prototypes and vars together.
4085 Formatting fixes. Remove occurrences of "register" keyword.
4088 (mode_from_disp_size): Add INLINE keyword to prototype.
4089 (fits_in_signed_byte): Likewise.
4090 (fits_in_unsigned_byte): Likewise.
4091 (fits_in_unsigned_word): Likewise.
4092 (fits_in_signed_word): Likewise.
4093 (fits_in_unsigned_long): Likewise.
4094 (fits_in_signed_long): Likewise.
4095 (type_names): Constify.
4096 (intel_float_operand): Constify param.
4097 (add_prefix): Use REX_OPCODE.
4098 (md_assemble): Likewise. Modify for changed rex_byte.
4099 (parse_insn): Split out of md_assemble.
4100 (parse_operands): Likewise.
4101 (swap_operands): Likewise.
4102 (optimize_imm): Likewise.
4103 (optimize_disp): Likewise.
4104 (match_template): Likewise.
4105 (check_string): Likewise.
4106 (process_suffix): Likewise.
4107 (check_byte_reg): Likewise.
4108 (check_long_reg): Likewise.
4109 (check_qword_reg): Likewise.
4110 (check_word_reg): Likewise.
4111 (finalize_imm): Likewise.
4112 (process_operands): Likewise.
4113 (build_modrm_byte): Likewise.
4114 (output_insn): Likewise.
4115 (output_branch): Likewise.
4116 (output_jump): Likewise.
4117 (output_interseg_jump): Likewise.
4118 (output_disp): Likewise.
4119 (output_imm): Likewise.
4121 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4123 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4125 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4127 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4128 relocs except when BFD64.
4130 * write.c (number_to_chars_bigendian): Don't abort when N is
4131 larger than sizeof (VAL).
4132 (number_to_chars_littleendian): Likewise.
4134 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4136 * config/tc-hppa.c (md_apply_fix3): Add cast.
4137 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4140 2002-03-05 Paul Koning <pkoning@equallogic.com>
4142 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4143 (parse_ac5): New function for parsing float regs in float operand.
4144 (parse_expression): Remove attempt to make literals be octal.
4145 (parse_op_no_deferred): Support float literals.
4146 (parse_op): Reject attempts to refer to float regs.
4147 (parse_fop): New function, like parse_op but for float operand.
4148 (md_assemble): Add cases to parse float operands. Also fix
4149 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4151 2002-03-04 H.J. Lu <hjl@gnu.org>
4153 * config/obj-elf.c (special_section): Add .init_array,
4154 .fini_array and .preinit_array.
4156 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4157 .init_array and .fini_array.
4159 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4161 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4163 (obj_frob_symbol): Copy visibility.
4165 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4167 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4169 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4171 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4173 * po/es.po: Updated.
4175 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4177 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4178 only, undo the changes made on 2001-06-08, with the
4179 effect being that common or extern symbols are
4180 adjusted for embedded-PIC, but weak symbols are not.
4181 (md_estimate_size_before_relax: Likewise, with the effect
4182 that extern symbols are treated the same as weak symbols
4183 only if not embedded-PIC.
4184 (mips_fix_adjustable) Likewise, with the effect that
4185 weak or extern symbols are not adjusted for embedded-PIC.
4186 (md_apply_fix3): Tweak so that the case where value is zero
4187 is handled more correctly for embedded-PIC code.
4189 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4191 * doc/as.texinfo (Overview): Add missing @ifset IA64
4193 * configure.in (LINGUAS): Add es.po.
4194 * configure: Regenerate.
4195 * po/es.po: New file.
4197 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4199 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4200 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4201 and NO_PIC cases. Code cleanup.
4202 (macro2): Fix handling of 64bit register loads.
4204 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4206 * doc/as.texinfo: Add entry for IA64.
4207 * doc/c-ia64.texi: New file.
4209 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4211 * config/tc-hppa.c: Update copyright date.
4213 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4214 Remove references to chip manufacturers.
4215 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4217 (md_show_usage): Remove references to chip manufacturers. Mention
4219 (md_begin): Test power4 opcode flag bits.
4221 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4223 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4224 count exceeds prologue count.
4225 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4226 (unwind.label_prologue_count): New member.
4228 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4230 (get_saved_prologue_count): New function.
4231 (save_prologue_count): New function.
4232 (free_saved_prologue_count): New function.
4233 (dot_label_state): Record state label by calling save_prologue_count().
4234 (dot_copy_state): Restore prologue count by calling
4235 get_saved_prologue_count().
4236 (generate_unwind_image): Free up list of saved prologue
4237 counts by calling free_saved_prologue_counts().
4239 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4241 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4242 function declarations.
4244 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4246 * NEWS: Note that GASP is now deprecated.
4247 * Makefile.am: Do not build gasp-new by default.
4248 * Makefile.in: Regenerate.
4249 * doc/Makefile.am: Do not install gasp.info.
4250 * doc/Makefile.in: Regenerate.
4251 * gas/gasp.texi: Note that gasp is now deprecated.
4253 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4255 * NEWS: Mark 2.12 branch.
4257 2002-02-19 Tom Tromey <tromey@redhat.com>
4259 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4261 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4263 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4266 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4268 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4269 Make bit size independent of architecture switch.
4270 (md_begin): Add warning for -m64 with -Aesa.
4271 (s390_md_end): Use renamed architecture defines.
4273 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4275 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4277 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4279 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4282 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4284 * config/tc-mips.c (md_estimate_size_before_relax): Really
4285 make sure we treat weak like extern only for ELF. (Fixes
4286 patch from 2001-07-25.)
4288 2002-02-15 Ben Elliston <bje@redhat.com>
4290 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4293 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4295 * NEWS: Mention support for MMIX.
4297 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4299 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4300 a sequence of indpendent 'if' statements for easier debugging
4301 and future modification.
4303 2002-02-13 Matt Fredette <fredette@netbsd.org>
4305 * config/tc-m68k.c (md_show_usage): No longer display a
4306 hard-coded "68020" for the default CPU, instead display the
4307 canonical name of the true, configured default CPU.
4308 (m68k_elf_final_processing): Mark objects for sub-68020
4309 CPUs with the new EF_M68000 flag.
4311 2002-02-13 Andreas Schwab <schwab@suse.de>
4313 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4314 pc-relative relocations to merge sections in 64-bit mode.
4316 2002-02-13 Ben Elliston <bje@redhat.com>
4318 * NEWS: Document floating point number handling in gasp.
4319 * gasp.c: Include <assert.h> and "xregex.h".
4320 (is_flonum): New function.
4321 (chew_flownum): Likewise.
4322 (change_base): Consume flonums from the input, where possible.
4323 * doc/gasp.texi (Constants): Document floating point numbers.
4325 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4327 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4328 that implicitly use LR and RR selectors.
4330 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4332 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4333 and `epsw' as available on AM33 and above only.
4334 (other_register_name): Add logic to handle machine type encoded in
4337 2002-02-11 Tom Rix <trix@redhat.com>
4339 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4342 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4344 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4347 2002-02-11 Jan Hubicka <jh@suse.cz>
4349 * i386.c (md_assemble): Support 32bit address prefix.
4350 (i386_displacement): Likewise.
4351 (i386_index_check): Accept 32bit addressing in 64bit mode.
4353 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4355 * config/tc-sh.c (dot): Removed unused function.
4357 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4359 * Makefile.am: "make dep-am".
4360 * Makefile.in: Regenerate.
4361 * aclocal.m4: Regenerate.
4362 * config.in: Regenerate.
4363 * configure: Regenerate.
4364 * doc/Makefile.in: Regenerate.
4366 2002-02-10 Richard Henderson <rth@redhat.com>
4368 * doc/c-alpha.texi: New file.
4369 * doc/Makefile.am (CPU_DOCS): Add it.
4370 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4372 2002-02-09 Richard Henderson <rth@redhat.com>
4374 * config/tc-alpha.c (O_samegp): New.
4375 (USER_RELOC_P): Include it.
4376 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4377 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4378 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4379 (alpha_validate_fix): New.
4380 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4382 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4384 * doc/c-cris.texi: New.
4385 * doc/all.texi: @set CRIS.
4386 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4387 Include c-cris.texi.
4388 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4389 * doc/Makefile.in: Regenerate.
4391 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4393 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4394 determine if a number is a sign-extended 32-bit number.
4395 (load_register): Use IS_SEXT_32BIT_NUM.
4396 (macro): Check if load/store macro handling is using a
4397 constant 32-bit address on 64-bit address systems, and if
4398 so optimize the generation of that address.
4400 2002-02-08 Richard Henderson <rth@redhat.com>
4402 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4403 we've eliminated all foreign relocation types yet.
4404 (alpha_fix_adjustable): Likewise.
4406 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4408 Contribute sh64-elf.
4409 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4410 Stephen Clarke <Stephen.Clarke@st.com>
4411 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4412 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4413 * config/tc-sh.c (md_relax_table): Added default sizes for
4414 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4415 MOVI_16, MOVI_32 and MOVI_48.
4416 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4417 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4419 (shmedia_md_estimate_size_before_relax): Remove redundant
4420 blocks. Set fragP->fr_var even if relaxation type unchanged.
4421 Retain UNDEF_MOVI until expression decays to number.
4422 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4423 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4424 relocation types. Take fixP->fx_addnumber into account too.
4425 (shmedia_md_apply_fix): Likewise.
4426 (shmedia_md_convert_frag): Likewise.
4427 (shmedia_build_Mytes): Likewise.
4428 (sh64_consume_datalabel): Complain about nested datalabel.
4429 Support PIC relocs. Call sh_parse_name.
4430 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4431 in tc-sh.h to SHmedia reloc types.
4432 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4433 MOVI_GOTPC): New relaxation constants.
4434 (md_relax_table): Introduce relaxation directives for PIC-related
4436 (sh_PIC_related_p): Handle datalabel.
4437 (sh_check_fixup): Choose SH5 PIC relocations.
4438 (sh_cons_fix_new): Added BDF_RELOC_64.
4439 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4440 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4441 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4442 current ISA is SHmedia, get 7 bytes.
4443 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4444 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4446 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4447 shmedia_apply_fix3 and make void.
4448 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4449 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4451 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4452 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4453 2001-03-14 DJ Delorie <dj@redhat.com>
4454 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4455 * doc/Makefile.in(CPU_DOCS): Ditto.
4456 * doc/c-sh64.texi: New file.
4457 * doc/as.texinfo: Add SH64 support.
4458 2001-03-13 DJ Delorie <dj@redhat.com>
4459 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4460 A_REUSE_PREV so that its purpose is more obvious.
4461 (shmedia_build_Mytes): Ditto.
4462 2001-03-07 DJ Delorie <dj@redhat.com>
4463 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4465 (sh64_vtable_inherit): Ditto.
4466 (strip_datalabels): New, strip "datalabel" from given line.
4467 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4469 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4470 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4472 (shmedia_build_Mytes): ... to here.
4473 2001-03-06 DJ Delorie <dj@redhat.com>
4474 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4476 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4477 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4478 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4479 address by one in call to dwarf2_emit_insn.
4480 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4481 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4482 alignment handling broken by imported changes.
4483 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4484 (sh64_handle_align): Declare.
4485 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4486 (sh64_max_mem_for_rs_align_code): Declare.
4487 (enum sh64_isa_values): Moved here from tc-sh64.c.
4488 (md_do_align): Define.
4489 (sh64_do_align): Declare.
4490 (struct sh64_tc_frag_data): New.
4491 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4493 (TC_FRAG_INIT): Change to set new datatype.
4494 (struct sh64_segment_info_type): Rename member
4495 last_flushed_location to last_contents_mark. All users changed.
4496 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4497 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4498 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4499 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4500 of unsetting seen_insn.
4501 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4502 call sh64_update_contents_mark.
4503 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4504 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4505 enum sh64_isa_values.
4506 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4507 (emitting_crange): Boolean guard moved to file scope from function
4508 scope in sh64_set_contents_type.
4510 (sh64_update_contents_mark): New; most split out from
4511 sh64_flush_pending_output.
4512 (shmedia_md_end): Call sh64_update_contents_mark. Set
4513 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4514 (sh64_do_align): New function.
4515 (sh64_max_mem_for_rs_align_code): New function.
4516 (sh64_handle_align): Rename from shmedia_do_align. Make
4517 non-static. Add head comment. Emit zero bytes for n bytes modulo
4518 four. Change return-type to void.
4519 (shmedia_elf_new_section): Remove.
4520 (shmedia_md_assemble): Call sh64_update_contents_mark.
4521 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4522 new frag. Call sh64_update_contents_mark after making the new
4524 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4525 and sh_flush_pending_output.
4526 (sh64_flag_output): Also call md_flush_pending_output, but add
4527 condition on not emitting_crange.
4528 (sh64_tc_cons_fix_new): Remove.
4529 2001-01-12 Nick Clifton <nickc@redhat.com>
4530 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4531 alignment handling scheme imported from sourceware.
4532 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4533 * config/tc-sh64.h (TARGET_FORMAT): Define.
4534 (sh64_target_format): Prototype.
4535 * config/tc-sh64.c (sh64_target_mach): New function.
4536 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4537 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4538 zero_address_frag instead of copying the frag of the symbol.
4539 (shmedia_frob_file_before_adjust): Ditto.
4540 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4541 to valueT to remove signedness.
4542 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4543 headers to output_bfd. Do not evaluate symbols if final is false;
4545 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4546 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4547 to the current frag, call shmedia_md_convert_frag to emit fixups
4548 and make frag_wane neutralize the frag. Update comments.
4549 * config/tc-sh.c (md_convert_frag): Change caller of
4550 shmedia_md_convert_frag.
4551 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4552 * config/tc-sh64.h: Tweak comments and correct formatting.
4553 * config/tc-sh64.c: Ditto.
4554 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4555 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4556 for the no-relocation case.
4557 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4558 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4560 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4562 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4563 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4565 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4567 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4568 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4569 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4570 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4571 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4572 if reloc is emitted.
4573 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4574 New options plus bugfixes.
4575 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4577 (md_parse_option): Handle new options.
4578 (md_show_usage): Add blurb for new options.
4579 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4580 (sh64_expand, sh64_pt32): New variables.
4581 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4582 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4583 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4584 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4585 <resolved previously-pc-relative relocs>: Handle
4586 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4587 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4588 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4589 points to SHcompact code.
4590 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4591 SH64PCREL16)>: Check that ISA of what operand points at and
4592 PTA/PTB matches, or emit error.
4593 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4594 SHMEDIA_BFD_RELOC_PT.
4595 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4597 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4598 condition for MOVI expansion.
4599 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4600 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4602 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4604 (sh64_target_format): Error-check setting of sh64_pt32 and
4605 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4606 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4607 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4608 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4609 * config/tc-sh64.c: Improve comments.
4610 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4611 not say the linker will check correctness of PTA/PTB expansion.
4612 (shmedia_md_end): Make non-static.
4613 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4615 * config/tc-sh.c (sh_finalize): Remove.
4616 * config/tc-sh.h (md_end): Do not define.
4617 Remove prototype for sh_finalize.
4618 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4619 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4620 sh64_section_data container when storing section type in tdata
4621 field in elf_section_data.
4622 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4624 * Makefile.am: Update dependencies.
4625 * Makefile.in: Regenerate.
4626 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4627 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4628 dwarf2_emit_insn call with test on debug_type.
4629 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4630 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4631 CRT_SH5_ISA32 sticky for 64-bit.
4632 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4633 Generate .crange sections when switching ISA mode or emitting
4634 constants in same section as code.
4635 * config/tc-sh64.c: Reformat structure definitions.
4636 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4638 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4639 to emit a .cranges descriptor when contents type changes. Only
4640 emit error if changing contents type and -no-mix is in effect.
4641 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4642 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4643 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4644 sh64_flush_last_crange over sections.
4645 When checking main symbol of datalabel symbol, check for
4646 STO_SH5_ISA32, not ISA type of section in definition.
4647 (shmedia_frob_file_before_adjust): Check main symbol for
4648 STO_SH5_ISA32; don't check ISA type of section in definition.
4649 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4650 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4651 .cranges entries have been output.
4652 (shmedia_elf_new_section): Just call md_flush_pending_output.
4653 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4654 fix. Do not set tc_segment_info_data.in_code for section. Call
4655 sh64_set_contents_type for SHmedia code.
4656 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4657 false. Call md_flush_pending_output.
4658 (sh64_target_format): Check that -no-mix and
4659 -shcompact-const-crange are used in sane combination with other
4661 (shmedia_md_pcrel_from_section): Check type of fix for how to
4663 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4664 not ISA type of section in definition.
4665 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4666 hold contents-type state.
4667 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4668 (sh64_flush_pending_output): Declare.
4669 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4670 (sh64_tc_cons_fix_new): Declare.
4671 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4672 call sh64_flag_output.
4673 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4674 call sh64_set_contents_type to mark SHcompact code and set
4676 (md_longopts): New options "-no-mix" and
4677 "-shcompact-const-crange".
4678 (md_parse_option): Handle new options.
4679 (md_show_usage): Add blurb for new options.
4680 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4681 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4682 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4683 (sh64_last_insn_frag): New.
4684 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4685 to get frag for insn opcode for generating fixups; do not assume it
4687 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4689 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4691 (TC_FRAG_TYPE): Define as fragS *.
4692 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4693 (sh64_last_insn_frag): Declare.
4694 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4695 not == NULL before dereferencing.
4696 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4697 Get rid of BFD section flag and EF_SH64_ABI64.
4698 * config/tc-sh64.c (shmedia_frob_section_type): Use
4699 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4700 communicate the section as containing SHmedia code. Describe why.
4701 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4702 EF_SH64 regardless of ABI.
4703 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4704 in error message. Handle resolved expressions for
4705 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4706 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4707 (shmedia_check_limits): Handle BFD_RELOC_64.
4708 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4709 a STO_SH5_ISA32 symbol, only the BFD value.
4710 2000-12-11 Ben Elliston <bje@redhat.com>
4711 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4712 dwarf2_generate_asm_lineno.
4713 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4714 Handle PC-relative MOVI expansions with assembler relaxation.
4715 Generate PC-relative relocs from 16-bit PC-relative expressions.
4716 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4717 (shmedia_md_pcrel_from_section): ...here.
4718 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4719 turned completely resolved. Adjust relocation type for 16-bit
4720 immediate operands that has turned PC-relative. Adjust back for
4721 MD_PCREL_FROM_SECTION being applied twice.
4722 (shmedia_md_convert_frag): Always emit reloc for expression with
4723 global or weak symbol. Handle relaxation result for PC-relative
4725 (shmedia_md_estimate_size_before_relax): An expression with a weak
4726 or global symbol can not be relaxed. Break out tests for
4727 relaxable symbol into variable sym_relaxable.
4728 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4729 UNDEF_MOVI)>: Break out any PC-relative expression and change
4731 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4733 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4734 MOVI expansion. If X_op_symbol of the immediate expression is
4735 set, make an expression symbol for the argument to frag_var.
4736 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4738 (END): Adjust for new relaxations.
4739 (md_relax_table): Add entries for new relaxations.
4740 2000-12-07 Ben Elliston <bje@redhat.com>
4741 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4742 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4743 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4744 SHORI operand offsets in PT/PTA/PTB expansions.
4745 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4746 Implement DataLabel semantics.
4747 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4748 shmedia_frob_file_before_adjust.
4749 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4750 (DATALABEL_SUFFIX): Define.
4751 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4752 symbol list to update "datalabel" symbols to their main symbol
4754 (shmedia_frob_file_before_adjust): New.
4755 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4756 undefined and set STT_DATALABEL.
4757 (sh64_frob_label): Initialize TC symbol field.
4758 (sh64_consume_datalabel): Actually implement semantics. New
4759 parameter operandf, call it instead of expression.
4760 (sh64_exclude_symbol): New.
4761 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4762 to sh64_consume_datalabel.
4763 (tc_symbol_new_hook): Define to tc_frob_symbol.
4764 (TC_SYMFIELD_TYPE): Define to symbolS *.
4765 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4766 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4767 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4769 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4770 generating dwarf2 debug information.
4771 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4772 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4773 elf64-sh64 for the 64-bit ABI.
4774 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4776 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4777 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4779 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4780 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4781 (enum sh64_abi_values): New type.
4782 (enum sh64_isa_values): New type.
4783 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4784 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4785 (sh64_abi): Replace shmedia_64.
4786 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4787 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4788 (s_sh64_mode): Check validity for this target.
4789 (sh64_target_format): Initialize defaults for ISA and ABI.
4790 Fallback to old object format if no SH64 ISA or ABI has been
4792 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4793 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4794 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4795 * config/tc-sh64.h: Fix typo in comment.
4796 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4797 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4798 <PT fixups for absolute values>: Size will be longest, not
4800 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4801 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4802 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4803 and l1 to hold lowercase of two first characters. Change all
4804 remaining TO_LOWER to tolower.
4805 * config/tc-sh64.c (TO_LOWER): Delete.
4806 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4807 (md_parse_name): Define.
4808 (sh64_consume_datalabel): Declare.
4809 (DOLLAR_DOT): Define.
4810 * config/tc-sh64.c (shmedia_parse_exp): New.
4811 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4812 (shmedia_parse_reg): Remove const from src
4814 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4815 (shmedia_md_assemble): Ditto for op_end variable.
4816 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4817 Use shmedia_parse_exp, not parse_exp.
4818 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4819 parameter. All callers changed.
4820 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4822 (shmedia_parse_reg): Put first two character in local variables.
4823 Use tolower, not TO_LOWER. If no register is found and argtype
4824 indicates a control register, scan shmedia_creg_table
4826 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4827 * Makefile.am (CPU_TYPES): Add sh64.
4828 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4829 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4830 Regenerate dependencies.
4831 * Makefile.in: Regenerate.
4832 * configure.in: Add support for sh64-*-elf*.
4833 * configure: Regenerate.
4834 * config/tc-sh64.h: New.
4835 * config/tc-sh64.c: New.
4836 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4837 .mode, .isa and .uaquad.
4838 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4839 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4840 [HAVE_SH64] (END): Define as 10.
4841 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4842 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4844 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4845 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4846 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4847 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4849 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4850 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4851 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4852 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4853 SHmedia instructions. Handle state-change after switching to
4855 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4856 (md_parse_option) [HAVE_SH64]: Parse new options.
4857 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4858 (md_convert_frag) [HAVE_SH64] <default>: Call
4859 shmedia_md_convert_frag instead of abort.
4860 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4861 BFD_RELOC_SH_SHMEDIA_CODE.
4862 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4863 SHcompact or SHmedia code.
4864 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4865 shmedia_md_apply_fix instead of abort.
4866 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4867 result from calling shmedia_md_estimate_size_before_relax instead
4869 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4871 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4872 shmedia_init_reloc and do nothing more if it returns non-zero.
4873 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4874 * po/POTFILES.in: Regenerate.
4875 * po/gas.pot: Regenerate.
4877 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4879 * config/tc-sh.c (parse_at): Install the correct version of
4882 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4883 assume fixP->fx_subsy is non-NULL.
4885 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4887 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4888 A_DISP_PC_ABS, and adjust it by -4.
4889 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4891 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4892 the operand type is not A_DISP_PC_ABS.
4894 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4896 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4897 common and weak symbols. Handle common and weak symbols as
4898 undefined symbols with regards to GREG handling and merging.
4899 (mmix_frob_file): Ditto.
4901 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4903 * configure.in (hppa-*-netbsd*): New target.
4904 * configure: Regenerate.
4905 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4907 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4909 * config/tc-v850.c: Add missing prototypes amd use old-style
4910 function definitions.
4911 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4912 (sdata_section tdata_section, zdata_section, sbss_section,
4913 tbss_section, zbss_section, rosdata_section, rozdata_section,
4914 scommon_section, tcommon_section, zcommon_section,
4915 call_table_data_section, call_table_text_section): Delete.
4916 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4917 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4918 v850_call_table_data, v850_call_table_text): Delete.
4919 (struct v850_seg_entry): New.
4920 (v850_seg_table): New.
4921 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4922 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4923 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4924 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4927 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4928 recording of alignment.
4929 (md_pseudo_table): Use v850_seg.
4930 (md_begin): Don't init .call_table_data and .call_table_text here.
4931 Set v850_seg_table bss entry.
4933 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4935 Support on-demand global register allocation by passing on
4936 base-plus-offset relocs to the linker.
4937 * config/tc-mmix.c: Tweak and fix typos in comments.
4938 (allocate_undefined_gregs_in_linker): New variable.
4939 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4940 (md_longopts): Add --linker-allocated-gregs.
4941 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4942 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4943 (md_show_usage): Update text for -x. Add text for
4944 --linker-allocated-gregs.
4945 (tc_gen_reloc): Derive default value for addend from val and
4946 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4947 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4948 GREG if allocate_undefined_gregs_in_linker.
4949 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4950 --linker-allocated-gregs.
4951 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4952 --linker-allocated-gregs. Mention that it's implied by -x.
4953 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4954 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4956 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4958 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4960 * Makefile.am: Run "make dep-am"
4961 * Makefile.in: Regenerate.
4963 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4965 * config/tc-or32.c: New file.
4966 * config/tc-or32.h: New file.
4967 * configure.in: Add support for or32 targets.
4968 * configure: Regenerate.
4969 * config/obj-coff.c: Add support for or32 targets.
4970 * config/obj-coff.h: Add support for or32 targets.
4971 * Makefile.am: Add support for or32 targets.
4972 * Makefile.in: Regenerate.
4973 * NEWS: Mention support for OpenRISC.
4974 * doc/Makefile.in: Regenerate.
4975 * po/POTFILES.in: Regenerate.
4976 * po/gas.pot: Regenerate.
4978 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4980 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4983 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4985 * config/tc-mips.c (tc_gen_reloc): Arrange for
4986 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4987 their LO16 parts, even for ELF.
4989 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4991 * config/tc-i386.c: Protect definitions of true and false
4994 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4996 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4997 made because of .weak, if they are neither defined nor used in any
5000 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5002 * configure: Regenerated.
5004 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5006 * doc/Makefile.am (install): Depend on install-info.
5007 * doc/Makefile.in: Regenerate.
5009 2002-01-26 Nick Clifton <nick@redhat.com>
5011 * po/fr.po: Updated version
5013 2002-01-24 Kazu Hirata <kazu@hxi.com>
5015 * config/tc-h8300.c (check_operand): Don't print a warning
5016 when a valid 24-bit address is given to a 16-bit address
5019 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5021 * config/tc-sh.c (sh_elf_suffix): Removed.
5022 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5023 sh_end_of_match, sh_parse_name): New functions.
5024 (sh_elf_cons): Simplify.
5025 (parse_exp): Reject misplaced PIC operands.
5026 (md_undefined_symbol): Simplify.
5027 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5028 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5029 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5030 Complain if subsy remains at the end.
5031 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5032 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5034 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5036 * config/tc-mn10300.c (xr_registers): Move `pc'...
5037 (other_registers): ... here.
5039 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5041 * Makefile.am: Run "make dep-am".
5042 * Makefile.in: Regenerate.
5043 * gas/po/POTFILES.in: Regenerate.
5045 2002-01-21 DJ Delorie <dj@redhat.com>
5047 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5048 stabstr_name allocation permanent, as it will be referenced from
5051 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5053 * configure.in (ia64-*-netbsd*): New target.
5054 * configure: Regenerate.
5056 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5058 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5060 <Detailed description, ARM options>: Ditto.
5061 * doc/c-arm.texi (ARM Options): Ditto.
5063 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5065 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5066 do_mia, do_mar and do_mra respectively.
5067 (do_mav_*): Renamed from do_c_*.
5068 (mav_reg_required_here, mav_parse_offset): Renamed from
5069 cirrus_reg_required_here and cirrus_parse_offset respectively.
5070 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5072 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5073 Keith Walker <keith.walker@arm.com>
5075 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5076 (insns): Add pattern for bxj instruction.
5077 (do_bxj): New function.
5078 (arm_cpus): Add arm926ej.
5079 (arm_archs): Add armv5tej.
5081 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5083 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5085 2002-01-19 Keith Walker <keith.walker@arm.com>
5087 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5089 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5091 * NEWS: Mention new ARM command-line options and VFP support.
5093 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5095 (ARM_CEXT_MAVERICK): Similarly.
5096 (ARM_ANY): Now means any core instruction.
5097 (CPU_DEFAULT): Default to ARM_ANY.
5098 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5099 (pic_code): Declare for all object types. Make type int.
5100 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5101 (march_fpu_opt, mfpu_opt): Declare.
5102 (md_longopts): Tidy up conditional definitions.
5103 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5104 (arm_long_opts): New tables.
5105 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5106 (arm_parse_extension): New function.
5107 (md_parse_option): Rewrite using new table-driven system.
5108 (md_show_usage): Use new table-driven system.
5109 (md_begin): Calculate cpu_variant from command line option data.
5110 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5111 command-line options.
5112 * doc/c-arm.texi: Likewise.
5114 2002-01-18 Andreas Jaeger <aj@suse.de>
5116 * as.c (parse_args): Update year.
5118 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5120 * config/tc-tic54x.c (encode_address): Add a more informative
5121 warning about incorrect syntax.
5123 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5125 * po/gas.pot: Regenerate.
5127 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5129 * macro.c (get_any_string): Add no-c-format comment to prevent
5130 confusion when translating string.
5131 * gasp.c (get_any_string): Add no-c-format comment to prevent
5132 confusion when translating string.
5134 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5135 Johannes Stezenbach <js@convergence.de>
5136 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5137 matched before the shorter ones.
5138 (my_getSmallParser): Fix handling of nested parentheses in
5139 percent_op's. Code cleanup.
5140 (my_getPercentOp): New function, code from my_getSmallParser.
5141 (my_getSmallExpression): Fix handling of closing parentheses.
5142 Code cleanup. Better comments.
5144 2002-01-16 Nick Clifton <nickc@redhat.com>
5146 po/tr.po: New file: Turkish translation.
5147 configure.in (LINGUAS): Add "tr".
5148 configure: Regenerate.
5150 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5152 Support for VFP instructions
5153 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5154 (cp_address_required_here): New argument wb_ok. When false, do not
5155 accept write-back forms of addressing. Change all callers.
5156 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5157 (FPU_VFP_EXT_V2): Define.
5158 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5159 Define in terms of above.
5160 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5161 (vfp_reg): New struct.
5162 (vfp_regs): New array of registers.
5163 (insns): Add VFP instructions.
5164 (sn_table): New array of VFP single-precision register names.
5165 (dn_table): New array of VFP double-precision register names.
5166 (all_reg_maps): Add the new register tables.
5167 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5168 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5169 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5170 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5171 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5172 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5173 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5174 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5175 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5176 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5177 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5178 (do_vfp_sp_dp_cvt): New functions.
5179 (md_begin): Set soft-float flag for appropriate VFP work.
5180 (md_atof): Handle VFP-format doubles.
5181 (md_parse_option): Handle VFP command-line options.
5182 (md_show_usage): Display VFP command-line options.
5184 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5186 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5187 various command line options.
5189 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5191 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5193 (xstormy16_md_apply_fix3): Do not return a value.
5195 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5197 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5198 the -EL/-EB option that matches the target's endianness.
5199 (md_parse_option): Likewise.
5201 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5203 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5204 is not dependent on ARM_BI_ENDIAN.
5206 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5208 * tc-arm.c (all error messages): Normalize capitalization of messages.
5210 * tc-arm.h (md_operand): Delete define.
5211 * tc-arm.c (in_my_get_expression): New static variable.
5212 (my_get_expression): Set and clear it.
5213 (md_operand): New function. If called from my_get_expression
5214 put the error in inst.error.
5215 (output_inst): Now takes argument of instruction being assembled.
5216 Print it out with any error message.
5217 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5219 (end_of_line): Don't update inst.error if it is already set.
5221 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5223 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5224 op that can be translated into a mvn instruction.
5226 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5228 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5229 setting default md.flags.
5230 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5231 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5232 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5233 for 32 bit unwind info blocks.
5234 (generate_unwind_image): Add support for different types
5235 of unwind images (32 bits and/or big-endian).
5236 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5237 (ia64_target_format): Add support for hpux target formats.
5238 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5239 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5240 SHT_FINI_ARRAY elf section types.
5242 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5244 * tc-arm.c (struct reg_entry): Move before prototypes.
5245 (int_register, cp_register, fp_register): Delete.
5246 (reg_table): Delete. Replaced with ...
5247 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5248 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5249 (mav_dspsc_table): ... one table per register set.
5250 (arm_reg_hsh): Delete.
5251 (struct reg_map): New structure.
5252 (all_reg_maps): New array.
5253 (enum arm_reg_type): New enums.
5254 (build_reg_hsh): New function.
5255 (insert_reg_alias): Use hash table passed by caller. Adjust all
5257 (create_register_alias): New function, split out from ...
5258 (md_assemble): ... here.
5259 (md_begin): Build new register hash tables.
5260 (arm_reg_parse): New argument for the hash table to search. Adjust all
5262 (arm_reg_parse_any): New function.
5263 (co_proc_number): Look up the processor number in the processor hash
5265 (cirrus_regtype): Delete.
5266 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5267 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5268 (ARM_EXT_MAVERICKsc_register): Delete.
5269 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5270 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5272 (do_c_triple_4, do_c_triple_5): Delete.
5273 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5274 (do_c_quad_6): Delete.
5275 (do_c_quad_6[ab]): New functions.
5276 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5277 arguments to use new register parsing methods.
5278 (cirrus_reg_required_here): Likewise.
5279 (insns): Reclassify cirrus maverick worker functions.
5280 (cirrus_valid_reg): Delete.
5282 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5284 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5285 (sh*-*-netbsdelf*): New target.
5286 * configure: Regenerate.
5287 * tc-sh.h: Update copyright years.
5288 (TARGET_FORMAT): Add version for TE_NetBSD.
5290 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5292 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5295 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5297 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5298 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5300 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5302 * tc-mips.c (mips_cprestore_valid): New flag.
5303 (mips_frame_reg_valid): New flag.
5304 (macro) [M_JAL_2]: Check both flags.
5305 [M_JAL_A]: Likewise.
5306 (s_cprestore): Set mips_cprestore_valid.
5307 (tc_get_register): If setting mips_frame_reg, set
5308 mips_frame_reg_valid and clear mips_cprestore_valid.
5309 (s_mips_ent): Clear both flags.
5310 (s_mips_end): Clear both flags.
5312 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5314 * write.c (write_object_file): Make use of bfd_section_list_remove.
5315 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5316 * config/tc-mmix.c (mmix_frob_file): Likewise.
5318 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5320 * configure.in (i386-*-netbsdelf*): Collapse target into...
5321 (i386-*-netbsd*): ...this. Add support for x86-64.
5322 * configure: Regenerated.
5324 2002-01-03 matthew green <mrg@redhat.com>
5326 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5328 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5330 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5333 For older changes see ChangeLog-0001
5339 version-control: never