1 2003-04-30 H.J. Lu <hjl@gnu.org>
3 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
5 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
7 (md_atof): Add 6 byte padding of zero for real16.
9 2003-04-29 Nick Clifton <nickc@redhat.com>
11 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
12 start of a version name.
14 2003-04-28 Chris Demetriou <cgd@broadcom.com>
16 * configure.in (mips-*-*n*bsd*): Replace with...
17 (mips-*-netbsd*, mips-*-openbsd*): These.
18 * configure: Regenerate.
20 2003-04-28 H.J. Lu <hjl@gnu.org>
22 * config/tc-hppa.c (hppa_symbol_chars): New.
23 * config/tc-hppa.h (tc_symbol_chars): Likewise.
25 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
27 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
29 2003-04-25 Chris Demetriou <cgd@broadcom.com>
31 * NEWS: Belatedly mention support for MIPS32 Release 2.
33 2003-04-24 Eric Christopher <echristo@redhat.com>
35 * config/tc-mips.c (nopic_need_relax): Revert previous
38 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
40 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
41 * config/tc-h8300.c (dwarf2dbg.h): Include
42 (md_pseudo_table): Handle .loc and .file
43 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
44 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
45 * Makefile.in: Regenerate.
47 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
49 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
50 (md_pseudo_table): Add h8300hn, h8300sn.
51 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
52 * doc/c-h8300.texi : Add documentation for new machine directives.
54 2003-04-24 Nick Clifton <nickc@redhat.com>
56 * config/tc-ppc.c (ppc_symbol_chars): Define.
57 * config/tc-ppc.h (tc_symbol_chars): Define.
59 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
61 * config/tc-sh.c: Amend comment to refer to SuperH.
62 * config/tc-sh.h: Likewise.
63 (LISTING_HEADER): Amend to refer to SuperH.
64 * config/tc-sh64.c: Change comment to refer to SuperH.
65 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
66 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
67 * doc/c-sh.texi: Amend to refer to SuperH.
68 Add SuperH architecture documentation references.
69 * doc/c-sh64.texi: Change to refer to SuperH.
71 2003-04-23 H.J. Lu <hjl@gnu.org>
73 * app.c (do_scrub_chars): More checks for valid labels.
75 2003-04-22 H.J. Lu <hjl@gnu.org>
77 * app.c (do_scrub_chars): Check for valid label.
79 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
81 * doc/as.texinfo: Replace references to Mitsubishi M32R with
82 references to Renesas M32R.
83 * doc/c-m32r.texi: Likewise.
85 2003-04-21 Richard Henderson <rth@redhat.com>
87 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
88 (out_file_list): Assign non-null filename after generating error.
90 2003-04-18 Jakub Jelinek <jakub@redhat.com>
92 * ehopt.c (check_eh_frame): For aug_size == 0
93 in state_seeing_aug_size state skip the state_skipping_aug
96 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
98 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
100 * doc/c-h8500.texi: Likewise.
101 * doc/c-sh.texi: Likewise.
102 * doc/c-sh64.texi: Likewise.
103 * doc/h8.texi: Likewise.
104 * config/tc-h8300.c: Likewise.
105 * config/tc-h8300.h: Likewise.
106 * config/tc-h8500.c: Likewise.
107 * config/tc-h8500.h: Likewise.
108 * config/tc-sh.c: Likewise.
109 * config/tc-sh.h: Likewise.
110 * config/tc-sh64.c: Likewise.
111 * config/tc-sh64.h: Likewise.
113 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
115 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
116 * config/tc-mips.c: Use signed add for n32 address arithmetic.
117 (append_insn): When filling delay slots with instructions
118 that have fixups that tc_gen_reloc might consider modifyable
119 in variant frags, start a new frag.
120 (load_address): Generate GOT_DISP with of without offset
121 depending on whether symbol is local. For -xgot, use
122 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
123 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
124 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
125 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
126 <ld_st>: In NewABI with small got, always use
127 GOT_PAGE/GOT_OFST, with the latter in the load/store
128 instruction. With big got, use GOT_HI16/GOT_LO16 or
130 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
131 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
132 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
133 (md_convert_frag): Use memmove for safe copying of overlapping
136 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
138 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
139 -mlong, -mshort-double and -mlong-double options; use table @code.
140 (M68HC11-Syntax): Update to document 68HC12 operands.
141 (M68HC11-Modifiers): New section for operand modifiers.
142 (M68HC11-Directives): New section for specific assembler directives.
143 (M68HC11-Branch): Fix Overfull hbox error.
145 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
147 * config/tc-mips.c (macro): Add comments explaining the rationale
150 2003-04-09 Chris Demetriou <cgd@broadcom.com>
152 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
153 constant address that Alexandre took out by accident. Reject
154 64-bit addresses that are not sign extensions of 32 bits only if
155 we don't support 64-bit address constants.
157 2003-04-09 Alan Modra <amodra@bigpond.net.au>
159 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
161 2003-04-08 Nick Clifton <nickc@redhat.com>
163 * as.c (perform_an_assembly_pass): If using cgen, call
165 * cgen.c (gas_cgen_begin): New function. If
166 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
167 otherwise call cgen_clear_signed_overflow_ok.
168 * cgen.h: Prototype gas_cgen_begin.
170 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
172 * write.c (write_relocs): Remove unused variable.
174 2003-04-06 Chris Demetriou <cgd@broadcom.com>
176 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
177 (macro): Use new macro to decide whether to emit constant address
178 as 32 or 64 bits if addresses are 32-bit wide but registers are
181 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
183 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
184 (M6811_OP_PAGE_ADDR): New internal define.
185 (get_operand): New modifier %page and %addr to obtain page and
186 address part of a far-function.
187 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
188 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
190 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
191 (find_opcode): Add comment.
192 (md_estimate_size_before_relax): Force relocation of
193 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
194 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
195 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
196 on the symbol itself so that DWARF2 strings are merged correctly.
198 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
200 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
201 default tic4x target format to 'coff2-tic4x'.
202 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
204 * config/tc-tic4x.h: Ditto
206 2003-04-03 Nick Clifton <nickc@redhat.com>
208 * NEWS: Mention support for Xtensa architecture.
210 2003-04-02 Philip Blundell <philb@gnu.org>
212 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
214 2003-04-02 Chris Demetriou <cgd@broadcom.com>
216 * config/tc-mips.c (macro2): Adjust implementation of
217 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
218 in the case where the source and destination registers
221 2003-04-01 Bob Wilson <bob.wilson@acm.org>
223 * Makefile.am (CPU_TYPES): Add xtensa.
224 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
225 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
226 (xtensa-relax.o): New target.
228 * Makefile.in: Regenerate.
229 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
230 extra_objects for xtensa targets.
231 * configure: Regenerate.
232 * write.c (write_object_file): Add new md_post_relax_hook.
233 * config/tc-xtensa.c: New file.
234 * config/tc-xtensa.h: Likewise.
235 * config/xtensa-istack.h: Likewise.
236 * config/xtensa-relax.c: Likewise.
237 * config/xtensa-relax.h: Likewise.
238 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
239 * doc/Makefile.in: Regenerate.
240 * doc/all.texi: Set new XTENSA variable.
241 * doc/as.texinfo: Set new Xtensa variable. Describe
242 Xtensa-specific options. Define line comment character for
243 Xtensa. Add Xtensa processors to list of ELF targets where
244 alignment is specified in bytes. Add new Xtensa-Dependent node.
245 Add acknowledgements for those contributing to the Xtensa port.
246 * doc/internals.texi: Describe new md_post_relax_hook.
247 * doc/c-xtensa.texi: New file.
250 2003-04-01 Nick Clifton <nickc@redhat.com>
251 Richard Earnshaw <rearnsha@arm.com>
253 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
254 (ARM_ARCH_IWMMXT): Simplify.
255 (insns): Place iwmmx instructions in correct place in table.
256 (arm_add_note): New function: Add a note entry to a .note section.
257 (md_begin): Make the default architecture be unknown.
258 Suppress the creation of an arm note section.
260 2003-03-26 Eric Christopher <echristo@redhat.com>
262 * config/tc-mips.c (nopic_need_relax): Check for
265 2003-03-25 Stan Cox <scox@redhat.com>
266 Nick Clifton <nickc@redhat.com>
268 Contribute support for Intel's iWMMXt chip - an ARM variant:
270 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
271 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
272 (enum wreg_type, enum iwmmxt_insn_type): New types.
273 (wr_register, wc_register, wcg_register): New macros.
274 (iwmmxt_table): New variable.
275 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
276 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
277 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
278 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
279 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
280 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
281 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
282 cp_byte_address_offset, cp_byte_address_required_here,
283 check_iwmmxt_insn): New functions.
284 (asm_opcode_insns): Add iWMMXt instructions.
285 (md_begin): Set the mach value for iWMMXt targets. Create a note
286 section to identify iwmmxt binaries.
287 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
288 * doc/c-arm.texi: Document the support for the iWMMXt.
289 * NEWS: Mention new support.
291 2003-03-24 Daniel Néri <dne@mayonnaise.net>
293 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
294 * doc/all.texi: Likewise.
295 * doc/c-tic54x.texi: Likewise.
297 2003-03-21 Andreas Schwab <schwab@suse.de>
299 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
300 avoid aliasing issue.
302 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
304 * config/tc-s390.c (s390_arch_size): Initialize to zero.
305 (current_arch_mask): Rename to current_mode_mask.
306 (current_arch_requested): Remove variable.
307 (current_cpu): New variable.
308 (init_default_arch): Set defaults values for s390_arch_size,
309 current_mode_mask and current_cpu.
310 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
311 (md_begin): Replace current_arch_mask by current_cpu.
312 (md_assemble): Adapt check and error message to current_mode_mask and
315 2003-03-09 James E Wilson <wilson@tuliptree.org>
317 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
318 * read.c (get_line_sb): Return end of line character or '\n' if
319 it is zero or non-existent.
321 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
323 * config/tc-mips.c (mips_validate_fix): New function.
324 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
325 (mips_validate_fix): Declare.
327 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
329 * Reverted 2003-03-02's patch.
331 2003-03-11 Steve Ellcey <sje@cup.hp.com>
333 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
334 (TC_DWARF2_EMIT_OFFSET): Provide default.
335 (out_debug_aranges, out_debug_info): Use it.
336 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
337 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
338 (ia64_gen_real_reloc_type): ... here.
339 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
341 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
343 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
344 (s_mips_ent): Likewise.
346 2003-03-04 Dmitry Diky <diwil@mail.ru>
348 * config/tc-msp430.c (mcu_types): Add recently announced x1122
349 and x1123 devices, add missed x437.
350 (md_show_usage): Sort device list.
352 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
354 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
355 (md_begin): Use preset_target_arch.
356 (md_longopts): Make isa option unconditional.
357 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
358 set preset_target_arch.
359 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
360 by -S_GET_VALUE (fixP->fx_subsy).
361 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
363 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
364 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
366 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
368 * config/tc-mips.c (append_insn): Add handling of
369 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
370 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
371 misaligned address and reange overflow.
372 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
373 earlier warnings about misaligned address and reange overflow.
374 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
375 (md_apply_fix): Likewise. Fix warning output.
376 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
377 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
378 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
380 2003-02-21 Nick Clifton <nickc@redhat.com>
382 * NEWS: Mention availability of test generator program.
384 2003-02-21 Miles Bader <miles@gnu.org>
386 * config/tc-v850.c (system_registers): Add v850e debug registers.
387 (system_register_name): Accept up to 27 (the last v850e sys register).
389 2003-02-21 Bob Wilson <bob.wilson@acm.org>
391 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
392 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
393 Capitalize section headings consistently. Format index entries more
394 consistently. Unconditionalize text about whether text and data
395 sections are alterable. Use @ifnottex for alternatives to @tex output
396 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
397 .size and .type directives. Be more polite about bad bug reports.
398 Move FDL into a separate file.
399 * doc/fdl.texi: New file.
401 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
403 * config/tc-mips.c (prev_reloc_op_frag): New variable.
404 (macro): Check it to decide whether a new frag is needed.
405 (my_getSmallExpression): Set it.
407 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
409 * cgen.c: Fix typo: intial -> initial.
411 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
413 * app.c (do_scrub_chars): Handle '||' in two states.
415 2003-02-13 Alan Modra <amodra@bigpond.net.au>
417 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
418 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
420 2003-02-11 Uwe Stieber <uwe@wwws.de>
422 * configure.in: Add support for kaOS as cross build target system.
423 * configure: Regenerated.
425 2003-02-10 Nick Clifton <nickc@redhat.com>
427 * config/tc-arm.c (md_begin): If the Maverick co-processor is
428 selected, set the EF_ARM_MAVERICK_FLOAT flag and
429 bfd_mach_arm_ep9312 machine number.
431 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
433 * config/tc-mips.c (reloc_needs_lo_p): New function.
434 (fixup_has_matching_lo_p): New function.
435 (append_insn): Use reloc_needs_lo_p to check whether a relocation
436 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
437 if that fixup already has a matching %lo(). Don't call frag_wane here.
438 (macro): Call frag_wane here if the last unmatched hi was in the
440 (pic_need_relax): New function, split out from...
441 (md_estimate_size_before_relax): ...here.
442 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
443 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
445 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
447 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
449 2003-02-06 Alan Modra <amodra@bigpond.net.au>
451 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
454 2003-02-05 Alan Modra <amodra@bigpond.net.au>
456 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
457 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
458 accept x@got+off etc.
459 (md_assemble): Handle TLS relocs.
460 (ppc_force_relocation): Force for all TLS relocs.
461 (ppc_fix_adjustable): Likewise.
462 (md_apply_fix3): Handle TLS relocs.
464 2003-02-04 Alan Modra <amodra@bigpond.net.au>
466 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
467 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
469 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
471 * config/tc-mips.c (enum small_ex_type): Remove.
472 (imm_unmatched_hi): Remove.
473 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
474 argument from calls to append_insn.
475 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
477 (macro_build): Update append_insn calls.
478 (mips16_macro_build, macro_build_lui): Likewise.
479 (mips_ip): Rework handling of small expressions. Move explicit
480 relocation handling into my_getSmallExpression. Assume that the
481 value of 'o' operands is zero if there is only one bracketed
483 (percent_op): Make constant. Record the BFD relocation code
484 associated with each operator.
485 (my_getSmallParser, my_getPercentOp): Remove.
486 (parse_relocation): New function.
487 (my_getSamllExpression): Rework. Fill in relocations here
488 rather than in mips_ip.
490 2003-01-29 Nick Clifton <nickc@redhat.com>
492 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
493 assembler's handling of # <linenum> "<filename>" directives work.
495 2003-01-28 Jakub Jelinek <jakub@redhat.com>
497 * dwarf2dbg.c: Include filenames.h.
498 (struct file_entry): Make filename const char *.
499 (dirs, dirs_in_use, dirs_allocated): New variables.
500 (get_filenum): Add NUM argument. Build directory table.
501 (dwarf2_where): Adjust caller.
502 (dwarf2_directive_file): Use get_filenum to allocate
503 slot in file and directory tables.
504 (dwarf2_directive_loc): Recreate full filename from
505 directory and filename part if needed for listing.
506 (out_file_list): Output directory table.
507 Output main source file dirname before its filename.
509 2003-01-28 Dmitry Diky <diwil@mail.ru>
511 * config/tc-msp430.c: Replace occurences of 'tolower' with
514 2003-01-27 David Mosberger <davidm@hpl.hp.com>
516 * config/tc-ia64.c (dot_vframesp): Correct error message.
517 (dot_vframepsp): Ditto.
519 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
521 * configure.in (em): Set to irix on all Irix systems.
522 * configure: Rebuilt.
523 * config/te-irix.h: New file.
524 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
525 whether to use Irix-specific 64-bit format.
527 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
529 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
531 2003-01-25 Jakub Jelinek <jakub@redhat.com>
533 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
534 (tc_gen_reloc): Handle TLS relocs.
535 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
536 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
538 * config/obj-elf.c (obj_elf_section_word): Handle tls.
539 (obj_elf_type): Handle tls_object.
541 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
543 * config/tc-s390.c (s390_tls_suffix): New function.
544 (elf_suffix_type): Add suffix enums for TLS relocations.
545 (s390_elf_suffix): Add suffix strings for TLS relocations.
546 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
548 (md_gather_operands): Map new instruction operand/elf suffix
549 combinations for TLS to bfd relocations.
550 (tc_s390_fix_adjustable): Add new TLS relocations.
551 (tc_s390_force_relocation): Likewise.
552 (md_apply_fix3): Likewise.
554 2003-01-24 Alan Modra <amodra@bigpond.net.au>
556 * as.h: Update copyright date.
557 * symbols.c: Likewise.
558 * config/tc-d10v.h: Likewise.
559 * config/tc-fr30.h: Likewise.
560 * config/tc-i960.h: Likewise.
561 * config/tc-mips.h: Likewise.
563 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
564 (MD_APPLY_SYM_VALUE): Move.
566 2003-01-23 Nick Clifton <nickc@redhat.com>
568 NEWS: Announce sh2e support.
572 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
574 * config/tc-sh.c (md_show_usage): Added sh2e next to
576 (sh_elf_final_processing): Handle arch_sh2e.
578 2003-01-23 Alan Modra <amodra@bigpond.net.au>
580 * symbols.c (S_FORCE_RELOC): Add "strict" param.
581 * symbols.h (S_FORCE_RELOC): Likewise.
582 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
583 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
584 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
585 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
586 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
587 * write.c (generic_force_reloc): New function.
588 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
589 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
590 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
591 * as.h (generic_force_reloc): Declare.
592 * doc/internals.texi (S_FORCE_RELOC): Update.
593 (TC_FORCE_RELOCATION_SUB_SAME): Update.
595 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
597 (alpha_fix_adjustable): Likewise.
598 * config/tc-arm.c (arm_force_relocation): Likewise.
599 * config/tc-cris.c (md_cris_force_relocation): Likewise.
600 * config/tc-frv.c (frv_force_relocation): Likewise.
601 * config/tc-i386.c (md_apply_fix3): Likewise.
602 * config/tc-ia64.c (ia64_force_relocation): Likewise.
603 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
604 * config/tc-m32r.c (m32r_force_relocation): Likewise.
605 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
606 * config/tc-mcore.c (mcore_force_relocation): Likewise.
607 * config/tc-mips.c (mips_force_relocation): Likewise.
608 * config/tc-mmix.c (mmix_force_relocation): Likewise.
609 * config/tc-ppc.c (ppc_force_relocation): Likewise.
610 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
611 * config/tc-sh.c (sh_force_relocation): Likewise.
612 (md_pcrel_from_section): Likewise.
613 * config/tc-sparc.c (tc_gen_reloc): Likewise.
614 * config/tc-v850.c (v850_force_relocation): Likewise.
615 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
616 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
617 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
618 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
620 * config/tc-d10v.c (d10v_force_relocation): Delete.
621 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
622 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
623 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
624 * config/tc-fr30.c (fr30_force_relocation): Delete.
625 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
626 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
627 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
628 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
629 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
630 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
631 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
632 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
633 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
634 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
635 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
636 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
637 * config/tc-i386.c (i386_force_relocation): Delete.
638 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
640 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
641 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
642 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
643 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
645 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
646 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
648 2003-01-23 Alan Modra <amodra@bigpond.net.au>
650 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
651 sh64_elf_section_data.
652 * config/tc-sh64.h: Include elf32-sh64.h.
653 * config/tc-m68hc11.c: Don't include stdio.h.
654 (md_show_usage): Fix missing continuation.
655 * Makefile.am: Run "make dep-am".
656 * Makefile.in: Regenerate.
658 2003-01-22 Nick Clifton <nickc@redhat.com>
660 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
662 2003-01-21 Fabio Alemagna <falemagn@aros.org>
664 * configure.in: Handle *-*-aros*.
665 * configure: Regenerated from configure.in.
667 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
669 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
670 gotplt and pltoff relocations.
671 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
672 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
673 gotplt and pltoff to bfd relocations.
674 (md_gather_operands): Map new instruction operand/elf suffix
675 combinations to bfd relocations.
676 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
677 to the list of unadjustable relocations.
678 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
679 and pltoff relocations.
680 (md_apply_fix3): Add the new relocations.
682 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
684 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
687 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
689 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
690 of relocs for memory bank addressing.
692 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
694 * config/tc-m68hc11.c (md_show_usage): Update usage.
695 (md_parse_option): Recognize -m68hcs12.
696 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
698 * doc/as.texinfo (Overview): Document new option -m68hcs12.
700 2003-01-16 Jakub Jelinek <jakub@redhat.com>
702 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
704 2003-01-16 Alan Modra <amodra@bigpond.net.au>
706 * Makefile.am: Run "make dep-am".
707 * Makefile.in: Regenerate.
708 * po/POTFILES.in: Regenerate.
710 2003-01-11 Alan Modra <amodra@bigpond.net.au>
712 * read.c (get_absolute_expr): New, split out from..
713 (get_absolute_expression): ..here.
714 * read.h (get_absolute_expr): Declare.
715 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
716 Trim size to arch bits_per_address, and test for negative input
717 via get_absolute_expr.
719 2003-01-07 DJ Delorie <dj@redhat.com>
721 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
723 (xstormy16_md_apply_fix3): Use adjustment.
725 2003-01-02 Ben Elliston <bje@redhat.com>
727 * configure.in: Add iq2000-elf target.
728 * configure: Regenerate.
729 * config/tc-iq2000.c: New file.
730 * config/tc-iq2000.h: Likewise.
731 * po/gas.pot: Regenerate.
733 2003-01-02 Chris Demetriou <cgd@broadcom.com>
735 * config/tc-mips.c: Update copyright years to include 2003.
736 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
737 Additionally, clean up their code slightly and clean up their
740 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
742 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
744 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
746 * doc/Makefile.in: Regenerate.
748 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
750 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
751 of .init and .fini sections for array initializers and finalizers.
753 2002-12-31 Chris Demetriou <cgd@broadcom.com>
755 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
756 the "+D" operand, which will be used only by the disassembler.
758 2002-12-30 Chris Demetriou <cgd@broadcom.com>
760 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
762 * configure: Regenerate.
763 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
764 (macro_build): Handle "K" operand.
765 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
766 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
767 (mips_ip): New variable "lastpos", and implement "+A", "+B",
768 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
769 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
770 (validate_mips_insn): Implement "+" as a way to extend the
771 allowed operands, and implement "K", "+A", "+B", and "+C"
773 (OPTION_MIPS32R2): New define.
774 (md_longopts): Add entry for OPTION_MIPS32R2.
775 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
776 (md_parse_option): Handle OPTION_MIPS32R2.
777 (s_mipsset): Reimplement handling of ".set mipsN" options
778 and add support for ".set mips32r2".
779 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
780 (md_show_usage): Document "-mips32r2" option.
781 * doc/as.texinfo: Document "-mips32r2" option.
782 * doc/c-mips.texi: Likewise.
784 2002-12-30 Dmitry Diky <diwil@mail.ru>
786 * configure.in: Add msp430 target.
787 * configure: Regenerate.
788 * Makefile.am: Add msp430 target.
789 * Makefile.in: Regenerate.
790 * config/tc-msp430.c: New file: msp430 assembler.
791 * config/tc-msp430.h: New file: target macros for msp430.
792 * doc/Makefile.am: Add msp430 target.
793 * doc/Makefile.in: Regenerate.
794 * doc/as.texinfo: Include msp430 documenation.
795 * doc/all.texi: Enable msp430 documentation.
796 * doc/c-msp430.texi: New file: document msp430 specific features
799 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
801 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
802 (dwarf2_finish): Use it.
803 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
804 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
806 2002-12-20 DJ Delorie <dj@redhat.com>
808 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
809 BFD_RELOC_XSTORMY16_12.
811 2002-12-19 Alan Modra <amodra@bigpond.net.au>
813 * doc/as.texinfo (Invoking): Typo fix.
814 * config/tc-tic54x.c (encode_operand): Comment typo fix.
816 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
818 * doc/c-alpha.texi: Fix typos.
819 * doc/c-arm.texi: Likewise.
820 * doc/c-d10v.texi: Likewise.
821 * doc/c-i370.texi: Likewise.
822 * doc/c-i960.texi: Likewise.
823 * doc/c-ia64.texi: Likewise.
824 * doc/c-mmix.texi: Likewise.
825 * doc/c-ns32k.texi: Likewise.
826 * doc/c-pdp11.texi: Likewise.
827 * doc/c-pj.texi: Likewise.
828 * doc/c-sh64.texi: Likewise.
829 * doc/c-sparc.texi: Likewise.
830 * doc/c-tic54x.texi: Likewise.
831 * doc/c-v850.texi: Likewise.
832 * doc/c-vax.texi: Likewise.
833 * doc/internals.texi: Likewise.
835 2002-12-18 Chris Demetriou <cgd@broadcom.com>
837 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
838 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
839 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
840 arrange not to issue warnings about use of AT when AT is not
843 2002-12-17 Nick Clifton <nickc@redhat.com>
845 * as.c (std_longopts): Duplicate --keep-locals entry in order to
846 prevent it being confused with -k.
848 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
850 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
851 has already been set up, use it.
853 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
855 * ChangeLog-9295: Fix a typo.
857 * config/tc-d10v.c: Fix a comment typo.
858 * config/tc-dlx.c: Likewise.
859 * config/tc-h8300.h: Likewise.
860 * config/tc-h8500.h: Likewise.
861 * config/tc-mips.c: Likewise.
862 * config/tc-s390.c: Likewise.
863 * config/tc-sh.h: Likewise.
864 * config/tc-tic80.h: Likewise.
865 * config/tc-w65.h: Likewise.
866 * config/tc-z8k.c: Likewise.
867 * config/tc-z8k.h: Likewise.
868 * testsuite/gas/h8300/cmpsi2.s: Likewise.
870 2002-12-16 Alan Modra <amodra@bigpond.net.au>
872 * config/tc-d30v.c (check_range): Warning fixes, formatting.
873 Simplify sign extension. Remove redundant unsigned < 0 test.
874 * config/tc-i960.c (md_ri_to_chars): Prototype.
875 * config/tc-mcore.c (md_pseudo_table): Fix typo.
876 (dump_literals): Init brarsym, and test later instead of isforce.
878 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
879 (parse): Constify line and lineptr.
880 (md_begin): Calculate endop here.
882 2002-12-13 Alan Modra <amodra@bigpond.net.au>
884 * config/obj-vms.c: Formatting. Include fnctl.h.
885 (Create_VMS_Object_File): Fix creat call for sane unix systems.
886 (Object_Record_Offset): Make it a size_t.
887 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
888 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
889 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
890 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
891 (vms_fixup_data_section <data_size>): Add here instead.
892 * config/e-criself.c: Fix typo in last change.
894 2002-12-13 Alan Modra <amodra@bigpond.net.au>
896 * write.c (write_object_file): Fix signed/unsigned warning.
897 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
898 * config/e-criself.c (criself_bfd_name): Prototype.
899 * config/obj-aout.c (s_sect): Remove unused function.
900 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
901 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
902 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
903 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
904 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
905 (VMS_RSYM_Parse <Current_Routine>): Likewise.
906 (vms_fixup_text_section <text_siz>): Likewise.
907 (synthesize_data_segment <data_size>): Likewise.
908 (vms_fixup_xtors_section <sect_no>): Likewise.
909 (structure_count): Don't use implicit int type.
910 * config/tc-a29k.c (insert_sreg): Prototype.
911 (define_some_regs): Prototype, make static.
912 (parse_operand): Likewise.
913 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
914 (md_show_usage <stream>): Likewise.
915 (md_section_align <segment>): Likewise.
916 (md_convert_frag <all args>): Likewise.
917 (md_estimate_size_before_relax <all args>): Likewise.
918 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
919 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
920 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
921 (md_undefined_symbol <name>): Likewise.
922 (md_convert_frag <all args>): Likewise.
923 (write_long <opcode>): Likewise.
924 (tc_gen_reloc <seg>): Likewise.
925 (md_estimate_size_before_relax <all args>): Likewise.
926 (md_apply_fix3 <seg>): Likewise.
927 (s_d30v_align <ignore>): Likewise.
928 (build_insn): Correct format string.
929 (md_apply_fix3): Likewise.
930 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
931 (md_undefined_symbol <name>): Likewise.
932 (md_convert_frag <all args>): Likewise.
933 (md_cgen_lookup_reloc <insn>): Likewise.
934 (md_begin): Delete unused vars.
935 (md_assemble): Likewise.
936 (md_estimate_size_before_relax): Likewise.
937 (fr30_relax_frag): #if 0 out, seems unused.
938 (md_atof): Remove declaration of atof_ieee.
939 (restore_colon): Prototype.
940 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
941 (frv_find_in_vliw): Likewise.
942 (frv_debug_tomcat): Likewise.
943 (frv_adjust_vliw_count): Likewise.
944 (frv_tomcat_shuffle): Likewise.
945 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
946 frv_find_in_vliw call.
947 (md_atof): Remove declaration of atof_ieee.
948 * config/tc-h8500.c (cons): Delete declaration.
949 (md_begin <opcode>): Constify.
950 (displacement_size, immediate_size, absolute_size): Remove.
951 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
952 (tc_crawl_symbol_chain <headers>): Likewise.
953 (md_undefined_symbol <name>): Likewise.
954 (tc_headers_hook <headers>): Likewise.
955 (md_parse_option <c,arg>): Likewise.
956 (md_show_usage <stream>): Likewise.
957 (md_convert_frag <headers, seg>): Likewise.
958 (tc_coff_symbol_emit_hook <ignore>): Likewise.
959 (md_atof): Remove declaration of atof_ieee.
960 (tc_aout_fix_to_chars): Remove unused function.
961 (parse_reg): Prototype.
962 (parse_exp): Prototype.
963 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
964 (parse_reglist): Prototype.
965 (get_operand): Prototype.
966 (get_operands): Prototype.
967 (get_specific): Prototype. Make "this_index" signed.
968 (check): Prototype, make static.
970 (build_relaxable_instruction): Prototype, make static.
971 (build_bytes): Prototype.
972 (wordify_scb): Prototype.
973 * config/tc-h8500.h (start_label): Declare.
974 (tc_coff_sizemachdep): Declare.
975 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
976 (i370_rmode <unused>): Likewise.
977 (i370_csect <unused>): Likewise.
978 (i370_dc <unused>): Likewise.
979 (i370_ds <unused>): Likewise.
980 (i370_elf_lcomm <unused>): Likewise.
981 (i370_ltorg <ignore>): Likewise.
982 (i370_using <ignore>): Likewise.
983 (i370_drop <ignore>): Likewise.
984 (i370_byte <ignore>): Likewise.
985 (i370_tc <ignore>): Likewise.
986 (md_estimate_size_before_relax <fragp, seg>): Likewise.
987 (md_convert_frag <all args>): Likewise.
988 (md_undefined_symbol <name>): Likewise.
989 (md_pcrel_from_section <sec>): Likewise.
990 (tc_gen_reloc <seg>): Likewise.
991 (i370_section_letter): #if 0 unused functions.
992 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
993 (symbol_locate): Prototype.
994 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
995 (md_number_to_disp, md_number_to_field): Remove.
996 (md_apply_fix3): Correct format string and cast "fup".
997 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
998 (s_endian <ignore>): Likewise.
999 (md_undefined_symbol <name>): Likewise.
1000 (tc_crawl_symbol_chain <headers>): Likewise.
1001 (tc_set_bal_of_call): Likewise.
1002 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1003 (i960_handle_align <fragp>): Likewise.
1004 (i960_validate_fix <this_segment_type>): Likewise
1005 (tc_gen_reloc <section>): Likewise.
1006 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1007 (struct memS, struct regop): Forward declare.
1008 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1009 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1010 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1011 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1012 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1013 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1014 (md_number_to_field): Likewise.
1015 (md_number_to_disp): Remove unused function.
1016 (md_atof): Remove declaration of atof_ieee.
1017 (md_apply_fix3): Correct md_number_to_imm call.
1018 * config/tc-ip2k.c (md_assemble): Warning fix.
1019 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1020 (fill_insn <ignore>): Likewise.
1021 (debug_sym <ignore>): Likewise.
1022 (md_undefined_symbol <name>): Likewise.
1023 (m32r_scomm <ignore>): Likewise.
1024 (md_convert_frag <abfd>): Likewise.
1025 (md_cgen_lookup_reloc <insn>): Likewise.
1026 (m32r_record_hi16 <seg>): Likewise.
1027 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1028 (allow_m32rx): Prototype.
1029 (first_writes_to_seconds_operands): Prototype.
1030 (writes_to_pc): Prototype.
1031 (can_make_parallel): Prototype.
1032 (make_parallel): Prototype.
1033 (target_make_parallel): Prototype.
1034 (assemble_two_insns): Prototype.
1035 (m32r_record_hi16): Prototype.
1036 (md_atof): Remove declaration of atof_ieee.
1037 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1038 (m32r_force_relocation): Prototype.
1039 (m32r_elf_section_change_hook): Prototype.
1040 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1041 (md_show_usage): Fix signed/unsigned warning.
1042 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1043 (calcop): Ditto for reg_prefix var.
1044 (hexval): Add cast to fix signed/unsigned warning.
1045 (md_number_to_disp): Delete unused function.
1046 (md_number_to_field): Likewise.
1047 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1048 (match_name): Prototype.
1049 (get_bf2): Prototype.
1050 (get_bf_offset_expression): Prototype.
1051 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1052 (md_undefined_symbol <ignore>): Likewise.
1053 (md_create_short_jump <all args>): Likewise.
1054 (md_create_long_jump <all args>): Likewise.
1055 (md_convert_frag <abfd, sec>): Likewise.
1056 (md_apply_fix3 <segment>): Likewise.
1057 (md_section_align <segment>): Likewise.
1058 (md_pcrel_from_section <sec>): Likewise.
1059 (tc_gen_reloc <section>): Likewise.
1060 (reg_m, reg_n, immediate): Delete unused vars.
1061 (dump_literals): Fix signed/unsigned warning.
1062 (enter_literal): Likewise.
1063 (parse_imm): Likewise. Also fix format string.
1064 (parse_mem): Remove unused var.
1065 (md_assemble <LS>): Abort on unexpected inst.
1066 (md_atof): Remove declaration of atof_ieee.
1067 (md_parse_option): Remove unused vars.
1068 (md_apply_fix3): Fix format strings, cast args.
1069 (tc_gen_reloc): Delete unused var.
1070 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1071 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1072 (md_undefined_symbol <name>): Likewise.
1073 (md_convert_frag <abfd>): Likewise.
1074 (tc_gen_reloc <seg>): Likewise.
1075 (check_operand <insn>): Likewise.
1076 (md_convert_frag): Fix format strings.
1077 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1078 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1079 (md_atof): Remove declaration of atof_ieee.
1080 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1081 (md_apply_fix3): Fix bogus >>='s.
1082 (md_undefined_symbol): Delete unused var.
1083 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1084 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1085 (fake_opcode): Adjust for pj_opc_int_t change.
1086 (md_begin): Likewise.
1087 (md_assemble): Likewise.
1088 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1089 instead of non-existent third arg of parse_exp_save_ilp.
1090 (md_parse_option): Correct "little" and "big" calls.
1091 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1092 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1093 (tc_gen_reloc <section>): Likewise.
1094 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1095 (debug): Rewrite using VA_* macros.
1096 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1097 (md_convert_frag): Likewise.
1098 (md_parse_option): Likewise.
1099 (md_show_usage): Likewise.
1100 (md_undefined_symbol): Likewise.
1101 (tc_gen_reloc): Likewise.
1102 (md_operand): Likewise.
1103 (tc_aout_pre_write_hook): Delete.
1104 (struct tic30_insn): Make "operands" unsigned.
1105 (struct tic30_par_insn): Likewise.
1106 (md_assemble): Likewise for "count", "i" and "numops".
1107 (tic30_parallel_insn): Likewise for vars here.
1108 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1109 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1110 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1111 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1112 (md_undefined_symbol): Likewise.
1113 (md_parse_option): Likewise.
1114 (md_convert_frag): Likewise.
1115 (tc_coff_symbol_emit_hook): Likewise.
1116 (md_atof): Remove declaration of atof_ieee.
1117 (const_overflow): Warning fixes, tidy.
1118 (get_operands): Delete unused vars.
1119 (internal_error_a): Adjust format string to expect a long for arg.
1120 (find_opcode): Warning fixes, simplify.
1121 (build_insn): Cast internal_error_a arg.
1122 (md_begin): Likewise.
1123 (md_apply_fix3): Likewise.
1124 (md_assemble): Delete unused var.
1125 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1126 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1127 (whatreg, parse_reg, parse_exp): Make static, prototype.
1128 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1129 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1130 (get_operand, get_operands, get_specific, newfix): Likewise.
1131 (apply_fix, build_bytes): Likewise.
1132 (md_atof): Remove declaration of atof_ieee.
1133 (tc_aout_fix_to_chars): Delete.
1134 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1136 (md_parse_option): Fix s_segm and s_unseg calls.
1138 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1140 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1142 (RELAX_BRANCH_RELOC_S2): Delete.
1143 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1144 Do not handle BFD_RELOC_16_PCREL.
1145 (macro_build, mips_ip): Likewise.
1146 (md_pcrel_from): Return 4 for undefined symbols regardless of
1148 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1149 Don't dereference howto if no such relocation is available.
1150 Do not apply hack for in-place zero addend in NEWABI.
1151 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1153 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1154 Alan Modra <amodra@bigpond.net.au>
1156 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1157 (TC_LINKRELAX_FIXUP): Add comments.
1159 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1161 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1163 (r_register_name, xr_register_name): Add prototype declarations.
1165 2002-12-08 H.J. Lu <hjl@gnu.org>
1167 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1168 copied from tc-i386.c.
1170 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1172 Fix Bug savannah/1825:
1173 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1174 (md_relax_table): Define specific relax for PC-rel offsets.
1175 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1176 (m68hc11_relax_frag): Handle the new relax code.
1177 (md_convert_frag): Likewise.
1178 (md_estimate_size_before_relax): Likewise.
1180 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1182 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1184 2002-12-05 Richard Henderson <rth@redhat.com>
1186 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1187 (ia64_gen_real_reloc_type): Handle it.
1188 (pseudo_func): Add @ltoffx.
1189 (md_begin): Build .<ltoffx>.
1190 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1192 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1194 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1195 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1196 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1197 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1198 COFF to call arm_force_relocation.
1200 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1202 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1204 (emit_one_bundle): Handle "hint" instruction.
1205 (operand_match): Match IA64_OPND_AR_CSD.
1207 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1209 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1212 2002-12-03 Nick Clifton <nickc@redhat.com>
1214 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1215 .PPC.EMB.apuinfo sections.
1217 2002-12-03 Richard Henderson <rth@redhat.com>
1219 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1221 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1223 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1224 (cons, s_align_bytes): Delete declaration.
1226 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1228 (dot): Delete unused function.
1229 (w65_expression): Remove unused arg.
1230 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1232 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1234 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1236 (check): Remove unused function.
1237 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1238 on unhandled switch case.
1239 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1241 (tc_crawl_symbol_chain): Delete unused function.
1242 (tc_headers_hook): Likewise.
1243 (tc_Nout_fix_to_chars): Likewise.
1244 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1245 (md_parse_option): Likewise.
1246 (md_convert_frag): Likewise.
1247 (tc_coff_symbol_emit_hook): Likewise.
1248 (md_show_usage): Likewise.
1249 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1250 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1251 (w65_expression): Declare.
1253 * po/POTFILES.in: Regenerate.
1255 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1256 and ARM_ADRL_IMMEDIATE.
1258 2002-12-02 Nick Clifton <nickc@redhat.com>
1260 * gasp.c: Delete. It has been deprecated.
1261 * NEWS: Mention that gasp has been removed.
1262 * Makefile.am: Remove references to gasp.
1263 * makefile.vms: Likewise.
1264 * mpw-make.sed: Likewise.
1265 * Makeile.in: Regenerate.
1266 * doc/gasp.texi: Delete.
1267 * doc/Makefile.am: Remove references to gasp.texi.
1268 * doc/Makefile.in: Regenerate.
1269 * macro.c: Delete references to gasp.
1270 Remove use of comment_char function parameter as it is no longer
1272 * macro.h: Update prototypes to remove comment_char parameter.
1274 * read.c (read_a_source_file, s_irp): Remove comment_char
1275 parameter from invocation of functions in macro.c
1277 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1279 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1281 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1283 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1284 (tc_gen_reloc): Mark section param as not used.
1286 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1288 Fix Bug savannah/1825:
1289 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1290 that are not pc-relative.
1291 (m68hc11_relax_frag): Declare.
1293 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1294 the offsetable indexed addressing modes (n,r).
1295 (build_insn): Cleanup some locals.
1296 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1297 relaxation of difference between two symbols of same section.
1298 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1299 only when this is a PC-relative operand and the offset is not absolute.
1300 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1301 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1302 be handled by m68hc11_relax_frag.
1304 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1306 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1307 (32-bit int, 64-bit double).
1308 (md_longopts): New options -mshort, -mlong, -mshort-double and
1309 -mlong-double to control the ABI.
1310 (md_show_usage): Update.
1311 (md_parse_option): Handle new options.
1312 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1314 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1316 * symbols.c (report_op_error): New function, broken out of ...
1317 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1320 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1322 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1323 for BFD_RELOC_32_PLT_PCREL.
1325 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1327 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1328 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1329 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1330 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1331 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1332 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1333 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1334 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1335 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1336 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1337 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1338 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1339 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1340 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1341 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1342 TRUE/FALSE. Formatting.
1344 2002-11-29 Nick Clifton <nickc@redhat.com>
1346 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1347 assume a value of zero.
1348 (do_bkpt): Likewise.
1350 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1352 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1353 for TLS relocations.
1355 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1357 * config/tc-ia64.c (md_apply_fix3): Add default case.
1359 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1361 * symbols.c (S_SET_THREAD_LOCAL): New function.
1362 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1363 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1364 for TLS relocations.
1365 * config/tc-ia64.c (md_apply_fix3): Likewise.
1366 * config/tc-alpha.c (md_apply_fix3): Likewise.
1368 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1370 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1373 2002-11-26 DJ Delorie <dj@redhat.com.
1375 * dwarf2dbg.c (scale_addr_delta): New.
1376 (size_inc_line_addr): Use it.
1377 (emit_inc_line_addr): Use it.
1379 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1381 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1382 (md_assemble): Don't pass on branches to constants as relaxable.
1385 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1387 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1389 2002-11-21 Randolph Chung <randolph@tausq.org>
1391 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1392 only if they have default visibility.
1394 2002-11-21 Richard Henderson <rth@redhat.com>
1396 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1399 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1401 * config/tc-mcore.c (mcore_pool_count): New function.
1402 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1404 2002-11-20 Klee Dienes <kdienes@apple.com>
1406 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1407 coalesce the name fields to use the same pointer.
1409 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1410 the name fields to use the same pointer.
1411 (get_specific): Check for opcodes with the same name using strcmp
1412 as well as comparing the pointer.
1414 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1416 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1419 2002-11-19 Richard Henderson <rth@redhat.com>
1421 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1422 visibility portion of st_other.
1424 2002-11-19 Klee Dienes <kdienes@apple.com>
1426 * config/tc-h8300.c (struct h8_instruction): New type, used to
1427 wrap h8_opcodes with length, noperands, idx, and size fields
1428 (computed at run-time).
1429 (h8_instructions): New variable.
1430 (md_begin): Allocate the storage for h8_instructions. Fill
1431 h8_instructions with pointers to the appropriate opcode and the
1432 correct value for the additional fields.
1433 (clever_message): Update to use h8_instructions instead of
1435 (build_bytes): Ditto.
1436 (get_specific): Ditto.
1437 (md_assemble): Ditto.
1439 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1441 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1442 adjustments to symbols in merge sections.
1444 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1446 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1448 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1450 * dwarf2dbg.h (dwarf2_format): New enum.
1451 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1452 (out_debug_line, out_debug_info): Add code for handling 64-bit
1454 * config/tc-mips.h (mips_dwarf2_format): Declare.
1455 * config/tc-mips.c (mips_dwarf2_format): New function.
1456 * doc/internals.texi (DWARF2_FORMAT): Document.
1458 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1460 * config/tc-mips.c (s_change_section): Make sure input buffer
1461 is not accessed past the end. Don't hand
1462 obj_elf_change_section a pointer into the input buffer.
1464 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1466 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1469 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1471 * config/tc-tic4x.c: Fixed proper commandline
1472 parameters. Added support for new opcode-list format. General
1473 error message fixups.
1474 (c4x_inst_add): Reject insn not for our CPU
1475 (md_begin): Added matrix for setting the proper opcode-level &
1476 device-flags according to cpu type and revision. Rewrite the
1478 (c4x_operand_parse): Fix opcode bug
1479 (c4x_operands_match): New function argument. Added dry-run
1480 mechanism, that is optional error generation. Added constraint 'i'
1482 (c4x_insn_check): Added new function for post-verification of the
1484 (md_assemble): Check all opcodes before croaking because of an
1485 argument mismatch. Need this to be able to fully support
1486 ortogonally arguments.
1487 (md_parse_options): Revised commandprompt swicthes and added new
1489 (md_show_usage): Complete rewrite of printout.
1491 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1493 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1494 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1495 warning when using constant direct bigger than 2^16. Add the new
1498 2002-11-11 Christopher Faylor <cgf@redhat.com>
1500 * configure.in: Use .gdbinit under Cygwin.
1501 * configure: Regenerate.
1503 2002-11-11 Christopher Faylor <cgf@redhat.com>
1505 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1508 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1510 * config/tc-tic4x.c: Declare as many functions as possible as
1511 static. Maintenance on the general indenting. Removed unnecessary
1512 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1513 function. Add support for new DSP, TMS320VC33. Fix bug for
1514 converting flonum constants.
1515 (c4x_do_align): Add proper align handling. Setup align to insert
1517 (c4x_gen_to_words): Support for extended TI type floats.
1518 (md_atof): Proper dumping of multiple-word littlenums.
1519 (c4x_atof): Added support for extended TI type floats.
1520 (c4x_stringer): Added new function to handle compact strings.
1521 (c4x_emit_char): Added new function argument to handle custom
1522 length inserts, like single-byte strings.
1523 * config/tc-tic4x.h: Add proper align handling with NOP's.
1524 * Makefile.am: Added tic4x dependecy
1525 * Makefile.in: Regenerate
1527 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1529 * macro.c (get_any_string): Correct logic for not going beyond end
1532 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1534 * config/tc-mmix.c (get_putget_operands): Mark both possible
1535 operands as invalid at beginning.
1537 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1538 Initialize target of fixup to zero.
1540 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1542 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1543 NEWABI, but we should still emit HI16_S for non-PIC n32.
1545 2002-11-06 Richard Henderson <rth@redhat.com>
1547 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1548 (alpha_fix_adjustable): ... here.
1549 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1551 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1553 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1556 2002-11-05 H.J. Lu <hjl@gnu.org>
1558 * config/tc-mips.c (support_64bit_objects): Check *l before it
1561 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1563 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1564 SEC_LOAD flags for sections marked as 's'.
1566 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1568 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1569 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1570 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1573 * dep-in.sed: Fix typo.
1575 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1577 * configure.in: Update ARM CPU patterns.
1578 * configure: Regenerated.
1580 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1582 * itbl-lex.l: Use #include <> for generated headers.
1583 * itbl-ops.c: Likewise.
1585 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1587 * doc/gasp.texi: Fix typo in deprecation note.
1589 2002-10-23 Nick Clifton <nickc@redhat.com>
1591 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1592 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1594 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1596 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1597 (tc_frob_file_before_adjust): Don't define.
1598 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1600 (mmix_frob_file_before_adjust): Remove ineffective function.
1602 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1604 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1605 (cris_relax_frag): New function.
1606 (md_estimate_size_before_relax) <case ENCODE_RELAX
1607 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1608 expressions that will become absolute expressions to relaxation.
1609 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1610 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1611 value, not distance to symbol.
1612 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1613 Ditto. Correct placement of fixup.
1614 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1616 * config/tc-cris.h (cris_relax_frag): Declare.
1617 (md_relax_frag): Define.
1619 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1621 * config/obj-elf.c (special_sections): Use correct types for init
1623 (obj_elf_change_section): Don't mess with init array section type.
1625 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1627 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1628 for relocs against symbols in a merged section.
1630 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1632 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1633 table as register names.
1635 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1637 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1640 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1642 * expr.c (operand): Add support for n.nn flonums.
1644 2002-10-17 Johannes Stezenbach <js@convergence.de>
1646 * itbl-parse.y (entry): Provide empty action.
1648 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1650 * configure.in (BFDVER_H): Set and subst.
1651 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1652 * Makefile.am: Run "make dep-am".
1654 * configure: Regenerate.
1655 * Makefile.in: Regenerate.
1656 * doc/Makefile.in: Regenerate.
1658 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1660 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1661 (MD_APPLY_SYM_VALUE): Define for PE too.
1663 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1665 * Makefile.am: Run "make dep-am".
1666 (CPU_OBJ_VALID): sh64 coff is invalid.
1667 * as.c: #include "bfdver.h".
1668 * Makefile.in: Regenerate.
1669 * config.in: Regenerate.
1671 2002-10-14 Momchil Velikov <velco@fadata.bg>
1673 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1675 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1677 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1678 * configure: Regenerate.
1680 2002-10-13 Eric Christopher <echristo@redhat.com>
1681 Alexandre Oliva <aoliva@redhat.com>
1683 * config/tc-mips.c (s_gpdword): New function.
1684 (mips_pseudo_table): Add .gpdword.
1685 (mips_need_elf_addend_fixup): never for NEWABI.
1686 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1688 (s_cpadd): Generate .cpadd on NEWABI.
1690 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1692 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1694 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1696 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1697 (md_relax_frag): Adjust macro.
1698 * config/tc-mips.c (mips_relax_branch): New variable.
1699 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1700 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1701 (RELAX_MIPS16_P): Adjust.
1702 (append_insn): Emit branch to non-constant in a frag_var if
1703 branch-relaxation is desirable and possible.
1704 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1705 (OPTION_ELF_BASE): Adjust.
1706 (md_parse_option): Handle new options.
1707 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1709 (relaxed_branch_length): New function.
1710 (md_estimate_size_before_relax): Handle branch frags.
1711 (mips_relax_frag): Likewise.
1712 (md_convert_frag): Handle branch frags. Warn if branch is
1715 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1717 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1719 (md_apply_fix3): Add TLS relocs.
1720 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1723 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1724 Alan Modra <amodra@bigpond.net.au>
1726 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1727 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1729 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1731 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1734 2002-10-09 Richard Shann <richard.shann@superh.com>
1735 Stephen Clarke <stephen.clarke@superh.com>
1737 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1740 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1742 * contig/tc-sh.c (sh_local_pcrel): New.
1743 (sh_force_relocation): Use sh_local_pcrel.
1744 (md_pcrel_from_section): Check the relocation type whether it
1745 should be resolved locally. Use S_FORCE_RELOC.
1747 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1749 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1750 (TC_FORCE_RELOCATION): Tidy arg.
1752 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1753 Ken Raeburn <raeburn@cygnus.com>
1754 Aldy Hernandez <aldyh@redhat.com>
1755 DJ Delorie <dj@redhat.com>
1756 Michael Meissner <meissner@redhat.com>
1757 Eric Christopher <echristo@redhat.com>
1758 Richard Sandiford <rsandifo@redhat.com>
1760 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1761 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1762 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1763 (hilo_interlocks): True for CPU_VR5500.
1764 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1765 (mips_fix_vr4122_bugs): New.
1766 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1767 (mips_emit_delays): Likewise.
1768 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1769 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1770 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1771 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1772 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1773 (OPTION_ELF_BASE): Bump.
1774 (md_parse_option): Handle the new options.
1775 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1778 2002-09-29 H.J. Lu <hjl@gnu.org>
1780 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1781 twice if howto->pcrel_offset is true.
1783 2002-09-28 Matt Thomas <matt@3am-software.com>
1784 Jason Thorpe <thorpej@wasabisystems.com>
1786 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1787 convert undefined references to GOT32/PLT32 if PIC code is
1788 requested. Fix comment.
1790 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1792 * config/tc-sh.c (sh_force_relocation): Return 0 for
1793 some PC relative relocations when not relaxing.
1795 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1797 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1798 Define them if not BFD_ASSEMBLER.
1799 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1801 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1802 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1803 (tc_gen_reloc): Handle x86-64 TLS relocs.
1805 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1807 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1808 fixups to current or absolute section.
1810 2002-09-26 Jim Wilson <wilson@redhat.com>
1812 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1815 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1817 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1818 capable configuration.
1819 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1821 (mips_ip): Likewise.
1823 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1825 * config/tc-mips.c (append_insn): Fix jump overflow check.
1827 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1829 * config/tc-i386.c (process_operands): Warn about "lea" segment
1832 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1834 * write.c: Delete set_segment_vma and prototype. Update all callers.
1836 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1838 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1839 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1840 Rename "fseg" to "sym_seg".
1841 * Makefile.am: Run "make dep-am".
1842 * Makefile.in: Regenerate.
1843 * doc/Makefile.in: Regenerate.
1845 2002-09-20 Nick Clifton <nickc@redhat.com>
1847 * symbols.c (colon): Do not allow symbols to be created in the
1848 absolute section if WORKING_DOT_WORD is not defined and
1849 new_broken_words would require a new frag to be created.
1851 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1853 * expr.c (expr): Simplify foo-foo here.
1854 (clean_up_expression): Remove O_subtract code.
1856 * write.h (struct fix): Add fx_dot_value.
1857 (dot_value): Declare.
1858 * write.c (dot_value): New var.
1859 (fix_new_internal): Save dot_value as fx_dot_value.
1860 (fixup_segment): Adjust fx_offset using fx_dot_value.
1861 * expr.c (expr): Update dot_value.
1863 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1865 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1866 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1867 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1869 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1870 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1871 BFD_RELOC_386_TLS_GOTIE.
1873 2002-09-19 Richard Henderson <rth@redhat.com>
1875 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1877 (alpha_force_relocation): Don't special-case branch type relocs.
1879 2002-09-19 Nick Clifton <nickc@redhat.com>
1881 * config/tc-m68k.c (select_control_regs): Handle situation where
1882 architecture has not yet been selected.
1884 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1886 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1887 (IS_SEXT_16BIT_NUM): New macro.
1888 (macro_build_ldst_constoffset): New function, to build a set of
1889 instructions to do a load or store from a constant offset relative
1890 to a given register.
1891 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1892 .cprestore pseudo-op.
1894 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1896 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1898 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1900 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1902 2002-09-17 Stan Cox <scox@redhat.com>
1904 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1905 (macro): Likewise for la. Likewise for ld.
1906 (mips_after_parse_args): Make -xgot optional, not the default.
1907 (md_apply_fix3): Allow composite relocation to set up gp.
1908 (tc_gen_reloc): Allow relaxing for newabi.
1909 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1910 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1912 2002-09-17 Nick Clifton <nickc@redhat.com>
1914 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1915 BFD_RELOC_ARM_IMMEDIATE has been done.
1916 (tc_gen_reloc): Do not issue reloc number of unimplemented
1917 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1918 their name is already in the error message - plus remove them
1919 from the default case.
1921 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1922 behavior of instructions.
1924 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1926 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1927 Convert functions to K&R format.
1929 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1931 * config/tc-mips.c (pdr_seg): Define only for ELF.
1932 (s_change_section): Remove unused variable. Don't use for nonELF.
1934 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1936 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1938 * config/obj-elf.h (obj_elf_change_section): Likewise.
1940 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1942 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1943 (out_debug_info): Likewise.
1945 2002-09-16 Bruno Haible <bruno@clisp.org>
1947 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1948 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1949 * config/tc-i386.c (i386_target_format): Likewise.
1950 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1951 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1953 2002-09-13 Nick Clifton <nickc@redhat.com>
1955 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1956 when deciding if any operands have been skipped.
1958 2002-09-11 Nick Clifton <nickc@redhat.com>
1960 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1962 * po/tr.po: Updated Turkish translation.
1964 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1966 * config/tc-i386.c (md_apply_fix3): Allow addend for
1967 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1968 BFD_RELOC_386_TLS_LE_32.
1970 2002-09-05 Jeff Law <law@redhat.com>
1972 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1973 marker relocations such as ENTRY/EXIT.
1974 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1975 to both OBJ_ELF and OBJ_SOM.
1977 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1979 * doc/internals.texi (md_apply_fix3): Expand.
1980 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1981 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1982 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1983 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1984 EXTERN_FORCE_RELOC): Document.
1985 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1986 * as.h: Don't include struc-symbol.h for arc.
1988 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1989 subtract absolute symbol.
1990 * obj.h (struct format_ops): Add frob_file_before_fix.
1991 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1992 * symbols.c (S_FORCE_RELOC): New function.
1993 * symbols.h (S_FORCE_RELOC): Declare.
1994 * write.c (TC_FORCE_RELOCATION): Change default.
1995 (TC_FORCE_RELOCATION_ABS): Define.
1996 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1997 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1998 (TC_FORCE_RELOCATION_SECTION): Don't define.
1999 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2000 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2001 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2002 (TC_VALIDATE_FIX_SUB): Define.
2003 (TC_FIX_ADJUSTABLE): Don't define.
2004 (MD_APPLY_SYM_VALUE): Define this instead.
2005 (abs_section_sym): New variable.
2006 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2007 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2008 Don't put the absolute section sym on fixups here.
2009 (fix_segment): New function.
2010 (write_relocs): Don't call fixup_segment from here.
2011 (write_object_file): Instead call tc_frob_file_before_fix,
2012 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2013 Don't output the absolute section symbol.
2014 (fixup_segment): Rewrite.
2015 * write.h (abs_section_sym): Declare.
2016 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2018 (aout_format_ops): Adjust to suit.
2019 * config/obj-aout.h (obj_frob_file): Don't define.
2020 (obj_frob_file_before_fix): Define.
2021 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2022 (S_FORCE_RELOC): Define.
2023 * config/obj-bout.h (S_FORCE_RELOC): Define.
2024 * config/obj-coff.c (coff_format_ops): Init new field.
2025 * config/obj-coff.h: Formatting fixes.
2026 (obj_sec_sym_ok_for_reloc): Define.
2027 (S_FORCE_RELOC): Define.
2028 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2029 (ecoff_frob_file): .. from here.
2030 (ecoff_format_ops): Add new function.
2031 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2032 (obj_frob_file_before_fix): Define.
2033 * config/obj-elf.c (elf_format_ops): Init new field.
2034 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2035 * config/obj-ieee.h: Formatting fixes.
2036 (S_FORCE_RELOC): Define.
2037 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2038 * config/obj-vms.h (S_FORCE_RELOC): Define.
2039 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2040 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2041 for BFD_RELOC_32 and BFD_RELOC_64.
2042 (alpha_fix_adjustable): Remove extern and weak tests.
2043 (alpha_before_fix): Rename from alpha_adjust_symtab.
2044 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2045 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2046 (TC_VALIDATE_FIX): Tweak param name.
2047 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2048 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2049 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2050 (MD_APPLY_SYM_VALUE): Define.
2051 (tc_adjust_symtab): Don't define.
2052 (alpha_adjust_symtab): Don't declare.
2053 (tc_frob_file_before_fix): Define.
2054 (alpha_before_fix): Declare.
2055 (TC_INIT_FIX_DATA): Tweak param names.
2056 * config/tc-arc.c: Include "struc-symbol.h".
2057 (md_pcrel_from): Remove undefined sym fudge.
2058 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2059 Don't set fx_addnumber.
2060 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2061 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2062 (EXTERN_FORCE_RELOC): Define.
2063 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2064 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2065 (arm_validate_fix): Return void.
2066 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2067 Add plt and got reloc tests.
2068 (arm_force_relocation): Call S_FORCE_RELOC.
2069 * config/tc-arm.h (struct fix): Forward declare.
2070 (TC_VALIDATE_FIX): No longer set add_symbolP.
2071 (arm_validate_fix): Adjust declaration.
2072 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2073 (TC_FORCE_RELOCATION): Tweak param name.
2074 (TC_INIT_FIX_DATA): Likewise.
2075 (obj_fix_adjustable): Don't define.
2076 (tc_fix_adjustable): Call arm_fix_adjustable.
2077 (TC_FIX_ADJUSTABLE): Don't define.
2078 (MD_APPLY_SYM_VALUE): Define.
2079 (EXTERN_FORCE_RELOC): Define.
2080 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2081 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2082 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2083 Remove *valP fudges and code to subtract abs sym. Don't set
2085 * config/tc-avr.h: Formatting.
2086 (EXTERN_FORCE_RELOC): Define.
2087 (MD_APPLY_SYM_VALUE): Define.
2088 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2089 (md_apply_fix3): Remove code to subtract abs sym.
2090 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2091 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2092 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2093 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2094 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2095 (tc_fix_adjustable): Remove extern, weak tests.
2096 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2097 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2098 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2099 and code to subtract abs sym.
2100 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2101 (d10v_force_relocation): Call S_FORCE_RELOC.
2102 * config/tc-d10v.h: Don't include write.h.
2103 (struct fix): Instead, forward declare.
2104 (MD_PCREL_FROM_SECTION): Tweak param names.
2105 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2106 (d10v_fix_adjustable): Likewise.
2107 (obj_fix_adjustable): Don't define.
2108 (tc_fix_adjustable): Define.
2109 (TC_FORCE_RELOCATION): Tweak param name.
2110 (MD_APPLY_SYM_VALUE): Define.
2111 (EXTERN_FORCE_RELOC): Define.
2112 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2113 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2114 and code to subtract abs sym.
2115 * config/tc-d30v.h: Don't include write.h.
2116 (struct fix): Instead, forward declare.
2117 (MD_PCREL_FROM_SECTION): Tweak param names.
2118 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2119 (MD_APPLY_SYM_VALUE): Define.
2120 (EXTERN_FORCE_RELOC): Define.
2121 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2122 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2123 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2124 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2125 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2126 Don't use fx_addnumber.
2127 * config/tc-dlx.h: Don't include write.h.
2128 (md_convert_frag): We're not alpha twice over.
2129 (EXTERN_FORCE_RELOC): Define.
2130 (obj_fix_adjustable): Don't define.
2131 (tc_fix_adjustable): Define.
2132 (TC_FIX_ADJUSTABLE): Don't define.
2133 (MD_APPLY_SYM_VALUE): Define.
2134 (LOCAL_LABELS_DOLLAR): Undef always.
2135 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2136 (fr30_fix_adjustable): Remove extern, weak tests.
2137 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2138 (obj_fix_adjustable): Don't define.
2139 (tc_fix_adjustable): Define.
2140 (struct fix): Forward declare.
2141 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2142 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2143 (frv_fix_adjustable): Don't do extern, weak tests.
2144 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2145 (TC_FIX_ADJUSTABLE): Don't define.
2146 (obj_fix_adjustable): Don't define.
2147 (tc_fix_adjustable): Define.
2148 (struct fix): Forward declare.
2149 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2150 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2151 * config/tc-h8300.h (struct fix): Forward declare.
2152 (EXTERN_FORCE_RELOC): Define.
2153 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2154 (hppa_fix_adjustable): Don't test extern or weak. Don't
2155 symbol_mark_used_in_reloc.
2156 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2158 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2159 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2160 (TC_FORCE_RELOCATION_SECTION): Don't define.
2161 (MD_APPLY_SYM_VALUE): Define.
2162 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2163 to subtract abs sym.
2164 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2165 (MD_APPLY_SYM_VALUE): Define.
2166 (MD_PCREL_FROM_SECTION): Tweak param name.
2167 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2168 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2169 (i386_force_relocation): New function.
2170 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2171 (TC_VALIDATE_FIX): Likewise.
2172 (TC_FIX_ADJUSTABLE): Don't define.
2173 (MD_APPLY_SYM_VALUE): Define.
2174 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2175 (i386_force_relocation): Declare.
2176 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2177 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2178 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2179 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2180 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2181 (EXTERN_FORCE_RELOC): Define.
2182 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2183 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2184 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2185 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2186 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2187 Remove #if 0 code. Invert return boolean.
2188 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2189 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2190 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2191 (tc_coff_sizemachdep): Prototype.
2192 (i960_handle_align): Likewise.
2193 (i960_validate_fix): Adjust declaration.
2194 (reloc_callj): Likewise.
2195 (EXTERN_FORCE_RELOC): Define.
2196 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2197 (TC_FORCE_RELOCATION_ABS): Define.
2198 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2199 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2200 (TC_FIX_ADJUSTABLE): Don't define.
2201 (MD_APPLY_SYM_VALUE): Define.
2202 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2203 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2204 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2205 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2206 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2207 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2208 (MD_APPLY_SYM_VALUE): Define.
2209 (EXTERN_FORCE_RELOC): Define.
2210 (TC_FORCE_RELOCATION): Tweak param name.
2211 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2212 (m32r_fix_adjustable): Don't test extern, weak.
2213 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2214 (MD_APPLY_SYM_VALUE): Define.
2215 (obj_fix_adjustable): Don't define.
2216 (tc_fix_adjustable): Define.
2217 (tc_frob_file): Don't define.
2218 (tc_frob_file_before_fix): Define.
2219 (EXTERN_FORCE_RELOC): Define.
2220 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2221 BFD_RELOC_VTABLE_ENTRY address.
2222 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2223 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2224 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2225 Remove duplicated fx_done code.
2226 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2227 (EXTERN_FORCE_RELOC): Define.
2228 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2230 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2231 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2232 (TC_FIX_ADJUSTABLE): Don't define.
2233 (EXTERN_FORCE_RELOC): Define.
2234 (MD_APPLY_SYM_VALUE): Define.
2235 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2236 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2237 Remove fx_addsy tests.
2238 (mcore_force_relocation): Call S_FORCE_RELOC.
2239 (mcore_fix_adjustable): Don't test fx_addsy.
2240 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2241 (EXTERN_FORCE_RELOC): Define.
2242 (obj_fix_adjustable): Don't define.
2243 (tc_fix_adjustable): Define.
2244 (MD_APPLY_SYM_VALUE): Define.
2245 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2246 (mips_pic): No longer static.
2247 (mips_force_relocation): Call S_FORCE_RELOC.
2248 (mips_fix_adjustable): Remove extern, weak tests.
2249 * config/tc-mips.h (enum mips_pic_level): Declare.
2250 (mips_pic): Declare.
2251 (tc_frob_file): Don't define.
2252 (tc_frob_file_before_fix): Define this instead.
2253 (EXTERN_FORCE_RELOC): Define.
2254 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2255 with reg_section tests. Set fx_done instead of calling
2256 symbol_clear_used_in_reloc on bad relocs.
2257 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2258 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2259 (mmix_adjust_symtab): Simplify list handling. Abort on any
2261 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2262 BFD_RELOC_MMIX_LOCAL.
2263 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2264 (EXTERN_FORCE_RELOC): Define.
2265 (MD_PCREL_FROM_SECTION): Tweak param name.
2266 (tc_frob_file): Don't define.
2267 (tc_frob_file_before_fix): Define this instead.
2268 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2269 Remove SEC_CODE checks.
2270 (mn10300_fix_adjustable): Remove extern and weak tests.
2271 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2272 (TC_FORCE_RELOCATION): Tweak param name.
2273 (obj_fix_adjustable): Don't define.
2274 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2275 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2276 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2277 (openrisc_fix_adjustable): Don't test fx_addsy.
2278 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2279 (obj_fix_adjustable): Don't define.
2280 (tc_fix_adjustable): Define this instead.
2281 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2282 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2283 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2284 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2285 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2286 (MD_APPLY_SYM_VALUE): Define.
2287 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2288 Don't subtract symbol value.
2289 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2290 (EXTERN_FORCE_RELOC): Define.
2291 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2292 (MD_APPLY_SYM_VALUE): Define.
2293 (obj_fix_adjustable): Don't define.
2294 (tc_fix_adjustable): Define this instead.
2295 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2297 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2298 (ppc_force_relocation <elf version>): New.
2299 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2300 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2301 comments. Don't subtract fx_subsy as that is already done.
2302 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2303 (MD_PCREL_FROM_SECTION): Likewise.
2304 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2305 ppc_force_relocation.
2306 (TC_FORCE_RELOCATION_SECTION): Delete.
2307 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2308 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2309 (MD_APPLY_SYM_VALUE): Define.
2310 * config/tc-s390.c: #include "dwarf2dbg.h".
2311 (s390_insn): Remove excess parens.
2312 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2313 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2314 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2315 non-NULL. Don't subtract off fx_addsy value.
2316 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2317 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2318 (TC_FIX_ADJUSTABLE): Don't define.
2319 (MD_APPLY_SYM_VALUE): Define.
2320 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2321 (SWITCH_TABLE): Likewise.
2322 (sh_force_relocation): Call S_FORCE_RELOC.
2323 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2324 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2325 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2326 fx_addnumber is zero on entry. Save val in fx_addnumber.
2327 (tc_gen_reloc): Don't subtract fx_subsy.
2328 * config/tc-sh.h (struct fix): Move.
2329 (obj_fix_adjustable): Don't define.
2330 (tc_fix_adjustable): Define this instead.
2331 (TC_FIX_ADJUSTABLE): Don't define.
2332 (MD_APPLY_SYM_VALUE): Define.
2333 (SWITCH_TABLE_CONS): Define.
2334 (SWITCH_TABLE): Define.
2335 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2336 (TC_VALIDATE_FIX_SUB): Define.
2337 (MD_PCREL_FROM_SECTION): Tweak param name.
2338 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2339 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2340 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2341 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2342 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2343 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2344 (TC_VALIDATE_FIX_SUB): Define.
2345 (MD_PCREL_FROM_SECTION): Tweak param name.
2346 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2347 (tc_gen_reloc): Use S_FORCE_RELOC.
2348 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2349 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2350 (TC_FORCE_RELOCATION_ABS): Define this instead.
2351 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2352 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2353 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2354 (MD_APPLY_SYM_VALUE): Define.
2355 (TC_FIX_DATA_PRINT): Tweak param name.
2356 * config/tc-tic30.c (USE_STDOUT): Don't define.
2357 (md_parse_option): Remove stupid debug code.
2358 (tc_gen_reloc): Don't use fx_addnumber.
2359 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2360 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2361 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2362 (tc_fix_adjustable): Define this instead.
2363 (TC_FIX_ADJUSTABLE): Don't define.
2364 (MD_APPLY_SYM_VALUE): Define this instead.
2365 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2366 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2367 (TC_FIX_ADJUSTABLE): Don't define.
2368 (MD_APPLY_SYM_VALUE): Define this instead.
2369 (tc_fix_adjustable): Remove extern and weak tests.
2370 * config/tc-w65.h (struct fix): Forward declare.
2371 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2373 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2374 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2375 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2377 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2378 (MD_APPLY_SYM_VALUE): Define.
2379 (obj_fix_adjustable): Don't define.
2380 (tc_fix_adjustable): Define this instead.
2381 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2383 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2385 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2386 (ppc_fix_adjustable <coff version>): Cleanup.
2388 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2389 (md_parse_option): No -a64 without BFD64.
2390 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2391 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2393 2002-09-04 Nick Clifton <nickc@redhat.com>
2395 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2396 instructions into the hash table if the target cpu is the BookE32.
2398 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2400 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2403 2000-08-28 Catherine Moore <clm@redhat.com>
2405 * tc-v850.c (v850_relax): Declare.
2406 (v850_longcode): New routine.
2407 (v850_handle_align): New routine.
2408 (md_pseudo_table): Add longcall and longjump.
2409 (md_parse_option): Check for relax option.
2410 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2411 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2412 (md_apply_fix3): Likewise.
2413 (v850_force_relocation): Likewise.
2414 (v850_comm): Change the current section.
2415 (md_assemble): Ensure that the correct value is put in the
2417 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2418 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2419 Remove redundant v850ea support.
2420 * tc-v850.h (HANDLE_ALIGN): Define.
2421 (v850_handle_align): Declare.
2422 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2424 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2426 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2427 * configure: Regenerate.
2428 * NEWS: Mention new port.
2430 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2432 * config/obj-coff.c: Add sdef definition.
2433 * config/obj-coff.h: Add tic4x include file and set
2435 * config/tc-tic4x.c: New file.
2436 * config/tc-tic4x.h: New file.
2438 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2440 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2441 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2442 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2443 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2444 (RELOC_ENUM): Define.
2445 (fix_new_internal): Use RELOC_ENUM.
2446 (fix_new, fix_new_exp): Likewise.
2447 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2448 Replace gotos with continue.
2449 (write_relocs): Formatting. Avoid symbol loops in
2450 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2451 errors, and error number in other cases.
2452 (fixup_segment): Remove param names from prototype. Rename
2453 "this_segment_type" to "this_segment". Update linkrelax comment.
2454 Remove "size, "place" and "where" local vars. Formatting. Update
2455 "no symbol" comment. Remove #if 0 and #if 1.
2457 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2459 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2461 * dwarf2dbg.c: Always include dwarf2dbg.h.
2462 (dwarf2_directive_file): Adjust dummy version args.
2463 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2464 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2465 when symbol values differ.
2466 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2467 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2468 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2470 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2472 * config/tc-w65.c (md_section_align): Fix typo.
2473 (md_parse_option): Return 0, not 1.
2475 2002-08-22 Nick Clifton <nickc@redhat.com>
2477 * doc/as.texinfo (Section): Note that if '@' is a comment
2478 character then another symbol is used to prefix the section's
2481 2002-08-22 Christian Groessler <chris@groessler.org>
2483 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2486 2002-08-12 Graeme Peterson <gp@qnx.com>
2488 * configure.in: Add support for sh-**-nto* target.
2489 * configure: Regenerate.
2491 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2493 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2495 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2497 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2499 (ppc_apuinfo_section_add): Define only if format is ELF.
2500 (md_assemble): Emit APUinfo section only if format is ELF.
2503 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2505 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2506 * config/tc-frv.c: Likewise.
2507 * config/tc-hppa.c: Likewise.
2508 * config/tc-ia64.c: Likewise.
2509 * config/tc-ip2k.c: Likewise.
2510 * config/tc-m68hc11.c: Likewise.
2511 * config/tc-m68k.c: Likewise.
2512 * config/tc-mmix.c: Likewise.
2513 * config/tc-mn10300.c: Likewise.
2514 * config/tc-sh.c: Likewise.
2515 * config/tc-sparc.c: Likewise.
2516 * config/tc-v850.c: Likewise.
2518 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2520 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2523 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2525 From matthew green <mrg@redhat.com>
2527 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2528 PPC_OPCODE_PPC is, except for BookE architectures.
2529 (md_parse_option): Add support for -mspe.
2530 (md_show_usage): Add -mspe.
2531 (md_parse_option): Add support for -me500 and
2532 -me500x2 to generate code for Motorola e500 core complex.
2533 (md_show_usage): Add -me500 and -me500x2.
2535 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2536 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2537 PPC_APUINFO_BRLOCK): New macros.
2539 (ppc_cleanup): New function.
2540 (ppc_apuinfo_section_add): New function.
2542 (md_assemble): Collect info and write the APUinfo section.
2544 * config/tc-ppc.h (md_cleanup): Define.
2545 (ppc_cleanup): Export.
2546 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2548 2002-08-17 Stan Cox <scox@redhat.com>
2550 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2551 config/tc-mips.c (s_change_section): New function to support
2552 IRIX .section pseudo-op.
2554 2002-08-16 Nick Clifton <nickc@redhat.com>
2556 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2558 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2560 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2561 the fix-up against on the right frag.
2562 (s_cpsetup): Likewise. Parse third argument as expression, to
2563 handle global symbols and forward/backward labels correctly.
2565 2002-08-14 Nick Clifton <nickc@redhat.com>
2567 * read.c (stringer): Catch attempts to create strings in the abs
2570 * config/tc-alpha.c: Fix compiling for COFF targets.
2571 Some minor formatting tidyups.
2573 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2575 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2576 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2577 according to the reloc.
2578 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2579 (TC_FORCE_RELOCATION): Define.
2580 (tc_m68hc11_force_relocation): Declare.
2582 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2583 (s_m68hc11_relax): New function for relax group.
2584 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2585 beginning of jump instruction.
2586 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2587 address computation.
2588 (tc-gen_reloc): Update.
2589 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2591 (tc_m68hc11_force_relocation): New function, handle new relocs.
2592 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2593 reloc for the linker relax pass.
2594 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2597 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2599 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2600 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2601 (s_m68hc11_mode): New function for .mode pseudo op.
2602 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2604 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2605 (m68hc11_elf_final_processing): Declare.
2607 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2609 * config/tc-m68hc11.c (md_begin): Take into account additional
2610 page operand for call instruction.
2611 (print_opcode_format): Likewise.
2612 (check_range): Likewise for page range checking.
2613 (get_operand): Don't skip a possible comma in operands.
2614 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2615 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2616 (fixup24): New to handle call reloc.
2617 (build_insn): Handle missing page operand for call instruction.
2619 (md_apply_fix3): Take into account new relocs.
2620 (get_operand): Fix the mode for indexed indirect addressing.
2621 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2623 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2625 * config/tc-mips.c (mips_ip): Don't work out the value of
2626 constant %hi()s here.
2628 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2630 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2631 for ELF, and don't bother checking ELF relocs when non-ELF.
2632 (i386_immediate): Allow absolute_section expressions for aout.
2633 (i386_displacement): Likewise. Also test bfd_is_com_section.
2634 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2635 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2636 not when fx_addsy. Remove dead code.
2638 2002-08-09 Graeme Peterson <gp@qnx.com>
2640 * configure.in: Add support for ppc-*-nto* target.
2641 * configure: Regenerate.
2643 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2645 * config/tc-i386.h: Reorganize.
2647 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2649 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2650 immediate offset in "dla" and "la" expansions.
2652 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2654 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2655 Remove "bfd_gas=yes" from target table when covered later.
2656 Consolidate some entries.
2657 * configure: Regenerate
2659 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2661 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2662 at start of insn, pass it to output_disp and output_imm.
2663 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2664 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2666 (output_imm): Added arguments. Compute properly addend for
2668 (md_apply_fix3): Remove R_386_GOTPC handling.
2670 2002-08-06 George France <france@handhelds.org>
2672 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2673 and m21264b processor names and cpu types.
2674 * doc/c-alpha.texi: Documented new types.
2676 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2678 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2680 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2682 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2683 handling to BFD_RELOC_MIPS16_GPREL.
2685 2002-08-01 Nick Clifton <nickc@redhat.com>
2687 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2688 pool is computed using signed arithmetic so that proper sign
2689 extension is performed if X_add_number is a 64-bit integer.
2691 2002-08-01 H.J. Lu <hjl@gnu.org>
2692 Daniel Jacobowitz <drow@mvista.com>
2694 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2695 .debug_line section unless it has line information.
2697 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2699 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2700 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2701 Allow default displacement size to be an option "--disp-size-default".
2702 (md_number_to_disp): Make error messages include value. Use %d to
2703 print integers, not %s.
2704 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2705 get duplicate messages sometimes.
2706 (convert_iif): Grow frag to max possible instruction size. Avoid
2707 creating unnecessary fixes.
2708 (md_number_to_field) Add prototype.
2709 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2710 prototypes and make static.
2711 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2712 (evaluate_expr): Use resultP argument instead of exprP global.
2713 (get_addr_mode): Quiten compiler warnings.
2714 (encode_operand): eliminate unused variables. Quiten compiler
2715 warnings. Eliminate nul character in format strings.
2716 (parse): argc is unsigned.
2717 (reloc): Type cast index to quieten compiler.
2718 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2719 (md_convert_frag): Note unused parameters. Remove unused
2721 (md_create_long_jump, md_create_short_jump,
2722 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2725 2002-07-31 Nick Clifton <nickc@redhat.com>
2727 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2728 of the PDP-11 and 2.11BSD a.out support.
2730 2002-07-31 Momchil Velikov <velco@fadata.bg>
2732 * config/tc-v850.c (md_assemble): Fix range check for immediate
2735 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2737 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2738 to Broadcom SB-1 core support.
2740 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2742 * config/tc-mips.c (mips_target_format): Fix formatting.
2743 Add recognition of n32 ABI formats.
2745 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2747 * tc-mips.c (load_address): Don't clobber $at when loading a
2748 64-bit address in non-PIC code if noat is in effect.
2751 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2753 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2754 used in division/multiply macro expansions similarly to how they
2755 are used in the variants with break instructions.
2758 2002-07-30 Graeme Peterson <gp@qnx.com>
2760 * configure.in: Add support for arm-*-nto target.
2761 * configure: Regenerate.
2763 2002-07-30 Nick Clifton <nickc@redhat.com>
2765 * config/tc-arm.c (struct literal_pool): Add fields to allow
2766 multiple literal pools to be maintained.
2767 (find_literal_pool): New function.
2768 (find_or_make_literal_pool): New function.
2769 (add_to_literal_pool): Use find_or_make_literal_pool.
2770 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2772 (s_ltorg): Use find_literal_pool.
2773 (arm_cleanup): Dump all literal pools.
2774 * doc/c-arm.texi: Document new behaviour of only dumping literal
2777 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2779 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2780 rather than PPC_OPCODE_32 for powerpc64*.
2782 2002-07-25 Nick Clifton <nickc@redhat.com>
2784 * po/es.po: Updated Spanish translation.
2785 * po/fr.po: Updated French translation.
2787 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2789 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2790 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2791 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2792 * configure, config.in: Regenerate.
2793 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2794 (mips_set_options): Remove "abi" field.
2795 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2798 (mips_arch_string, mips_arch_info): New vars.
2799 (mips_tune_string, mips_tune_info): New vars.
2800 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2801 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2802 (mips_isa_to_str, mips_cpu_to_str): Remove.
2803 (mips_ip): If the selected architecture is a generic ISA rather
2804 than a processor, only mention the ISA level in error messages.
2805 (OPTION_MCPU): Remove.
2807 (md_longopts): Add -mfp64, remove -mcpu.
2808 (mips_set_option_string): New fn.
2809 (md_parse_option): Make -mipsN update file_mips_isa rather than
2810 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2811 Don't let -mgp32 and -mfp32 change the ABI.
2812 (show): Move to end of file. Constify string argument.
2813 (md_show_usage): Move to the end of the file. Read available
2814 architectures from mips_cpu_info_table.
2815 (mips_set_architecture): New fn.
2816 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2817 is an alias for -march=mipsN. Don't change the ABI based on other
2818 flags. Infer the register size from the ABI as well as the
2819 architecture. Complain about more conflicting arguments.
2820 Unify logic with GCC.
2821 (s_mipsset): Don't change the ABI.
2822 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2823 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2824 "mipsN"-type entries. Remove entries that vary only in the
2825 manufacturer's prefix, or that have "000" replaced by "k".
2826 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2827 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2828 (mips_parse_cpu): New fn.
2829 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2830 (mips_cpu_info_from_isa): Minor formatting tweak.
2832 2002-07-24 Nick Clifton <nickc@redhat.com>
2834 * po/sv.po: Updated Swedish translation.
2835 * po/es.po: Updated Spanish translation.
2837 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2839 * Makefile.am: Run "make dep-am".
2840 * Makefile.in: Regenerate.
2841 * doc/Makefile.in: Regenerate.
2842 * config.in: Regenerate.
2843 * po/POTFILES.in: Regenerate.
2845 2002-07-23 Nick Clifton <nickc@redhat.com>
2847 * po/fr.po: Updated French translation.
2849 2002-07-23 Nick Clifton <nickc@redhat.com>
2851 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2854 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2856 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2857 instead of S_IS_EXTERN.
2858 (md_estimate_size_before_relax): Likewise.
2859 (mips_fix_adjustable): Likewise.
2861 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2863 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2865 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2866 Nick Clifton <nickc@redhat.com>
2868 * cond.c (s_ifdef): Treat a referenced but not yet defined
2869 symbol as if it were undefined, in exactly the same way as
2872 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2873 consider referenced bug not yet defined symbols to be
2876 2002-07-18 Denis Chertykov <denisc@overta.ru>
2877 Frank Ch. Eigler <fche@redhat.com>
2878 Alan Lehotsky <alehotsky@cygnus.com>
2879 John Healy <jhealy@redhat.com>
2880 Jeff Johnston <jjohnstn@redhat.com>
2882 * configure.in: Add ip2k configuraton.
2883 * configure: Regenerate.
2884 * Makefile.am: Add ip2k configuraton.
2885 * Makefile.in: Regenerate.
2886 * configure: Regenerate.
2887 * Makefile.in: Regenerate.
2888 * config/tc-ip2k.c: New file.
2889 * config/tc-ip2k.h: New files.
2890 * NEWS: Mention new support.
2891 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2892 * doc/Makefile.in: Regenerate.
2893 * doc/all.texi: Set IP2K
2894 * doc/as.texinfo: Add IP2K description.
2895 * doc/c-ip2k.texi: New file.
2897 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2899 * NEWS: Reformat to match style of other NEWS files.
2901 2002-07-17 Jan Hubicka <jh@suse.cz>
2903 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2905 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2907 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2909 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2911 * NEWS: Add 'Changes in 2.13'.
2913 2002-07-15 Matt Fredette <fredette@netbsd.org>
2915 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2917 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2919 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2920 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2923 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2925 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2926 (ppc_frob_file_before_adjust): New function.
2927 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2928 (ppc_elf_frob_symbol): Don't declare.
2929 (tc_frob_file_before_adjust): Define.
2930 (ppc_frob_file_before_adjust): Declare.
2932 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2933 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2936 (ppc_xcoff64): Rename to ppc_obj64.
2937 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2938 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2939 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2941 (ppc_target_format): Use ppc_obj64 to select format.
2942 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2943 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2944 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2945 (tc_frob_symbol): Likewise.
2946 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2947 BFD_DEFAULT_TARGET_SIZE.
2949 (ppc_is_toc_sym): Likewise.
2950 (md_apply_fix3): Likewise.
2951 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2952 BFD_DEFAULT_TARGET_SIZE.
2953 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2954 (tc_frob_symbol): Likewise.
2956 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2958 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2959 (mips_ip): Likewise.
2961 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2963 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2964 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2965 (md_apply_fix3): Formatting. Remove redundant test.
2966 (tc_gen_reloc): Remove redundant code.
2967 (tc_i386_force_relocation): Delete. Movy body of function to..
2968 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2970 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2972 * configure.in: Add hppa-*-openbsd* target, change
2973 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2975 * configure: Regenerate.
2977 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2979 * config/tc-mips.c (macro): Shift the 32-bit address range
2980 accessible with a lone "lui" down by 32768.
2982 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2984 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2985 instead of "dadd" in address calculations.
2988 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2990 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2992 (md_assemble): Instead, zap the suffix here.
2994 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2996 * NEWS: Remove next release number until the release is actually
2999 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3001 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3003 * Makefile.in: Regenerate.
3005 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3007 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3008 to symbols in merge sections, even non pc-relative ones.
3010 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3012 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3014 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3016 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3017 .softregs and .eeprom.
3019 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3021 * NEWS: Note the next release is 2.13.
3023 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3025 * po/tr.po: New translation imported.
3027 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3029 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3030 (ecoff_directive_def): Likewise.
3031 (ecoff_directive_tag): Likewise.
3032 * listing.c (file_info): Likewise.
3033 * hash.c (what): Likewise.
3035 2002-06-25 H.J. Lu <hjl@gnu.org>
3037 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3038 * Makefile.in: Regenerated.
3040 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3042 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3043 (assemble_ppi): Generate warning if the same register is used
3044 twice as destination in the same padd / pmuls instruction.
3046 2002-06-18 Dave Brolley <brolley@redhat.com>
3048 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3049 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3050 * configure.in: Support frv-*-*.
3051 * Makefile.am (CPU_TYPES): Add frv.
3052 (TARGET_CPU_CFILES): Add tc-frv.c.
3053 (TARGET_CPU_HFILES): Add tc-frv.h.
3054 (DEPTC_frv_coff): New variable.
3055 (DEPTC_frv_elf): New variable.
3056 (DEPOBJ_frv_coff): New variable.
3057 (DEPOBJ_frv_elf): New variable.
3058 (DEP_frv_coff): New variable.
3059 (DEP_frv_elf): New variable.
3060 * tc-frv.c: New file.
3061 * tc-frv.h: New file.
3063 2002-06-17 Catherine Moore <clm@redhat.com>
3065 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3067 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3069 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3071 2002-06-17 Tom Rix <trix@redhat.com>
3073 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3075 2002-06-14 H.J. Lu <hjl@gnu.org>
3076 Daniel Jacobowitz <drow@mvista.com>
3078 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3079 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3080 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3081 and new_logical_line for the first .file directive.
3082 * read.c (s_app_file_string): New function.
3083 (s_app_file): Call it.
3084 * read.h (s_app_file_string): Add declaration.
3086 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3088 * configure.in: Remove MIPS_STABS_ELF.
3089 * configure: Regenerated.
3090 * config.in: Regenerated.
3091 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3093 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3095 (pdr_seg): Declare unconditionally.
3096 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3097 (s_mips_end): Likewise. Generate stabs function markers.
3098 (s_mips_ent): Generate stabs function markers.
3099 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3101 (s_mips_mask): Likewise.
3102 (mips_flag_mdebug): New.
3103 (md_longopts): Add "mdebug" and "no-mdebug".
3104 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3105 (mips_after_parse_args): Set mips_flag_mdebug.
3106 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3108 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3110 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3111 value twice for RELA relocations.
3113 2002-06-12 Ben Elliston <bje@redhat.com>
3115 * symbols.c (resolve_symbol_value): Initialise final_val.
3117 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3119 2002-06-11 Tom Rix <trix@redhat.com>
3121 * config/tc-ppc.c (ppc_subseg_align): Delete.
3122 (ppc_change_csect): Default csect align is 2.
3123 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3125 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3127 * config/tc-avr.c (mcu_types): Update.
3129 2002-06-08 Matt Thomas <matt@3am-software.com>
3131 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3132 (vax-*-netbsd*): New targets.
3133 * configure: Regenerate.
3134 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3135 * config/tc-vax.c: Add support for ELF and PIC.
3136 (flag_want_pic): New flag.
3137 (float_cons): Fix prototype.
3138 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3139 (md_assemble): Introduce a new is_absolute local, and use it
3140 rather than repeating the test. Make fatal errors actually
3141 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3142 Add support for ELF. Add support for PIC.
3143 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3144 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3146 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3147 optional for a.out, and not allowed for VMS. Adjust all callers.
3148 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3149 (md_create_long_jump): Likewise.
3150 (md_undefined_symbol): Likewise.
3151 (md_section_align): Likewise.
3152 (md_shortopts): Allow -k and -K for ELF.
3153 (md_parse_option): Set flag_want_pic if -k or -K.
3154 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3155 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3156 * config/tc-vax.h (tc_headers_hook): Remove.
3157 (TARGET_FORMAT): Set according to object format and target
3159 (BFD_ARCH, TARGET_ARCH): Define.
3160 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3161 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3162 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3163 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3165 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3167 * Makefile.am: Run "make dep-am".
3168 * Makefile.in: Regenerate.
3170 * as.c: Replace CONST with const.
3171 * write.c: Likewise.
3172 * config/obj-coff.c: Likewise.
3173 * config/tc-a29k.c: Likewise.
3174 * config/tc-arm.c: Likewise.
3175 * config/tc-dlx.c: Likewise.
3176 * config/tc-h8300.c: Likewise.
3177 * config/tc-h8500.c: Likewise.
3178 * config/tc-i370.c: Likewise.
3179 * config/tc-i860.c: Likewise.
3180 * config/tc-i960.c: Likewise.
3181 * config/tc-m68hc11.c: Likewise.
3182 * config/tc-m68k.c: Likewise.
3183 * config/tc-m88k.c: Likewise.
3184 * config/tc-mcore.c: Likewise.
3185 * config/tc-mips.c: Likewise.
3186 * config/tc-ns32k.c: Likewise.
3187 * config/tc-pdp11.c: Likewise.
3188 * config/tc-pj.c: Likewise.
3189 * config/tc-s390.c: Likewise.
3190 * config/tc-sh.c: Likewise.
3191 * config/tc-sparc.c: Likewise.
3192 * config/tc-tahoe.c: Likewise.
3193 * config/tc-tic80.c: Likewise.
3194 * config/tc-v850.c: Likewise.
3195 * config/tc-vax.c: Likewise.
3196 * config/tc-w65.c: Likewise.
3197 * config/tc-z8k.c: Likewise.
3199 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3201 Based on patch from Matt Green:
3202 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3203 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3204 (s_mips_loc): New function.
3205 (mips_nonecoff_pseudo_table): Call them.
3206 (append_insn): Call dwarf2_emit_insn.
3208 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3210 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3212 (file_ase_mips16): New veriable.
3213 (mips_eabi64): Remove.
3214 (CPU_HAS_MIPS16): New define.
3215 (CPU_HAS_MDMX): Fix data type.
3216 (md_begin): Code cleanup. Use file_ase_mips16.
3217 (mips_elf_final_processing): Handle mips16 header flag.
3218 Handle EABI flag without intermediate variable.
3220 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3222 * doc/as.texinfo: Update MIPS documentation.
3224 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3226 * config/tc-mips.c: Add define for $zero register.
3227 (md_begin): Add $zero as alias name for $0.
3228 (insn_uses_reg): Use ZERO define.
3229 (mips_ip): Add $zero as alias name for $0.
3230 (mips16_ip): Likewise.
3231 (s_cplocal): Demand empty rest of input line.
3232 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3233 names. Use ZERO define. Fix input_line_pointer progress.
3235 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3237 * symbols.c: Replace CONST by const throughout.
3238 (symbol_find_exact): Split out from..
3239 (symbol_find_base): ..here.
3240 * symbols.h: Replace CONST by const throughout.
3241 (symbol_find_exact): Declare.
3242 * config/obj-elf.c: #include "struc-symbol.h".
3243 (elf_frob_file): If group name matches an exported symbol, use that
3244 symbol for the signature and ".group" as the section name.
3246 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3248 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3251 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3253 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3254 and mips_opts.ase_mdmx if they are uninitialized.
3256 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3258 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3259 (hppa_force_relocation): Check if a stub just before the start symbol
3260 of the last call_info is reachable before forcing relocation. Fix
3263 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3265 * config/tc-mips.c (mips_after_parse_args): New function.
3266 (md_begin): Move processing of defaults to mips_after_parse_args.
3267 config/tc-mips.h (md_after_parse_args): Define.
3269 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3271 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3272 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3273 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3274 * configure: Regenerate.
3275 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3278 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3280 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3282 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3284 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3285 linkonce flag. Print all warnings.
3286 (obj_elf_section): Parse ",comdat" for groups.
3287 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3288 consistency of comdat flag.
3290 2002-06-02 Richard Henderson <rth@redhat.com>
3292 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3293 with LITERALs without sequence numbers.
3295 2002-06-01 Richard Henderson <rth@redhat.com>
3297 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3298 Rename them LITUSE_ALPHA_*.
3300 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3302 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3303 accept parentheses enclosed register lists.
3305 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3307 * Makefile.am: Run "make dep-am".
3308 * Makefile.in: Regenerate.
3309 * po/POTFILES.in: Regenerate.
3311 2002-05-31 Graeme Peterson <gp@qnx.com>
3313 * configure.in: Add i386-*-nto-qnx*.
3314 * configure: Regenerate.
3316 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3318 * config/tc-mips.c (mips_ip): Use unsigned long values for
3321 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3323 * config/tc-mips.c (s_cpsetup): Fix initialization of
3324 mips_cpreturn_register and mips_cpreturn_offset.
3326 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3328 * config/tc-mips.c (s_cpsetup): Fix comment.
3330 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3332 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3333 (mips_ip): Likewise.
3334 (mips16_ip): Likewise.
3335 (tc_get_register): Likewise.
3337 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3338 Ed Satterthwaite <ehs@broadcom.com>
3340 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3341 (mips_opts): Initialize "ase_mdmx" member.
3342 (file_ase_mdmx): New variable.
3343 (CPU_HAS_MDMX): New macro.
3344 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3345 based on command line options and configuration defaults.
3346 (macro_build): Note in comment that use of MDMX in macros is
3347 not currently allowed.
3348 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3349 "Z" MDMX operand types.
3350 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3351 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3353 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3354 Add support for "-mdmx" and "-no-mdmx" options.
3355 (OPTION_ELF_BASE): Move to accomodate new options.
3356 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3357 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3358 file_ase_mdmx was set.
3359 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3360 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3363 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3365 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3366 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3367 command line switch conforming to gcc conventions.
3368 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3370 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3372 * config/tc-mips.c (macro_build_jalr): New Function.
3373 (md_begin): NewABI uses big GOTs.
3374 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3375 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3376 (load_address): Add some NewABI PIC support.
3378 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3379 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3381 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3383 * config/tc-mips.c (load_address): Use mips_gp_register instead
3384 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3386 (macro): Use mips_gp_register instead of hardcoded value.
3388 2002-05-30 Richard Henderson <rth@redhat.com>
3390 * expr.h (operatorT): Add O_md17..O_md32.
3391 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3392 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3393 O_tprelhi, O_tprello, O_tprel): New.
3394 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3395 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3396 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3397 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3398 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3399 (md_apply_fix3): Handle TLS relocations.
3400 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3401 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3402 associated TLS reloc. Check lituse_tls relocs match up.
3403 (emit_insn): Handle TLS relocations.
3406 * doc/c-alpha.texi: Add docs for tls relocations.
3408 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3410 * config/tc-mips.c (mips_gprel_offset): New variable.
3411 (s_gpvalue): Use it.
3413 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3415 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3416 write-write conflicts.
3417 (md_assemble): Reformat introductory comment.
3418 (parallel_ok): Prevent packing only if the first
3419 instruction cannot be packed.
3421 2002-05-30 Jason Eckhardt <jle@redhat.com>
3422 Tom Rix <trix@redhat.com>
3424 * config/tc-d10v.c (build_insn): Check for immediates.
3426 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3428 * config/tc-mips.c: Replace GP in comments by $gp.
3429 (mips_big_got): Initialize.
3430 (mips_trap): Initialize.
3431 (load_address): Use mips_gp_register instead of hardcoded value.
3432 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3433 (macro): Use mips_gp_register instead of hardcoded value.
3434 (macro2): Change load_address calls.
3435 (md_pcrel_from): Comment formatting.
3436 (s_cpload): Use mips_gp_register instead of hardcoded value.
3437 (s_cprestore): Likewise. Comment formatting.
3438 (s_gpword): Fix data type.
3439 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3440 (nopic_need_relax): Replace GP in comments by $gp.
3441 (mips_elf_final_processing): Better comment.
3443 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3445 * configure.in: Add DLX configuraton
3446 * Makefile.am: Add DLX configuraton
3447 * configure: Regenerate.
3448 * Makefile.in: Regenerate.
3449 * config/tc-dlx.c: New file.
3450 * config/tc-dlx.h: New files.
3451 * NEWS: Mention new support.
3453 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3455 * config/obj-coff.c (write_object_file): Add missing semicolon.
3457 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3459 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3460 by the define. Remove superfluous check of mips_opts.mips16.
3461 (append_insn): Likewise. Canonicalize variable increments.
3462 (macro_build): Canonicalize variable increments.
3463 (macro_build_lui): Likewise.
3464 (load_register): Likewise.
3465 (load_address): Move pointer initialization.
3466 (macro): Move pointer to a more local scope. Canonicalize variable
3467 increments. Better comments. Replace magic constant for RA by the
3469 (macro2): Replace magic constant for RA by the define. Canonicalize
3470 variable increments.
3471 (mips_ip): Canonicalize variable increments.
3472 (mips16_ip): Replace magic constant for RA by the define.
3473 (my_getSmallParser): Canonicalize variable increments/decrements.
3474 (my_getPercentOp): Likewise.
3475 (my_getSmallExpression): Likewise.
3476 (s_align): Likewise.
3477 (s_mipsset): Likewise.
3478 (s_cpsetup): Likewise.
3479 (s_insn): Remove superfluous check of mips_opts.mips16.
3480 (s_mips_stab): Likewise.
3481 (mips_handle_align): Canonicalize variable increments.
3482 (s_mips_ent): Likewise.
3483 (s_mips_end): Add comment.
3485 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3487 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3488 * configure: Regenerate.
3490 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3492 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3493 * Makefile.in: Regenerate.
3494 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3495 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3496 * configure: Regenerate.
3497 * as.h: Use #include "" instead of <> for local header files.
3498 * flonum-konst.c: Likewise.
3499 * flonum-mult.c: Likewise.
3501 * listing.c: Likewise.
3502 * config/tc-ia64.h: Likewise.
3503 * config/tc-v850.h: Likewise.
3505 2002-05-24 TAMURA Kent <kent@netbsd.org>
3507 * configure.in: Add a target for i386-netbsdpe.
3508 * configure: Regenerate.
3510 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3512 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3513 (obj_elf_common): Call elf_common.
3514 (obj_elf_tls_common): New function.
3515 (elf_pseudo_tab): Support .tls_common.
3516 (special_sections): Add .tdata and .tbss.
3517 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3519 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3520 (obj_elf_parse_section_letters): Include T in error message.
3521 * config/tc-ppc.c (ppc_section_letter): Likewise.
3522 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3523 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3525 * config/tc-sparc.c (md_apply_fix3): Likewise.
3526 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3527 Define them if not BFD_ASSEMBLER.
3528 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3530 (md_apply_fix3): Add TLS relocs.
3531 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3532 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3533 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3534 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3535 (ia64_elf_section_letter): Include T in error message.
3536 (md_begin): Support TLS operators.
3537 (md_operand): Likewise.
3538 (ia64_gen_real_reloc_type): Support TLS relocs.
3539 * write.c (adjust_reloc_syms): Don't change symbols in
3540 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3542 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3544 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3545 round the relocation up rather than down.
3547 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3549 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3551 * doc/as.texinfo: Document that the COFF version of .section
3552 ignores the 'a' flag.
3554 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3556 * config/tc-alpha.c (assemble_tokens): Protect use of
3557 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3559 * write.c (size_seg): Check adjustment to last frag.
3560 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3562 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3563 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3564 (write_object_file): Invoke md_do_align if available, and use
3565 frag_align_code on text sections.
3566 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3567 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3568 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3569 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3570 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3573 2002-05-22 H.J. Lu <hjl@gnu.org>
3575 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3578 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3580 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3583 2002-05-22 H.J. Lu <hjl@gnu.org>
3585 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3586 for one .loc for compiler.
3588 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3590 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3593 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3595 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3596 Optimize the rotate by zero case.
3598 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3600 * configure.in: Remove accidental enabling of bfd_gas=yes for
3602 * configure: Regenerate.
3604 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3606 * app.c: Fix formatting.
3608 * ehopt.c: Likewise.
3610 * input-file.c: Likewise.
3611 * listing.c: Likewise.
3612 * macro.h: Likewise.
3613 * stabs.c: Likewise.
3614 * symbols.c: Likewise.
3616 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3618 * config/obj-generic.c: Delete file.
3619 * config/obj-generic.h: Likewise.
3621 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3623 * config/tc-avr.c (mcu_types): Update for new devices.
3625 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3627 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3629 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3631 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3632 worked sometimes by accident. Fix copy&paste comment.
3634 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3636 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3637 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3638 (mips_elf_final_processing): Let n32 use .reginfo.
3640 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3642 * config/tc-mips.c (append_insn): Fix too small range of variable.
3644 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3646 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3647 listing_prev_line().
3649 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3651 * config/tc-arm.c (md_assemble): Remove redundant call to
3654 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3657 * stabs.c (s_stab_generic): Fix grammatical error in warning
3660 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3662 * write.c (subsegs_finish): Don't specially align last subseg.
3664 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3666 * stabs.c (s_stab_generic): Warn about a description field that is
3669 * config/obj-coff.c: Fix compile time warnings when compiling
3670 without BFD_ASSEMBLER defined.
3673 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3675 (md_pcrel_from_section): Use md_pcrel_from().
3677 2002-05-11 Bruno Haible <bruno@clisp.org>
3679 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3680 by dwarf2_directive_loc, instead of calling dwarf2_where.
3682 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3684 * config/obj-coff.h: Fix formatting.
3685 * config/tc-mcore.c: Likewise.
3686 * config/tc-mn10300.c: Likewise.
3687 * config/tc-openrisc.c: Likewise.
3688 * config/tc-or32.c: Likewise.
3689 * config/tc-pdp11.c: Likewise.
3690 * config/tc-ppc.c: Likewise.
3691 * config/tc-ppc.h: Likewise.
3692 * config/tc-sh64.c: Likewise.
3693 * config/tc-sh.c: Likewise.
3694 * config/tc-tic54x.c: Likewise.
3695 * config/tc-xstormy16.c: Likewise.
3696 * config/tc-xstormy16.h: Likewise.
3698 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3700 * config/obj-coff.c: Fix formatting.
3701 * config/obj-elf.c: Likewise.
3702 * config/tc-alpha.c: Likewise.
3703 * config/tc-arm.c: Likewise.
3704 * config/tc-d10v.c: Likewise.
3705 * config/tc-d30v.c: Likewise.
3706 * config/tc-h8300.c: Likewise.
3707 * config/tc-hppa.c: Likewise.
3709 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3711 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3712 reloc when no_cond_jump_promotion.
3714 2002-05-08 Jim Wilson <wilson@redhat.com>
3716 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3717 current variable part of frag.
3719 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3721 * config/tc-mmix.c: Fix formatting.
3722 * config/tc-mmix.h: Likewise.
3724 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3726 * configure: Regenerate.
3728 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3730 * config/tc-m68k.c: Fix formatting.
3732 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3734 * Makefile.am: Honour DESTDIR.
3735 * Makefile.in: Regenerate.
3737 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3739 * config/tc-ia64.c: Fix formatting.
3740 * config/tc-ia64.h: Likewise.
3742 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3744 * config/tc-mips.c: Fix formatting.
3745 * config/tc-s390.c: Likewise.
3746 * config/tc-s390.h: Likewise.
3748 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3750 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3751 information for instructions.
3753 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3755 * as.h: Fix formatting.
3758 * dwarf2dbg.c: Likewise.
3759 * frags.h: Likewise.
3761 * macro.c: Likewise.
3763 * stabs.c: Likewise.
3764 * symbols.c: Likewise.
3766 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3768 * app.c (mri_pseudo): Only declare for TC_M68K.
3770 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3771 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3772 BFD_RELOC_16_BASEREL.
3773 (md_assemble): Likewise.
3774 (md_apply_fix3): Likewise.
3776 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3778 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3779 zero into an add of zero - it is not the same.
3781 2002-05-01 Arati Dikey <aratid@kpit.com>
3783 * tc-sh.c (get_specific): Generate warning if the same
3784 destination register is used in parallel instructions.
3786 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3788 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3790 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3792 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3793 backwards to prevent cascading errors.
3795 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3797 * configure.in: Add support for powerpc-*-windiss.
3798 * configure: Regenerated.
3800 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3802 * config/tc-s390.c (md_parse_option): Formatting.
3804 * config/tc-i386.c: Formatting fixes, add missing space in error
3807 2002-04-24 Christian Groessler <chris@groessler.org>
3809 * config/tc-z8k.c (build_bytes): Add support for new cases:
3810 CLASS_IGNORE and ARG_NIM4.
3811 (md_assemble): Prevent destruction of input_line_pointer if
3812 get_operands returns failure.
3814 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3816 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3817 instructions to be generated by macros.
3819 2002-04-24 Andreas Schwab <schwab@suse.de>
3821 * config/tc-i386.c (output_jump, output_disp)
3822 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3824 (md_apply_fix3): Remember addend value for rela relocations.
3825 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3827 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3829 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3830 from previous change.
3832 2002-04-22 Eric Christopher <echristo@redhat.com>
3834 * config/tc-mips.c (macro_build): Add warning if macro instructions
3835 are expanded into a branch delay slot.
3837 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3839 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3840 numbers, gdb relies on them to detect the start of the prologue.
3842 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3844 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3845 symbols in merge sections.
3847 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3849 * as.c (main): Don't reference _bfd_chunksize.
3851 2002-04-15 Tom Rix <trix@redhat.com>
3853 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3854 symbols in merge sections.
3856 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3858 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3859 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3860 argument for the precision.
3861 (gen_to_words): Update accordingly.
3863 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3865 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3866 BFD_VERSION_STRING unavailable.
3867 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3869 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3871 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3872 symbol_used_in_reloc_p is true.
3874 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3877 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3879 * dep-in.sed: Cope with absolute paths.
3880 * Makefile.am (dep.sed): Subst TOPDIR.
3882 * Makefile.in: Regenerate.
3884 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3886 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3887 (mips_ip): Remove unused variable.
3888 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3889 unsigned char with bfd_byte.
3890 (s_file): Remove unused variable.
3891 (s_mips_ent): Likewise.
3893 2002-04-03 Tom Rix <trix@redhat.com>
3895 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3897 (find_opcode): Fix warning in as_warn.
3898 * config/tc-d10v.h: Update Copyright.
3900 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3901 Tom Rix <trix@redhat.com>
3903 From Jeff Knaggs <jknaggs@redhat.com>
3904 * config/tc-d10v.c (check_resource_conflict): New function to
3905 check for resource conflicts.
3907 From Jason Eckhardt <jle@redhat.com>
3908 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3910 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3911 reserved control registers is used.
3912 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3915 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3916 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3917 instruction cannot be packed.
3919 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3920 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3921 write-write conflicts.
3922 (md_assemble): Reformat introductory comment.
3923 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3926 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3928 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3929 O_logical_not>): Derive final_seg from add_symbol.
3930 <O_multiply..O_logical_or>: More final_seg twiddles.
3932 2002-04-01 Jessica Han <jessica@cup.hp.com>
3934 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3937 2002-03-27 Andreas Schwab <schwab@suse.de>
3939 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3940 field for pc-relative fixups.
3941 (output_disp): Likewise.
3942 (md_estimate_size_before_relax): Likewise.
3943 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3944 pc-relative fixups in 64bit mode.
3946 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3948 * config/te-aix5.h: Typo fix.
3950 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3952 * Makefile.am: Run "make dep-am".
3953 * Makefile.in: Regenerate.
3954 * doc/Makefile.in: Regenerate.
3956 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3958 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3959 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3961 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3963 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3964 the EXTENDED bit here; report the estimate according to the
3967 2002-03-18 Tom Rix <trix@redhat.com>
3969 * configure.in: Add AIX 5 support.
3970 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3971 * config/te-aix5.h: New file. AIX 5 support.
3972 * configure: Regenerate.
3974 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3976 * po/fr.po: Updated version.
3978 2002-03-16 Andreas Jaeger <aj@suse.de>
3980 * doc/c-mips.texi (Machine Dependencies): Add new node.
3982 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3984 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3985 (mips_opts): Initialize "ase_mips3d" member.
3986 (file_ase_mips3d): New variable.
3987 (CPU_HAS_MIPS3D): New macro.
3988 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3989 based on command line options and configuration defaults.
3990 (macro_build, mips_ip): Accept MIPS-3D instructions if
3991 mips_opts.ase_mips3d is set.
3992 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3993 Add support for "-mips3d" and "-no-mips3d" options.
3994 (OPTION_ELF_BASE): Move to accomodate new options.
3995 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3996 (mips_elf_final_processing): Add a comment indicating that a
3997 MIPS-3D ASE ELF header flag should be set, when one exists.
3998 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3999 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4000 nomips3d" directives.
4002 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4004 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4005 a weak symbol in same section to be within reach.
4007 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4009 * po/fr.po: Updated version.
4011 2002-03-12 Andreas Schwab <schwab@suse.de>
4013 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4014 body record so that an error is given for misplaced .save
4017 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4019 * config/tc-i386.h (REX_OPCODE): Define.
4020 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4021 (rex_byte): typedef to int.
4022 * config/tc-i386.c: Group prototypes and vars together.
4023 Formatting fixes. Remove occurrences of "register" keyword.
4026 (mode_from_disp_size): Add INLINE keyword to prototype.
4027 (fits_in_signed_byte): Likewise.
4028 (fits_in_unsigned_byte): Likewise.
4029 (fits_in_unsigned_word): Likewise.
4030 (fits_in_signed_word): Likewise.
4031 (fits_in_unsigned_long): Likewise.
4032 (fits_in_signed_long): Likewise.
4033 (type_names): Constify.
4034 (intel_float_operand): Constify param.
4035 (add_prefix): Use REX_OPCODE.
4036 (md_assemble): Likewise. Modify for changed rex_byte.
4037 (parse_insn): Split out of md_assemble.
4038 (parse_operands): Likewise.
4039 (swap_operands): Likewise.
4040 (optimize_imm): Likewise.
4041 (optimize_disp): Likewise.
4042 (match_template): Likewise.
4043 (check_string): Likewise.
4044 (process_suffix): Likewise.
4045 (check_byte_reg): Likewise.
4046 (check_long_reg): Likewise.
4047 (check_qword_reg): Likewise.
4048 (check_word_reg): Likewise.
4049 (finalize_imm): Likewise.
4050 (process_operands): Likewise.
4051 (build_modrm_byte): Likewise.
4052 (output_insn): Likewise.
4053 (output_branch): Likewise.
4054 (output_jump): Likewise.
4055 (output_interseg_jump): Likewise.
4056 (output_disp): Likewise.
4057 (output_imm): Likewise.
4059 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4061 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4063 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4065 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4066 relocs except when BFD64.
4068 * write.c (number_to_chars_bigendian): Don't abort when N is
4069 larger than sizeof (VAL).
4070 (number_to_chars_littleendian): Likewise.
4072 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4074 * config/tc-hppa.c (md_apply_fix3): Add cast.
4075 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4078 2002-03-05 Paul Koning <pkoning@equallogic.com>
4080 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4081 (parse_ac5): New function for parsing float regs in float operand.
4082 (parse_expression): Remove attempt to make literals be octal.
4083 (parse_op_no_deferred): Support float literals.
4084 (parse_op): Reject attempts to refer to float regs.
4085 (parse_fop): New function, like parse_op but for float operand.
4086 (md_assemble): Add cases to parse float operands. Also fix
4087 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4089 2002-03-04 H.J. Lu <hjl@gnu.org>
4091 * config/obj-elf.c (special_section): Add .init_array,
4092 .fini_array and .preinit_array.
4094 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4095 .init_array and .fini_array.
4097 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4099 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4101 (obj_frob_symbol): Copy visibility.
4103 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4105 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4107 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4109 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4111 * po/es.po: Updated.
4113 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4115 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4116 only, undo the changes made on 2001-06-08, with the
4117 effect being that common or extern symbols are
4118 adjusted for embedded-PIC, but weak symbols are not.
4119 (md_estimate_size_before_relax: Likewise, with the effect
4120 that extern symbols are treated the same as weak symbols
4121 only if not embedded-PIC.
4122 (mips_fix_adjustable) Likewise, with the effect that
4123 weak or extern symbols are not adjusted for embedded-PIC.
4124 (md_apply_fix3): Tweak so that the case where value is zero
4125 is handled more correctly for embedded-PIC code.
4127 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4129 * doc/as.texinfo (Overview): Add missing @ifset IA64
4131 * configure.in (LINGUAS): Add es.po.
4132 * configure: Regenerate.
4133 * po/es.po: New file.
4135 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4137 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4138 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4139 and NO_PIC cases. Code cleanup.
4140 (macro2): Fix handling of 64bit register loads.
4142 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4144 * doc/as.texinfo: Add entry for IA64.
4145 * doc/c-ia64.texi: New file.
4147 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4149 * config/tc-hppa.c: Update copyright date.
4151 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4152 Remove references to chip manufacturers.
4153 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4155 (md_show_usage): Remove references to chip manufacturers. Mention
4157 (md_begin): Test power4 opcode flag bits.
4159 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4161 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4162 count exceeds prologue count.
4163 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4164 (unwind.label_prologue_count): New member.
4166 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4168 (get_saved_prologue_count): New function.
4169 (save_prologue_count): New function.
4170 (free_saved_prologue_count): New function.
4171 (dot_label_state): Record state label by calling save_prologue_count().
4172 (dot_copy_state): Restore prologue count by calling
4173 get_saved_prologue_count().
4174 (generate_unwind_image): Free up list of saved prologue
4175 counts by calling free_saved_prologue_counts().
4177 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4179 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4180 function declarations.
4182 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4184 * NEWS: Note that GASP is now deprecated.
4185 * Makefile.am: Do not build gasp-new by default.
4186 * Makefile.in: Regenerate.
4187 * doc/Makefile.am: Do not install gasp.info.
4188 * doc/Makefile.in: Regenerate.
4189 * gas/gasp.texi: Note that gasp is now deprecated.
4191 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4193 * NEWS: Mark 2.12 branch.
4195 2002-02-19 Tom Tromey <tromey@redhat.com>
4197 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4199 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4201 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4204 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4206 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4207 Make bit size independent of architecture switch.
4208 (md_begin): Add warning for -m64 with -Aesa.
4209 (s390_md_end): Use renamed architecture defines.
4211 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4213 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4215 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4217 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4220 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4222 * config/tc-mips.c (md_estimate_size_before_relax): Really
4223 make sure we treat weak like extern only for ELF. (Fixes
4224 patch from 2001-07-25.)
4226 2002-02-15 Ben Elliston <bje@redhat.com>
4228 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4231 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4233 * NEWS: Mention support for MMIX.
4235 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4237 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4238 a sequence of indpendent 'if' statements for easier debugging
4239 and future modification.
4241 2002-02-13 Matt Fredette <fredette@netbsd.org>
4243 * config/tc-m68k.c (md_show_usage): No longer display a
4244 hard-coded "68020" for the default CPU, instead display the
4245 canonical name of the true, configured default CPU.
4246 (m68k_elf_final_processing): Mark objects for sub-68020
4247 CPUs with the new EF_M68000 flag.
4249 2002-02-13 Andreas Schwab <schwab@suse.de>
4251 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4252 pc-relative relocations to merge sections in 64-bit mode.
4254 2002-02-13 Ben Elliston <bje@redhat.com>
4256 * NEWS: Document floating point number handling in gasp.
4257 * gasp.c: Include <assert.h> and "xregex.h".
4258 (is_flonum): New function.
4259 (chew_flownum): Likewise.
4260 (change_base): Consume flonums from the input, where possible.
4261 * doc/gasp.texi (Constants): Document floating point numbers.
4263 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4265 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4266 that implicitly use LR and RR selectors.
4268 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4270 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4271 and `epsw' as available on AM33 and above only.
4272 (other_register_name): Add logic to handle machine type encoded in
4275 2002-02-11 Tom Rix <trix@redhat.com>
4277 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4280 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4282 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4285 2002-02-11 Jan Hubicka <jh@suse.cz>
4287 * i386.c (md_assemble): Support 32bit address prefix.
4288 (i386_displacement): Likewise.
4289 (i386_index_check): Accept 32bit addressing in 64bit mode.
4291 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4293 * config/tc-sh.c (dot): Removed unused function.
4295 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4297 * Makefile.am: "make dep-am".
4298 * Makefile.in: Regenerate.
4299 * aclocal.m4: Regenerate.
4300 * config.in: Regenerate.
4301 * configure: Regenerate.
4302 * doc/Makefile.in: Regenerate.
4304 2002-02-10 Richard Henderson <rth@redhat.com>
4306 * doc/c-alpha.texi: New file.
4307 * doc/Makefile.am (CPU_DOCS): Add it.
4308 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4310 2002-02-09 Richard Henderson <rth@redhat.com>
4312 * config/tc-alpha.c (O_samegp): New.
4313 (USER_RELOC_P): Include it.
4314 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4315 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4316 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4317 (alpha_validate_fix): New.
4318 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4320 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4322 * doc/c-cris.texi: New.
4323 * doc/all.texi: @set CRIS.
4324 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4325 Include c-cris.texi.
4326 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4327 * doc/Makefile.in: Regenerate.
4329 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4331 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4332 determine if a number is a sign-extended 32-bit number.
4333 (load_register): Use IS_SEXT_32BIT_NUM.
4334 (macro): Check if load/store macro handling is using a
4335 constant 32-bit address on 64-bit address systems, and if
4336 so optimize the generation of that address.
4338 2002-02-08 Richard Henderson <rth@redhat.com>
4340 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4341 we've eliminated all foreign relocation types yet.
4342 (alpha_fix_adjustable): Likewise.
4344 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4346 Contribute sh64-elf.
4347 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4348 Stephen Clarke <Stephen.Clarke@st.com>
4349 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4350 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4351 * config/tc-sh.c (md_relax_table): Added default sizes for
4352 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4353 MOVI_16, MOVI_32 and MOVI_48.
4354 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4355 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4357 (shmedia_md_estimate_size_before_relax): Remove redundant
4358 blocks. Set fragP->fr_var even if relaxation type unchanged.
4359 Retain UNDEF_MOVI until expression decays to number.
4360 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4361 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4362 relocation types. Take fixP->fx_addnumber into account too.
4363 (shmedia_md_apply_fix): Likewise.
4364 (shmedia_md_convert_frag): Likewise.
4365 (shmedia_build_Mytes): Likewise.
4366 (sh64_consume_datalabel): Complain about nested datalabel.
4367 Support PIC relocs. Call sh_parse_name.
4368 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4369 in tc-sh.h to SHmedia reloc types.
4370 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4371 MOVI_GOTPC): New relaxation constants.
4372 (md_relax_table): Introduce relaxation directives for PIC-related
4374 (sh_PIC_related_p): Handle datalabel.
4375 (sh_check_fixup): Choose SH5 PIC relocations.
4376 (sh_cons_fix_new): Added BDF_RELOC_64.
4377 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4378 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4379 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4380 current ISA is SHmedia, get 7 bytes.
4381 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4382 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4384 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4385 shmedia_apply_fix3 and make void.
4386 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4387 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4389 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4390 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4391 2001-03-14 DJ Delorie <dj@redhat.com>
4392 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4393 * doc/Makefile.in(CPU_DOCS): Ditto.
4394 * doc/c-sh64.texi: New file.
4395 * doc/as.texinfo: Add SH64 support.
4396 2001-03-13 DJ Delorie <dj@redhat.com>
4397 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4398 A_REUSE_PREV so that its purpose is more obvious.
4399 (shmedia_build_Mytes): Ditto.
4400 2001-03-07 DJ Delorie <dj@redhat.com>
4401 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4403 (sh64_vtable_inherit): Ditto.
4404 (strip_datalabels): New, strip "datalabel" from given line.
4405 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4407 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4408 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4410 (shmedia_build_Mytes): ... to here.
4411 2001-03-06 DJ Delorie <dj@redhat.com>
4412 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4414 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4415 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4416 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4417 address by one in call to dwarf2_emit_insn.
4418 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4419 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4420 alignment handling broken by imported changes.
4421 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4422 (sh64_handle_align): Declare.
4423 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4424 (sh64_max_mem_for_rs_align_code): Declare.
4425 (enum sh64_isa_values): Moved here from tc-sh64.c.
4426 (md_do_align): Define.
4427 (sh64_do_align): Declare.
4428 (struct sh64_tc_frag_data): New.
4429 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4431 (TC_FRAG_INIT): Change to set new datatype.
4432 (struct sh64_segment_info_type): Rename member
4433 last_flushed_location to last_contents_mark. All users changed.
4434 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4435 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4436 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4437 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4438 of unsetting seen_insn.
4439 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4440 call sh64_update_contents_mark.
4441 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4442 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4443 enum sh64_isa_values.
4444 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4445 (emitting_crange): Boolean guard moved to file scope from function
4446 scope in sh64_set_contents_type.
4448 (sh64_update_contents_mark): New; most split out from
4449 sh64_flush_pending_output.
4450 (shmedia_md_end): Call sh64_update_contents_mark. Set
4451 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4452 (sh64_do_align): New function.
4453 (sh64_max_mem_for_rs_align_code): New function.
4454 (sh64_handle_align): Rename from shmedia_do_align. Make
4455 non-static. Add head comment. Emit zero bytes for n bytes modulo
4456 four. Change return-type to void.
4457 (shmedia_elf_new_section): Remove.
4458 (shmedia_md_assemble): Call sh64_update_contents_mark.
4459 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4460 new frag. Call sh64_update_contents_mark after making the new
4462 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4463 and sh_flush_pending_output.
4464 (sh64_flag_output): Also call md_flush_pending_output, but add
4465 condition on not emitting_crange.
4466 (sh64_tc_cons_fix_new): Remove.
4467 2001-01-12 Nick Clifton <nickc@redhat.com>
4468 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4469 alignment handling scheme imported from sourceware.
4470 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4471 * config/tc-sh64.h (TARGET_FORMAT): Define.
4472 (sh64_target_format): Prototype.
4473 * config/tc-sh64.c (sh64_target_mach): New function.
4474 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4475 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4476 zero_address_frag instead of copying the frag of the symbol.
4477 (shmedia_frob_file_before_adjust): Ditto.
4478 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4479 to valueT to remove signedness.
4480 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4481 headers to output_bfd. Do not evaluate symbols if final is false;
4483 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4484 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4485 to the current frag, call shmedia_md_convert_frag to emit fixups
4486 and make frag_wane neutralize the frag. Update comments.
4487 * config/tc-sh.c (md_convert_frag): Change caller of
4488 shmedia_md_convert_frag.
4489 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4490 * config/tc-sh64.h: Tweak comments and correct formatting.
4491 * config/tc-sh64.c: Ditto.
4492 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4493 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4494 for the no-relocation case.
4495 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4496 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4498 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4500 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4501 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4503 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4505 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4506 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4507 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4508 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4509 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4510 if reloc is emitted.
4511 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4512 New options plus bugfixes.
4513 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4515 (md_parse_option): Handle new options.
4516 (md_show_usage): Add blurb for new options.
4517 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4518 (sh64_expand, sh64_pt32): New variables.
4519 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4520 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4521 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4522 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4523 <resolved previously-pc-relative relocs>: Handle
4524 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4525 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4526 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4527 points to SHcompact code.
4528 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4529 SH64PCREL16)>: Check that ISA of what operand points at and
4530 PTA/PTB matches, or emit error.
4531 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4532 SHMEDIA_BFD_RELOC_PT.
4533 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4535 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4536 condition for MOVI expansion.
4537 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4538 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4540 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4542 (sh64_target_format): Error-check setting of sh64_pt32 and
4543 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4544 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4545 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4546 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4547 * config/tc-sh64.c: Improve comments.
4548 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4549 not say the linker will check correctness of PTA/PTB expansion.
4550 (shmedia_md_end): Make non-static.
4551 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4553 * config/tc-sh.c (sh_finalize): Remove.
4554 * config/tc-sh.h (md_end): Do not define.
4555 Remove prototype for sh_finalize.
4556 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4557 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4558 sh64_section_data container when storing section type in tdata
4559 field in elf_section_data.
4560 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4562 * Makefile.am: Update dependencies.
4563 * Makefile.in: Regenerate.
4564 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4565 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4566 dwarf2_emit_insn call with test on debug_type.
4567 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4568 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4569 CRT_SH5_ISA32 sticky for 64-bit.
4570 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4571 Generate .crange sections when switching ISA mode or emitting
4572 constants in same section as code.
4573 * config/tc-sh64.c: Reformat structure definitions.
4574 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4576 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4577 to emit a .cranges descriptor when contents type changes. Only
4578 emit error if changing contents type and -no-mix is in effect.
4579 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4580 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4581 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4582 sh64_flush_last_crange over sections.
4583 When checking main symbol of datalabel symbol, check for
4584 STO_SH5_ISA32, not ISA type of section in definition.
4585 (shmedia_frob_file_before_adjust): Check main symbol for
4586 STO_SH5_ISA32; don't check ISA type of section in definition.
4587 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4588 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4589 .cranges entries have been output.
4590 (shmedia_elf_new_section): Just call md_flush_pending_output.
4591 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4592 fix. Do not set tc_segment_info_data.in_code for section. Call
4593 sh64_set_contents_type for SHmedia code.
4594 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4595 false. Call md_flush_pending_output.
4596 (sh64_target_format): Check that -no-mix and
4597 -shcompact-const-crange are used in sane combination with other
4599 (shmedia_md_pcrel_from_section): Check type of fix for how to
4601 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4602 not ISA type of section in definition.
4603 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4604 hold contents-type state.
4605 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4606 (sh64_flush_pending_output): Declare.
4607 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4608 (sh64_tc_cons_fix_new): Declare.
4609 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4610 call sh64_flag_output.
4611 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4612 call sh64_set_contents_type to mark SHcompact code and set
4614 (md_longopts): New options "-no-mix" and
4615 "-shcompact-const-crange".
4616 (md_parse_option): Handle new options.
4617 (md_show_usage): Add blurb for new options.
4618 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4619 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4620 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4621 (sh64_last_insn_frag): New.
4622 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4623 to get frag for insn opcode for generating fixups; do not assume it
4625 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4627 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4629 (TC_FRAG_TYPE): Define as fragS *.
4630 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4631 (sh64_last_insn_frag): Declare.
4632 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4633 not == NULL before dereferencing.
4634 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4635 Get rid of BFD section flag and EF_SH64_ABI64.
4636 * config/tc-sh64.c (shmedia_frob_section_type): Use
4637 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4638 communicate the section as containing SHmedia code. Describe why.
4639 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4640 EF_SH64 regardless of ABI.
4641 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4642 in error message. Handle resolved expressions for
4643 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4644 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4645 (shmedia_check_limits): Handle BFD_RELOC_64.
4646 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4647 a STO_SH5_ISA32 symbol, only the BFD value.
4648 2000-12-11 Ben Elliston <bje@redhat.com>
4649 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4650 dwarf2_generate_asm_lineno.
4651 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4652 Handle PC-relative MOVI expansions with assembler relaxation.
4653 Generate PC-relative relocs from 16-bit PC-relative expressions.
4654 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4655 (shmedia_md_pcrel_from_section): ...here.
4656 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4657 turned completely resolved. Adjust relocation type for 16-bit
4658 immediate operands that has turned PC-relative. Adjust back for
4659 MD_PCREL_FROM_SECTION being applied twice.
4660 (shmedia_md_convert_frag): Always emit reloc for expression with
4661 global or weak symbol. Handle relaxation result for PC-relative
4663 (shmedia_md_estimate_size_before_relax): An expression with a weak
4664 or global symbol can not be relaxed. Break out tests for
4665 relaxable symbol into variable sym_relaxable.
4666 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4667 UNDEF_MOVI)>: Break out any PC-relative expression and change
4669 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4671 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4672 MOVI expansion. If X_op_symbol of the immediate expression is
4673 set, make an expression symbol for the argument to frag_var.
4674 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4676 (END): Adjust for new relaxations.
4677 (md_relax_table): Add entries for new relaxations.
4678 2000-12-07 Ben Elliston <bje@redhat.com>
4679 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4680 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4681 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4682 SHORI operand offsets in PT/PTA/PTB expansions.
4683 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4684 Implement DataLabel semantics.
4685 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4686 shmedia_frob_file_before_adjust.
4687 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4688 (DATALABEL_SUFFIX): Define.
4689 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4690 symbol list to update "datalabel" symbols to their main symbol
4692 (shmedia_frob_file_before_adjust): New.
4693 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4694 undefined and set STT_DATALABEL.
4695 (sh64_frob_label): Initialize TC symbol field.
4696 (sh64_consume_datalabel): Actually implement semantics. New
4697 parameter operandf, call it instead of expression.
4698 (sh64_exclude_symbol): New.
4699 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4700 to sh64_consume_datalabel.
4701 (tc_symbol_new_hook): Define to tc_frob_symbol.
4702 (TC_SYMFIELD_TYPE): Define to symbolS *.
4703 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4704 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4705 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4707 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4708 generating dwarf2 debug information.
4709 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4710 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4711 elf64-sh64 for the 64-bit ABI.
4712 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4714 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4715 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4717 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4718 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4719 (enum sh64_abi_values): New type.
4720 (enum sh64_isa_values): New type.
4721 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4722 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4723 (sh64_abi): Replace shmedia_64.
4724 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4725 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4726 (s_sh64_mode): Check validity for this target.
4727 (sh64_target_format): Initialize defaults for ISA and ABI.
4728 Fallback to old object format if no SH64 ISA or ABI has been
4730 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4731 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4732 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4733 * config/tc-sh64.h: Fix typo in comment.
4734 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4735 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4736 <PT fixups for absolute values>: Size will be longest, not
4738 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4739 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4740 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4741 and l1 to hold lowercase of two first characters. Change all
4742 remaining TO_LOWER to tolower.
4743 * config/tc-sh64.c (TO_LOWER): Delete.
4744 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4745 (md_parse_name): Define.
4746 (sh64_consume_datalabel): Declare.
4747 (DOLLAR_DOT): Define.
4748 * config/tc-sh64.c (shmedia_parse_exp): New.
4749 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4750 (shmedia_parse_reg): Remove const from src
4752 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4753 (shmedia_md_assemble): Ditto for op_end variable.
4754 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4755 Use shmedia_parse_exp, not parse_exp.
4756 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4757 parameter. All callers changed.
4758 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4760 (shmedia_parse_reg): Put first two character in local variables.
4761 Use tolower, not TO_LOWER. If no register is found and argtype
4762 indicates a control register, scan shmedia_creg_table
4764 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4765 * Makefile.am (CPU_TYPES): Add sh64.
4766 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4767 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4768 Regenerate dependencies.
4769 * Makefile.in: Regenerate.
4770 * configure.in: Add support for sh64-*-elf*.
4771 * configure: Regenerate.
4772 * config/tc-sh64.h: New.
4773 * config/tc-sh64.c: New.
4774 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4775 .mode, .isa and .uaquad.
4776 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4777 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4778 [HAVE_SH64] (END): Define as 10.
4779 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4780 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4782 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4783 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4784 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4785 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4787 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4788 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4789 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4790 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4791 SHmedia instructions. Handle state-change after switching to
4793 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4794 (md_parse_option) [HAVE_SH64]: Parse new options.
4795 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4796 (md_convert_frag) [HAVE_SH64] <default>: Call
4797 shmedia_md_convert_frag instead of abort.
4798 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4799 BFD_RELOC_SH_SHMEDIA_CODE.
4800 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4801 SHcompact or SHmedia code.
4802 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4803 shmedia_md_apply_fix instead of abort.
4804 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4805 result from calling shmedia_md_estimate_size_before_relax instead
4807 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4809 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4810 shmedia_init_reloc and do nothing more if it returns non-zero.
4811 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4812 * po/POTFILES.in: Regenerate.
4813 * po/gas.pot: Regenerate.
4815 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4817 * config/tc-sh.c (parse_at): Install the correct version of
4820 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4821 assume fixP->fx_subsy is non-NULL.
4823 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4825 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4826 A_DISP_PC_ABS, and adjust it by -4.
4827 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4829 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4830 the operand type is not A_DISP_PC_ABS.
4832 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4834 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4835 common and weak symbols. Handle common and weak symbols as
4836 undefined symbols with regards to GREG handling and merging.
4837 (mmix_frob_file): Ditto.
4839 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4841 * configure.in (hppa-*-netbsd*): New target.
4842 * configure: Regenerate.
4843 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4845 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4847 * config/tc-v850.c: Add missing prototypes amd use old-style
4848 function definitions.
4849 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4850 (sdata_section tdata_section, zdata_section, sbss_section,
4851 tbss_section, zbss_section, rosdata_section, rozdata_section,
4852 scommon_section, tcommon_section, zcommon_section,
4853 call_table_data_section, call_table_text_section): Delete.
4854 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4855 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4856 v850_call_table_data, v850_call_table_text): Delete.
4857 (struct v850_seg_entry): New.
4858 (v850_seg_table): New.
4859 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4860 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4861 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4862 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4865 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4866 recording of alignment.
4867 (md_pseudo_table): Use v850_seg.
4868 (md_begin): Don't init .call_table_data and .call_table_text here.
4869 Set v850_seg_table bss entry.
4871 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4873 Support on-demand global register allocation by passing on
4874 base-plus-offset relocs to the linker.
4875 * config/tc-mmix.c: Tweak and fix typos in comments.
4876 (allocate_undefined_gregs_in_linker): New variable.
4877 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4878 (md_longopts): Add --linker-allocated-gregs.
4879 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4880 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4881 (md_show_usage): Update text for -x. Add text for
4882 --linker-allocated-gregs.
4883 (tc_gen_reloc): Derive default value for addend from val and
4884 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4885 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4886 GREG if allocate_undefined_gregs_in_linker.
4887 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4888 --linker-allocated-gregs.
4889 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4890 --linker-allocated-gregs. Mention that it's implied by -x.
4891 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4892 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4894 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4896 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4898 * Makefile.am: Run "make dep-am"
4899 * Makefile.in: Regenerate.
4901 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4903 * config/tc-or32.c: New file.
4904 * config/tc-or32.h: New file.
4905 * configure.in: Add support for or32 targets.
4906 * configure: Regenerate.
4907 * config/obj-coff.c: Add support for or32 targets.
4908 * config/obj-coff.h: Add support for or32 targets.
4909 * Makefile.am: Add support for or32 targets.
4910 * Makefile.in: Regenerate.
4911 * NEWS: Mention support for OpenRISC.
4912 * doc/Makefile.in: Regenerate.
4913 * po/POTFILES.in: Regenerate.
4914 * po/gas.pot: Regenerate.
4916 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4918 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4921 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4923 * config/tc-mips.c (tc_gen_reloc): Arrange for
4924 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4925 their LO16 parts, even for ELF.
4927 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4929 * config/tc-i386.c: Protect definitions of true and false
4932 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4934 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4935 made because of .weak, if they are neither defined nor used in any
4938 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4940 * configure: Regenerated.
4942 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4944 * doc/Makefile.am (install): Depend on install-info.
4945 * doc/Makefile.in: Regenerate.
4947 2002-01-26 Nick Clifton <nick@redhat.com>
4949 * po/fr.po: Updated version
4951 2002-01-24 Kazu Hirata <kazu@hxi.com>
4953 * config/tc-h8300.c (check_operand): Don't print a warning
4954 when a valid 24-bit address is given to a 16-bit address
4957 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4959 * config/tc-sh.c (sh_elf_suffix): Removed.
4960 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4961 sh_end_of_match, sh_parse_name): New functions.
4962 (sh_elf_cons): Simplify.
4963 (parse_exp): Reject misplaced PIC operands.
4964 (md_undefined_symbol): Simplify.
4965 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4966 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4967 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4968 Complain if subsy remains at the end.
4969 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4970 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4972 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4974 * config/tc-mn10300.c (xr_registers): Move `pc'...
4975 (other_registers): ... here.
4977 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4979 * Makefile.am: Run "make dep-am".
4980 * Makefile.in: Regenerate.
4981 * gas/po/POTFILES.in: Regenerate.
4983 2002-01-21 DJ Delorie <dj@redhat.com>
4985 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4986 stabstr_name allocation permanent, as it will be referenced from
4989 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4991 * configure.in (ia64-*-netbsd*): New target.
4992 * configure: Regenerate.
4994 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4996 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4998 <Detailed description, ARM options>: Ditto.
4999 * doc/c-arm.texi (ARM Options): Ditto.
5001 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5003 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5004 do_mia, do_mar and do_mra respectively.
5005 (do_mav_*): Renamed from do_c_*.
5006 (mav_reg_required_here, mav_parse_offset): Renamed from
5007 cirrus_reg_required_here and cirrus_parse_offset respectively.
5008 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5010 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5011 Keith Walker <keith.walker@arm.com>
5013 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5014 (insns): Add pattern for bxj instruction.
5015 (do_bxj): New function.
5016 (arm_cpus): Add arm926ej.
5017 (arm_archs): Add armv5tej.
5019 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5021 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5023 2002-01-19 Keith Walker <keith.walker@arm.com>
5025 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5027 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5029 * NEWS: Mention new ARM command-line options and VFP support.
5031 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5033 (ARM_CEXT_MAVERICK): Similarly.
5034 (ARM_ANY): Now means any core instruction.
5035 (CPU_DEFAULT): Default to ARM_ANY.
5036 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5037 (pic_code): Declare for all object types. Make type int.
5038 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5039 (march_fpu_opt, mfpu_opt): Declare.
5040 (md_longopts): Tidy up conditional definitions.
5041 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5042 (arm_long_opts): New tables.
5043 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5044 (arm_parse_extension): New function.
5045 (md_parse_option): Rewrite using new table-driven system.
5046 (md_show_usage): Use new table-driven system.
5047 (md_begin): Calculate cpu_variant from command line option data.
5048 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5049 command-line options.
5050 * doc/c-arm.texi: Likewise.
5052 2002-01-18 Andreas Jaeger <aj@suse.de>
5054 * as.c (parse_args): Update year.
5056 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5058 * config/tc-tic54x.c (encode_address): Add a more informative
5059 warning about incorrect syntax.
5061 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5063 * po/gas.pot: Regenerate.
5065 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5067 * macro.c (get_any_string): Add no-c-format comment to prevent
5068 confusion when translating string.
5069 * gasp.c (get_any_string): Add no-c-format comment to prevent
5070 confusion when translating string.
5072 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5073 Johannes Stezenbach <js@convergence.de>
5074 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5075 matched before the shorter ones.
5076 (my_getSmallParser): Fix handling of nested parentheses in
5077 percent_op's. Code cleanup.
5078 (my_getPercentOp): New function, code from my_getSmallParser.
5079 (my_getSmallExpression): Fix handling of closing parentheses.
5080 Code cleanup. Better comments.
5082 2002-01-16 Nick Clifton <nickc@redhat.com>
5084 po/tr.po: New file: Turkish translation.
5085 configure.in (LINGUAS): Add "tr".
5086 configure: Regenerate.
5088 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5090 Support for VFP instructions
5091 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5092 (cp_address_required_here): New argument wb_ok. When false, do not
5093 accept write-back forms of addressing. Change all callers.
5094 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5095 (FPU_VFP_EXT_V2): Define.
5096 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5097 Define in terms of above.
5098 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5099 (vfp_reg): New struct.
5100 (vfp_regs): New array of registers.
5101 (insns): Add VFP instructions.
5102 (sn_table): New array of VFP single-precision register names.
5103 (dn_table): New array of VFP double-precision register names.
5104 (all_reg_maps): Add the new register tables.
5105 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5106 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5107 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5108 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5109 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5110 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5111 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5112 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5113 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5114 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5115 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5116 (do_vfp_sp_dp_cvt): New functions.
5117 (md_begin): Set soft-float flag for appropriate VFP work.
5118 (md_atof): Handle VFP-format doubles.
5119 (md_parse_option): Handle VFP command-line options.
5120 (md_show_usage): Display VFP command-line options.
5122 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5124 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5125 various command line options.
5127 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5129 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5131 (xstormy16_md_apply_fix3): Do not return a value.
5133 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5135 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5136 the -EL/-EB option that matches the target's endianness.
5137 (md_parse_option): Likewise.
5139 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5141 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5142 is not dependent on ARM_BI_ENDIAN.
5144 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5146 * tc-arm.c (all error messages): Normalize capitalization of messages.
5148 * tc-arm.h (md_operand): Delete define.
5149 * tc-arm.c (in_my_get_expression): New static variable.
5150 (my_get_expression): Set and clear it.
5151 (md_operand): New function. If called from my_get_expression
5152 put the error in inst.error.
5153 (output_inst): Now takes argument of instruction being assembled.
5154 Print it out with any error message.
5155 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5157 (end_of_line): Don't update inst.error if it is already set.
5159 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5161 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5162 op that can be translated into a mvn instruction.
5164 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5166 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5167 setting default md.flags.
5168 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5169 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5170 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5171 for 32 bit unwind info blocks.
5172 (generate_unwind_image): Add support for different types
5173 of unwind images (32 bits and/or big-endian).
5174 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5175 (ia64_target_format): Add support for hpux target formats.
5176 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5177 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5178 SHT_FINI_ARRAY elf section types.
5180 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5182 * tc-arm.c (struct reg_entry): Move before prototypes.
5183 (int_register, cp_register, fp_register): Delete.
5184 (reg_table): Delete. Replaced with ...
5185 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5186 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5187 (mav_dspsc_table): ... one table per register set.
5188 (arm_reg_hsh): Delete.
5189 (struct reg_map): New structure.
5190 (all_reg_maps): New array.
5191 (enum arm_reg_type): New enums.
5192 (build_reg_hsh): New function.
5193 (insert_reg_alias): Use hash table passed by caller. Adjust all
5195 (create_register_alias): New function, split out from ...
5196 (md_assemble): ... here.
5197 (md_begin): Build new register hash tables.
5198 (arm_reg_parse): New argument for the hash table to search. Adjust all
5200 (arm_reg_parse_any): New function.
5201 (co_proc_number): Look up the processor number in the processor hash
5203 (cirrus_regtype): Delete.
5204 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5205 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5206 (ARM_EXT_MAVERICKsc_register): Delete.
5207 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5208 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5210 (do_c_triple_4, do_c_triple_5): Delete.
5211 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5212 (do_c_quad_6): Delete.
5213 (do_c_quad_6[ab]): New functions.
5214 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5215 arguments to use new register parsing methods.
5216 (cirrus_reg_required_here): Likewise.
5217 (insns): Reclassify cirrus maverick worker functions.
5218 (cirrus_valid_reg): Delete.
5220 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5222 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5223 (sh*-*-netbsdelf*): New target.
5224 * configure: Regenerate.
5225 * tc-sh.h: Update copyright years.
5226 (TARGET_FORMAT): Add version for TE_NetBSD.
5228 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5230 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5233 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5235 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5236 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5238 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5240 * tc-mips.c (mips_cprestore_valid): New flag.
5241 (mips_frame_reg_valid): New flag.
5242 (macro) [M_JAL_2]: Check both flags.
5243 [M_JAL_A]: Likewise.
5244 (s_cprestore): Set mips_cprestore_valid.
5245 (tc_get_register): If setting mips_frame_reg, set
5246 mips_frame_reg_valid and clear mips_cprestore_valid.
5247 (s_mips_ent): Clear both flags.
5248 (s_mips_end): Clear both flags.
5250 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5252 * write.c (write_object_file): Make use of bfd_section_list_remove.
5253 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5254 * config/tc-mmix.c (mmix_frob_file): Likewise.
5256 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5258 * configure.in (i386-*-netbsdelf*): Collapse target into...
5259 (i386-*-netbsd*): ...this. Add support for x86-64.
5260 * configure: Regenerated.
5262 2002-01-03 matthew green <mrg@redhat.com>
5264 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5266 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5268 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5271 For older changes see ChangeLog-0001
5277 version-control: never