1 2003-05-02 Alan Modra <amodra@bigpond.net.au>
3 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
4 -be and split strings to below 509 bytes in length.
6 2003-05-01 Christian Groessler <chris@groessler.org>
8 * expr.h: Fix comments in operatorT typedef.
9 * config/tc-z8k.c: Add 2003 to copyright message.
10 Fold s_segm() and s_unseg() into one function s_segm(parm) which
11 decides by the parameter.
12 (md_begin): Don't set linkrelax. Only set Z8002 default if no
13 command line argument was given to select the intended
15 (get_interrupt_operand): Warn if NOP type code is emitted.
16 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
17 (apply_fix): Call newfix with additional 'size' parameter.
18 (build_bytes): Remove unused variable 'nib'. Detect overflow in
19 4 bit immediate arguments.
20 (md_longopts): Add 'linkrelax' option.
21 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
22 variable when 'linkrelax' command line option is specified.
23 (md_show_usage): Display 'linkrelax' option.
24 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
26 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
28 2003-04-30 H.J. Lu <hjl@gnu.org>
30 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
31 (ia64_float_to_chars): Likewise.
32 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
33 and ia64_float_to_chars by tc_segment_info_data.endian from
34 the current segment if byteorder == -1.
35 (md_begin): Call dot_byteorder to set target_big_endian.
36 (md_atof): Call ia64_float_to_chars to convert floating point.
37 (ia64_float_to_chars_bigendian): New function.
38 (ia64_float_to_chars_littleendian): Likewise.
39 (ia64_elf_section_change_hook): Likewise.
41 * config/tc-ia64.h (ia64_number_to_chars): New.
42 (md_number_to_chars): Changed to (*ia64_number_to_chars)
43 (ia64_elf_section_change_hook): New.
44 (md_elf_section_change_hook): Defined.
45 (ia64_segment_info_type): New struct.
46 (TC_SEGMENT_INFO_TYPE): Defined.
48 2003-04-30 H.J. Lu <hjl@gnu.org>
50 * config/tc-ia64.c (md_section_align): Deleted.
52 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
53 (md_section_align): New.
55 2003-04-30 H.J. Lu <hjl@gnu.org>
57 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
59 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
61 (md_atof): Add 6 byte padding of zero for real16.
63 2003-04-29 Nick Clifton <nickc@redhat.com>
65 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
66 start of a version name.
68 2003-04-28 Chris Demetriou <cgd@broadcom.com>
70 * configure.in (mips-*-*n*bsd*): Replace with...
71 (mips-*-netbsd*, mips-*-openbsd*): These.
72 * configure: Regenerate.
74 2003-04-28 H.J. Lu <hjl@gnu.org>
76 * config/tc-hppa.c (hppa_symbol_chars): New.
77 * config/tc-hppa.h (tc_symbol_chars): Likewise.
79 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
81 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
83 2003-04-25 Chris Demetriou <cgd@broadcom.com>
85 * NEWS: Belatedly mention support for MIPS32 Release 2.
87 2003-04-24 Eric Christopher <echristo@redhat.com>
89 * config/tc-mips.c (nopic_need_relax): Revert previous
92 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
94 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
95 * config/tc-h8300.c (dwarf2dbg.h): Include
96 (md_pseudo_table): Handle .loc and .file
97 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
98 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
99 * Makefile.in: Regenerate.
101 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
103 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
104 (md_pseudo_table): Add h8300hn, h8300sn.
105 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
106 * doc/c-h8300.texi : Add documentation for new machine directives.
108 2003-04-24 Nick Clifton <nickc@redhat.com>
110 * config/tc-ppc.c (ppc_symbol_chars): Define.
111 * config/tc-ppc.h (tc_symbol_chars): Define.
113 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
115 * config/tc-sh.c: Amend comment to refer to SuperH.
116 * config/tc-sh.h: Likewise.
117 (LISTING_HEADER): Amend to refer to SuperH.
118 * config/tc-sh64.c: Change comment to refer to SuperH.
119 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
120 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
121 * doc/c-sh.texi: Amend to refer to SuperH.
122 Add SuperH architecture documentation references.
123 * doc/c-sh64.texi: Change to refer to SuperH.
125 2003-04-23 H.J. Lu <hjl@gnu.org>
127 * app.c (do_scrub_chars): More checks for valid labels.
129 2003-04-22 H.J. Lu <hjl@gnu.org>
131 * app.c (do_scrub_chars): Check for valid label.
133 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
135 * doc/as.texinfo: Replace references to Mitsubishi M32R with
136 references to Renesas M32R.
137 * doc/c-m32r.texi: Likewise.
139 2003-04-21 Richard Henderson <rth@redhat.com>
141 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
142 (out_file_list): Assign non-null filename after generating error.
144 2003-04-18 Jakub Jelinek <jakub@redhat.com>
146 * ehopt.c (check_eh_frame): For aug_size == 0
147 in state_seeing_aug_size state skip the state_skipping_aug
150 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
152 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
154 * doc/c-h8500.texi: Likewise.
155 * doc/c-sh.texi: Likewise.
156 * doc/c-sh64.texi: Likewise.
157 * doc/h8.texi: Likewise.
158 * config/tc-h8300.c: Likewise.
159 * config/tc-h8300.h: Likewise.
160 * config/tc-h8500.c: Likewise.
161 * config/tc-h8500.h: Likewise.
162 * config/tc-sh.c: Likewise.
163 * config/tc-sh.h: Likewise.
164 * config/tc-sh64.c: Likewise.
165 * config/tc-sh64.h: Likewise.
167 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
169 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
170 * config/tc-mips.c: Use signed add for n32 address arithmetic.
171 (append_insn): When filling delay slots with instructions
172 that have fixups that tc_gen_reloc might consider modifyable
173 in variant frags, start a new frag.
174 (load_address): Generate GOT_DISP with of without offset
175 depending on whether symbol is local. For -xgot, use
176 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
177 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
178 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
179 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
180 <ld_st>: In NewABI with small got, always use
181 GOT_PAGE/GOT_OFST, with the latter in the load/store
182 instruction. With big got, use GOT_HI16/GOT_LO16 or
184 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
185 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
186 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
187 (md_convert_frag): Use memmove for safe copying of overlapping
190 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
192 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
193 -mlong, -mshort-double and -mlong-double options; use table @code.
194 (M68HC11-Syntax): Update to document 68HC12 operands.
195 (M68HC11-Modifiers): New section for operand modifiers.
196 (M68HC11-Directives): New section for specific assembler directives.
197 (M68HC11-Branch): Fix Overfull hbox error.
199 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
201 * config/tc-mips.c (macro): Add comments explaining the rationale
204 2003-04-09 Chris Demetriou <cgd@broadcom.com>
206 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
207 constant address that Alexandre took out by accident. Reject
208 64-bit addresses that are not sign extensions of 32 bits only if
209 we don't support 64-bit address constants.
211 2003-04-09 Alan Modra <amodra@bigpond.net.au>
213 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
215 2003-04-08 Nick Clifton <nickc@redhat.com>
217 * as.c (perform_an_assembly_pass): If using cgen, call
219 * cgen.c (gas_cgen_begin): New function. If
220 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
221 otherwise call cgen_clear_signed_overflow_ok.
222 * cgen.h: Prototype gas_cgen_begin.
224 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
226 * write.c (write_relocs): Remove unused variable.
228 2003-04-06 Chris Demetriou <cgd@broadcom.com>
230 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
231 (macro): Use new macro to decide whether to emit constant address
232 as 32 or 64 bits if addresses are 32-bit wide but registers are
235 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
237 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
238 (M6811_OP_PAGE_ADDR): New internal define.
239 (get_operand): New modifier %page and %addr to obtain page and
240 address part of a far-function.
241 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
242 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
244 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
245 (find_opcode): Add comment.
246 (md_estimate_size_before_relax): Force relocation of
247 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
248 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
249 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
250 on the symbol itself so that DWARF2 strings are merged correctly.
252 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
254 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
255 default tic4x target format to 'coff2-tic4x'.
256 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
258 * config/tc-tic4x.h: Ditto
260 2003-04-03 Nick Clifton <nickc@redhat.com>
262 * NEWS: Mention support for Xtensa architecture.
264 2003-04-02 Philip Blundell <philb@gnu.org>
266 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
268 2003-04-02 Chris Demetriou <cgd@broadcom.com>
270 * config/tc-mips.c (macro2): Adjust implementation of
271 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
272 in the case where the source and destination registers
275 2003-04-01 Bob Wilson <bob.wilson@acm.org>
277 * Makefile.am (CPU_TYPES): Add xtensa.
278 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
279 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
280 (xtensa-relax.o): New target.
282 * Makefile.in: Regenerate.
283 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
284 extra_objects for xtensa targets.
285 * configure: Regenerate.
286 * write.c (write_object_file): Add new md_post_relax_hook.
287 * config/tc-xtensa.c: New file.
288 * config/tc-xtensa.h: Likewise.
289 * config/xtensa-istack.h: Likewise.
290 * config/xtensa-relax.c: Likewise.
291 * config/xtensa-relax.h: Likewise.
292 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
293 * doc/Makefile.in: Regenerate.
294 * doc/all.texi: Set new XTENSA variable.
295 * doc/as.texinfo: Set new Xtensa variable. Describe
296 Xtensa-specific options. Define line comment character for
297 Xtensa. Add Xtensa processors to list of ELF targets where
298 alignment is specified in bytes. Add new Xtensa-Dependent node.
299 Add acknowledgements for those contributing to the Xtensa port.
300 * doc/internals.texi: Describe new md_post_relax_hook.
301 * doc/c-xtensa.texi: New file.
304 2003-04-01 Nick Clifton <nickc@redhat.com>
305 Richard Earnshaw <rearnsha@arm.com>
307 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
308 (ARM_ARCH_IWMMXT): Simplify.
309 (insns): Place iwmmx instructions in correct place in table.
310 (arm_add_note): New function: Add a note entry to a .note section.
311 (md_begin): Make the default architecture be unknown.
312 Suppress the creation of an arm note section.
314 2003-03-26 Eric Christopher <echristo@redhat.com>
316 * config/tc-mips.c (nopic_need_relax): Check for
319 2003-03-25 Stan Cox <scox@redhat.com>
320 Nick Clifton <nickc@redhat.com>
322 Contribute support for Intel's iWMMXt chip - an ARM variant:
324 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
325 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
326 (enum wreg_type, enum iwmmxt_insn_type): New types.
327 (wr_register, wc_register, wcg_register): New macros.
328 (iwmmxt_table): New variable.
329 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
330 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
331 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
332 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
333 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
334 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
335 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
336 cp_byte_address_offset, cp_byte_address_required_here,
337 check_iwmmxt_insn): New functions.
338 (asm_opcode_insns): Add iWMMXt instructions.
339 (md_begin): Set the mach value for iWMMXt targets. Create a note
340 section to identify iwmmxt binaries.
341 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
342 * doc/c-arm.texi: Document the support for the iWMMXt.
343 * NEWS: Mention new support.
345 2003-03-24 Daniel Néri <dne@mayonnaise.net>
347 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
348 * doc/all.texi: Likewise.
349 * doc/c-tic54x.texi: Likewise.
351 2003-03-21 Andreas Schwab <schwab@suse.de>
353 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
354 avoid aliasing issue.
356 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
358 * config/tc-s390.c (s390_arch_size): Initialize to zero.
359 (current_arch_mask): Rename to current_mode_mask.
360 (current_arch_requested): Remove variable.
361 (current_cpu): New variable.
362 (init_default_arch): Set defaults values for s390_arch_size,
363 current_mode_mask and current_cpu.
364 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
365 (md_begin): Replace current_arch_mask by current_cpu.
366 (md_assemble): Adapt check and error message to current_mode_mask and
369 2003-03-09 James E Wilson <wilson@tuliptree.org>
371 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
372 * read.c (get_line_sb): Return end of line character or '\n' if
373 it is zero or non-existent.
375 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
377 * config/tc-mips.c (mips_validate_fix): New function.
378 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
379 (mips_validate_fix): Declare.
381 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
383 * Reverted 2003-03-02's patch.
385 2003-03-11 Steve Ellcey <sje@cup.hp.com>
387 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
388 (TC_DWARF2_EMIT_OFFSET): Provide default.
389 (out_debug_aranges, out_debug_info): Use it.
390 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
391 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
392 (ia64_gen_real_reloc_type): ... here.
393 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
395 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
397 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
398 (s_mips_ent): Likewise.
400 2003-03-04 Dmitry Diky <diwil@mail.ru>
402 * config/tc-msp430.c (mcu_types): Add recently announced x1122
403 and x1123 devices, add missed x437.
404 (md_show_usage): Sort device list.
406 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
408 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
409 (md_begin): Use preset_target_arch.
410 (md_longopts): Make isa option unconditional.
411 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
412 set preset_target_arch.
413 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
414 by -S_GET_VALUE (fixP->fx_subsy).
415 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
417 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
418 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
420 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
422 * config/tc-mips.c (append_insn): Add handling of
423 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
424 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
425 misaligned address and reange overflow.
426 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
427 earlier warnings about misaligned address and reange overflow.
428 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
429 (md_apply_fix): Likewise. Fix warning output.
430 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
431 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
432 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
434 2003-02-21 Nick Clifton <nickc@redhat.com>
436 * NEWS: Mention availability of test generator program.
438 2003-02-21 Miles Bader <miles@gnu.org>
440 * config/tc-v850.c (system_registers): Add v850e debug registers.
441 (system_register_name): Accept up to 27 (the last v850e sys register).
443 2003-02-21 Bob Wilson <bob.wilson@acm.org>
445 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
446 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
447 Capitalize section headings consistently. Format index entries more
448 consistently. Unconditionalize text about whether text and data
449 sections are alterable. Use @ifnottex for alternatives to @tex output
450 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
451 .size and .type directives. Be more polite about bad bug reports.
452 Move FDL into a separate file.
453 * doc/fdl.texi: New file.
455 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
457 * config/tc-mips.c (prev_reloc_op_frag): New variable.
458 (macro): Check it to decide whether a new frag is needed.
459 (my_getSmallExpression): Set it.
461 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
463 * cgen.c: Fix typo: intial -> initial.
465 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
467 * app.c (do_scrub_chars): Handle '||' in two states.
469 2003-02-13 Alan Modra <amodra@bigpond.net.au>
471 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
472 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
474 2003-02-11 Uwe Stieber <uwe@wwws.de>
476 * configure.in: Add support for kaOS as cross build target system.
477 * configure: Regenerated.
479 2003-02-10 Nick Clifton <nickc@redhat.com>
481 * config/tc-arm.c (md_begin): If the Maverick co-processor is
482 selected, set the EF_ARM_MAVERICK_FLOAT flag and
483 bfd_mach_arm_ep9312 machine number.
485 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
487 * config/tc-mips.c (reloc_needs_lo_p): New function.
488 (fixup_has_matching_lo_p): New function.
489 (append_insn): Use reloc_needs_lo_p to check whether a relocation
490 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
491 if that fixup already has a matching %lo(). Don't call frag_wane here.
492 (macro): Call frag_wane here if the last unmatched hi was in the
494 (pic_need_relax): New function, split out from...
495 (md_estimate_size_before_relax): ...here.
496 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
497 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
499 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
501 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
503 2003-02-06 Alan Modra <amodra@bigpond.net.au>
505 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
508 2003-02-05 Alan Modra <amodra@bigpond.net.au>
510 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
511 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
512 accept x@got+off etc.
513 (md_assemble): Handle TLS relocs.
514 (ppc_force_relocation): Force for all TLS relocs.
515 (ppc_fix_adjustable): Likewise.
516 (md_apply_fix3): Handle TLS relocs.
518 2003-02-04 Alan Modra <amodra@bigpond.net.au>
520 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
521 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
523 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
525 * config/tc-mips.c (enum small_ex_type): Remove.
526 (imm_unmatched_hi): Remove.
527 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
528 argument from calls to append_insn.
529 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
531 (macro_build): Update append_insn calls.
532 (mips16_macro_build, macro_build_lui): Likewise.
533 (mips_ip): Rework handling of small expressions. Move explicit
534 relocation handling into my_getSmallExpression. Assume that the
535 value of 'o' operands is zero if there is only one bracketed
537 (percent_op): Make constant. Record the BFD relocation code
538 associated with each operator.
539 (my_getSmallParser, my_getPercentOp): Remove.
540 (parse_relocation): New function.
541 (my_getSamllExpression): Rework. Fill in relocations here
542 rather than in mips_ip.
544 2003-01-29 Nick Clifton <nickc@redhat.com>
546 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
547 assembler's handling of # <linenum> "<filename>" directives work.
549 2003-01-28 Jakub Jelinek <jakub@redhat.com>
551 * dwarf2dbg.c: Include filenames.h.
552 (struct file_entry): Make filename const char *.
553 (dirs, dirs_in_use, dirs_allocated): New variables.
554 (get_filenum): Add NUM argument. Build directory table.
555 (dwarf2_where): Adjust caller.
556 (dwarf2_directive_file): Use get_filenum to allocate
557 slot in file and directory tables.
558 (dwarf2_directive_loc): Recreate full filename from
559 directory and filename part if needed for listing.
560 (out_file_list): Output directory table.
561 Output main source file dirname before its filename.
563 2003-01-28 Dmitry Diky <diwil@mail.ru>
565 * config/tc-msp430.c: Replace occurences of 'tolower' with
568 2003-01-27 David Mosberger <davidm@hpl.hp.com>
570 * config/tc-ia64.c (dot_vframesp): Correct error message.
571 (dot_vframepsp): Ditto.
573 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
575 * configure.in (em): Set to irix on all Irix systems.
576 * configure: Rebuilt.
577 * config/te-irix.h: New file.
578 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
579 whether to use Irix-specific 64-bit format.
581 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
583 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
585 2003-01-25 Jakub Jelinek <jakub@redhat.com>
587 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
588 (tc_gen_reloc): Handle TLS relocs.
589 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
590 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
592 * config/obj-elf.c (obj_elf_section_word): Handle tls.
593 (obj_elf_type): Handle tls_object.
595 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
597 * config/tc-s390.c (s390_tls_suffix): New function.
598 (elf_suffix_type): Add suffix enums for TLS relocations.
599 (s390_elf_suffix): Add suffix strings for TLS relocations.
600 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
602 (md_gather_operands): Map new instruction operand/elf suffix
603 combinations for TLS to bfd relocations.
604 (tc_s390_fix_adjustable): Add new TLS relocations.
605 (tc_s390_force_relocation): Likewise.
606 (md_apply_fix3): Likewise.
608 2003-01-24 Alan Modra <amodra@bigpond.net.au>
610 * as.h: Update copyright date.
611 * symbols.c: Likewise.
612 * config/tc-d10v.h: Likewise.
613 * config/tc-fr30.h: Likewise.
614 * config/tc-i960.h: Likewise.
615 * config/tc-mips.h: Likewise.
617 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
618 (MD_APPLY_SYM_VALUE): Move.
620 2003-01-23 Nick Clifton <nickc@redhat.com>
622 NEWS: Announce sh2e support.
626 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
628 * config/tc-sh.c (md_show_usage): Added sh2e next to
630 (sh_elf_final_processing): Handle arch_sh2e.
632 2003-01-23 Alan Modra <amodra@bigpond.net.au>
634 * symbols.c (S_FORCE_RELOC): Add "strict" param.
635 * symbols.h (S_FORCE_RELOC): Likewise.
636 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
637 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
638 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
639 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
640 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
641 * write.c (generic_force_reloc): New function.
642 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
643 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
644 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
645 * as.h (generic_force_reloc): Declare.
646 * doc/internals.texi (S_FORCE_RELOC): Update.
647 (TC_FORCE_RELOCATION_SUB_SAME): Update.
649 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
651 (alpha_fix_adjustable): Likewise.
652 * config/tc-arm.c (arm_force_relocation): Likewise.
653 * config/tc-cris.c (md_cris_force_relocation): Likewise.
654 * config/tc-frv.c (frv_force_relocation): Likewise.
655 * config/tc-i386.c (md_apply_fix3): Likewise.
656 * config/tc-ia64.c (ia64_force_relocation): Likewise.
657 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
658 * config/tc-m32r.c (m32r_force_relocation): Likewise.
659 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
660 * config/tc-mcore.c (mcore_force_relocation): Likewise.
661 * config/tc-mips.c (mips_force_relocation): Likewise.
662 * config/tc-mmix.c (mmix_force_relocation): Likewise.
663 * config/tc-ppc.c (ppc_force_relocation): Likewise.
664 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
665 * config/tc-sh.c (sh_force_relocation): Likewise.
666 (md_pcrel_from_section): Likewise.
667 * config/tc-sparc.c (tc_gen_reloc): Likewise.
668 * config/tc-v850.c (v850_force_relocation): Likewise.
669 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
670 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
671 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
672 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
674 * config/tc-d10v.c (d10v_force_relocation): Delete.
675 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
676 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
677 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
678 * config/tc-fr30.c (fr30_force_relocation): Delete.
679 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
680 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
681 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
682 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
683 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
684 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
685 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
686 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
687 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
688 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
689 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
690 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
691 * config/tc-i386.c (i386_force_relocation): Delete.
692 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
694 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
695 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
696 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
697 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
699 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
700 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
702 2003-01-23 Alan Modra <amodra@bigpond.net.au>
704 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
705 sh64_elf_section_data.
706 * config/tc-sh64.h: Include elf32-sh64.h.
707 * config/tc-m68hc11.c: Don't include stdio.h.
708 (md_show_usage): Fix missing continuation.
709 * Makefile.am: Run "make dep-am".
710 * Makefile.in: Regenerate.
712 2003-01-22 Nick Clifton <nickc@redhat.com>
714 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
716 2003-01-21 Fabio Alemagna <falemagn@aros.org>
718 * configure.in: Handle *-*-aros*.
719 * configure: Regenerated from configure.in.
721 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
723 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
724 gotplt and pltoff relocations.
725 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
726 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
727 gotplt and pltoff to bfd relocations.
728 (md_gather_operands): Map new instruction operand/elf suffix
729 combinations to bfd relocations.
730 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
731 to the list of unadjustable relocations.
732 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
733 and pltoff relocations.
734 (md_apply_fix3): Add the new relocations.
736 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
738 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
741 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
743 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
744 of relocs for memory bank addressing.
746 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
748 * config/tc-m68hc11.c (md_show_usage): Update usage.
749 (md_parse_option): Recognize -m68hcs12.
750 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
752 * doc/as.texinfo (Overview): Document new option -m68hcs12.
754 2003-01-16 Jakub Jelinek <jakub@redhat.com>
756 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
758 2003-01-16 Alan Modra <amodra@bigpond.net.au>
760 * Makefile.am: Run "make dep-am".
761 * Makefile.in: Regenerate.
762 * po/POTFILES.in: Regenerate.
764 2003-01-11 Alan Modra <amodra@bigpond.net.au>
766 * read.c (get_absolute_expr): New, split out from..
767 (get_absolute_expression): ..here.
768 * read.h (get_absolute_expr): Declare.
769 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
770 Trim size to arch bits_per_address, and test for negative input
771 via get_absolute_expr.
773 2003-01-07 DJ Delorie <dj@redhat.com>
775 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
777 (xstormy16_md_apply_fix3): Use adjustment.
779 2003-01-02 Ben Elliston <bje@redhat.com>
781 * configure.in: Add iq2000-elf target.
782 * configure: Regenerate.
783 * config/tc-iq2000.c: New file.
784 * config/tc-iq2000.h: Likewise.
785 * po/gas.pot: Regenerate.
787 2003-01-02 Chris Demetriou <cgd@broadcom.com>
789 * config/tc-mips.c: Update copyright years to include 2003.
790 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
791 Additionally, clean up their code slightly and clean up their
794 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
796 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
798 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
800 * doc/Makefile.in: Regenerate.
802 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
804 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
805 of .init and .fini sections for array initializers and finalizers.
807 2002-12-31 Chris Demetriou <cgd@broadcom.com>
809 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
810 the "+D" operand, which will be used only by the disassembler.
812 2002-12-30 Chris Demetriou <cgd@broadcom.com>
814 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
816 * configure: Regenerate.
817 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
818 (macro_build): Handle "K" operand.
819 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
820 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
821 (mips_ip): New variable "lastpos", and implement "+A", "+B",
822 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
823 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
824 (validate_mips_insn): Implement "+" as a way to extend the
825 allowed operands, and implement "K", "+A", "+B", and "+C"
827 (OPTION_MIPS32R2): New define.
828 (md_longopts): Add entry for OPTION_MIPS32R2.
829 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
830 (md_parse_option): Handle OPTION_MIPS32R2.
831 (s_mipsset): Reimplement handling of ".set mipsN" options
832 and add support for ".set mips32r2".
833 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
834 (md_show_usage): Document "-mips32r2" option.
835 * doc/as.texinfo: Document "-mips32r2" option.
836 * doc/c-mips.texi: Likewise.
838 2002-12-30 Dmitry Diky <diwil@mail.ru>
840 * configure.in: Add msp430 target.
841 * configure: Regenerate.
842 * Makefile.am: Add msp430 target.
843 * Makefile.in: Regenerate.
844 * config/tc-msp430.c: New file: msp430 assembler.
845 * config/tc-msp430.h: New file: target macros for msp430.
846 * doc/Makefile.am: Add msp430 target.
847 * doc/Makefile.in: Regenerate.
848 * doc/as.texinfo: Include msp430 documenation.
849 * doc/all.texi: Enable msp430 documentation.
850 * doc/c-msp430.texi: New file: document msp430 specific features
853 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
855 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
856 (dwarf2_finish): Use it.
857 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
858 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
860 2002-12-20 DJ Delorie <dj@redhat.com>
862 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
863 BFD_RELOC_XSTORMY16_12.
865 2002-12-19 Alan Modra <amodra@bigpond.net.au>
867 * doc/as.texinfo (Invoking): Typo fix.
868 * config/tc-tic54x.c (encode_operand): Comment typo fix.
870 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
872 * doc/c-alpha.texi: Fix typos.
873 * doc/c-arm.texi: Likewise.
874 * doc/c-d10v.texi: Likewise.
875 * doc/c-i370.texi: Likewise.
876 * doc/c-i960.texi: Likewise.
877 * doc/c-ia64.texi: Likewise.
878 * doc/c-mmix.texi: Likewise.
879 * doc/c-ns32k.texi: Likewise.
880 * doc/c-pdp11.texi: Likewise.
881 * doc/c-pj.texi: Likewise.
882 * doc/c-sh64.texi: Likewise.
883 * doc/c-sparc.texi: Likewise.
884 * doc/c-tic54x.texi: Likewise.
885 * doc/c-v850.texi: Likewise.
886 * doc/c-vax.texi: Likewise.
887 * doc/internals.texi: Likewise.
889 2002-12-18 Chris Demetriou <cgd@broadcom.com>
891 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
892 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
893 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
894 arrange not to issue warnings about use of AT when AT is not
897 2002-12-17 Nick Clifton <nickc@redhat.com>
899 * as.c (std_longopts): Duplicate --keep-locals entry in order to
900 prevent it being confused with -k.
902 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
904 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
905 has already been set up, use it.
907 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
909 * ChangeLog-9295: Fix a typo.
911 * config/tc-d10v.c: Fix a comment typo.
912 * config/tc-dlx.c: Likewise.
913 * config/tc-h8300.h: Likewise.
914 * config/tc-h8500.h: Likewise.
915 * config/tc-mips.c: Likewise.
916 * config/tc-s390.c: Likewise.
917 * config/tc-sh.h: Likewise.
918 * config/tc-tic80.h: Likewise.
919 * config/tc-w65.h: Likewise.
920 * config/tc-z8k.c: Likewise.
921 * config/tc-z8k.h: Likewise.
922 * testsuite/gas/h8300/cmpsi2.s: Likewise.
924 2002-12-16 Alan Modra <amodra@bigpond.net.au>
926 * config/tc-d30v.c (check_range): Warning fixes, formatting.
927 Simplify sign extension. Remove redundant unsigned < 0 test.
928 * config/tc-i960.c (md_ri_to_chars): Prototype.
929 * config/tc-mcore.c (md_pseudo_table): Fix typo.
930 (dump_literals): Init brarsym, and test later instead of isforce.
932 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
933 (parse): Constify line and lineptr.
934 (md_begin): Calculate endop here.
936 2002-12-13 Alan Modra <amodra@bigpond.net.au>
938 * config/obj-vms.c: Formatting. Include fnctl.h.
939 (Create_VMS_Object_File): Fix creat call for sane unix systems.
940 (Object_Record_Offset): Make it a size_t.
941 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
942 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
943 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
944 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
945 (vms_fixup_data_section <data_size>): Add here instead.
946 * config/e-criself.c: Fix typo in last change.
948 2002-12-13 Alan Modra <amodra@bigpond.net.au>
950 * write.c (write_object_file): Fix signed/unsigned warning.
951 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
952 * config/e-criself.c (criself_bfd_name): Prototype.
953 * config/obj-aout.c (s_sect): Remove unused function.
954 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
955 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
956 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
957 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
958 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
959 (VMS_RSYM_Parse <Current_Routine>): Likewise.
960 (vms_fixup_text_section <text_siz>): Likewise.
961 (synthesize_data_segment <data_size>): Likewise.
962 (vms_fixup_xtors_section <sect_no>): Likewise.
963 (structure_count): Don't use implicit int type.
964 * config/tc-a29k.c (insert_sreg): Prototype.
965 (define_some_regs): Prototype, make static.
966 (parse_operand): Likewise.
967 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
968 (md_show_usage <stream>): Likewise.
969 (md_section_align <segment>): Likewise.
970 (md_convert_frag <all args>): Likewise.
971 (md_estimate_size_before_relax <all args>): Likewise.
972 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
973 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
974 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
975 (md_undefined_symbol <name>): Likewise.
976 (md_convert_frag <all args>): Likewise.
977 (write_long <opcode>): Likewise.
978 (tc_gen_reloc <seg>): Likewise.
979 (md_estimate_size_before_relax <all args>): Likewise.
980 (md_apply_fix3 <seg>): Likewise.
981 (s_d30v_align <ignore>): Likewise.
982 (build_insn): Correct format string.
983 (md_apply_fix3): Likewise.
984 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
985 (md_undefined_symbol <name>): Likewise.
986 (md_convert_frag <all args>): Likewise.
987 (md_cgen_lookup_reloc <insn>): Likewise.
988 (md_begin): Delete unused vars.
989 (md_assemble): Likewise.
990 (md_estimate_size_before_relax): Likewise.
991 (fr30_relax_frag): #if 0 out, seems unused.
992 (md_atof): Remove declaration of atof_ieee.
993 (restore_colon): Prototype.
994 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
995 (frv_find_in_vliw): Likewise.
996 (frv_debug_tomcat): Likewise.
997 (frv_adjust_vliw_count): Likewise.
998 (frv_tomcat_shuffle): Likewise.
999 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1000 frv_find_in_vliw call.
1001 (md_atof): Remove declaration of atof_ieee.
1002 * config/tc-h8500.c (cons): Delete declaration.
1003 (md_begin <opcode>): Constify.
1004 (displacement_size, immediate_size, absolute_size): Remove.
1005 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1006 (tc_crawl_symbol_chain <headers>): Likewise.
1007 (md_undefined_symbol <name>): Likewise.
1008 (tc_headers_hook <headers>): Likewise.
1009 (md_parse_option <c,arg>): Likewise.
1010 (md_show_usage <stream>): Likewise.
1011 (md_convert_frag <headers, seg>): Likewise.
1012 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1013 (md_atof): Remove declaration of atof_ieee.
1014 (tc_aout_fix_to_chars): Remove unused function.
1015 (parse_reg): Prototype.
1016 (parse_exp): Prototype.
1017 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1018 (parse_reglist): Prototype.
1019 (get_operand): Prototype.
1020 (get_operands): Prototype.
1021 (get_specific): Prototype. Make "this_index" signed.
1022 (check): Prototype, make static.
1024 (build_relaxable_instruction): Prototype, make static.
1025 (build_bytes): Prototype.
1026 (wordify_scb): Prototype.
1027 * config/tc-h8500.h (start_label): Declare.
1028 (tc_coff_sizemachdep): Declare.
1029 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1030 (i370_rmode <unused>): Likewise.
1031 (i370_csect <unused>): Likewise.
1032 (i370_dc <unused>): Likewise.
1033 (i370_ds <unused>): Likewise.
1034 (i370_elf_lcomm <unused>): Likewise.
1035 (i370_ltorg <ignore>): Likewise.
1036 (i370_using <ignore>): Likewise.
1037 (i370_drop <ignore>): Likewise.
1038 (i370_byte <ignore>): Likewise.
1039 (i370_tc <ignore>): Likewise.
1040 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1041 (md_convert_frag <all args>): Likewise.
1042 (md_undefined_symbol <name>): Likewise.
1043 (md_pcrel_from_section <sec>): Likewise.
1044 (tc_gen_reloc <seg>): Likewise.
1045 (i370_section_letter): #if 0 unused functions.
1046 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1047 (symbol_locate): Prototype.
1048 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1049 (md_number_to_disp, md_number_to_field): Remove.
1050 (md_apply_fix3): Correct format string and cast "fup".
1051 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1052 (s_endian <ignore>): Likewise.
1053 (md_undefined_symbol <name>): Likewise.
1054 (tc_crawl_symbol_chain <headers>): Likewise.
1055 (tc_set_bal_of_call): Likewise.
1056 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1057 (i960_handle_align <fragp>): Likewise.
1058 (i960_validate_fix <this_segment_type>): Likewise
1059 (tc_gen_reloc <section>): Likewise.
1060 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1061 (struct memS, struct regop): Forward declare.
1062 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1063 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1064 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1065 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1066 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1067 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1068 (md_number_to_field): Likewise.
1069 (md_number_to_disp): Remove unused function.
1070 (md_atof): Remove declaration of atof_ieee.
1071 (md_apply_fix3): Correct md_number_to_imm call.
1072 * config/tc-ip2k.c (md_assemble): Warning fix.
1073 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1074 (fill_insn <ignore>): Likewise.
1075 (debug_sym <ignore>): Likewise.
1076 (md_undefined_symbol <name>): Likewise.
1077 (m32r_scomm <ignore>): Likewise.
1078 (md_convert_frag <abfd>): Likewise.
1079 (md_cgen_lookup_reloc <insn>): Likewise.
1080 (m32r_record_hi16 <seg>): Likewise.
1081 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1082 (allow_m32rx): Prototype.
1083 (first_writes_to_seconds_operands): Prototype.
1084 (writes_to_pc): Prototype.
1085 (can_make_parallel): Prototype.
1086 (make_parallel): Prototype.
1087 (target_make_parallel): Prototype.
1088 (assemble_two_insns): Prototype.
1089 (m32r_record_hi16): Prototype.
1090 (md_atof): Remove declaration of atof_ieee.
1091 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1092 (m32r_force_relocation): Prototype.
1093 (m32r_elf_section_change_hook): Prototype.
1094 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1095 (md_show_usage): Fix signed/unsigned warning.
1096 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1097 (calcop): Ditto for reg_prefix var.
1098 (hexval): Add cast to fix signed/unsigned warning.
1099 (md_number_to_disp): Delete unused function.
1100 (md_number_to_field): Likewise.
1101 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1102 (match_name): Prototype.
1103 (get_bf2): Prototype.
1104 (get_bf_offset_expression): Prototype.
1105 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1106 (md_undefined_symbol <ignore>): Likewise.
1107 (md_create_short_jump <all args>): Likewise.
1108 (md_create_long_jump <all args>): Likewise.
1109 (md_convert_frag <abfd, sec>): Likewise.
1110 (md_apply_fix3 <segment>): Likewise.
1111 (md_section_align <segment>): Likewise.
1112 (md_pcrel_from_section <sec>): Likewise.
1113 (tc_gen_reloc <section>): Likewise.
1114 (reg_m, reg_n, immediate): Delete unused vars.
1115 (dump_literals): Fix signed/unsigned warning.
1116 (enter_literal): Likewise.
1117 (parse_imm): Likewise. Also fix format string.
1118 (parse_mem): Remove unused var.
1119 (md_assemble <LS>): Abort on unexpected inst.
1120 (md_atof): Remove declaration of atof_ieee.
1121 (md_parse_option): Remove unused vars.
1122 (md_apply_fix3): Fix format strings, cast args.
1123 (tc_gen_reloc): Delete unused var.
1124 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1125 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1126 (md_undefined_symbol <name>): Likewise.
1127 (md_convert_frag <abfd>): Likewise.
1128 (tc_gen_reloc <seg>): Likewise.
1129 (check_operand <insn>): Likewise.
1130 (md_convert_frag): Fix format strings.
1131 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1132 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1133 (md_atof): Remove declaration of atof_ieee.
1134 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1135 (md_apply_fix3): Fix bogus >>='s.
1136 (md_undefined_symbol): Delete unused var.
1137 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1138 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1139 (fake_opcode): Adjust for pj_opc_int_t change.
1140 (md_begin): Likewise.
1141 (md_assemble): Likewise.
1142 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1143 instead of non-existent third arg of parse_exp_save_ilp.
1144 (md_parse_option): Correct "little" and "big" calls.
1145 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1146 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1147 (tc_gen_reloc <section>): Likewise.
1148 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1149 (debug): Rewrite using VA_* macros.
1150 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1151 (md_convert_frag): Likewise.
1152 (md_parse_option): Likewise.
1153 (md_show_usage): Likewise.
1154 (md_undefined_symbol): Likewise.
1155 (tc_gen_reloc): Likewise.
1156 (md_operand): Likewise.
1157 (tc_aout_pre_write_hook): Delete.
1158 (struct tic30_insn): Make "operands" unsigned.
1159 (struct tic30_par_insn): Likewise.
1160 (md_assemble): Likewise for "count", "i" and "numops".
1161 (tic30_parallel_insn): Likewise for vars here.
1162 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1163 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1164 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1165 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1166 (md_undefined_symbol): Likewise.
1167 (md_parse_option): Likewise.
1168 (md_convert_frag): Likewise.
1169 (tc_coff_symbol_emit_hook): Likewise.
1170 (md_atof): Remove declaration of atof_ieee.
1171 (const_overflow): Warning fixes, tidy.
1172 (get_operands): Delete unused vars.
1173 (internal_error_a): Adjust format string to expect a long for arg.
1174 (find_opcode): Warning fixes, simplify.
1175 (build_insn): Cast internal_error_a arg.
1176 (md_begin): Likewise.
1177 (md_apply_fix3): Likewise.
1178 (md_assemble): Delete unused var.
1179 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1180 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1181 (whatreg, parse_reg, parse_exp): Make static, prototype.
1182 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1183 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1184 (get_operand, get_operands, get_specific, newfix): Likewise.
1185 (apply_fix, build_bytes): Likewise.
1186 (md_atof): Remove declaration of atof_ieee.
1187 (tc_aout_fix_to_chars): Delete.
1188 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1190 (md_parse_option): Fix s_segm and s_unseg calls.
1192 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1194 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1196 (RELAX_BRANCH_RELOC_S2): Delete.
1197 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1198 Do not handle BFD_RELOC_16_PCREL.
1199 (macro_build, mips_ip): Likewise.
1200 (md_pcrel_from): Return 4 for undefined symbols regardless of
1202 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1203 Don't dereference howto if no such relocation is available.
1204 Do not apply hack for in-place zero addend in NEWABI.
1205 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1207 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1208 Alan Modra <amodra@bigpond.net.au>
1210 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1211 (TC_LINKRELAX_FIXUP): Add comments.
1213 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1215 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1217 (r_register_name, xr_register_name): Add prototype declarations.
1219 2002-12-08 H.J. Lu <hjl@gnu.org>
1221 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1222 copied from tc-i386.c.
1224 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1226 Fix Bug savannah/1825:
1227 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1228 (md_relax_table): Define specific relax for PC-rel offsets.
1229 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1230 (m68hc11_relax_frag): Handle the new relax code.
1231 (md_convert_frag): Likewise.
1232 (md_estimate_size_before_relax): Likewise.
1234 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1236 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1238 2002-12-05 Richard Henderson <rth@redhat.com>
1240 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1241 (ia64_gen_real_reloc_type): Handle it.
1242 (pseudo_func): Add @ltoffx.
1243 (md_begin): Build .<ltoffx>.
1244 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1246 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1248 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1249 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1250 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1251 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1252 COFF to call arm_force_relocation.
1254 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1256 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1258 (emit_one_bundle): Handle "hint" instruction.
1259 (operand_match): Match IA64_OPND_AR_CSD.
1261 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1263 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1266 2002-12-03 Nick Clifton <nickc@redhat.com>
1268 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1269 .PPC.EMB.apuinfo sections.
1271 2002-12-03 Richard Henderson <rth@redhat.com>
1273 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1275 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1277 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1278 (cons, s_align_bytes): Delete declaration.
1280 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1282 (dot): Delete unused function.
1283 (w65_expression): Remove unused arg.
1284 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1286 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1288 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1290 (check): Remove unused function.
1291 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1292 on unhandled switch case.
1293 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1295 (tc_crawl_symbol_chain): Delete unused function.
1296 (tc_headers_hook): Likewise.
1297 (tc_Nout_fix_to_chars): Likewise.
1298 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1299 (md_parse_option): Likewise.
1300 (md_convert_frag): Likewise.
1301 (tc_coff_symbol_emit_hook): Likewise.
1302 (md_show_usage): Likewise.
1303 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1304 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1305 (w65_expression): Declare.
1307 * po/POTFILES.in: Regenerate.
1309 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1310 and ARM_ADRL_IMMEDIATE.
1312 2002-12-02 Nick Clifton <nickc@redhat.com>
1314 * gasp.c: Delete. It has been deprecated.
1315 * NEWS: Mention that gasp has been removed.
1316 * Makefile.am: Remove references to gasp.
1317 * makefile.vms: Likewise.
1318 * mpw-make.sed: Likewise.
1319 * Makeile.in: Regenerate.
1320 * doc/gasp.texi: Delete.
1321 * doc/Makefile.am: Remove references to gasp.texi.
1322 * doc/Makefile.in: Regenerate.
1323 * macro.c: Delete references to gasp.
1324 Remove use of comment_char function parameter as it is no longer
1326 * macro.h: Update prototypes to remove comment_char parameter.
1328 * read.c (read_a_source_file, s_irp): Remove comment_char
1329 parameter from invocation of functions in macro.c
1331 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1333 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1335 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1337 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1338 (tc_gen_reloc): Mark section param as not used.
1340 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1342 Fix Bug savannah/1825:
1343 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1344 that are not pc-relative.
1345 (m68hc11_relax_frag): Declare.
1347 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1348 the offsetable indexed addressing modes (n,r).
1349 (build_insn): Cleanup some locals.
1350 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1351 relaxation of difference between two symbols of same section.
1352 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1353 only when this is a PC-relative operand and the offset is not absolute.
1354 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1355 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1356 be handled by m68hc11_relax_frag.
1358 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1360 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1361 (32-bit int, 64-bit double).
1362 (md_longopts): New options -mshort, -mlong, -mshort-double and
1363 -mlong-double to control the ABI.
1364 (md_show_usage): Update.
1365 (md_parse_option): Handle new options.
1366 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1368 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1370 * symbols.c (report_op_error): New function, broken out of ...
1371 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1374 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1376 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1377 for BFD_RELOC_32_PLT_PCREL.
1379 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1381 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1382 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1383 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1384 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1385 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1386 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1387 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1388 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1389 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1390 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1391 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1392 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1393 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1394 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1395 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1396 TRUE/FALSE. Formatting.
1398 2002-11-29 Nick Clifton <nickc@redhat.com>
1400 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1401 assume a value of zero.
1402 (do_bkpt): Likewise.
1404 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1406 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1407 for TLS relocations.
1409 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1411 * config/tc-ia64.c (md_apply_fix3): Add default case.
1413 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1415 * symbols.c (S_SET_THREAD_LOCAL): New function.
1416 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1417 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1418 for TLS relocations.
1419 * config/tc-ia64.c (md_apply_fix3): Likewise.
1420 * config/tc-alpha.c (md_apply_fix3): Likewise.
1422 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1424 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1427 2002-11-26 DJ Delorie <dj@redhat.com.
1429 * dwarf2dbg.c (scale_addr_delta): New.
1430 (size_inc_line_addr): Use it.
1431 (emit_inc_line_addr): Use it.
1433 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1435 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1436 (md_assemble): Don't pass on branches to constants as relaxable.
1439 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1441 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1443 2002-11-21 Randolph Chung <randolph@tausq.org>
1445 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1446 only if they have default visibility.
1448 2002-11-21 Richard Henderson <rth@redhat.com>
1450 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1453 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1455 * config/tc-mcore.c (mcore_pool_count): New function.
1456 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1458 2002-11-20 Klee Dienes <kdienes@apple.com>
1460 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1461 coalesce the name fields to use the same pointer.
1463 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1464 the name fields to use the same pointer.
1465 (get_specific): Check for opcodes with the same name using strcmp
1466 as well as comparing the pointer.
1468 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1470 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1473 2002-11-19 Richard Henderson <rth@redhat.com>
1475 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1476 visibility portion of st_other.
1478 2002-11-19 Klee Dienes <kdienes@apple.com>
1480 * config/tc-h8300.c (struct h8_instruction): New type, used to
1481 wrap h8_opcodes with length, noperands, idx, and size fields
1482 (computed at run-time).
1483 (h8_instructions): New variable.
1484 (md_begin): Allocate the storage for h8_instructions. Fill
1485 h8_instructions with pointers to the appropriate opcode and the
1486 correct value for the additional fields.
1487 (clever_message): Update to use h8_instructions instead of
1489 (build_bytes): Ditto.
1490 (get_specific): Ditto.
1491 (md_assemble): Ditto.
1493 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1495 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1496 adjustments to symbols in merge sections.
1498 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1500 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1502 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1504 * dwarf2dbg.h (dwarf2_format): New enum.
1505 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1506 (out_debug_line, out_debug_info): Add code for handling 64-bit
1508 * config/tc-mips.h (mips_dwarf2_format): Declare.
1509 * config/tc-mips.c (mips_dwarf2_format): New function.
1510 * doc/internals.texi (DWARF2_FORMAT): Document.
1512 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1514 * config/tc-mips.c (s_change_section): Make sure input buffer
1515 is not accessed past the end. Don't hand
1516 obj_elf_change_section a pointer into the input buffer.
1518 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1520 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1523 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1525 * config/tc-tic4x.c: Fixed proper commandline
1526 parameters. Added support for new opcode-list format. General
1527 error message fixups.
1528 (c4x_inst_add): Reject insn not for our CPU
1529 (md_begin): Added matrix for setting the proper opcode-level &
1530 device-flags according to cpu type and revision. Rewrite the
1532 (c4x_operand_parse): Fix opcode bug
1533 (c4x_operands_match): New function argument. Added dry-run
1534 mechanism, that is optional error generation. Added constraint 'i'
1536 (c4x_insn_check): Added new function for post-verification of the
1538 (md_assemble): Check all opcodes before croaking because of an
1539 argument mismatch. Need this to be able to fully support
1540 ortogonally arguments.
1541 (md_parse_options): Revised commandprompt swicthes and added new
1543 (md_show_usage): Complete rewrite of printout.
1545 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1547 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1548 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1549 warning when using constant direct bigger than 2^16. Add the new
1552 2002-11-11 Christopher Faylor <cgf@redhat.com>
1554 * configure.in: Use .gdbinit under Cygwin.
1555 * configure: Regenerate.
1557 2002-11-11 Christopher Faylor <cgf@redhat.com>
1559 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1562 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1564 * config/tc-tic4x.c: Declare as many functions as possible as
1565 static. Maintenance on the general indenting. Removed unnecessary
1566 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1567 function. Add support for new DSP, TMS320VC33. Fix bug for
1568 converting flonum constants.
1569 (c4x_do_align): Add proper align handling. Setup align to insert
1571 (c4x_gen_to_words): Support for extended TI type floats.
1572 (md_atof): Proper dumping of multiple-word littlenums.
1573 (c4x_atof): Added support for extended TI type floats.
1574 (c4x_stringer): Added new function to handle compact strings.
1575 (c4x_emit_char): Added new function argument to handle custom
1576 length inserts, like single-byte strings.
1577 * config/tc-tic4x.h: Add proper align handling with NOP's.
1578 * Makefile.am: Added tic4x dependecy
1579 * Makefile.in: Regenerate
1581 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1583 * macro.c (get_any_string): Correct logic for not going beyond end
1586 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1588 * config/tc-mmix.c (get_putget_operands): Mark both possible
1589 operands as invalid at beginning.
1591 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1592 Initialize target of fixup to zero.
1594 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1596 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1597 NEWABI, but we should still emit HI16_S for non-PIC n32.
1599 2002-11-06 Richard Henderson <rth@redhat.com>
1601 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1602 (alpha_fix_adjustable): ... here.
1603 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1605 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1607 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1610 2002-11-05 H.J. Lu <hjl@gnu.org>
1612 * config/tc-mips.c (support_64bit_objects): Check *l before it
1615 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1617 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1618 SEC_LOAD flags for sections marked as 's'.
1620 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1622 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1623 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1624 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1627 * dep-in.sed: Fix typo.
1629 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1631 * configure.in: Update ARM CPU patterns.
1632 * configure: Regenerated.
1634 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1636 * itbl-lex.l: Use #include <> for generated headers.
1637 * itbl-ops.c: Likewise.
1639 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1641 * doc/gasp.texi: Fix typo in deprecation note.
1643 2002-10-23 Nick Clifton <nickc@redhat.com>
1645 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1646 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1648 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1650 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1651 (tc_frob_file_before_adjust): Don't define.
1652 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1654 (mmix_frob_file_before_adjust): Remove ineffective function.
1656 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1658 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1659 (cris_relax_frag): New function.
1660 (md_estimate_size_before_relax) <case ENCODE_RELAX
1661 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1662 expressions that will become absolute expressions to relaxation.
1663 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1664 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1665 value, not distance to symbol.
1666 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1667 Ditto. Correct placement of fixup.
1668 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1670 * config/tc-cris.h (cris_relax_frag): Declare.
1671 (md_relax_frag): Define.
1673 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1675 * config/obj-elf.c (special_sections): Use correct types for init
1677 (obj_elf_change_section): Don't mess with init array section type.
1679 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1681 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1682 for relocs against symbols in a merged section.
1684 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1686 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1687 table as register names.
1689 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1691 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1694 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1696 * expr.c (operand): Add support for n.nn flonums.
1698 2002-10-17 Johannes Stezenbach <js@convergence.de>
1700 * itbl-parse.y (entry): Provide empty action.
1702 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1704 * configure.in (BFDVER_H): Set and subst.
1705 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1706 * Makefile.am: Run "make dep-am".
1708 * configure: Regenerate.
1709 * Makefile.in: Regenerate.
1710 * doc/Makefile.in: Regenerate.
1712 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1714 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1715 (MD_APPLY_SYM_VALUE): Define for PE too.
1717 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1719 * Makefile.am: Run "make dep-am".
1720 (CPU_OBJ_VALID): sh64 coff is invalid.
1721 * as.c: #include "bfdver.h".
1722 * Makefile.in: Regenerate.
1723 * config.in: Regenerate.
1725 2002-10-14 Momchil Velikov <velco@fadata.bg>
1727 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1729 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1731 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1732 * configure: Regenerate.
1734 2002-10-13 Eric Christopher <echristo@redhat.com>
1735 Alexandre Oliva <aoliva@redhat.com>
1737 * config/tc-mips.c (s_gpdword): New function.
1738 (mips_pseudo_table): Add .gpdword.
1739 (mips_need_elf_addend_fixup): never for NEWABI.
1740 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1742 (s_cpadd): Generate .cpadd on NEWABI.
1744 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1746 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1748 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1750 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1751 (md_relax_frag): Adjust macro.
1752 * config/tc-mips.c (mips_relax_branch): New variable.
1753 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1754 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1755 (RELAX_MIPS16_P): Adjust.
1756 (append_insn): Emit branch to non-constant in a frag_var if
1757 branch-relaxation is desirable and possible.
1758 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1759 (OPTION_ELF_BASE): Adjust.
1760 (md_parse_option): Handle new options.
1761 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1763 (relaxed_branch_length): New function.
1764 (md_estimate_size_before_relax): Handle branch frags.
1765 (mips_relax_frag): Likewise.
1766 (md_convert_frag): Handle branch frags. Warn if branch is
1769 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1771 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1773 (md_apply_fix3): Add TLS relocs.
1774 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1777 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1778 Alan Modra <amodra@bigpond.net.au>
1780 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1781 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1783 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1785 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1788 2002-10-09 Richard Shann <richard.shann@superh.com>
1789 Stephen Clarke <stephen.clarke@superh.com>
1791 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1794 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1796 * contig/tc-sh.c (sh_local_pcrel): New.
1797 (sh_force_relocation): Use sh_local_pcrel.
1798 (md_pcrel_from_section): Check the relocation type whether it
1799 should be resolved locally. Use S_FORCE_RELOC.
1801 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1803 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1804 (TC_FORCE_RELOCATION): Tidy arg.
1806 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1807 Ken Raeburn <raeburn@cygnus.com>
1808 Aldy Hernandez <aldyh@redhat.com>
1809 DJ Delorie <dj@redhat.com>
1810 Michael Meissner <meissner@redhat.com>
1811 Eric Christopher <echristo@redhat.com>
1812 Richard Sandiford <rsandifo@redhat.com>
1814 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1815 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1816 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1817 (hilo_interlocks): True for CPU_VR5500.
1818 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1819 (mips_fix_vr4122_bugs): New.
1820 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1821 (mips_emit_delays): Likewise.
1822 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1823 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1824 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1825 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1826 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1827 (OPTION_ELF_BASE): Bump.
1828 (md_parse_option): Handle the new options.
1829 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1832 2002-09-29 H.J. Lu <hjl@gnu.org>
1834 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1835 twice if howto->pcrel_offset is true.
1837 2002-09-28 Matt Thomas <matt@3am-software.com>
1838 Jason Thorpe <thorpej@wasabisystems.com>
1840 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1841 convert undefined references to GOT32/PLT32 if PIC code is
1842 requested. Fix comment.
1844 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1846 * config/tc-sh.c (sh_force_relocation): Return 0 for
1847 some PC relative relocations when not relaxing.
1849 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1851 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1852 Define them if not BFD_ASSEMBLER.
1853 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1855 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1856 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1857 (tc_gen_reloc): Handle x86-64 TLS relocs.
1859 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1861 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1862 fixups to current or absolute section.
1864 2002-09-26 Jim Wilson <wilson@redhat.com>
1866 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1869 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1871 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1872 capable configuration.
1873 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1875 (mips_ip): Likewise.
1877 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1879 * config/tc-mips.c (append_insn): Fix jump overflow check.
1881 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1883 * config/tc-i386.c (process_operands): Warn about "lea" segment
1886 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1888 * write.c: Delete set_segment_vma and prototype. Update all callers.
1890 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1892 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1893 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1894 Rename "fseg" to "sym_seg".
1895 * Makefile.am: Run "make dep-am".
1896 * Makefile.in: Regenerate.
1897 * doc/Makefile.in: Regenerate.
1899 2002-09-20 Nick Clifton <nickc@redhat.com>
1901 * symbols.c (colon): Do not allow symbols to be created in the
1902 absolute section if WORKING_DOT_WORD is not defined and
1903 new_broken_words would require a new frag to be created.
1905 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1907 * expr.c (expr): Simplify foo-foo here.
1908 (clean_up_expression): Remove O_subtract code.
1910 * write.h (struct fix): Add fx_dot_value.
1911 (dot_value): Declare.
1912 * write.c (dot_value): New var.
1913 (fix_new_internal): Save dot_value as fx_dot_value.
1914 (fixup_segment): Adjust fx_offset using fx_dot_value.
1915 * expr.c (expr): Update dot_value.
1917 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1919 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1920 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1921 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1923 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1924 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1925 BFD_RELOC_386_TLS_GOTIE.
1927 2002-09-19 Richard Henderson <rth@redhat.com>
1929 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1931 (alpha_force_relocation): Don't special-case branch type relocs.
1933 2002-09-19 Nick Clifton <nickc@redhat.com>
1935 * config/tc-m68k.c (select_control_regs): Handle situation where
1936 architecture has not yet been selected.
1938 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1940 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1941 (IS_SEXT_16BIT_NUM): New macro.
1942 (macro_build_ldst_constoffset): New function, to build a set of
1943 instructions to do a load or store from a constant offset relative
1944 to a given register.
1945 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1946 .cprestore pseudo-op.
1948 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1950 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1952 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1954 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1956 2002-09-17 Stan Cox <scox@redhat.com>
1958 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1959 (macro): Likewise for la. Likewise for ld.
1960 (mips_after_parse_args): Make -xgot optional, not the default.
1961 (md_apply_fix3): Allow composite relocation to set up gp.
1962 (tc_gen_reloc): Allow relaxing for newabi.
1963 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1964 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1966 2002-09-17 Nick Clifton <nickc@redhat.com>
1968 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1969 BFD_RELOC_ARM_IMMEDIATE has been done.
1970 (tc_gen_reloc): Do not issue reloc number of unimplemented
1971 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1972 their name is already in the error message - plus remove them
1973 from the default case.
1975 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1976 behavior of instructions.
1978 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1980 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1981 Convert functions to K&R format.
1983 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1985 * config/tc-mips.c (pdr_seg): Define only for ELF.
1986 (s_change_section): Remove unused variable. Don't use for nonELF.
1988 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1990 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1992 * config/obj-elf.h (obj_elf_change_section): Likewise.
1994 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1996 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1997 (out_debug_info): Likewise.
1999 2002-09-16 Bruno Haible <bruno@clisp.org>
2001 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2002 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2003 * config/tc-i386.c (i386_target_format): Likewise.
2004 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2005 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2007 2002-09-13 Nick Clifton <nickc@redhat.com>
2009 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2010 when deciding if any operands have been skipped.
2012 2002-09-11 Nick Clifton <nickc@redhat.com>
2014 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2016 * po/tr.po: Updated Turkish translation.
2018 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2020 * config/tc-i386.c (md_apply_fix3): Allow addend for
2021 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2022 BFD_RELOC_386_TLS_LE_32.
2024 2002-09-05 Jeff Law <law@redhat.com>
2026 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2027 marker relocations such as ENTRY/EXIT.
2028 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2029 to both OBJ_ELF and OBJ_SOM.
2031 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2033 * doc/internals.texi (md_apply_fix3): Expand.
2034 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2035 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2036 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2037 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2038 EXTERN_FORCE_RELOC): Document.
2039 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2040 * as.h: Don't include struc-symbol.h for arc.
2042 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2043 subtract absolute symbol.
2044 * obj.h (struct format_ops): Add frob_file_before_fix.
2045 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2046 * symbols.c (S_FORCE_RELOC): New function.
2047 * symbols.h (S_FORCE_RELOC): Declare.
2048 * write.c (TC_FORCE_RELOCATION): Change default.
2049 (TC_FORCE_RELOCATION_ABS): Define.
2050 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2051 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2052 (TC_FORCE_RELOCATION_SECTION): Don't define.
2053 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2054 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2055 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2056 (TC_VALIDATE_FIX_SUB): Define.
2057 (TC_FIX_ADJUSTABLE): Don't define.
2058 (MD_APPLY_SYM_VALUE): Define this instead.
2059 (abs_section_sym): New variable.
2060 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2061 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2062 Don't put the absolute section sym on fixups here.
2063 (fix_segment): New function.
2064 (write_relocs): Don't call fixup_segment from here.
2065 (write_object_file): Instead call tc_frob_file_before_fix,
2066 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2067 Don't output the absolute section symbol.
2068 (fixup_segment): Rewrite.
2069 * write.h (abs_section_sym): Declare.
2070 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2072 (aout_format_ops): Adjust to suit.
2073 * config/obj-aout.h (obj_frob_file): Don't define.
2074 (obj_frob_file_before_fix): Define.
2075 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2076 (S_FORCE_RELOC): Define.
2077 * config/obj-bout.h (S_FORCE_RELOC): Define.
2078 * config/obj-coff.c (coff_format_ops): Init new field.
2079 * config/obj-coff.h: Formatting fixes.
2080 (obj_sec_sym_ok_for_reloc): Define.
2081 (S_FORCE_RELOC): Define.
2082 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2083 (ecoff_frob_file): .. from here.
2084 (ecoff_format_ops): Add new function.
2085 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2086 (obj_frob_file_before_fix): Define.
2087 * config/obj-elf.c (elf_format_ops): Init new field.
2088 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2089 * config/obj-ieee.h: Formatting fixes.
2090 (S_FORCE_RELOC): Define.
2091 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2092 * config/obj-vms.h (S_FORCE_RELOC): Define.
2093 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2094 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2095 for BFD_RELOC_32 and BFD_RELOC_64.
2096 (alpha_fix_adjustable): Remove extern and weak tests.
2097 (alpha_before_fix): Rename from alpha_adjust_symtab.
2098 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2099 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2100 (TC_VALIDATE_FIX): Tweak param name.
2101 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2102 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2103 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2104 (MD_APPLY_SYM_VALUE): Define.
2105 (tc_adjust_symtab): Don't define.
2106 (alpha_adjust_symtab): Don't declare.
2107 (tc_frob_file_before_fix): Define.
2108 (alpha_before_fix): Declare.
2109 (TC_INIT_FIX_DATA): Tweak param names.
2110 * config/tc-arc.c: Include "struc-symbol.h".
2111 (md_pcrel_from): Remove undefined sym fudge.
2112 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2113 Don't set fx_addnumber.
2114 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2115 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2116 (EXTERN_FORCE_RELOC): Define.
2117 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2118 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2119 (arm_validate_fix): Return void.
2120 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2121 Add plt and got reloc tests.
2122 (arm_force_relocation): Call S_FORCE_RELOC.
2123 * config/tc-arm.h (struct fix): Forward declare.
2124 (TC_VALIDATE_FIX): No longer set add_symbolP.
2125 (arm_validate_fix): Adjust declaration.
2126 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2127 (TC_FORCE_RELOCATION): Tweak param name.
2128 (TC_INIT_FIX_DATA): Likewise.
2129 (obj_fix_adjustable): Don't define.
2130 (tc_fix_adjustable): Call arm_fix_adjustable.
2131 (TC_FIX_ADJUSTABLE): Don't define.
2132 (MD_APPLY_SYM_VALUE): Define.
2133 (EXTERN_FORCE_RELOC): Define.
2134 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2135 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2136 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2137 Remove *valP fudges and code to subtract abs sym. Don't set
2139 * config/tc-avr.h: Formatting.
2140 (EXTERN_FORCE_RELOC): Define.
2141 (MD_APPLY_SYM_VALUE): Define.
2142 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2143 (md_apply_fix3): Remove code to subtract abs sym.
2144 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2145 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2146 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2147 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2148 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2149 (tc_fix_adjustable): Remove extern, weak tests.
2150 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2151 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2152 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2153 and code to subtract abs sym.
2154 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2155 (d10v_force_relocation): Call S_FORCE_RELOC.
2156 * config/tc-d10v.h: Don't include write.h.
2157 (struct fix): Instead, forward declare.
2158 (MD_PCREL_FROM_SECTION): Tweak param names.
2159 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2160 (d10v_fix_adjustable): Likewise.
2161 (obj_fix_adjustable): Don't define.
2162 (tc_fix_adjustable): Define.
2163 (TC_FORCE_RELOCATION): Tweak param name.
2164 (MD_APPLY_SYM_VALUE): Define.
2165 (EXTERN_FORCE_RELOC): Define.
2166 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2167 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2168 and code to subtract abs sym.
2169 * config/tc-d30v.h: Don't include write.h.
2170 (struct fix): Instead, forward declare.
2171 (MD_PCREL_FROM_SECTION): Tweak param names.
2172 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2173 (MD_APPLY_SYM_VALUE): Define.
2174 (EXTERN_FORCE_RELOC): Define.
2175 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2176 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2177 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2178 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2179 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2180 Don't use fx_addnumber.
2181 * config/tc-dlx.h: Don't include write.h.
2182 (md_convert_frag): We're not alpha twice over.
2183 (EXTERN_FORCE_RELOC): Define.
2184 (obj_fix_adjustable): Don't define.
2185 (tc_fix_adjustable): Define.
2186 (TC_FIX_ADJUSTABLE): Don't define.
2187 (MD_APPLY_SYM_VALUE): Define.
2188 (LOCAL_LABELS_DOLLAR): Undef always.
2189 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2190 (fr30_fix_adjustable): Remove extern, weak tests.
2191 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2192 (obj_fix_adjustable): Don't define.
2193 (tc_fix_adjustable): Define.
2194 (struct fix): Forward declare.
2195 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2196 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2197 (frv_fix_adjustable): Don't do extern, weak tests.
2198 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2199 (TC_FIX_ADJUSTABLE): Don't 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-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2205 * config/tc-h8300.h (struct fix): Forward declare.
2206 (EXTERN_FORCE_RELOC): Define.
2207 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2208 (hppa_fix_adjustable): Don't test extern or weak. Don't
2209 symbol_mark_used_in_reloc.
2210 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2212 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2213 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2214 (TC_FORCE_RELOCATION_SECTION): Don't define.
2215 (MD_APPLY_SYM_VALUE): Define.
2216 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2217 to subtract abs sym.
2218 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2219 (MD_APPLY_SYM_VALUE): Define.
2220 (MD_PCREL_FROM_SECTION): Tweak param name.
2221 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2222 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2223 (i386_force_relocation): New function.
2224 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2225 (TC_VALIDATE_FIX): Likewise.
2226 (TC_FIX_ADJUSTABLE): Don't define.
2227 (MD_APPLY_SYM_VALUE): Define.
2228 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2229 (i386_force_relocation): Declare.
2230 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2231 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2232 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2233 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2234 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2235 (EXTERN_FORCE_RELOC): Define.
2236 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2237 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2238 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2239 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2240 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2241 Remove #if 0 code. Invert return boolean.
2242 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2243 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2244 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2245 (tc_coff_sizemachdep): Prototype.
2246 (i960_handle_align): Likewise.
2247 (i960_validate_fix): Adjust declaration.
2248 (reloc_callj): Likewise.
2249 (EXTERN_FORCE_RELOC): Define.
2250 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2251 (TC_FORCE_RELOCATION_ABS): Define.
2252 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2253 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2254 (TC_FIX_ADJUSTABLE): Don't define.
2255 (MD_APPLY_SYM_VALUE): Define.
2256 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2257 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2258 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2259 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2260 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2261 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2262 (MD_APPLY_SYM_VALUE): Define.
2263 (EXTERN_FORCE_RELOC): Define.
2264 (TC_FORCE_RELOCATION): Tweak param name.
2265 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2266 (m32r_fix_adjustable): Don't test extern, weak.
2267 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2268 (MD_APPLY_SYM_VALUE): Define.
2269 (obj_fix_adjustable): Don't define.
2270 (tc_fix_adjustable): Define.
2271 (tc_frob_file): Don't define.
2272 (tc_frob_file_before_fix): Define.
2273 (EXTERN_FORCE_RELOC): Define.
2274 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2275 BFD_RELOC_VTABLE_ENTRY address.
2276 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2277 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2278 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2279 Remove duplicated fx_done code.
2280 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2281 (EXTERN_FORCE_RELOC): Define.
2282 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2284 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2285 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2286 (TC_FIX_ADJUSTABLE): Don't define.
2287 (EXTERN_FORCE_RELOC): Define.
2288 (MD_APPLY_SYM_VALUE): Define.
2289 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2290 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2291 Remove fx_addsy tests.
2292 (mcore_force_relocation): Call S_FORCE_RELOC.
2293 (mcore_fix_adjustable): Don't test fx_addsy.
2294 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2295 (EXTERN_FORCE_RELOC): Define.
2296 (obj_fix_adjustable): Don't define.
2297 (tc_fix_adjustable): Define.
2298 (MD_APPLY_SYM_VALUE): Define.
2299 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2300 (mips_pic): No longer static.
2301 (mips_force_relocation): Call S_FORCE_RELOC.
2302 (mips_fix_adjustable): Remove extern, weak tests.
2303 * config/tc-mips.h (enum mips_pic_level): Declare.
2304 (mips_pic): Declare.
2305 (tc_frob_file): Don't define.
2306 (tc_frob_file_before_fix): Define this instead.
2307 (EXTERN_FORCE_RELOC): Define.
2308 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2309 with reg_section tests. Set fx_done instead of calling
2310 symbol_clear_used_in_reloc on bad relocs.
2311 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2312 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2313 (mmix_adjust_symtab): Simplify list handling. Abort on any
2315 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2316 BFD_RELOC_MMIX_LOCAL.
2317 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2318 (EXTERN_FORCE_RELOC): Define.
2319 (MD_PCREL_FROM_SECTION): Tweak param name.
2320 (tc_frob_file): Don't define.
2321 (tc_frob_file_before_fix): Define this instead.
2322 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2323 Remove SEC_CODE checks.
2324 (mn10300_fix_adjustable): Remove extern and weak tests.
2325 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2326 (TC_FORCE_RELOCATION): Tweak param name.
2327 (obj_fix_adjustable): Don't define.
2328 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2329 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2330 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2331 (openrisc_fix_adjustable): Don't test fx_addsy.
2332 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2333 (obj_fix_adjustable): Don't define.
2334 (tc_fix_adjustable): Define this instead.
2335 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2336 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2337 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2338 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2339 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2340 (MD_APPLY_SYM_VALUE): Define.
2341 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2342 Don't subtract symbol value.
2343 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2344 (EXTERN_FORCE_RELOC): Define.
2345 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2346 (MD_APPLY_SYM_VALUE): Define.
2347 (obj_fix_adjustable): Don't define.
2348 (tc_fix_adjustable): Define this instead.
2349 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2351 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2352 (ppc_force_relocation <elf version>): New.
2353 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2354 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2355 comments. Don't subtract fx_subsy as that is already done.
2356 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2357 (MD_PCREL_FROM_SECTION): Likewise.
2358 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2359 ppc_force_relocation.
2360 (TC_FORCE_RELOCATION_SECTION): Delete.
2361 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2362 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2363 (MD_APPLY_SYM_VALUE): Define.
2364 * config/tc-s390.c: #include "dwarf2dbg.h".
2365 (s390_insn): Remove excess parens.
2366 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2367 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2368 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2369 non-NULL. Don't subtract off fx_addsy value.
2370 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2371 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2372 (TC_FIX_ADJUSTABLE): Don't define.
2373 (MD_APPLY_SYM_VALUE): Define.
2374 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2375 (SWITCH_TABLE): Likewise.
2376 (sh_force_relocation): Call S_FORCE_RELOC.
2377 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2378 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2379 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2380 fx_addnumber is zero on entry. Save val in fx_addnumber.
2381 (tc_gen_reloc): Don't subtract fx_subsy.
2382 * config/tc-sh.h (struct fix): Move.
2383 (obj_fix_adjustable): Don't define.
2384 (tc_fix_adjustable): Define this instead.
2385 (TC_FIX_ADJUSTABLE): Don't define.
2386 (MD_APPLY_SYM_VALUE): Define.
2387 (SWITCH_TABLE_CONS): Define.
2388 (SWITCH_TABLE): Define.
2389 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2390 (TC_VALIDATE_FIX_SUB): Define.
2391 (MD_PCREL_FROM_SECTION): Tweak param name.
2392 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2393 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2394 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2395 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2396 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2397 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2398 (TC_VALIDATE_FIX_SUB): Define.
2399 (MD_PCREL_FROM_SECTION): Tweak param name.
2400 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2401 (tc_gen_reloc): Use S_FORCE_RELOC.
2402 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2403 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2404 (TC_FORCE_RELOCATION_ABS): Define this instead.
2405 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2406 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2407 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2408 (MD_APPLY_SYM_VALUE): Define.
2409 (TC_FIX_DATA_PRINT): Tweak param name.
2410 * config/tc-tic30.c (USE_STDOUT): Don't define.
2411 (md_parse_option): Remove stupid debug code.
2412 (tc_gen_reloc): Don't use fx_addnumber.
2413 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2414 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2415 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2416 (tc_fix_adjustable): Define this instead.
2417 (TC_FIX_ADJUSTABLE): Don't define.
2418 (MD_APPLY_SYM_VALUE): Define this instead.
2419 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2420 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2421 (TC_FIX_ADJUSTABLE): Don't define.
2422 (MD_APPLY_SYM_VALUE): Define this instead.
2423 (tc_fix_adjustable): Remove extern and weak tests.
2424 * config/tc-w65.h (struct fix): Forward declare.
2425 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2427 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2428 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2429 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2431 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2432 (MD_APPLY_SYM_VALUE): Define.
2433 (obj_fix_adjustable): Don't define.
2434 (tc_fix_adjustable): Define this instead.
2435 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2437 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2439 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2440 (ppc_fix_adjustable <coff version>): Cleanup.
2442 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2443 (md_parse_option): No -a64 without BFD64.
2444 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2445 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2447 2002-09-04 Nick Clifton <nickc@redhat.com>
2449 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2450 instructions into the hash table if the target cpu is the BookE32.
2452 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2454 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2457 2000-08-28 Catherine Moore <clm@redhat.com>
2459 * tc-v850.c (v850_relax): Declare.
2460 (v850_longcode): New routine.
2461 (v850_handle_align): New routine.
2462 (md_pseudo_table): Add longcall and longjump.
2463 (md_parse_option): Check for relax option.
2464 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2465 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2466 (md_apply_fix3): Likewise.
2467 (v850_force_relocation): Likewise.
2468 (v850_comm): Change the current section.
2469 (md_assemble): Ensure that the correct value is put in the
2471 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2472 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2473 Remove redundant v850ea support.
2474 * tc-v850.h (HANDLE_ALIGN): Define.
2475 (v850_handle_align): Declare.
2476 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2478 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2480 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2481 * configure: Regenerate.
2482 * NEWS: Mention new port.
2484 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2486 * config/obj-coff.c: Add sdef definition.
2487 * config/obj-coff.h: Add tic4x include file and set
2489 * config/tc-tic4x.c: New file.
2490 * config/tc-tic4x.h: New file.
2492 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2494 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2495 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2496 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2497 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2498 (RELOC_ENUM): Define.
2499 (fix_new_internal): Use RELOC_ENUM.
2500 (fix_new, fix_new_exp): Likewise.
2501 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2502 Replace gotos with continue.
2503 (write_relocs): Formatting. Avoid symbol loops in
2504 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2505 errors, and error number in other cases.
2506 (fixup_segment): Remove param names from prototype. Rename
2507 "this_segment_type" to "this_segment". Update linkrelax comment.
2508 Remove "size, "place" and "where" local vars. Formatting. Update
2509 "no symbol" comment. Remove #if 0 and #if 1.
2511 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2513 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2515 * dwarf2dbg.c: Always include dwarf2dbg.h.
2516 (dwarf2_directive_file): Adjust dummy version args.
2517 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2518 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2519 when symbol values differ.
2520 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2521 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2522 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2524 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2526 * config/tc-w65.c (md_section_align): Fix typo.
2527 (md_parse_option): Return 0, not 1.
2529 2002-08-22 Nick Clifton <nickc@redhat.com>
2531 * doc/as.texinfo (Section): Note that if '@' is a comment
2532 character then another symbol is used to prefix the section's
2535 2002-08-22 Christian Groessler <chris@groessler.org>
2537 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2540 2002-08-12 Graeme Peterson <gp@qnx.com>
2542 * configure.in: Add support for sh-**-nto* target.
2543 * configure: Regenerate.
2545 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2547 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2549 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2551 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2553 (ppc_apuinfo_section_add): Define only if format is ELF.
2554 (md_assemble): Emit APUinfo section only if format is ELF.
2557 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2559 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2560 * config/tc-frv.c: Likewise.
2561 * config/tc-hppa.c: Likewise.
2562 * config/tc-ia64.c: Likewise.
2563 * config/tc-ip2k.c: Likewise.
2564 * config/tc-m68hc11.c: Likewise.
2565 * config/tc-m68k.c: Likewise.
2566 * config/tc-mmix.c: Likewise.
2567 * config/tc-mn10300.c: Likewise.
2568 * config/tc-sh.c: Likewise.
2569 * config/tc-sparc.c: Likewise.
2570 * config/tc-v850.c: Likewise.
2572 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2574 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2577 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2579 From matthew green <mrg@redhat.com>
2581 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2582 PPC_OPCODE_PPC is, except for BookE architectures.
2583 (md_parse_option): Add support for -mspe.
2584 (md_show_usage): Add -mspe.
2585 (md_parse_option): Add support for -me500 and
2586 -me500x2 to generate code for Motorola e500 core complex.
2587 (md_show_usage): Add -me500 and -me500x2.
2589 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2590 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2591 PPC_APUINFO_BRLOCK): New macros.
2593 (ppc_cleanup): New function.
2594 (ppc_apuinfo_section_add): New function.
2596 (md_assemble): Collect info and write the APUinfo section.
2598 * config/tc-ppc.h (md_cleanup): Define.
2599 (ppc_cleanup): Export.
2600 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2602 2002-08-17 Stan Cox <scox@redhat.com>
2604 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2605 config/tc-mips.c (s_change_section): New function to support
2606 IRIX .section pseudo-op.
2608 2002-08-16 Nick Clifton <nickc@redhat.com>
2610 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2612 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2614 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2615 the fix-up against on the right frag.
2616 (s_cpsetup): Likewise. Parse third argument as expression, to
2617 handle global symbols and forward/backward labels correctly.
2619 2002-08-14 Nick Clifton <nickc@redhat.com>
2621 * read.c (stringer): Catch attempts to create strings in the abs
2624 * config/tc-alpha.c: Fix compiling for COFF targets.
2625 Some minor formatting tidyups.
2627 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2629 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2630 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2631 according to the reloc.
2632 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2633 (TC_FORCE_RELOCATION): Define.
2634 (tc_m68hc11_force_relocation): Declare.
2636 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2637 (s_m68hc11_relax): New function for relax group.
2638 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2639 beginning of jump instruction.
2640 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2641 address computation.
2642 (tc-gen_reloc): Update.
2643 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2645 (tc_m68hc11_force_relocation): New function, handle new relocs.
2646 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2647 reloc for the linker relax pass.
2648 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2651 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2653 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2654 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2655 (s_m68hc11_mode): New function for .mode pseudo op.
2656 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2658 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2659 (m68hc11_elf_final_processing): Declare.
2661 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2663 * config/tc-m68hc11.c (md_begin): Take into account additional
2664 page operand for call instruction.
2665 (print_opcode_format): Likewise.
2666 (check_range): Likewise for page range checking.
2667 (get_operand): Don't skip a possible comma in operands.
2668 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2669 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2670 (fixup24): New to handle call reloc.
2671 (build_insn): Handle missing page operand for call instruction.
2673 (md_apply_fix3): Take into account new relocs.
2674 (get_operand): Fix the mode for indexed indirect addressing.
2675 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2677 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2679 * config/tc-mips.c (mips_ip): Don't work out the value of
2680 constant %hi()s here.
2682 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2684 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2685 for ELF, and don't bother checking ELF relocs when non-ELF.
2686 (i386_immediate): Allow absolute_section expressions for aout.
2687 (i386_displacement): Likewise. Also test bfd_is_com_section.
2688 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2689 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2690 not when fx_addsy. Remove dead code.
2692 2002-08-09 Graeme Peterson <gp@qnx.com>
2694 * configure.in: Add support for ppc-*-nto* target.
2695 * configure: Regenerate.
2697 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2699 * config/tc-i386.h: Reorganize.
2701 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2703 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2704 immediate offset in "dla" and "la" expansions.
2706 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2708 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2709 Remove "bfd_gas=yes" from target table when covered later.
2710 Consolidate some entries.
2711 * configure: Regenerate
2713 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2715 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2716 at start of insn, pass it to output_disp and output_imm.
2717 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2718 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2720 (output_imm): Added arguments. Compute properly addend for
2722 (md_apply_fix3): Remove R_386_GOTPC handling.
2724 2002-08-06 George France <france@handhelds.org>
2726 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2727 and m21264b processor names and cpu types.
2728 * doc/c-alpha.texi: Documented new types.
2730 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2732 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2734 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2736 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2737 handling to BFD_RELOC_MIPS16_GPREL.
2739 2002-08-01 Nick Clifton <nickc@redhat.com>
2741 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2742 pool is computed using signed arithmetic so that proper sign
2743 extension is performed if X_add_number is a 64-bit integer.
2745 2002-08-01 H.J. Lu <hjl@gnu.org>
2746 Daniel Jacobowitz <drow@mvista.com>
2748 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2749 .debug_line section unless it has line information.
2751 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2753 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2754 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2755 Allow default displacement size to be an option "--disp-size-default".
2756 (md_number_to_disp): Make error messages include value. Use %d to
2757 print integers, not %s.
2758 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2759 get duplicate messages sometimes.
2760 (convert_iif): Grow frag to max possible instruction size. Avoid
2761 creating unnecessary fixes.
2762 (md_number_to_field) Add prototype.
2763 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2764 prototypes and make static.
2765 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2766 (evaluate_expr): Use resultP argument instead of exprP global.
2767 (get_addr_mode): Quiten compiler warnings.
2768 (encode_operand): eliminate unused variables. Quiten compiler
2769 warnings. Eliminate nul character in format strings.
2770 (parse): argc is unsigned.
2771 (reloc): Type cast index to quieten compiler.
2772 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2773 (md_convert_frag): Note unused parameters. Remove unused
2775 (md_create_long_jump, md_create_short_jump,
2776 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2779 2002-07-31 Nick Clifton <nickc@redhat.com>
2781 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2782 of the PDP-11 and 2.11BSD a.out support.
2784 2002-07-31 Momchil Velikov <velco@fadata.bg>
2786 * config/tc-v850.c (md_assemble): Fix range check for immediate
2789 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2791 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2792 to Broadcom SB-1 core support.
2794 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2796 * config/tc-mips.c (mips_target_format): Fix formatting.
2797 Add recognition of n32 ABI formats.
2799 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2801 * tc-mips.c (load_address): Don't clobber $at when loading a
2802 64-bit address in non-PIC code if noat is in effect.
2805 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2807 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2808 used in division/multiply macro expansions similarly to how they
2809 are used in the variants with break instructions.
2812 2002-07-30 Graeme Peterson <gp@qnx.com>
2814 * configure.in: Add support for arm-*-nto target.
2815 * configure: Regenerate.
2817 2002-07-30 Nick Clifton <nickc@redhat.com>
2819 * config/tc-arm.c (struct literal_pool): Add fields to allow
2820 multiple literal pools to be maintained.
2821 (find_literal_pool): New function.
2822 (find_or_make_literal_pool): New function.
2823 (add_to_literal_pool): Use find_or_make_literal_pool.
2824 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2826 (s_ltorg): Use find_literal_pool.
2827 (arm_cleanup): Dump all literal pools.
2828 * doc/c-arm.texi: Document new behaviour of only dumping literal
2831 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2833 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2834 rather than PPC_OPCODE_32 for powerpc64*.
2836 2002-07-25 Nick Clifton <nickc@redhat.com>
2838 * po/es.po: Updated Spanish translation.
2839 * po/fr.po: Updated French translation.
2841 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2843 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2844 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2845 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2846 * configure, config.in: Regenerate.
2847 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2848 (mips_set_options): Remove "abi" field.
2849 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2852 (mips_arch_string, mips_arch_info): New vars.
2853 (mips_tune_string, mips_tune_info): New vars.
2854 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2855 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2856 (mips_isa_to_str, mips_cpu_to_str): Remove.
2857 (mips_ip): If the selected architecture is a generic ISA rather
2858 than a processor, only mention the ISA level in error messages.
2859 (OPTION_MCPU): Remove.
2861 (md_longopts): Add -mfp64, remove -mcpu.
2862 (mips_set_option_string): New fn.
2863 (md_parse_option): Make -mipsN update file_mips_isa rather than
2864 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2865 Don't let -mgp32 and -mfp32 change the ABI.
2866 (show): Move to end of file. Constify string argument.
2867 (md_show_usage): Move to the end of the file. Read available
2868 architectures from mips_cpu_info_table.
2869 (mips_set_architecture): New fn.
2870 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2871 is an alias for -march=mipsN. Don't change the ABI based on other
2872 flags. Infer the register size from the ABI as well as the
2873 architecture. Complain about more conflicting arguments.
2874 Unify logic with GCC.
2875 (s_mipsset): Don't change the ABI.
2876 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2877 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2878 "mipsN"-type entries. Remove entries that vary only in the
2879 manufacturer's prefix, or that have "000" replaced by "k".
2880 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2881 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2882 (mips_parse_cpu): New fn.
2883 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2884 (mips_cpu_info_from_isa): Minor formatting tweak.
2886 2002-07-24 Nick Clifton <nickc@redhat.com>
2888 * po/sv.po: Updated Swedish translation.
2889 * po/es.po: Updated Spanish translation.
2891 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2893 * Makefile.am: Run "make dep-am".
2894 * Makefile.in: Regenerate.
2895 * doc/Makefile.in: Regenerate.
2896 * config.in: Regenerate.
2897 * po/POTFILES.in: Regenerate.
2899 2002-07-23 Nick Clifton <nickc@redhat.com>
2901 * po/fr.po: Updated French translation.
2903 2002-07-23 Nick Clifton <nickc@redhat.com>
2905 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2908 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2910 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2911 instead of S_IS_EXTERN.
2912 (md_estimate_size_before_relax): Likewise.
2913 (mips_fix_adjustable): Likewise.
2915 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2917 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2919 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2920 Nick Clifton <nickc@redhat.com>
2922 * cond.c (s_ifdef): Treat a referenced but not yet defined
2923 symbol as if it were undefined, in exactly the same way as
2926 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2927 consider referenced bug not yet defined symbols to be
2930 2002-07-18 Denis Chertykov <denisc@overta.ru>
2931 Frank Ch. Eigler <fche@redhat.com>
2932 Alan Lehotsky <alehotsky@cygnus.com>
2933 John Healy <jhealy@redhat.com>
2934 Jeff Johnston <jjohnstn@redhat.com>
2936 * configure.in: Add ip2k configuraton.
2937 * configure: Regenerate.
2938 * Makefile.am: Add ip2k configuraton.
2939 * Makefile.in: Regenerate.
2940 * configure: Regenerate.
2941 * Makefile.in: Regenerate.
2942 * config/tc-ip2k.c: New file.
2943 * config/tc-ip2k.h: New files.
2944 * NEWS: Mention new support.
2945 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2946 * doc/Makefile.in: Regenerate.
2947 * doc/all.texi: Set IP2K
2948 * doc/as.texinfo: Add IP2K description.
2949 * doc/c-ip2k.texi: New file.
2951 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2953 * NEWS: Reformat to match style of other NEWS files.
2955 2002-07-17 Jan Hubicka <jh@suse.cz>
2957 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2959 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2961 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2963 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2965 * NEWS: Add 'Changes in 2.13'.
2967 2002-07-15 Matt Fredette <fredette@netbsd.org>
2969 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2971 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2973 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2974 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2977 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2979 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2980 (ppc_frob_file_before_adjust): New function.
2981 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2982 (ppc_elf_frob_symbol): Don't declare.
2983 (tc_frob_file_before_adjust): Define.
2984 (ppc_frob_file_before_adjust): Declare.
2986 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2987 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2990 (ppc_xcoff64): Rename to ppc_obj64.
2991 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2992 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2993 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2995 (ppc_target_format): Use ppc_obj64 to select format.
2996 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2997 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2998 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2999 (tc_frob_symbol): Likewise.
3000 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3001 BFD_DEFAULT_TARGET_SIZE.
3003 (ppc_is_toc_sym): Likewise.
3004 (md_apply_fix3): Likewise.
3005 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3006 BFD_DEFAULT_TARGET_SIZE.
3007 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3008 (tc_frob_symbol): Likewise.
3010 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3012 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3013 (mips_ip): Likewise.
3015 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3017 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3018 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3019 (md_apply_fix3): Formatting. Remove redundant test.
3020 (tc_gen_reloc): Remove redundant code.
3021 (tc_i386_force_relocation): Delete. Movy body of function to..
3022 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3024 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3026 * configure.in: Add hppa-*-openbsd* target, change
3027 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3029 * configure: Regenerate.
3031 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3033 * config/tc-mips.c (macro): Shift the 32-bit address range
3034 accessible with a lone "lui" down by 32768.
3036 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3038 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3039 instead of "dadd" in address calculations.
3042 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3044 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3046 (md_assemble): Instead, zap the suffix here.
3048 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3050 * NEWS: Remove next release number until the release is actually
3053 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3055 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3057 * Makefile.in: Regenerate.
3059 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3061 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3062 to symbols in merge sections, even non pc-relative ones.
3064 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3066 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3068 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3070 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3071 .softregs and .eeprom.
3073 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3075 * NEWS: Note the next release is 2.13.
3077 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3079 * po/tr.po: New translation imported.
3081 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3083 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3084 (ecoff_directive_def): Likewise.
3085 (ecoff_directive_tag): Likewise.
3086 * listing.c (file_info): Likewise.
3087 * hash.c (what): Likewise.
3089 2002-06-25 H.J. Lu <hjl@gnu.org>
3091 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3092 * Makefile.in: Regenerated.
3094 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3096 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3097 (assemble_ppi): Generate warning if the same register is used
3098 twice as destination in the same padd / pmuls instruction.
3100 2002-06-18 Dave Brolley <brolley@redhat.com>
3102 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3103 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3104 * configure.in: Support frv-*-*.
3105 * Makefile.am (CPU_TYPES): Add frv.
3106 (TARGET_CPU_CFILES): Add tc-frv.c.
3107 (TARGET_CPU_HFILES): Add tc-frv.h.
3108 (DEPTC_frv_coff): New variable.
3109 (DEPTC_frv_elf): New variable.
3110 (DEPOBJ_frv_coff): New variable.
3111 (DEPOBJ_frv_elf): New variable.
3112 (DEP_frv_coff): New variable.
3113 (DEP_frv_elf): New variable.
3114 * tc-frv.c: New file.
3115 * tc-frv.h: New file.
3117 2002-06-17 Catherine Moore <clm@redhat.com>
3119 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3121 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3123 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3125 2002-06-17 Tom Rix <trix@redhat.com>
3127 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3129 2002-06-14 H.J. Lu <hjl@gnu.org>
3130 Daniel Jacobowitz <drow@mvista.com>
3132 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3133 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3134 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3135 and new_logical_line for the first .file directive.
3136 * read.c (s_app_file_string): New function.
3137 (s_app_file): Call it.
3138 * read.h (s_app_file_string): Add declaration.
3140 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3142 * configure.in: Remove MIPS_STABS_ELF.
3143 * configure: Regenerated.
3144 * config.in: Regenerated.
3145 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3147 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3149 (pdr_seg): Declare unconditionally.
3150 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3151 (s_mips_end): Likewise. Generate stabs function markers.
3152 (s_mips_ent): Generate stabs function markers.
3153 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3155 (s_mips_mask): Likewise.
3156 (mips_flag_mdebug): New.
3157 (md_longopts): Add "mdebug" and "no-mdebug".
3158 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3159 (mips_after_parse_args): Set mips_flag_mdebug.
3160 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3162 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3164 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3165 value twice for RELA relocations.
3167 2002-06-12 Ben Elliston <bje@redhat.com>
3169 * symbols.c (resolve_symbol_value): Initialise final_val.
3171 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3173 2002-06-11 Tom Rix <trix@redhat.com>
3175 * config/tc-ppc.c (ppc_subseg_align): Delete.
3176 (ppc_change_csect): Default csect align is 2.
3177 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3179 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3181 * config/tc-avr.c (mcu_types): Update.
3183 2002-06-08 Matt Thomas <matt@3am-software.com>
3185 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3186 (vax-*-netbsd*): New targets.
3187 * configure: Regenerate.
3188 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3189 * config/tc-vax.c: Add support for ELF and PIC.
3190 (flag_want_pic): New flag.
3191 (float_cons): Fix prototype.
3192 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3193 (md_assemble): Introduce a new is_absolute local, and use it
3194 rather than repeating the test. Make fatal errors actually
3195 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3196 Add support for ELF. Add support for PIC.
3197 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3198 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3200 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3201 optional for a.out, and not allowed for VMS. Adjust all callers.
3202 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3203 (md_create_long_jump): Likewise.
3204 (md_undefined_symbol): Likewise.
3205 (md_section_align): Likewise.
3206 (md_shortopts): Allow -k and -K for ELF.
3207 (md_parse_option): Set flag_want_pic if -k or -K.
3208 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3209 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3210 * config/tc-vax.h (tc_headers_hook): Remove.
3211 (TARGET_FORMAT): Set according to object format and target
3213 (BFD_ARCH, TARGET_ARCH): Define.
3214 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3215 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3216 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3217 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3219 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3221 * Makefile.am: Run "make dep-am".
3222 * Makefile.in: Regenerate.
3224 * as.c: Replace CONST with const.
3225 * write.c: Likewise.
3226 * config/obj-coff.c: Likewise.
3227 * config/tc-a29k.c: Likewise.
3228 * config/tc-arm.c: Likewise.
3229 * config/tc-dlx.c: Likewise.
3230 * config/tc-h8300.c: Likewise.
3231 * config/tc-h8500.c: Likewise.
3232 * config/tc-i370.c: Likewise.
3233 * config/tc-i860.c: Likewise.
3234 * config/tc-i960.c: Likewise.
3235 * config/tc-m68hc11.c: Likewise.
3236 * config/tc-m68k.c: Likewise.
3237 * config/tc-m88k.c: Likewise.
3238 * config/tc-mcore.c: Likewise.
3239 * config/tc-mips.c: Likewise.
3240 * config/tc-ns32k.c: Likewise.
3241 * config/tc-pdp11.c: Likewise.
3242 * config/tc-pj.c: Likewise.
3243 * config/tc-s390.c: Likewise.
3244 * config/tc-sh.c: Likewise.
3245 * config/tc-sparc.c: Likewise.
3246 * config/tc-tahoe.c: Likewise.
3247 * config/tc-tic80.c: Likewise.
3248 * config/tc-v850.c: Likewise.
3249 * config/tc-vax.c: Likewise.
3250 * config/tc-w65.c: Likewise.
3251 * config/tc-z8k.c: Likewise.
3253 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3255 Based on patch from Matt Green:
3256 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3257 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3258 (s_mips_loc): New function.
3259 (mips_nonecoff_pseudo_table): Call them.
3260 (append_insn): Call dwarf2_emit_insn.
3262 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3264 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3266 (file_ase_mips16): New veriable.
3267 (mips_eabi64): Remove.
3268 (CPU_HAS_MIPS16): New define.
3269 (CPU_HAS_MDMX): Fix data type.
3270 (md_begin): Code cleanup. Use file_ase_mips16.
3271 (mips_elf_final_processing): Handle mips16 header flag.
3272 Handle EABI flag without intermediate variable.
3274 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3276 * doc/as.texinfo: Update MIPS documentation.
3278 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3280 * config/tc-mips.c: Add define for $zero register.
3281 (md_begin): Add $zero as alias name for $0.
3282 (insn_uses_reg): Use ZERO define.
3283 (mips_ip): Add $zero as alias name for $0.
3284 (mips16_ip): Likewise.
3285 (s_cplocal): Demand empty rest of input line.
3286 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3287 names. Use ZERO define. Fix input_line_pointer progress.
3289 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3291 * symbols.c: Replace CONST by const throughout.
3292 (symbol_find_exact): Split out from..
3293 (symbol_find_base): ..here.
3294 * symbols.h: Replace CONST by const throughout.
3295 (symbol_find_exact): Declare.
3296 * config/obj-elf.c: #include "struc-symbol.h".
3297 (elf_frob_file): If group name matches an exported symbol, use that
3298 symbol for the signature and ".group" as the section name.
3300 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3302 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3305 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3307 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3308 and mips_opts.ase_mdmx if they are uninitialized.
3310 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3312 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3313 (hppa_force_relocation): Check if a stub just before the start symbol
3314 of the last call_info is reachable before forcing relocation. Fix
3317 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3319 * config/tc-mips.c (mips_after_parse_args): New function.
3320 (md_begin): Move processing of defaults to mips_after_parse_args.
3321 config/tc-mips.h (md_after_parse_args): Define.
3323 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3325 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3326 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3327 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3328 * configure: Regenerate.
3329 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3332 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3334 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3336 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3338 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3339 linkonce flag. Print all warnings.
3340 (obj_elf_section): Parse ",comdat" for groups.
3341 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3342 consistency of comdat flag.
3344 2002-06-02 Richard Henderson <rth@redhat.com>
3346 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3347 with LITERALs without sequence numbers.
3349 2002-06-01 Richard Henderson <rth@redhat.com>
3351 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3352 Rename them LITUSE_ALPHA_*.
3354 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3356 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3357 accept parentheses enclosed register lists.
3359 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3361 * Makefile.am: Run "make dep-am".
3362 * Makefile.in: Regenerate.
3363 * po/POTFILES.in: Regenerate.
3365 2002-05-31 Graeme Peterson <gp@qnx.com>
3367 * configure.in: Add i386-*-nto-qnx*.
3368 * configure: Regenerate.
3370 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3372 * config/tc-mips.c (mips_ip): Use unsigned long values for
3375 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3377 * config/tc-mips.c (s_cpsetup): Fix initialization of
3378 mips_cpreturn_register and mips_cpreturn_offset.
3380 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3382 * config/tc-mips.c (s_cpsetup): Fix comment.
3384 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3386 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3387 (mips_ip): Likewise.
3388 (mips16_ip): Likewise.
3389 (tc_get_register): Likewise.
3391 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3392 Ed Satterthwaite <ehs@broadcom.com>
3394 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3395 (mips_opts): Initialize "ase_mdmx" member.
3396 (file_ase_mdmx): New variable.
3397 (CPU_HAS_MDMX): New macro.
3398 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3399 based on command line options and configuration defaults.
3400 (macro_build): Note in comment that use of MDMX in macros is
3401 not currently allowed.
3402 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3403 "Z" MDMX operand types.
3404 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3405 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3407 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3408 Add support for "-mdmx" and "-no-mdmx" options.
3409 (OPTION_ELF_BASE): Move to accomodate new options.
3410 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3411 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3412 file_ase_mdmx was set.
3413 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3414 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3417 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3419 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3420 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3421 command line switch conforming to gcc conventions.
3422 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3424 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3426 * config/tc-mips.c (macro_build_jalr): New Function.
3427 (md_begin): NewABI uses big GOTs.
3428 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3429 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3430 (load_address): Add some NewABI PIC support.
3432 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3433 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3435 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3437 * config/tc-mips.c (load_address): Use mips_gp_register instead
3438 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3440 (macro): Use mips_gp_register instead of hardcoded value.
3442 2002-05-30 Richard Henderson <rth@redhat.com>
3444 * expr.h (operatorT): Add O_md17..O_md32.
3445 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3446 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3447 O_tprelhi, O_tprello, O_tprel): New.
3448 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3449 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3450 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3451 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3452 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3453 (md_apply_fix3): Handle TLS relocations.
3454 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3455 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3456 associated TLS reloc. Check lituse_tls relocs match up.
3457 (emit_insn): Handle TLS relocations.
3460 * doc/c-alpha.texi: Add docs for tls relocations.
3462 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3464 * config/tc-mips.c (mips_gprel_offset): New variable.
3465 (s_gpvalue): Use it.
3467 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3469 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3470 write-write conflicts.
3471 (md_assemble): Reformat introductory comment.
3472 (parallel_ok): Prevent packing only if the first
3473 instruction cannot be packed.
3475 2002-05-30 Jason Eckhardt <jle@redhat.com>
3476 Tom Rix <trix@redhat.com>
3478 * config/tc-d10v.c (build_insn): Check for immediates.
3480 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3482 * config/tc-mips.c: Replace GP in comments by $gp.
3483 (mips_big_got): Initialize.
3484 (mips_trap): Initialize.
3485 (load_address): Use mips_gp_register instead of hardcoded value.
3486 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3487 (macro): Use mips_gp_register instead of hardcoded value.
3488 (macro2): Change load_address calls.
3489 (md_pcrel_from): Comment formatting.
3490 (s_cpload): Use mips_gp_register instead of hardcoded value.
3491 (s_cprestore): Likewise. Comment formatting.
3492 (s_gpword): Fix data type.
3493 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3494 (nopic_need_relax): Replace GP in comments by $gp.
3495 (mips_elf_final_processing): Better comment.
3497 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3499 * configure.in: Add DLX configuraton
3500 * Makefile.am: Add DLX configuraton
3501 * configure: Regenerate.
3502 * Makefile.in: Regenerate.
3503 * config/tc-dlx.c: New file.
3504 * config/tc-dlx.h: New files.
3505 * NEWS: Mention new support.
3507 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3509 * config/obj-coff.c (write_object_file): Add missing semicolon.
3511 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3513 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3514 by the define. Remove superfluous check of mips_opts.mips16.
3515 (append_insn): Likewise. Canonicalize variable increments.
3516 (macro_build): Canonicalize variable increments.
3517 (macro_build_lui): Likewise.
3518 (load_register): Likewise.
3519 (load_address): Move pointer initialization.
3520 (macro): Move pointer to a more local scope. Canonicalize variable
3521 increments. Better comments. Replace magic constant for RA by the
3523 (macro2): Replace magic constant for RA by the define. Canonicalize
3524 variable increments.
3525 (mips_ip): Canonicalize variable increments.
3526 (mips16_ip): Replace magic constant for RA by the define.
3527 (my_getSmallParser): Canonicalize variable increments/decrements.
3528 (my_getPercentOp): Likewise.
3529 (my_getSmallExpression): Likewise.
3530 (s_align): Likewise.
3531 (s_mipsset): Likewise.
3532 (s_cpsetup): Likewise.
3533 (s_insn): Remove superfluous check of mips_opts.mips16.
3534 (s_mips_stab): Likewise.
3535 (mips_handle_align): Canonicalize variable increments.
3536 (s_mips_ent): Likewise.
3537 (s_mips_end): Add comment.
3539 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3541 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3542 * configure: Regenerate.
3544 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3546 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3547 * Makefile.in: Regenerate.
3548 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3549 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3550 * configure: Regenerate.
3551 * as.h: Use #include "" instead of <> for local header files.
3552 * flonum-konst.c: Likewise.
3553 * flonum-mult.c: Likewise.
3555 * listing.c: Likewise.
3556 * config/tc-ia64.h: Likewise.
3557 * config/tc-v850.h: Likewise.
3559 2002-05-24 TAMURA Kent <kent@netbsd.org>
3561 * configure.in: Add a target for i386-netbsdpe.
3562 * configure: Regenerate.
3564 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3566 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3567 (obj_elf_common): Call elf_common.
3568 (obj_elf_tls_common): New function.
3569 (elf_pseudo_tab): Support .tls_common.
3570 (special_sections): Add .tdata and .tbss.
3571 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3573 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3574 (obj_elf_parse_section_letters): Include T in error message.
3575 * config/tc-ppc.c (ppc_section_letter): Likewise.
3576 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3577 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3579 * config/tc-sparc.c (md_apply_fix3): Likewise.
3580 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3581 Define them if not BFD_ASSEMBLER.
3582 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3584 (md_apply_fix3): Add TLS relocs.
3585 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3586 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3587 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3588 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3589 (ia64_elf_section_letter): Include T in error message.
3590 (md_begin): Support TLS operators.
3591 (md_operand): Likewise.
3592 (ia64_gen_real_reloc_type): Support TLS relocs.
3593 * write.c (adjust_reloc_syms): Don't change symbols in
3594 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3596 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3598 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3599 round the relocation up rather than down.
3601 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3603 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3605 * doc/as.texinfo: Document that the COFF version of .section
3606 ignores the 'a' flag.
3608 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3610 * config/tc-alpha.c (assemble_tokens): Protect use of
3611 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3613 * write.c (size_seg): Check adjustment to last frag.
3614 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3616 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3617 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3618 (write_object_file): Invoke md_do_align if available, and use
3619 frag_align_code on text sections.
3620 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3621 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3622 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3623 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3624 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3627 2002-05-22 H.J. Lu <hjl@gnu.org>
3629 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3632 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3634 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3637 2002-05-22 H.J. Lu <hjl@gnu.org>
3639 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3640 for one .loc for compiler.
3642 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3644 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3647 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3649 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3650 Optimize the rotate by zero case.
3652 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3654 * configure.in: Remove accidental enabling of bfd_gas=yes for
3656 * configure: Regenerate.
3658 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3660 * app.c: Fix formatting.
3662 * ehopt.c: Likewise.
3664 * input-file.c: Likewise.
3665 * listing.c: Likewise.
3666 * macro.h: Likewise.
3667 * stabs.c: Likewise.
3668 * symbols.c: Likewise.
3670 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3672 * config/obj-generic.c: Delete file.
3673 * config/obj-generic.h: Likewise.
3675 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3677 * config/tc-avr.c (mcu_types): Update for new devices.
3679 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3681 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3683 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3685 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3686 worked sometimes by accident. Fix copy&paste comment.
3688 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3690 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3691 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3692 (mips_elf_final_processing): Let n32 use .reginfo.
3694 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3696 * config/tc-mips.c (append_insn): Fix too small range of variable.
3698 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3700 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3701 listing_prev_line().
3703 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3705 * config/tc-arm.c (md_assemble): Remove redundant call to
3708 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3711 * stabs.c (s_stab_generic): Fix grammatical error in warning
3714 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3716 * write.c (subsegs_finish): Don't specially align last subseg.
3718 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3720 * stabs.c (s_stab_generic): Warn about a description field that is
3723 * config/obj-coff.c: Fix compile time warnings when compiling
3724 without BFD_ASSEMBLER defined.
3727 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3729 (md_pcrel_from_section): Use md_pcrel_from().
3731 2002-05-11 Bruno Haible <bruno@clisp.org>
3733 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3734 by dwarf2_directive_loc, instead of calling dwarf2_where.
3736 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3738 * config/obj-coff.h: Fix formatting.
3739 * config/tc-mcore.c: Likewise.
3740 * config/tc-mn10300.c: Likewise.
3741 * config/tc-openrisc.c: Likewise.
3742 * config/tc-or32.c: Likewise.
3743 * config/tc-pdp11.c: Likewise.
3744 * config/tc-ppc.c: Likewise.
3745 * config/tc-ppc.h: Likewise.
3746 * config/tc-sh64.c: Likewise.
3747 * config/tc-sh.c: Likewise.
3748 * config/tc-tic54x.c: Likewise.
3749 * config/tc-xstormy16.c: Likewise.
3750 * config/tc-xstormy16.h: Likewise.
3752 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3754 * config/obj-coff.c: Fix formatting.
3755 * config/obj-elf.c: Likewise.
3756 * config/tc-alpha.c: Likewise.
3757 * config/tc-arm.c: Likewise.
3758 * config/tc-d10v.c: Likewise.
3759 * config/tc-d30v.c: Likewise.
3760 * config/tc-h8300.c: Likewise.
3761 * config/tc-hppa.c: Likewise.
3763 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3765 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3766 reloc when no_cond_jump_promotion.
3768 2002-05-08 Jim Wilson <wilson@redhat.com>
3770 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3771 current variable part of frag.
3773 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3775 * config/tc-mmix.c: Fix formatting.
3776 * config/tc-mmix.h: Likewise.
3778 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3780 * configure: Regenerate.
3782 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3784 * config/tc-m68k.c: Fix formatting.
3786 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3788 * Makefile.am: Honour DESTDIR.
3789 * Makefile.in: Regenerate.
3791 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3793 * config/tc-ia64.c: Fix formatting.
3794 * config/tc-ia64.h: Likewise.
3796 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3798 * config/tc-mips.c: Fix formatting.
3799 * config/tc-s390.c: Likewise.
3800 * config/tc-s390.h: Likewise.
3802 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3804 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3805 information for instructions.
3807 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3809 * as.h: Fix formatting.
3812 * dwarf2dbg.c: Likewise.
3813 * frags.h: Likewise.
3815 * macro.c: Likewise.
3817 * stabs.c: Likewise.
3818 * symbols.c: Likewise.
3820 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3822 * app.c (mri_pseudo): Only declare for TC_M68K.
3824 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3825 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3826 BFD_RELOC_16_BASEREL.
3827 (md_assemble): Likewise.
3828 (md_apply_fix3): Likewise.
3830 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3832 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3833 zero into an add of zero - it is not the same.
3835 2002-05-01 Arati Dikey <aratid@kpit.com>
3837 * tc-sh.c (get_specific): Generate warning if the same
3838 destination register is used in parallel instructions.
3840 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3842 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3844 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3846 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3847 backwards to prevent cascading errors.
3849 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3851 * configure.in: Add support for powerpc-*-windiss.
3852 * configure: Regenerated.
3854 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3856 * config/tc-s390.c (md_parse_option): Formatting.
3858 * config/tc-i386.c: Formatting fixes, add missing space in error
3861 2002-04-24 Christian Groessler <chris@groessler.org>
3863 * config/tc-z8k.c (build_bytes): Add support for new cases:
3864 CLASS_IGNORE and ARG_NIM4.
3865 (md_assemble): Prevent destruction of input_line_pointer if
3866 get_operands returns failure.
3868 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3870 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3871 instructions to be generated by macros.
3873 2002-04-24 Andreas Schwab <schwab@suse.de>
3875 * config/tc-i386.c (output_jump, output_disp)
3876 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3878 (md_apply_fix3): Remember addend value for rela relocations.
3879 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3881 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3883 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3884 from previous change.
3886 2002-04-22 Eric Christopher <echristo@redhat.com>
3888 * config/tc-mips.c (macro_build): Add warning if macro instructions
3889 are expanded into a branch delay slot.
3891 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3893 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3894 numbers, gdb relies on them to detect the start of the prologue.
3896 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3898 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3899 symbols in merge sections.
3901 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3903 * as.c (main): Don't reference _bfd_chunksize.
3905 2002-04-15 Tom Rix <trix@redhat.com>
3907 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3908 symbols in merge sections.
3910 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3912 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3913 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3914 argument for the precision.
3915 (gen_to_words): Update accordingly.
3917 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3919 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3920 BFD_VERSION_STRING unavailable.
3921 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3923 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3925 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3926 symbol_used_in_reloc_p is true.
3928 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3931 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3933 * dep-in.sed: Cope with absolute paths.
3934 * Makefile.am (dep.sed): Subst TOPDIR.
3936 * Makefile.in: Regenerate.
3938 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3940 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3941 (mips_ip): Remove unused variable.
3942 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3943 unsigned char with bfd_byte.
3944 (s_file): Remove unused variable.
3945 (s_mips_ent): Likewise.
3947 2002-04-03 Tom Rix <trix@redhat.com>
3949 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3951 (find_opcode): Fix warning in as_warn.
3952 * config/tc-d10v.h: Update Copyright.
3954 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3955 Tom Rix <trix@redhat.com>
3957 From Jeff Knaggs <jknaggs@redhat.com>
3958 * config/tc-d10v.c (check_resource_conflict): New function to
3959 check for resource conflicts.
3961 From Jason Eckhardt <jle@redhat.com>
3962 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3964 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3965 reserved control registers is used.
3966 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3969 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3970 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3971 instruction cannot be packed.
3973 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3974 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3975 write-write conflicts.
3976 (md_assemble): Reformat introductory comment.
3977 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3980 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3982 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3983 O_logical_not>): Derive final_seg from add_symbol.
3984 <O_multiply..O_logical_or>: More final_seg twiddles.
3986 2002-04-01 Jessica Han <jessica@cup.hp.com>
3988 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3991 2002-03-27 Andreas Schwab <schwab@suse.de>
3993 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3994 field for pc-relative fixups.
3995 (output_disp): Likewise.
3996 (md_estimate_size_before_relax): Likewise.
3997 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3998 pc-relative fixups in 64bit mode.
4000 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4002 * config/te-aix5.h: Typo fix.
4004 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4006 * Makefile.am: Run "make dep-am".
4007 * Makefile.in: Regenerate.
4008 * doc/Makefile.in: Regenerate.
4010 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4012 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4013 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4015 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4017 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4018 the EXTENDED bit here; report the estimate according to the
4021 2002-03-18 Tom Rix <trix@redhat.com>
4023 * configure.in: Add AIX 5 support.
4024 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4025 * config/te-aix5.h: New file. AIX 5 support.
4026 * configure: Regenerate.
4028 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4030 * po/fr.po: Updated version.
4032 2002-03-16 Andreas Jaeger <aj@suse.de>
4034 * doc/c-mips.texi (Machine Dependencies): Add new node.
4036 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4038 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4039 (mips_opts): Initialize "ase_mips3d" member.
4040 (file_ase_mips3d): New variable.
4041 (CPU_HAS_MIPS3D): New macro.
4042 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4043 based on command line options and configuration defaults.
4044 (macro_build, mips_ip): Accept MIPS-3D instructions if
4045 mips_opts.ase_mips3d is set.
4046 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4047 Add support for "-mips3d" and "-no-mips3d" options.
4048 (OPTION_ELF_BASE): Move to accomodate new options.
4049 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4050 (mips_elf_final_processing): Add a comment indicating that a
4051 MIPS-3D ASE ELF header flag should be set, when one exists.
4052 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4053 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4054 nomips3d" directives.
4056 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4058 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4059 a weak symbol in same section to be within reach.
4061 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4063 * po/fr.po: Updated version.
4065 2002-03-12 Andreas Schwab <schwab@suse.de>
4067 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4068 body record so that an error is given for misplaced .save
4071 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4073 * config/tc-i386.h (REX_OPCODE): Define.
4074 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4075 (rex_byte): typedef to int.
4076 * config/tc-i386.c: Group prototypes and vars together.
4077 Formatting fixes. Remove occurrences of "register" keyword.
4080 (mode_from_disp_size): Add INLINE keyword to prototype.
4081 (fits_in_signed_byte): Likewise.
4082 (fits_in_unsigned_byte): Likewise.
4083 (fits_in_unsigned_word): Likewise.
4084 (fits_in_signed_word): Likewise.
4085 (fits_in_unsigned_long): Likewise.
4086 (fits_in_signed_long): Likewise.
4087 (type_names): Constify.
4088 (intel_float_operand): Constify param.
4089 (add_prefix): Use REX_OPCODE.
4090 (md_assemble): Likewise. Modify for changed rex_byte.
4091 (parse_insn): Split out of md_assemble.
4092 (parse_operands): Likewise.
4093 (swap_operands): Likewise.
4094 (optimize_imm): Likewise.
4095 (optimize_disp): Likewise.
4096 (match_template): Likewise.
4097 (check_string): Likewise.
4098 (process_suffix): Likewise.
4099 (check_byte_reg): Likewise.
4100 (check_long_reg): Likewise.
4101 (check_qword_reg): Likewise.
4102 (check_word_reg): Likewise.
4103 (finalize_imm): Likewise.
4104 (process_operands): Likewise.
4105 (build_modrm_byte): Likewise.
4106 (output_insn): Likewise.
4107 (output_branch): Likewise.
4108 (output_jump): Likewise.
4109 (output_interseg_jump): Likewise.
4110 (output_disp): Likewise.
4111 (output_imm): Likewise.
4113 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4115 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4117 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4119 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4120 relocs except when BFD64.
4122 * write.c (number_to_chars_bigendian): Don't abort when N is
4123 larger than sizeof (VAL).
4124 (number_to_chars_littleendian): Likewise.
4126 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4128 * config/tc-hppa.c (md_apply_fix3): Add cast.
4129 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4132 2002-03-05 Paul Koning <pkoning@equallogic.com>
4134 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4135 (parse_ac5): New function for parsing float regs in float operand.
4136 (parse_expression): Remove attempt to make literals be octal.
4137 (parse_op_no_deferred): Support float literals.
4138 (parse_op): Reject attempts to refer to float regs.
4139 (parse_fop): New function, like parse_op but for float operand.
4140 (md_assemble): Add cases to parse float operands. Also fix
4141 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4143 2002-03-04 H.J. Lu <hjl@gnu.org>
4145 * config/obj-elf.c (special_section): Add .init_array,
4146 .fini_array and .preinit_array.
4148 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4149 .init_array and .fini_array.
4151 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4153 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4155 (obj_frob_symbol): Copy visibility.
4157 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4159 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4161 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4163 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4165 * po/es.po: Updated.
4167 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4169 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4170 only, undo the changes made on 2001-06-08, with the
4171 effect being that common or extern symbols are
4172 adjusted for embedded-PIC, but weak symbols are not.
4173 (md_estimate_size_before_relax: Likewise, with the effect
4174 that extern symbols are treated the same as weak symbols
4175 only if not embedded-PIC.
4176 (mips_fix_adjustable) Likewise, with the effect that
4177 weak or extern symbols are not adjusted for embedded-PIC.
4178 (md_apply_fix3): Tweak so that the case where value is zero
4179 is handled more correctly for embedded-PIC code.
4181 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4183 * doc/as.texinfo (Overview): Add missing @ifset IA64
4185 * configure.in (LINGUAS): Add es.po.
4186 * configure: Regenerate.
4187 * po/es.po: New file.
4189 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4191 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4192 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4193 and NO_PIC cases. Code cleanup.
4194 (macro2): Fix handling of 64bit register loads.
4196 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4198 * doc/as.texinfo: Add entry for IA64.
4199 * doc/c-ia64.texi: New file.
4201 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4203 * config/tc-hppa.c: Update copyright date.
4205 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4206 Remove references to chip manufacturers.
4207 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4209 (md_show_usage): Remove references to chip manufacturers. Mention
4211 (md_begin): Test power4 opcode flag bits.
4213 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4215 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4216 count exceeds prologue count.
4217 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4218 (unwind.label_prologue_count): New member.
4220 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4222 (get_saved_prologue_count): New function.
4223 (save_prologue_count): New function.
4224 (free_saved_prologue_count): New function.
4225 (dot_label_state): Record state label by calling save_prologue_count().
4226 (dot_copy_state): Restore prologue count by calling
4227 get_saved_prologue_count().
4228 (generate_unwind_image): Free up list of saved prologue
4229 counts by calling free_saved_prologue_counts().
4231 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4233 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4234 function declarations.
4236 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4238 * NEWS: Note that GASP is now deprecated.
4239 * Makefile.am: Do not build gasp-new by default.
4240 * Makefile.in: Regenerate.
4241 * doc/Makefile.am: Do not install gasp.info.
4242 * doc/Makefile.in: Regenerate.
4243 * gas/gasp.texi: Note that gasp is now deprecated.
4245 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4247 * NEWS: Mark 2.12 branch.
4249 2002-02-19 Tom Tromey <tromey@redhat.com>
4251 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4253 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4255 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4258 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4260 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4261 Make bit size independent of architecture switch.
4262 (md_begin): Add warning for -m64 with -Aesa.
4263 (s390_md_end): Use renamed architecture defines.
4265 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4267 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4269 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4271 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4274 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4276 * config/tc-mips.c (md_estimate_size_before_relax): Really
4277 make sure we treat weak like extern only for ELF. (Fixes
4278 patch from 2001-07-25.)
4280 2002-02-15 Ben Elliston <bje@redhat.com>
4282 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4285 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4287 * NEWS: Mention support for MMIX.
4289 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4291 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4292 a sequence of indpendent 'if' statements for easier debugging
4293 and future modification.
4295 2002-02-13 Matt Fredette <fredette@netbsd.org>
4297 * config/tc-m68k.c (md_show_usage): No longer display a
4298 hard-coded "68020" for the default CPU, instead display the
4299 canonical name of the true, configured default CPU.
4300 (m68k_elf_final_processing): Mark objects for sub-68020
4301 CPUs with the new EF_M68000 flag.
4303 2002-02-13 Andreas Schwab <schwab@suse.de>
4305 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4306 pc-relative relocations to merge sections in 64-bit mode.
4308 2002-02-13 Ben Elliston <bje@redhat.com>
4310 * NEWS: Document floating point number handling in gasp.
4311 * gasp.c: Include <assert.h> and "xregex.h".
4312 (is_flonum): New function.
4313 (chew_flownum): Likewise.
4314 (change_base): Consume flonums from the input, where possible.
4315 * doc/gasp.texi (Constants): Document floating point numbers.
4317 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4319 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4320 that implicitly use LR and RR selectors.
4322 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4324 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4325 and `epsw' as available on AM33 and above only.
4326 (other_register_name): Add logic to handle machine type encoded in
4329 2002-02-11 Tom Rix <trix@redhat.com>
4331 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4334 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4336 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4339 2002-02-11 Jan Hubicka <jh@suse.cz>
4341 * i386.c (md_assemble): Support 32bit address prefix.
4342 (i386_displacement): Likewise.
4343 (i386_index_check): Accept 32bit addressing in 64bit mode.
4345 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4347 * config/tc-sh.c (dot): Removed unused function.
4349 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4351 * Makefile.am: "make dep-am".
4352 * Makefile.in: Regenerate.
4353 * aclocal.m4: Regenerate.
4354 * config.in: Regenerate.
4355 * configure: Regenerate.
4356 * doc/Makefile.in: Regenerate.
4358 2002-02-10 Richard Henderson <rth@redhat.com>
4360 * doc/c-alpha.texi: New file.
4361 * doc/Makefile.am (CPU_DOCS): Add it.
4362 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4364 2002-02-09 Richard Henderson <rth@redhat.com>
4366 * config/tc-alpha.c (O_samegp): New.
4367 (USER_RELOC_P): Include it.
4368 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4369 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4370 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4371 (alpha_validate_fix): New.
4372 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4374 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4376 * doc/c-cris.texi: New.
4377 * doc/all.texi: @set CRIS.
4378 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4379 Include c-cris.texi.
4380 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4381 * doc/Makefile.in: Regenerate.
4383 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4385 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4386 determine if a number is a sign-extended 32-bit number.
4387 (load_register): Use IS_SEXT_32BIT_NUM.
4388 (macro): Check if load/store macro handling is using a
4389 constant 32-bit address on 64-bit address systems, and if
4390 so optimize the generation of that address.
4392 2002-02-08 Richard Henderson <rth@redhat.com>
4394 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4395 we've eliminated all foreign relocation types yet.
4396 (alpha_fix_adjustable): Likewise.
4398 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4400 Contribute sh64-elf.
4401 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4402 Stephen Clarke <Stephen.Clarke@st.com>
4403 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4404 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4405 * config/tc-sh.c (md_relax_table): Added default sizes for
4406 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4407 MOVI_16, MOVI_32 and MOVI_48.
4408 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4409 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4411 (shmedia_md_estimate_size_before_relax): Remove redundant
4412 blocks. Set fragP->fr_var even if relaxation type unchanged.
4413 Retain UNDEF_MOVI until expression decays to number.
4414 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4415 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4416 relocation types. Take fixP->fx_addnumber into account too.
4417 (shmedia_md_apply_fix): Likewise.
4418 (shmedia_md_convert_frag): Likewise.
4419 (shmedia_build_Mytes): Likewise.
4420 (sh64_consume_datalabel): Complain about nested datalabel.
4421 Support PIC relocs. Call sh_parse_name.
4422 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4423 in tc-sh.h to SHmedia reloc types.
4424 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4425 MOVI_GOTPC): New relaxation constants.
4426 (md_relax_table): Introduce relaxation directives for PIC-related
4428 (sh_PIC_related_p): Handle datalabel.
4429 (sh_check_fixup): Choose SH5 PIC relocations.
4430 (sh_cons_fix_new): Added BDF_RELOC_64.
4431 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4432 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4433 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4434 current ISA is SHmedia, get 7 bytes.
4435 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4436 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4438 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4439 shmedia_apply_fix3 and make void.
4440 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4441 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4443 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4444 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4445 2001-03-14 DJ Delorie <dj@redhat.com>
4446 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4447 * doc/Makefile.in(CPU_DOCS): Ditto.
4448 * doc/c-sh64.texi: New file.
4449 * doc/as.texinfo: Add SH64 support.
4450 2001-03-13 DJ Delorie <dj@redhat.com>
4451 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4452 A_REUSE_PREV so that its purpose is more obvious.
4453 (shmedia_build_Mytes): Ditto.
4454 2001-03-07 DJ Delorie <dj@redhat.com>
4455 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4457 (sh64_vtable_inherit): Ditto.
4458 (strip_datalabels): New, strip "datalabel" from given line.
4459 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4461 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4462 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4464 (shmedia_build_Mytes): ... to here.
4465 2001-03-06 DJ Delorie <dj@redhat.com>
4466 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4468 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4469 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4470 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4471 address by one in call to dwarf2_emit_insn.
4472 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4473 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4474 alignment handling broken by imported changes.
4475 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4476 (sh64_handle_align): Declare.
4477 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4478 (sh64_max_mem_for_rs_align_code): Declare.
4479 (enum sh64_isa_values): Moved here from tc-sh64.c.
4480 (md_do_align): Define.
4481 (sh64_do_align): Declare.
4482 (struct sh64_tc_frag_data): New.
4483 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4485 (TC_FRAG_INIT): Change to set new datatype.
4486 (struct sh64_segment_info_type): Rename member
4487 last_flushed_location to last_contents_mark. All users changed.
4488 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4489 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4490 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4491 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4492 of unsetting seen_insn.
4493 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4494 call sh64_update_contents_mark.
4495 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4496 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4497 enum sh64_isa_values.
4498 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4499 (emitting_crange): Boolean guard moved to file scope from function
4500 scope in sh64_set_contents_type.
4502 (sh64_update_contents_mark): New; most split out from
4503 sh64_flush_pending_output.
4504 (shmedia_md_end): Call sh64_update_contents_mark. Set
4505 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4506 (sh64_do_align): New function.
4507 (sh64_max_mem_for_rs_align_code): New function.
4508 (sh64_handle_align): Rename from shmedia_do_align. Make
4509 non-static. Add head comment. Emit zero bytes for n bytes modulo
4510 four. Change return-type to void.
4511 (shmedia_elf_new_section): Remove.
4512 (shmedia_md_assemble): Call sh64_update_contents_mark.
4513 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4514 new frag. Call sh64_update_contents_mark after making the new
4516 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4517 and sh_flush_pending_output.
4518 (sh64_flag_output): Also call md_flush_pending_output, but add
4519 condition on not emitting_crange.
4520 (sh64_tc_cons_fix_new): Remove.
4521 2001-01-12 Nick Clifton <nickc@redhat.com>
4522 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4523 alignment handling scheme imported from sourceware.
4524 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4525 * config/tc-sh64.h (TARGET_FORMAT): Define.
4526 (sh64_target_format): Prototype.
4527 * config/tc-sh64.c (sh64_target_mach): New function.
4528 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4529 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4530 zero_address_frag instead of copying the frag of the symbol.
4531 (shmedia_frob_file_before_adjust): Ditto.
4532 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4533 to valueT to remove signedness.
4534 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4535 headers to output_bfd. Do not evaluate symbols if final is false;
4537 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4538 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4539 to the current frag, call shmedia_md_convert_frag to emit fixups
4540 and make frag_wane neutralize the frag. Update comments.
4541 * config/tc-sh.c (md_convert_frag): Change caller of
4542 shmedia_md_convert_frag.
4543 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4544 * config/tc-sh64.h: Tweak comments and correct formatting.
4545 * config/tc-sh64.c: Ditto.
4546 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4547 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4548 for the no-relocation case.
4549 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4550 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4552 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4554 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4555 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4557 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4559 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4560 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4561 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4562 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4563 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4564 if reloc is emitted.
4565 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4566 New options plus bugfixes.
4567 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4569 (md_parse_option): Handle new options.
4570 (md_show_usage): Add blurb for new options.
4571 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4572 (sh64_expand, sh64_pt32): New variables.
4573 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4574 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4575 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4576 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4577 <resolved previously-pc-relative relocs>: Handle
4578 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4579 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4580 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4581 points to SHcompact code.
4582 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4583 SH64PCREL16)>: Check that ISA of what operand points at and
4584 PTA/PTB matches, or emit error.
4585 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4586 SHMEDIA_BFD_RELOC_PT.
4587 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4589 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4590 condition for MOVI expansion.
4591 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4592 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4594 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4596 (sh64_target_format): Error-check setting of sh64_pt32 and
4597 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4598 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4599 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4600 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4601 * config/tc-sh64.c: Improve comments.
4602 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4603 not say the linker will check correctness of PTA/PTB expansion.
4604 (shmedia_md_end): Make non-static.
4605 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4607 * config/tc-sh.c (sh_finalize): Remove.
4608 * config/tc-sh.h (md_end): Do not define.
4609 Remove prototype for sh_finalize.
4610 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4611 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4612 sh64_section_data container when storing section type in tdata
4613 field in elf_section_data.
4614 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4616 * Makefile.am: Update dependencies.
4617 * Makefile.in: Regenerate.
4618 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4619 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4620 dwarf2_emit_insn call with test on debug_type.
4621 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4622 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4623 CRT_SH5_ISA32 sticky for 64-bit.
4624 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4625 Generate .crange sections when switching ISA mode or emitting
4626 constants in same section as code.
4627 * config/tc-sh64.c: Reformat structure definitions.
4628 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4630 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4631 to emit a .cranges descriptor when contents type changes. Only
4632 emit error if changing contents type and -no-mix is in effect.
4633 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4634 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4635 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4636 sh64_flush_last_crange over sections.
4637 When checking main symbol of datalabel symbol, check for
4638 STO_SH5_ISA32, not ISA type of section in definition.
4639 (shmedia_frob_file_before_adjust): Check main symbol for
4640 STO_SH5_ISA32; don't check ISA type of section in definition.
4641 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4642 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4643 .cranges entries have been output.
4644 (shmedia_elf_new_section): Just call md_flush_pending_output.
4645 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4646 fix. Do not set tc_segment_info_data.in_code for section. Call
4647 sh64_set_contents_type for SHmedia code.
4648 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4649 false. Call md_flush_pending_output.
4650 (sh64_target_format): Check that -no-mix and
4651 -shcompact-const-crange are used in sane combination with other
4653 (shmedia_md_pcrel_from_section): Check type of fix for how to
4655 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4656 not ISA type of section in definition.
4657 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4658 hold contents-type state.
4659 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4660 (sh64_flush_pending_output): Declare.
4661 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4662 (sh64_tc_cons_fix_new): Declare.
4663 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4664 call sh64_flag_output.
4665 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4666 call sh64_set_contents_type to mark SHcompact code and set
4668 (md_longopts): New options "-no-mix" and
4669 "-shcompact-const-crange".
4670 (md_parse_option): Handle new options.
4671 (md_show_usage): Add blurb for new options.
4672 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4673 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4674 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4675 (sh64_last_insn_frag): New.
4676 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4677 to get frag for insn opcode for generating fixups; do not assume it
4679 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4681 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4683 (TC_FRAG_TYPE): Define as fragS *.
4684 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4685 (sh64_last_insn_frag): Declare.
4686 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4687 not == NULL before dereferencing.
4688 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4689 Get rid of BFD section flag and EF_SH64_ABI64.
4690 * config/tc-sh64.c (shmedia_frob_section_type): Use
4691 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4692 communicate the section as containing SHmedia code. Describe why.
4693 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4694 EF_SH64 regardless of ABI.
4695 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4696 in error message. Handle resolved expressions for
4697 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4698 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4699 (shmedia_check_limits): Handle BFD_RELOC_64.
4700 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4701 a STO_SH5_ISA32 symbol, only the BFD value.
4702 2000-12-11 Ben Elliston <bje@redhat.com>
4703 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4704 dwarf2_generate_asm_lineno.
4705 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4706 Handle PC-relative MOVI expansions with assembler relaxation.
4707 Generate PC-relative relocs from 16-bit PC-relative expressions.
4708 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4709 (shmedia_md_pcrel_from_section): ...here.
4710 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4711 turned completely resolved. Adjust relocation type for 16-bit
4712 immediate operands that has turned PC-relative. Adjust back for
4713 MD_PCREL_FROM_SECTION being applied twice.
4714 (shmedia_md_convert_frag): Always emit reloc for expression with
4715 global or weak symbol. Handle relaxation result for PC-relative
4717 (shmedia_md_estimate_size_before_relax): An expression with a weak
4718 or global symbol can not be relaxed. Break out tests for
4719 relaxable symbol into variable sym_relaxable.
4720 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4721 UNDEF_MOVI)>: Break out any PC-relative expression and change
4723 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4725 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4726 MOVI expansion. If X_op_symbol of the immediate expression is
4727 set, make an expression symbol for the argument to frag_var.
4728 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4730 (END): Adjust for new relaxations.
4731 (md_relax_table): Add entries for new relaxations.
4732 2000-12-07 Ben Elliston <bje@redhat.com>
4733 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4734 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4735 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4736 SHORI operand offsets in PT/PTA/PTB expansions.
4737 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4738 Implement DataLabel semantics.
4739 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4740 shmedia_frob_file_before_adjust.
4741 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4742 (DATALABEL_SUFFIX): Define.
4743 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4744 symbol list to update "datalabel" symbols to their main symbol
4746 (shmedia_frob_file_before_adjust): New.
4747 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4748 undefined and set STT_DATALABEL.
4749 (sh64_frob_label): Initialize TC symbol field.
4750 (sh64_consume_datalabel): Actually implement semantics. New
4751 parameter operandf, call it instead of expression.
4752 (sh64_exclude_symbol): New.
4753 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4754 to sh64_consume_datalabel.
4755 (tc_symbol_new_hook): Define to tc_frob_symbol.
4756 (TC_SYMFIELD_TYPE): Define to symbolS *.
4757 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4758 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4759 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4761 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4762 generating dwarf2 debug information.
4763 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4764 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4765 elf64-sh64 for the 64-bit ABI.
4766 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4768 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4769 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4771 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4772 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4773 (enum sh64_abi_values): New type.
4774 (enum sh64_isa_values): New type.
4775 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4776 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4777 (sh64_abi): Replace shmedia_64.
4778 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4779 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4780 (s_sh64_mode): Check validity for this target.
4781 (sh64_target_format): Initialize defaults for ISA and ABI.
4782 Fallback to old object format if no SH64 ISA or ABI has been
4784 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4785 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4786 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4787 * config/tc-sh64.h: Fix typo in comment.
4788 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4789 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4790 <PT fixups for absolute values>: Size will be longest, not
4792 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4793 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4794 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4795 and l1 to hold lowercase of two first characters. Change all
4796 remaining TO_LOWER to tolower.
4797 * config/tc-sh64.c (TO_LOWER): Delete.
4798 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4799 (md_parse_name): Define.
4800 (sh64_consume_datalabel): Declare.
4801 (DOLLAR_DOT): Define.
4802 * config/tc-sh64.c (shmedia_parse_exp): New.
4803 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4804 (shmedia_parse_reg): Remove const from src
4806 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4807 (shmedia_md_assemble): Ditto for op_end variable.
4808 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4809 Use shmedia_parse_exp, not parse_exp.
4810 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4811 parameter. All callers changed.
4812 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4814 (shmedia_parse_reg): Put first two character in local variables.
4815 Use tolower, not TO_LOWER. If no register is found and argtype
4816 indicates a control register, scan shmedia_creg_table
4818 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4819 * Makefile.am (CPU_TYPES): Add sh64.
4820 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4821 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4822 Regenerate dependencies.
4823 * Makefile.in: Regenerate.
4824 * configure.in: Add support for sh64-*-elf*.
4825 * configure: Regenerate.
4826 * config/tc-sh64.h: New.
4827 * config/tc-sh64.c: New.
4828 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4829 .mode, .isa and .uaquad.
4830 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4831 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4832 [HAVE_SH64] (END): Define as 10.
4833 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4834 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4836 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4837 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4838 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4839 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4841 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4842 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4843 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4844 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4845 SHmedia instructions. Handle state-change after switching to
4847 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4848 (md_parse_option) [HAVE_SH64]: Parse new options.
4849 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4850 (md_convert_frag) [HAVE_SH64] <default>: Call
4851 shmedia_md_convert_frag instead of abort.
4852 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4853 BFD_RELOC_SH_SHMEDIA_CODE.
4854 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4855 SHcompact or SHmedia code.
4856 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4857 shmedia_md_apply_fix instead of abort.
4858 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4859 result from calling shmedia_md_estimate_size_before_relax instead
4861 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4863 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4864 shmedia_init_reloc and do nothing more if it returns non-zero.
4865 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4866 * po/POTFILES.in: Regenerate.
4867 * po/gas.pot: Regenerate.
4869 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4871 * config/tc-sh.c (parse_at): Install the correct version of
4874 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4875 assume fixP->fx_subsy is non-NULL.
4877 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4879 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4880 A_DISP_PC_ABS, and adjust it by -4.
4881 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4883 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4884 the operand type is not A_DISP_PC_ABS.
4886 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4888 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4889 common and weak symbols. Handle common and weak symbols as
4890 undefined symbols with regards to GREG handling and merging.
4891 (mmix_frob_file): Ditto.
4893 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4895 * configure.in (hppa-*-netbsd*): New target.
4896 * configure: Regenerate.
4897 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4899 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4901 * config/tc-v850.c: Add missing prototypes amd use old-style
4902 function definitions.
4903 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4904 (sdata_section tdata_section, zdata_section, sbss_section,
4905 tbss_section, zbss_section, rosdata_section, rozdata_section,
4906 scommon_section, tcommon_section, zcommon_section,
4907 call_table_data_section, call_table_text_section): Delete.
4908 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4909 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4910 v850_call_table_data, v850_call_table_text): Delete.
4911 (struct v850_seg_entry): New.
4912 (v850_seg_table): New.
4913 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4914 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4915 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4916 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4919 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4920 recording of alignment.
4921 (md_pseudo_table): Use v850_seg.
4922 (md_begin): Don't init .call_table_data and .call_table_text here.
4923 Set v850_seg_table bss entry.
4925 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4927 Support on-demand global register allocation by passing on
4928 base-plus-offset relocs to the linker.
4929 * config/tc-mmix.c: Tweak and fix typos in comments.
4930 (allocate_undefined_gregs_in_linker): New variable.
4931 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4932 (md_longopts): Add --linker-allocated-gregs.
4933 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4934 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4935 (md_show_usage): Update text for -x. Add text for
4936 --linker-allocated-gregs.
4937 (tc_gen_reloc): Derive default value for addend from val and
4938 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4939 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4940 GREG if allocate_undefined_gregs_in_linker.
4941 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4942 --linker-allocated-gregs.
4943 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4944 --linker-allocated-gregs. Mention that it's implied by -x.
4945 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4946 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4948 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4950 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4952 * Makefile.am: Run "make dep-am"
4953 * Makefile.in: Regenerate.
4955 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4957 * config/tc-or32.c: New file.
4958 * config/tc-or32.h: New file.
4959 * configure.in: Add support for or32 targets.
4960 * configure: Regenerate.
4961 * config/obj-coff.c: Add support for or32 targets.
4962 * config/obj-coff.h: Add support for or32 targets.
4963 * Makefile.am: Add support for or32 targets.
4964 * Makefile.in: Regenerate.
4965 * NEWS: Mention support for OpenRISC.
4966 * doc/Makefile.in: Regenerate.
4967 * po/POTFILES.in: Regenerate.
4968 * po/gas.pot: Regenerate.
4970 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4972 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4975 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4977 * config/tc-mips.c (tc_gen_reloc): Arrange for
4978 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4979 their LO16 parts, even for ELF.
4981 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4983 * config/tc-i386.c: Protect definitions of true and false
4986 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4988 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4989 made because of .weak, if they are neither defined nor used in any
4992 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4994 * configure: Regenerated.
4996 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4998 * doc/Makefile.am (install): Depend on install-info.
4999 * doc/Makefile.in: Regenerate.
5001 2002-01-26 Nick Clifton <nick@redhat.com>
5003 * po/fr.po: Updated version
5005 2002-01-24 Kazu Hirata <kazu@hxi.com>
5007 * config/tc-h8300.c (check_operand): Don't print a warning
5008 when a valid 24-bit address is given to a 16-bit address
5011 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5013 * config/tc-sh.c (sh_elf_suffix): Removed.
5014 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5015 sh_end_of_match, sh_parse_name): New functions.
5016 (sh_elf_cons): Simplify.
5017 (parse_exp): Reject misplaced PIC operands.
5018 (md_undefined_symbol): Simplify.
5019 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5020 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5021 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5022 Complain if subsy remains at the end.
5023 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5024 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5026 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5028 * config/tc-mn10300.c (xr_registers): Move `pc'...
5029 (other_registers): ... here.
5031 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5033 * Makefile.am: Run "make dep-am".
5034 * Makefile.in: Regenerate.
5035 * gas/po/POTFILES.in: Regenerate.
5037 2002-01-21 DJ Delorie <dj@redhat.com>
5039 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5040 stabstr_name allocation permanent, as it will be referenced from
5043 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5045 * configure.in (ia64-*-netbsd*): New target.
5046 * configure: Regenerate.
5048 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5050 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5052 <Detailed description, ARM options>: Ditto.
5053 * doc/c-arm.texi (ARM Options): Ditto.
5055 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5057 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5058 do_mia, do_mar and do_mra respectively.
5059 (do_mav_*): Renamed from do_c_*.
5060 (mav_reg_required_here, mav_parse_offset): Renamed from
5061 cirrus_reg_required_here and cirrus_parse_offset respectively.
5062 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5064 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5065 Keith Walker <keith.walker@arm.com>
5067 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5068 (insns): Add pattern for bxj instruction.
5069 (do_bxj): New function.
5070 (arm_cpus): Add arm926ej.
5071 (arm_archs): Add armv5tej.
5073 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5075 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5077 2002-01-19 Keith Walker <keith.walker@arm.com>
5079 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5081 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5083 * NEWS: Mention new ARM command-line options and VFP support.
5085 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5087 (ARM_CEXT_MAVERICK): Similarly.
5088 (ARM_ANY): Now means any core instruction.
5089 (CPU_DEFAULT): Default to ARM_ANY.
5090 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5091 (pic_code): Declare for all object types. Make type int.
5092 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5093 (march_fpu_opt, mfpu_opt): Declare.
5094 (md_longopts): Tidy up conditional definitions.
5095 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5096 (arm_long_opts): New tables.
5097 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5098 (arm_parse_extension): New function.
5099 (md_parse_option): Rewrite using new table-driven system.
5100 (md_show_usage): Use new table-driven system.
5101 (md_begin): Calculate cpu_variant from command line option data.
5102 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5103 command-line options.
5104 * doc/c-arm.texi: Likewise.
5106 2002-01-18 Andreas Jaeger <aj@suse.de>
5108 * as.c (parse_args): Update year.
5110 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5112 * config/tc-tic54x.c (encode_address): Add a more informative
5113 warning about incorrect syntax.
5115 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5117 * po/gas.pot: Regenerate.
5119 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5121 * macro.c (get_any_string): Add no-c-format comment to prevent
5122 confusion when translating string.
5123 * gasp.c (get_any_string): Add no-c-format comment to prevent
5124 confusion when translating string.
5126 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5127 Johannes Stezenbach <js@convergence.de>
5128 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5129 matched before the shorter ones.
5130 (my_getSmallParser): Fix handling of nested parentheses in
5131 percent_op's. Code cleanup.
5132 (my_getPercentOp): New function, code from my_getSmallParser.
5133 (my_getSmallExpression): Fix handling of closing parentheses.
5134 Code cleanup. Better comments.
5136 2002-01-16 Nick Clifton <nickc@redhat.com>
5138 po/tr.po: New file: Turkish translation.
5139 configure.in (LINGUAS): Add "tr".
5140 configure: Regenerate.
5142 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5144 Support for VFP instructions
5145 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5146 (cp_address_required_here): New argument wb_ok. When false, do not
5147 accept write-back forms of addressing. Change all callers.
5148 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5149 (FPU_VFP_EXT_V2): Define.
5150 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5151 Define in terms of above.
5152 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5153 (vfp_reg): New struct.
5154 (vfp_regs): New array of registers.
5155 (insns): Add VFP instructions.
5156 (sn_table): New array of VFP single-precision register names.
5157 (dn_table): New array of VFP double-precision register names.
5158 (all_reg_maps): Add the new register tables.
5159 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5160 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5161 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5162 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5163 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5164 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5165 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5166 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5167 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5168 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5169 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5170 (do_vfp_sp_dp_cvt): New functions.
5171 (md_begin): Set soft-float flag for appropriate VFP work.
5172 (md_atof): Handle VFP-format doubles.
5173 (md_parse_option): Handle VFP command-line options.
5174 (md_show_usage): Display VFP command-line options.
5176 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5178 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5179 various command line options.
5181 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5183 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5185 (xstormy16_md_apply_fix3): Do not return a value.
5187 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5189 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5190 the -EL/-EB option that matches the target's endianness.
5191 (md_parse_option): Likewise.
5193 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5195 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5196 is not dependent on ARM_BI_ENDIAN.
5198 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5200 * tc-arm.c (all error messages): Normalize capitalization of messages.
5202 * tc-arm.h (md_operand): Delete define.
5203 * tc-arm.c (in_my_get_expression): New static variable.
5204 (my_get_expression): Set and clear it.
5205 (md_operand): New function. If called from my_get_expression
5206 put the error in inst.error.
5207 (output_inst): Now takes argument of instruction being assembled.
5208 Print it out with any error message.
5209 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5211 (end_of_line): Don't update inst.error if it is already set.
5213 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5215 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5216 op that can be translated into a mvn instruction.
5218 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5220 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5221 setting default md.flags.
5222 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5223 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5224 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5225 for 32 bit unwind info blocks.
5226 (generate_unwind_image): Add support for different types
5227 of unwind images (32 bits and/or big-endian).
5228 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5229 (ia64_target_format): Add support for hpux target formats.
5230 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5231 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5232 SHT_FINI_ARRAY elf section types.
5234 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5236 * tc-arm.c (struct reg_entry): Move before prototypes.
5237 (int_register, cp_register, fp_register): Delete.
5238 (reg_table): Delete. Replaced with ...
5239 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5240 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5241 (mav_dspsc_table): ... one table per register set.
5242 (arm_reg_hsh): Delete.
5243 (struct reg_map): New structure.
5244 (all_reg_maps): New array.
5245 (enum arm_reg_type): New enums.
5246 (build_reg_hsh): New function.
5247 (insert_reg_alias): Use hash table passed by caller. Adjust all
5249 (create_register_alias): New function, split out from ...
5250 (md_assemble): ... here.
5251 (md_begin): Build new register hash tables.
5252 (arm_reg_parse): New argument for the hash table to search. Adjust all
5254 (arm_reg_parse_any): New function.
5255 (co_proc_number): Look up the processor number in the processor hash
5257 (cirrus_regtype): Delete.
5258 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5259 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5260 (ARM_EXT_MAVERICKsc_register): Delete.
5261 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5262 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5264 (do_c_triple_4, do_c_triple_5): Delete.
5265 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5266 (do_c_quad_6): Delete.
5267 (do_c_quad_6[ab]): New functions.
5268 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5269 arguments to use new register parsing methods.
5270 (cirrus_reg_required_here): Likewise.
5271 (insns): Reclassify cirrus maverick worker functions.
5272 (cirrus_valid_reg): Delete.
5274 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5276 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5277 (sh*-*-netbsdelf*): New target.
5278 * configure: Regenerate.
5279 * tc-sh.h: Update copyright years.
5280 (TARGET_FORMAT): Add version for TE_NetBSD.
5282 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5284 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5287 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5289 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5290 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5292 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5294 * tc-mips.c (mips_cprestore_valid): New flag.
5295 (mips_frame_reg_valid): New flag.
5296 (macro) [M_JAL_2]: Check both flags.
5297 [M_JAL_A]: Likewise.
5298 (s_cprestore): Set mips_cprestore_valid.
5299 (tc_get_register): If setting mips_frame_reg, set
5300 mips_frame_reg_valid and clear mips_cprestore_valid.
5301 (s_mips_ent): Clear both flags.
5302 (s_mips_end): Clear both flags.
5304 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5306 * write.c (write_object_file): Make use of bfd_section_list_remove.
5307 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5308 * config/tc-mmix.c (mmix_frob_file): Likewise.
5310 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5312 * configure.in (i386-*-netbsdelf*): Collapse target into...
5313 (i386-*-netbsd*): ...this. Add support for x86-64.
5314 * configure: Regenerated.
5316 2002-01-03 matthew green <mrg@redhat.com>
5318 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5320 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5322 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5325 For older changes see ChangeLog-0001
5331 version-control: never