1 2003-04-24 Eric Christopher <echristo@redhat.com>
3 * config/tc-mips.c (nopic_need_relax): Revert previous
6 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
9 * config/tc-h8300.c (dwarf2dbg.h): Include
10 (md_pseudo_table): Handle .loc and .file
11 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
12 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
13 * Makefile.in: Regenerate.
15 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
17 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
18 (md_pseudo_table): Add h8300hn, h8300sn.
19 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
20 * doc/c-h8300.texi : Add documentation for new machine directives.
22 2003-04-24 Nick Clifton <nickc@redhat.com>
24 * config/tc-ppc.c (ppc_symbol_chars): Define.
25 * config/tc-ppc.h (tc_symbol_chars): Define.
27 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
29 * config/tc-sh.c: Amend comment to refer to SuperH.
30 * config/tc-sh.h: Likewise.
31 (LISTING_HEADER): Amend to refer to SuperH.
32 * config/tc-sh64.c: Change comment to refer to SuperH.
33 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
34 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
35 * doc/c-sh.texi: Amend to refer to SuperH.
36 Add SuperH architecture documentation references.
37 * doc/c-sh64.texi: Change to refer to SuperH.
39 2003-04-23 H.J. Lu <hjl@gnu.org>
41 * app.c (do_scrub_chars): More checks for valid labels.
43 2003-04-22 H.J. Lu <hjl@gnu.org>
45 * app.c (do_scrub_chars): Check for valid label.
47 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
49 * doc/as.texinfo: Replace references to Mitsubishi M32R with
50 references to Renesas M32R.
51 * doc/c-m32r.texi: Likewise.
53 2003-04-21 Richard Henderson <rth@redhat.com>
55 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
56 (out_file_list): Assign non-null filename after generating error.
58 2003-04-18 Jakub Jelinek <jakub@redhat.com>
60 * ehopt.c (check_eh_frame): For aug_size == 0
61 in state_seeing_aug_size state skip the state_skipping_aug
64 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
66 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
68 * doc/c-h8500.texi: Likewise.
69 * doc/c-sh.texi: Likewise.
70 * doc/c-sh64.texi: Likewise.
71 * doc/h8.texi: Likewise.
72 * config/tc-h8300.c: Likewise.
73 * config/tc-h8300.h: Likewise.
74 * config/tc-h8500.c: Likewise.
75 * config/tc-h8500.h: Likewise.
76 * config/tc-sh.c: Likewise.
77 * config/tc-sh.h: Likewise.
78 * config/tc-sh64.c: Likewise.
79 * config/tc-sh64.h: Likewise.
81 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
83 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
84 * config/tc-mips.c: Use signed add for n32 address arithmetic.
85 (append_insn): When filling delay slots with instructions
86 that have fixups that tc_gen_reloc might consider modifyable
87 in variant frags, start a new frag.
88 (load_address): Generate GOT_DISP with of without offset
89 depending on whether symbol is local. For -xgot, use
90 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
91 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
92 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
93 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
94 <ld_st>: In NewABI with small got, always use
95 GOT_PAGE/GOT_OFST, with the latter in the load/store
96 instruction. With big got, use GOT_HI16/GOT_LO16 or
98 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
99 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
100 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
101 (md_convert_frag): Use memmove for safe copying of overlapping
104 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
106 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
107 -mlong, -mshort-double and -mlong-double options; use table @code.
108 (M68HC11-Syntax): Update to document 68HC12 operands.
109 (M68HC11-Modifiers): New section for operand modifiers.
110 (M68HC11-Directives): New section for specific assembler directives.
111 (M68HC11-Branch): Fix Overfull hbox error.
113 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
115 * config/tc-mips.c (macro): Add comments explaining the rationale
118 2003-04-09 Chris Demetriou <cgd@broadcom.com>
120 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
121 constant address that Alexandre took out by accident. Reject
122 64-bit addresses that are not sign extensions of 32 bits only if
123 we don't support 64-bit address constants.
125 2003-04-09 Alan Modra <amodra@bigpond.net.au>
127 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
129 2003-04-08 Nick Clifton <nickc@redhat.com>
131 * as.c (perform_an_assembly_pass): If using cgen, call
133 * cgen.c (gas_cgen_begin): New function. If
134 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
135 otherwise call cgen_clear_signed_overflow_ok.
136 * cgen.h: Prototype gas_cgen_begin.
138 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
140 * write.c (write_relocs): Remove unused variable.
142 2003-04-06 Chris Demetriou <cgd@broadcom.com>
144 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
145 (macro): Use new macro to decide whether to emit constant address
146 as 32 or 64 bits if addresses are 32-bit wide but registers are
149 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
151 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
152 (M6811_OP_PAGE_ADDR): New internal define.
153 (get_operand): New modifier %page and %addr to obtain page and
154 address part of a far-function.
155 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
156 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
158 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
159 (find_opcode): Add comment.
160 (md_estimate_size_before_relax): Force relocation of
161 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
162 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
163 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
164 on the symbol itself so that DWARF2 strings are merged correctly.
166 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
168 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
169 default tic4x target format to 'coff2-tic4x'.
170 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
172 * config/tc-tic4x.h: Ditto
174 2003-04-03 Nick Clifton <nickc@redhat.com>
176 * NEWS: Mention support for Xtensa architecture.
178 2003-04-02 Philip Blundell <philb@gnu.org>
180 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
182 2003-04-02 Chris Demetriou <cgd@broadcom.com>
184 * config/tc-mips.c (macro2): Adjust implementation of
185 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
186 in the case where the source and destination registers
189 2003-04-01 Bob Wilson <bob.wilson@acm.org>
191 * Makefile.am (CPU_TYPES): Add xtensa.
192 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
193 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
194 (xtensa-relax.o): New target.
196 * Makefile.in: Regenerate.
197 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
198 extra_objects for xtensa targets.
199 * configure: Regenerate.
200 * write.c (write_object_file): Add new md_post_relax_hook.
201 * config/tc-xtensa.c: New file.
202 * config/tc-xtensa.h: Likewise.
203 * config/xtensa-istack.h: Likewise.
204 * config/xtensa-relax.c: Likewise.
205 * config/xtensa-relax.h: Likewise.
206 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
207 * doc/Makefile.in: Regenerate.
208 * doc/all.texi: Set new XTENSA variable.
209 * doc/as.texinfo: Set new Xtensa variable. Describe
210 Xtensa-specific options. Define line comment character for
211 Xtensa. Add Xtensa processors to list of ELF targets where
212 alignment is specified in bytes. Add new Xtensa-Dependent node.
213 Add acknowledgements for those contributing to the Xtensa port.
214 * doc/internals.texi: Describe new md_post_relax_hook.
215 * doc/c-xtensa.texi: New file.
218 2003-04-01 Nick Clifton <nickc@redhat.com>
219 Richard Earnshaw <rearnsha@arm.com>
221 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
222 (ARM_ARCH_IWMMXT): Simplify.
223 (insns): Place iwmmx instructions in correct place in table.
224 (arm_add_note): New function: Add a note entry to a .note section.
225 (md_begin): Make the default architecture be unknown.
226 Suppress the creation of an arm note section.
228 2003-03-26 Eric Christopher <echristo@redhat.com>
230 * config/tc-mips.c (nopic_need_relax): Check for
233 2003-03-25 Stan Cox <scox@redhat.com>
234 Nick Clifton <nickc@redhat.com>
236 Contribute support for Intel's iWMMXt chip - an ARM variant:
238 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
239 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
240 (enum wreg_type, enum iwmmxt_insn_type): New types.
241 (wr_register, wc_register, wcg_register): New macros.
242 (iwmmxt_table): New variable.
243 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
244 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
245 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
246 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
247 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
248 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
249 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
250 cp_byte_address_offset, cp_byte_address_required_here,
251 check_iwmmxt_insn): New functions.
252 (asm_opcode_insns): Add iWMMXt instructions.
253 (md_begin): Set the mach value for iWMMXt targets. Create a note
254 section to identify iwmmxt binaries.
255 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
256 * doc/c-arm.texi: Document the support for the iWMMXt.
257 * NEWS: Mention new support.
259 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
261 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
262 * doc/all.texi: Likewise.
263 * doc/c-tic54x.texi: Likewise.
265 2003-03-21 Andreas Schwab <schwab@suse.de>
267 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
268 avoid aliasing issue.
270 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
272 * config/tc-s390.c (s390_arch_size): Initialize to zero.
273 (current_arch_mask): Rename to current_mode_mask.
274 (current_arch_requested): Remove variable.
275 (current_cpu): New variable.
276 (init_default_arch): Set defaults values for s390_arch_size,
277 current_mode_mask and current_cpu.
278 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
279 (md_begin): Replace current_arch_mask by current_cpu.
280 (md_assemble): Adapt check and error message to current_mode_mask and
283 2003-03-09 James E Wilson <wilson@tuliptree.org>
285 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
286 * read.c (get_line_sb): Return end of line character or '\n' if
287 it is zero or non-existent.
289 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
291 * config/tc-mips.c (mips_validate_fix): New function.
292 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
293 (mips_validate_fix): Declare.
295 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
297 * Reverted 2003-03-02's patch.
299 2003-03-11 Steve Ellcey <sje@cup.hp.com>
301 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
302 (TC_DWARF2_EMIT_OFFSET): Provide default.
303 (out_debug_aranges, out_debug_info): Use it.
304 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
305 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
306 (ia64_gen_real_reloc_type): ... here.
307 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
309 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
311 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
312 (s_mips_ent): Likewise.
314 2003-03-04 Dmitry Diky <diwil@mail.ru>
316 * config/tc-msp430.c (mcu_types): Add recently announced x1122
317 and x1123 devices, add missed x437.
318 (md_show_usage): Sort device list.
320 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
322 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
323 (md_begin): Use preset_target_arch.
324 (md_longopts): Make isa option unconditional.
325 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
326 set preset_target_arch.
327 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
328 by -S_GET_VALUE (fixP->fx_subsy).
329 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
331 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
332 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
334 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
336 * config/tc-mips.c (append_insn): Add handling of
337 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
338 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
339 misaligned address and reange overflow.
340 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
341 earlier warnings about misaligned address and reange overflow.
342 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
343 (md_apply_fix): Likewise. Fix warning output.
344 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
345 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
346 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
348 2003-02-21 Nick Clifton <nickc@redhat.com>
350 * NEWS: Mention availability of test generator program.
352 2003-02-21 Miles Bader <miles@gnu.org>
354 * config/tc-v850.c (system_registers): Add v850e debug registers.
355 (system_register_name): Accept up to 27 (the last v850e sys register).
357 2003-02-21 Bob Wilson <bob.wilson@acm.org>
359 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
360 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
361 Capitalize section headings consistently. Format index entries more
362 consistently. Unconditionalize text about whether text and data
363 sections are alterable. Use @ifnottex for alternatives to @tex output
364 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
365 .size and .type directives. Be more polite about bad bug reports.
366 Move FDL into a separate file.
367 * doc/fdl.texi: New file.
369 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
371 * config/tc-mips.c (prev_reloc_op_frag): New variable.
372 (macro): Check it to decide whether a new frag is needed.
373 (my_getSmallExpression): Set it.
375 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
377 * cgen.c: Fix typo: intial -> initial.
379 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
381 * app.c (do_scrub_chars): Handle '||' in two states.
383 2003-02-13 Alan Modra <amodra@bigpond.net.au>
385 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
386 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
388 2003-02-11 Uwe Stieber <uwe@wwws.de>
390 * configure.in: Add support for kaOS as cross build target system.
391 * configure: Regenerated.
393 2003-02-10 Nick Clifton <nickc@redhat.com>
395 * config/tc-arm.c (md_begin): If the Maverick co-processor is
396 selected, set the EF_ARM_MAVERICK_FLOAT flag and
397 bfd_mach_arm_ep9312 machine number.
399 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
401 * config/tc-mips.c (reloc_needs_lo_p): New function.
402 (fixup_has_matching_lo_p): New function.
403 (append_insn): Use reloc_needs_lo_p to check whether a relocation
404 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
405 if that fixup already has a matching %lo(). Don't call frag_wane here.
406 (macro): Call frag_wane here if the last unmatched hi was in the
408 (pic_need_relax): New function, split out from...
409 (md_estimate_size_before_relax): ...here.
410 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
411 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
413 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
415 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
417 2003-02-06 Alan Modra <amodra@bigpond.net.au>
419 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
422 2003-02-05 Alan Modra <amodra@bigpond.net.au>
424 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
425 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
426 accept x@got+off etc.
427 (md_assemble): Handle TLS relocs.
428 (ppc_force_relocation): Force for all TLS relocs.
429 (ppc_fix_adjustable): Likewise.
430 (md_apply_fix3): Handle TLS relocs.
432 2003-02-04 Alan Modra <amodra@bigpond.net.au>
434 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
435 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
437 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
439 * config/tc-mips.c (enum small_ex_type): Remove.
440 (imm_unmatched_hi): Remove.
441 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
442 argument from calls to append_insn.
443 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
445 (macro_build): Update append_insn calls.
446 (mips16_macro_build, macro_build_lui): Likewise.
447 (mips_ip): Rework handling of small expressions. Move explicit
448 relocation handling into my_getSmallExpression. Assume that the
449 value of 'o' operands is zero if there is only one bracketed
451 (percent_op): Make constant. Record the BFD relocation code
452 associated with each operator.
453 (my_getSmallParser, my_getPercentOp): Remove.
454 (parse_relocation): New function.
455 (my_getSamllExpression): Rework. Fill in relocations here
456 rather than in mips_ip.
458 2003-01-29 Nick Clifton <nickc@redhat.com>
460 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
461 assembler's handling of # <linenum> "<filename>" directives work.
463 2003-01-28 Jakub Jelinek <jakub@redhat.com>
465 * dwarf2dbg.c: Include filenames.h.
466 (struct file_entry): Make filename const char *.
467 (dirs, dirs_in_use, dirs_allocated): New variables.
468 (get_filenum): Add NUM argument. Build directory table.
469 (dwarf2_where): Adjust caller.
470 (dwarf2_directive_file): Use get_filenum to allocate
471 slot in file and directory tables.
472 (dwarf2_directive_loc): Recreate full filename from
473 directory and filename part if needed for listing.
474 (out_file_list): Output directory table.
475 Output main source file dirname before its filename.
477 2003-01-28 Dmitry Diky <diwil@mail.ru>
479 * config/tc-msp430.c: Replace occurences of 'tolower' with
482 2003-01-27 David Mosberger <davidm@hpl.hp.com>
484 * config/tc-ia64.c (dot_vframesp): Correct error message.
485 (dot_vframepsp): Ditto.
487 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
489 * configure.in (em): Set to irix on all Irix systems.
490 * configure: Rebuilt.
491 * config/te-irix.h: New file.
492 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
493 whether to use Irix-specific 64-bit format.
495 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
497 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
499 2003-01-25 Jakub Jelinek <jakub@redhat.com>
501 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
502 (tc_gen_reloc): Handle TLS relocs.
503 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
504 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
506 * config/obj-elf.c (obj_elf_section_word): Handle tls.
507 (obj_elf_type): Handle tls_object.
509 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
511 * config/tc-s390.c (s390_tls_suffix): New function.
512 (elf_suffix_type): Add suffix enums for TLS relocations.
513 (s390_elf_suffix): Add suffix strings for TLS relocations.
514 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
516 (md_gather_operands): Map new instruction operand/elf suffix
517 combinations for TLS to bfd relocations.
518 (tc_s390_fix_adjustable): Add new TLS relocations.
519 (tc_s390_force_relocation): Likewise.
520 (md_apply_fix3): Likewise.
522 2003-01-24 Alan Modra <amodra@bigpond.net.au>
524 * as.h: Update copyright date.
525 * symbols.c: Likewise.
526 * config/tc-d10v.h: Likewise.
527 * config/tc-fr30.h: Likewise.
528 * config/tc-i960.h: Likewise.
529 * config/tc-mips.h: Likewise.
531 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
532 (MD_APPLY_SYM_VALUE): Move.
534 2003-01-23 Nick Clifton <nickc@redhat.com>
536 NEWS: Announce sh2e support.
540 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
542 * config/tc-sh.c (md_show_usage): Added sh2e next to
544 (sh_elf_final_processing): Handle arch_sh2e.
546 2003-01-23 Alan Modra <amodra@bigpond.net.au>
548 * symbols.c (S_FORCE_RELOC): Add "strict" param.
549 * symbols.h (S_FORCE_RELOC): Likewise.
550 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
551 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
552 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
553 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
554 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
555 * write.c (generic_force_reloc): New function.
556 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
557 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
558 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
559 * as.h (generic_force_reloc): Declare.
560 * doc/internals.texi (S_FORCE_RELOC): Update.
561 (TC_FORCE_RELOCATION_SUB_SAME): Update.
563 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
565 (alpha_fix_adjustable): Likewise.
566 * config/tc-arm.c (arm_force_relocation): Likewise.
567 * config/tc-cris.c (md_cris_force_relocation): Likewise.
568 * config/tc-frv.c (frv_force_relocation): Likewise.
569 * config/tc-i386.c (md_apply_fix3): Likewise.
570 * config/tc-ia64.c (ia64_force_relocation): Likewise.
571 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
572 * config/tc-m32r.c (m32r_force_relocation): Likewise.
573 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
574 * config/tc-mcore.c (mcore_force_relocation): Likewise.
575 * config/tc-mips.c (mips_force_relocation): Likewise.
576 * config/tc-mmix.c (mmix_force_relocation): Likewise.
577 * config/tc-ppc.c (ppc_force_relocation): Likewise.
578 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
579 * config/tc-sh.c (sh_force_relocation): Likewise.
580 (md_pcrel_from_section): Likewise.
581 * config/tc-sparc.c (tc_gen_reloc): Likewise.
582 * config/tc-v850.c (v850_force_relocation): Likewise.
583 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
584 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
585 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
586 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
588 * config/tc-d10v.c (d10v_force_relocation): Delete.
589 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
590 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
591 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
592 * config/tc-fr30.c (fr30_force_relocation): Delete.
593 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
594 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
595 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
596 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
597 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
598 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
599 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
600 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
601 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
602 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
603 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
604 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
605 * config/tc-i386.c (i386_force_relocation): Delete.
606 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
608 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
609 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
610 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
611 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
613 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
614 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
616 2003-01-23 Alan Modra <amodra@bigpond.net.au>
618 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
619 sh64_elf_section_data.
620 * config/tc-sh64.h: Include elf32-sh64.h.
621 * config/tc-m68hc11.c: Don't include stdio.h.
622 (md_show_usage): Fix missing continuation.
623 * Makefile.am: Run "make dep-am".
624 * Makefile.in: Regenerate.
626 2003-01-22 Nick Clifton <nickc@redhat.com>
628 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
630 2003-01-21 Fabio Alemagna <falemagn@aros.org>
632 * configure.in: Handle *-*-aros*.
633 * configure: Regenerated from configure.in.
635 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
637 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
638 gotplt and pltoff relocations.
639 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
640 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
641 gotplt and pltoff to bfd relocations.
642 (md_gather_operands): Map new instruction operand/elf suffix
643 combinations to bfd relocations.
644 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
645 to the list of unadjustable relocations.
646 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
647 and pltoff relocations.
648 (md_apply_fix3): Add the new relocations.
650 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
652 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
655 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
657 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
658 of relocs for memory bank addressing.
660 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
662 * config/tc-m68hc11.c (md_show_usage): Update usage.
663 (md_parse_option): Recognize -m68hcs12.
664 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
666 * doc/as.texinfo (Overview): Document new option -m68hcs12.
668 2003-01-16 Jakub Jelinek <jakub@redhat.com>
670 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
672 2003-01-16 Alan Modra <amodra@bigpond.net.au>
674 * Makefile.am: Run "make dep-am".
675 * Makefile.in: Regenerate.
676 * po/POTFILES.in: Regenerate.
678 2003-01-11 Alan Modra <amodra@bigpond.net.au>
680 * read.c (get_absolute_expr): New, split out from..
681 (get_absolute_expression): ..here.
682 * read.h (get_absolute_expr): Declare.
683 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
684 Trim size to arch bits_per_address, and test for negative input
685 via get_absolute_expr.
687 2003-01-07 DJ Delorie <dj@redhat.com>
689 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
691 (xstormy16_md_apply_fix3): Use adjustment.
693 2003-01-02 Ben Elliston <bje@redhat.com>
695 * configure.in: Add iq2000-elf target.
696 * configure: Regenerate.
697 * config/tc-iq2000.c: New file.
698 * config/tc-iq2000.h: Likewise.
699 * po/gas.pot: Regenerate.
701 2003-01-02 Chris Demetriou <cgd@broadcom.com>
703 * config/tc-mips.c: Update copyright years to include 2003.
704 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
705 Additionally, clean up their code slightly and clean up their
708 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
710 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
712 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
714 * doc/Makefile.in: Regenerate.
716 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
718 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
719 of .init and .fini sections for array initializers and finalizers.
721 2002-12-31 Chris Demetriou <cgd@broadcom.com>
723 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
724 the "+D" operand, which will be used only by the disassembler.
726 2002-12-30 Chris Demetriou <cgd@broadcom.com>
728 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
730 * configure: Regenerate.
731 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
732 (macro_build): Handle "K" operand.
733 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
734 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
735 (mips_ip): New variable "lastpos", and implement "+A", "+B",
736 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
737 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
738 (validate_mips_insn): Implement "+" as a way to extend the
739 allowed operands, and implement "K", "+A", "+B", and "+C"
741 (OPTION_MIPS32R2): New define.
742 (md_longopts): Add entry for OPTION_MIPS32R2.
743 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
744 (md_parse_option): Handle OPTION_MIPS32R2.
745 (s_mipsset): Reimplement handling of ".set mipsN" options
746 and add support for ".set mips32r2".
747 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
748 (md_show_usage): Document "-mips32r2" option.
749 * doc/as.texinfo: Document "-mips32r2" option.
750 * doc/c-mips.texi: Likewise.
752 2002-12-30 Dmitry Diky <diwil@mail.ru>
754 * configure.in: Add msp430 target.
755 * configure: Regenerate.
756 * Makefile.am: Add msp430 target.
757 * Makefile.in: Regenerate.
758 * config/tc-msp430.c: New file: msp430 assembler.
759 * config/tc-msp430.h: New file: target macros for msp430.
760 * doc/Makefile.am: Add msp430 target.
761 * doc/Makefile.in: Regenerate.
762 * doc/as.texinfo: Include msp430 documenation.
763 * doc/all.texi: Enable msp430 documentation.
764 * doc/c-msp430.texi: New file: document msp430 specific features
767 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
769 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
770 (dwarf2_finish): Use it.
771 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
772 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
774 2002-12-20 DJ Delorie <dj@redhat.com>
776 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
777 BFD_RELOC_XSTORMY16_12.
779 2002-12-19 Alan Modra <amodra@bigpond.net.au>
781 * doc/as.texinfo (Invoking): Typo fix.
782 * config/tc-tic54x.c (encode_operand): Comment typo fix.
784 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
786 * doc/c-alpha.texi: Fix typos.
787 * doc/c-arm.texi: Likewise.
788 * doc/c-d10v.texi: Likewise.
789 * doc/c-i370.texi: Likewise.
790 * doc/c-i960.texi: Likewise.
791 * doc/c-ia64.texi: Likewise.
792 * doc/c-mmix.texi: Likewise.
793 * doc/c-ns32k.texi: Likewise.
794 * doc/c-pdp11.texi: Likewise.
795 * doc/c-pj.texi: Likewise.
796 * doc/c-sh64.texi: Likewise.
797 * doc/c-sparc.texi: Likewise.
798 * doc/c-tic54x.texi: Likewise.
799 * doc/c-v850.texi: Likewise.
800 * doc/c-vax.texi: Likewise.
801 * doc/internals.texi: Likewise.
803 2002-12-18 Chris Demetriou <cgd@broadcom.com>
805 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
806 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
807 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
808 arrange not to issue warnings about use of AT when AT is not
811 2002-12-17 Nick Clifton <nickc@redhat.com>
813 * as.c (std_longopts): Duplicate --keep-locals entry in order to
814 prevent it being confused with -k.
816 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
818 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
819 has already been set up, use it.
821 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
823 * ChangeLog-9295: Fix a typo.
825 * config/tc-d10v.c: Fix a comment typo.
826 * config/tc-dlx.c: Likewise.
827 * config/tc-h8300.h: Likewise.
828 * config/tc-h8500.h: Likewise.
829 * config/tc-mips.c: Likewise.
830 * config/tc-s390.c: Likewise.
831 * config/tc-sh.h: Likewise.
832 * config/tc-tic80.h: Likewise.
833 * config/tc-w65.h: Likewise.
834 * config/tc-z8k.c: Likewise.
835 * config/tc-z8k.h: Likewise.
836 * testsuite/gas/h8300/cmpsi2.s: Likewise.
838 2002-12-16 Alan Modra <amodra@bigpond.net.au>
840 * config/tc-d30v.c (check_range): Warning fixes, formatting.
841 Simplify sign extension. Remove redundant unsigned < 0 test.
842 * config/tc-i960.c (md_ri_to_chars): Prototype.
843 * config/tc-mcore.c (md_pseudo_table): Fix typo.
844 (dump_literals): Init brarsym, and test later instead of isforce.
846 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
847 (parse): Constify line and lineptr.
848 (md_begin): Calculate endop here.
850 2002-12-13 Alan Modra <amodra@bigpond.net.au>
852 * config/obj-vms.c: Formatting. Include fnctl.h.
853 (Create_VMS_Object_File): Fix creat call for sane unix systems.
854 (Object_Record_Offset): Make it a size_t.
855 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
856 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
857 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
858 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
859 (vms_fixup_data_section <data_size>): Add here instead.
860 * config/e-criself.c: Fix typo in last change.
862 2002-12-13 Alan Modra <amodra@bigpond.net.au>
864 * write.c (write_object_file): Fix signed/unsigned warning.
865 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
866 * config/e-criself.c (criself_bfd_name): Prototype.
867 * config/obj-aout.c (s_sect): Remove unused function.
868 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
869 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
870 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
871 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
872 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
873 (VMS_RSYM_Parse <Current_Routine>): Likewise.
874 (vms_fixup_text_section <text_siz>): Likewise.
875 (synthesize_data_segment <data_size>): Likewise.
876 (vms_fixup_xtors_section <sect_no>): Likewise.
877 (structure_count): Don't use implicit int type.
878 * config/tc-a29k.c (insert_sreg): Prototype.
879 (define_some_regs): Prototype, make static.
880 (parse_operand): Likewise.
881 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
882 (md_show_usage <stream>): Likewise.
883 (md_section_align <segment>): Likewise.
884 (md_convert_frag <all args>): Likewise.
885 (md_estimate_size_before_relax <all args>): Likewise.
886 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
887 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
888 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
889 (md_undefined_symbol <name>): Likewise.
890 (md_convert_frag <all args>): Likewise.
891 (write_long <opcode>): Likewise.
892 (tc_gen_reloc <seg>): Likewise.
893 (md_estimate_size_before_relax <all args>): Likewise.
894 (md_apply_fix3 <seg>): Likewise.
895 (s_d30v_align <ignore>): Likewise.
896 (build_insn): Correct format string.
897 (md_apply_fix3): Likewise.
898 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
899 (md_undefined_symbol <name>): Likewise.
900 (md_convert_frag <all args>): Likewise.
901 (md_cgen_lookup_reloc <insn>): Likewise.
902 (md_begin): Delete unused vars.
903 (md_assemble): Likewise.
904 (md_estimate_size_before_relax): Likewise.
905 (fr30_relax_frag): #if 0 out, seems unused.
906 (md_atof): Remove declaration of atof_ieee.
907 (restore_colon): Prototype.
908 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
909 (frv_find_in_vliw): Likewise.
910 (frv_debug_tomcat): Likewise.
911 (frv_adjust_vliw_count): Likewise.
912 (frv_tomcat_shuffle): Likewise.
913 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
914 frv_find_in_vliw call.
915 (md_atof): Remove declaration of atof_ieee.
916 * config/tc-h8500.c (cons): Delete declaration.
917 (md_begin <opcode>): Constify.
918 (displacement_size, immediate_size, absolute_size): Remove.
919 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
920 (tc_crawl_symbol_chain <headers>): Likewise.
921 (md_undefined_symbol <name>): Likewise.
922 (tc_headers_hook <headers>): Likewise.
923 (md_parse_option <c,arg>): Likewise.
924 (md_show_usage <stream>): Likewise.
925 (md_convert_frag <headers, seg>): Likewise.
926 (tc_coff_symbol_emit_hook <ignore>): Likewise.
927 (md_atof): Remove declaration of atof_ieee.
928 (tc_aout_fix_to_chars): Remove unused function.
929 (parse_reg): Prototype.
930 (parse_exp): Prototype.
931 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
932 (parse_reglist): Prototype.
933 (get_operand): Prototype.
934 (get_operands): Prototype.
935 (get_specific): Prototype. Make "this_index" signed.
936 (check): Prototype, make static.
938 (build_relaxable_instruction): Prototype, make static.
939 (build_bytes): Prototype.
940 (wordify_scb): Prototype.
941 * config/tc-h8500.h (start_label): Declare.
942 (tc_coff_sizemachdep): Declare.
943 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
944 (i370_rmode <unused>): Likewise.
945 (i370_csect <unused>): Likewise.
946 (i370_dc <unused>): Likewise.
947 (i370_ds <unused>): Likewise.
948 (i370_elf_lcomm <unused>): Likewise.
949 (i370_ltorg <ignore>): Likewise.
950 (i370_using <ignore>): Likewise.
951 (i370_drop <ignore>): Likewise.
952 (i370_byte <ignore>): Likewise.
953 (i370_tc <ignore>): Likewise.
954 (md_estimate_size_before_relax <fragp, seg>): Likewise.
955 (md_convert_frag <all args>): Likewise.
956 (md_undefined_symbol <name>): Likewise.
957 (md_pcrel_from_section <sec>): Likewise.
958 (tc_gen_reloc <seg>): Likewise.
959 (i370_section_letter): #if 0 unused functions.
960 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
961 (symbol_locate): Prototype.
962 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
963 (md_number_to_disp, md_number_to_field): Remove.
964 (md_apply_fix3): Correct format string and cast "fup".
965 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
966 (s_endian <ignore>): Likewise.
967 (md_undefined_symbol <name>): Likewise.
968 (tc_crawl_symbol_chain <headers>): Likewise.
969 (tc_set_bal_of_call): Likewise.
970 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
971 (i960_handle_align <fragp>): Likewise.
972 (i960_validate_fix <this_segment_type>): Likewise
973 (tc_gen_reloc <section>): Likewise.
974 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
975 (struct memS, struct regop): Forward declare.
976 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
977 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
978 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
979 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
980 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
981 (md_chars_to_number, md_number_to_imm): Make static, prototype.
982 (md_number_to_field): Likewise.
983 (md_number_to_disp): Remove unused function.
984 (md_atof): Remove declaration of atof_ieee.
985 (md_apply_fix3): Correct md_number_to_imm call.
986 * config/tc-ip2k.c (md_assemble): Warning fix.
987 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
988 (fill_insn <ignore>): Likewise.
989 (debug_sym <ignore>): Likewise.
990 (md_undefined_symbol <name>): Likewise.
991 (m32r_scomm <ignore>): Likewise.
992 (md_convert_frag <abfd>): Likewise.
993 (md_cgen_lookup_reloc <insn>): Likewise.
994 (m32r_record_hi16 <seg>): Likewise.
995 (md_estimate_size_before_relax): #if 0 old_fr_fix.
996 (allow_m32rx): Prototype.
997 (first_writes_to_seconds_operands): Prototype.
998 (writes_to_pc): Prototype.
999 (can_make_parallel): Prototype.
1000 (make_parallel): Prototype.
1001 (target_make_parallel): Prototype.
1002 (assemble_two_insns): Prototype.
1003 (m32r_record_hi16): Prototype.
1004 (md_atof): Remove declaration of atof_ieee.
1005 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1006 (m32r_force_relocation): Prototype.
1007 (m32r_elf_section_change_hook): Prototype.
1008 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1009 (md_show_usage): Fix signed/unsigned warning.
1010 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1011 (calcop): Ditto for reg_prefix var.
1012 (hexval): Add cast to fix signed/unsigned warning.
1013 (md_number_to_disp): Delete unused function.
1014 (md_number_to_field): Likewise.
1015 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1016 (match_name): Prototype.
1017 (get_bf2): Prototype.
1018 (get_bf_offset_expression): Prototype.
1019 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1020 (md_undefined_symbol <ignore>): Likewise.
1021 (md_create_short_jump <all args>): Likewise.
1022 (md_create_long_jump <all args>): Likewise.
1023 (md_convert_frag <abfd, sec>): Likewise.
1024 (md_apply_fix3 <segment>): Likewise.
1025 (md_section_align <segment>): Likewise.
1026 (md_pcrel_from_section <sec>): Likewise.
1027 (tc_gen_reloc <section>): Likewise.
1028 (reg_m, reg_n, immediate): Delete unused vars.
1029 (dump_literals): Fix signed/unsigned warning.
1030 (enter_literal): Likewise.
1031 (parse_imm): Likewise. Also fix format string.
1032 (parse_mem): Remove unused var.
1033 (md_assemble <LS>): Abort on unexpected inst.
1034 (md_atof): Remove declaration of atof_ieee.
1035 (md_parse_option): Remove unused vars.
1036 (md_apply_fix3): Fix format strings, cast args.
1037 (tc_gen_reloc): Delete unused var.
1038 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1039 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1040 (md_undefined_symbol <name>): Likewise.
1041 (md_convert_frag <abfd>): Likewise.
1042 (tc_gen_reloc <seg>): Likewise.
1043 (check_operand <insn>): Likewise.
1044 (md_convert_frag): Fix format strings.
1045 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1046 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1047 (md_atof): Remove declaration of atof_ieee.
1048 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1049 (md_apply_fix3): Fix bogus >>='s.
1050 (md_undefined_symbol): Delete unused var.
1051 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1052 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1053 (fake_opcode): Adjust for pj_opc_int_t change.
1054 (md_begin): Likewise.
1055 (md_assemble): Likewise.
1056 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1057 instead of non-existent third arg of parse_exp_save_ilp.
1058 (md_parse_option): Correct "little" and "big" calls.
1059 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1060 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1061 (tc_gen_reloc <section>): Likewise.
1062 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1063 (debug): Rewrite using VA_* macros.
1064 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1065 (md_convert_frag): Likewise.
1066 (md_parse_option): Likewise.
1067 (md_show_usage): Likewise.
1068 (md_undefined_symbol): Likewise.
1069 (tc_gen_reloc): Likewise.
1070 (md_operand): Likewise.
1071 (tc_aout_pre_write_hook): Delete.
1072 (struct tic30_insn): Make "operands" unsigned.
1073 (struct tic30_par_insn): Likewise.
1074 (md_assemble): Likewise for "count", "i" and "numops".
1075 (tic30_parallel_insn): Likewise for vars here.
1076 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1077 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1078 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1079 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1080 (md_undefined_symbol): Likewise.
1081 (md_parse_option): Likewise.
1082 (md_convert_frag): Likewise.
1083 (tc_coff_symbol_emit_hook): Likewise.
1084 (md_atof): Remove declaration of atof_ieee.
1085 (const_overflow): Warning fixes, tidy.
1086 (get_operands): Delete unused vars.
1087 (internal_error_a): Adjust format string to expect a long for arg.
1088 (find_opcode): Warning fixes, simplify.
1089 (build_insn): Cast internal_error_a arg.
1090 (md_begin): Likewise.
1091 (md_apply_fix3): Likewise.
1092 (md_assemble): Delete unused var.
1093 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1094 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1095 (whatreg, parse_reg, parse_exp): Make static, prototype.
1096 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1097 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1098 (get_operand, get_operands, get_specific, newfix): Likewise.
1099 (apply_fix, build_bytes): Likewise.
1100 (md_atof): Remove declaration of atof_ieee.
1101 (tc_aout_fix_to_chars): Delete.
1102 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1104 (md_parse_option): Fix s_segm and s_unseg calls.
1106 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1108 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1110 (RELAX_BRANCH_RELOC_S2): Delete.
1111 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1112 Do not handle BFD_RELOC_16_PCREL.
1113 (macro_build, mips_ip): Likewise.
1114 (md_pcrel_from): Return 4 for undefined symbols regardless of
1116 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1117 Don't dereference howto if no such relocation is available.
1118 Do not apply hack for in-place zero addend in NEWABI.
1119 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1121 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1122 Alan Modra <amodra@bigpond.net.au>
1124 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1125 (TC_LINKRELAX_FIXUP): Add comments.
1127 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1129 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1131 (r_register_name, xr_register_name): Add prototype declarations.
1133 2002-12-08 H.J. Lu <hjl@gnu.org>
1135 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1136 copied from tc-i386.c.
1138 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1140 Fix Bug savannah/1825:
1141 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1142 (md_relax_table): Define specific relax for PC-rel offsets.
1143 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1144 (m68hc11_relax_frag): Handle the new relax code.
1145 (md_convert_frag): Likewise.
1146 (md_estimate_size_before_relax): Likewise.
1148 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1150 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1152 2002-12-05 Richard Henderson <rth@redhat.com>
1154 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1155 (ia64_gen_real_reloc_type): Handle it.
1156 (pseudo_func): Add @ltoffx.
1157 (md_begin): Build .<ltoffx>.
1158 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1160 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1162 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1163 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1164 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1165 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1166 COFF to call arm_force_relocation.
1168 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1170 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1172 (emit_one_bundle): Handle "hint" instruction.
1173 (operand_match): Match IA64_OPND_AR_CSD.
1175 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1177 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1180 2002-12-03 Nick Clifton <nickc@redhat.com>
1182 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1183 .PPC.EMB.apuinfo sections.
1185 2002-12-03 Richard Henderson <rth@redhat.com>
1187 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1189 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1191 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1192 (cons, s_align_bytes): Delete declaration.
1194 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1196 (dot): Delete unused function.
1197 (w65_expression): Remove unused arg.
1198 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1200 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1202 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1204 (check): Remove unused function.
1205 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1206 on unhandled switch case.
1207 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1209 (tc_crawl_symbol_chain): Delete unused function.
1210 (tc_headers_hook): Likewise.
1211 (tc_Nout_fix_to_chars): Likewise.
1212 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1213 (md_parse_option): Likewise.
1214 (md_convert_frag): Likewise.
1215 (tc_coff_symbol_emit_hook): Likewise.
1216 (md_show_usage): Likewise.
1217 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1218 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1219 (w65_expression): Declare.
1221 * po/POTFILES.in: Regenerate.
1223 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1224 and ARM_ADRL_IMMEDIATE.
1226 2002-12-02 Nick Clifton <nickc@redhat.com>
1228 * gasp.c: Delete. It has been deprecated.
1229 * NEWS: Mention that gasp has been removed.
1230 * Makefile.am: Remove references to gasp.
1231 * makefile.vms: Likewise.
1232 * mpw-make.sed: Likewise.
1233 * Makeile.in: Regenerate.
1234 * doc/gasp.texi: Delete.
1235 * doc/Makefile.am: Remove references to gasp.texi.
1236 * doc/Makefile.in: Regenerate.
1237 * macro.c: Delete references to gasp.
1238 Remove use of comment_char function parameter as it is no longer
1240 * macro.h: Update prototypes to remove comment_char parameter.
1242 * read.c (read_a_source_file, s_irp): Remove comment_char
1243 parameter from invocation of functions in macro.c
1245 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1247 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1249 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1251 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1252 (tc_gen_reloc): Mark section param as not used.
1254 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1256 Fix Bug savannah/1825:
1257 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1258 that are not pc-relative.
1259 (m68hc11_relax_frag): Declare.
1261 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1262 the offsetable indexed addressing modes (n,r).
1263 (build_insn): Cleanup some locals.
1264 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1265 relaxation of difference between two symbols of same section.
1266 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1267 only when this is a PC-relative operand and the offset is not absolute.
1268 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1269 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1270 be handled by m68hc11_relax_frag.
1272 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1274 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1275 (32-bit int, 64-bit double).
1276 (md_longopts): New options -mshort, -mlong, -mshort-double and
1277 -mlong-double to control the ABI.
1278 (md_show_usage): Update.
1279 (md_parse_option): Handle new options.
1280 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1282 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1284 * symbols.c (report_op_error): New function, broken out of ...
1285 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1288 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1290 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1291 for BFD_RELOC_32_PLT_PCREL.
1293 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1295 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1296 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1297 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1298 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1299 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1300 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1301 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1302 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1303 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1304 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1305 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1306 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1307 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1308 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1309 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1310 TRUE/FALSE. Formatting.
1312 2002-11-29 Nick Clifton <nickc@redhat.com>
1314 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1315 assume a value of zero.
1316 (do_bkpt): Likewise.
1318 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1320 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1321 for TLS relocations.
1323 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1325 * config/tc-ia64.c (md_apply_fix3): Add default case.
1327 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1329 * symbols.c (S_SET_THREAD_LOCAL): New function.
1330 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1331 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1332 for TLS relocations.
1333 * config/tc-ia64.c (md_apply_fix3): Likewise.
1334 * config/tc-alpha.c (md_apply_fix3): Likewise.
1336 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1338 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1341 2002-11-26 DJ Delorie <dj@redhat.com.
1343 * dwarf2dbg.c (scale_addr_delta): New.
1344 (size_inc_line_addr): Use it.
1345 (emit_inc_line_addr): Use it.
1347 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1349 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1350 (md_assemble): Don't pass on branches to constants as relaxable.
1353 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1355 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1357 2002-11-21 Randolph Chung <randolph@tausq.org>
1359 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1360 only if they have default visibility.
1362 2002-11-21 Richard Henderson <rth@redhat.com>
1364 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1367 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1369 * config/tc-mcore.c (mcore_pool_count): New function.
1370 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1372 2002-11-20 Klee Dienes <kdienes@apple.com>
1374 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1375 coalesce the name fields to use the same pointer.
1377 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1378 the name fields to use the same pointer.
1379 (get_specific): Check for opcodes with the same name using strcmp
1380 as well as comparing the pointer.
1382 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1384 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1387 2002-11-19 Richard Henderson <rth@redhat.com>
1389 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1390 visibility portion of st_other.
1392 2002-11-19 Klee Dienes <kdienes@apple.com>
1394 * config/tc-h8300.c (struct h8_instruction): New type, used to
1395 wrap h8_opcodes with length, noperands, idx, and size fields
1396 (computed at run-time).
1397 (h8_instructions): New variable.
1398 (md_begin): Allocate the storage for h8_instructions. Fill
1399 h8_instructions with pointers to the appropriate opcode and the
1400 correct value for the additional fields.
1401 (clever_message): Update to use h8_instructions instead of
1403 (build_bytes): Ditto.
1404 (get_specific): Ditto.
1405 (md_assemble): Ditto.
1407 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1409 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1410 adjustments to symbols in merge sections.
1412 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1414 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1416 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1418 * dwarf2dbg.h (dwarf2_format): New enum.
1419 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1420 (out_debug_line, out_debug_info): Add code for handling 64-bit
1422 * config/tc-mips.h (mips_dwarf2_format): Declare.
1423 * config/tc-mips.c (mips_dwarf2_format): New function.
1424 * doc/internals.texi (DWARF2_FORMAT): Document.
1426 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1428 * config/tc-mips.c (s_change_section): Make sure input buffer
1429 is not accessed past the end. Don't hand
1430 obj_elf_change_section a pointer into the input buffer.
1432 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1434 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1437 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1439 * config/tc-tic4x.c: Fixed proper commandline
1440 parameters. Added support for new opcode-list format. General
1441 error message fixups.
1442 (c4x_inst_add): Reject insn not for our CPU
1443 (md_begin): Added matrix for setting the proper opcode-level &
1444 device-flags according to cpu type and revision. Rewrite the
1446 (c4x_operand_parse): Fix opcode bug
1447 (c4x_operands_match): New function argument. Added dry-run
1448 mechanism, that is optional error generation. Added constraint 'i'
1450 (c4x_insn_check): Added new function for post-verification of the
1452 (md_assemble): Check all opcodes before croaking because of an
1453 argument mismatch. Need this to be able to fully support
1454 ortogonally arguments.
1455 (md_parse_options): Revised commandprompt swicthes and added new
1457 (md_show_usage): Complete rewrite of printout.
1459 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1461 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1462 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1463 warning when using constant direct bigger than 2^16. Add the new
1466 2002-11-11 Christopher Faylor <cgf@redhat.com>
1468 * configure.in: Use .gdbinit under Cygwin.
1469 * configure: Regenerate.
1471 2002-11-11 Christopher Faylor <cgf@redhat.com>
1473 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1476 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1478 * config/tc-tic4x.c: Declare as many functions as possible as
1479 static. Maintenance on the general indenting. Removed unnecessary
1480 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1481 function. Add support for new DSP, TMS320VC33. Fix bug for
1482 converting flonum constants.
1483 (c4x_do_align): Add proper align handling. Setup align to insert
1485 (c4x_gen_to_words): Support for extended TI type floats.
1486 (md_atof): Proper dumping of multiple-word littlenums.
1487 (c4x_atof): Added support for extended TI type floats.
1488 (c4x_stringer): Added new function to handle compact strings.
1489 (c4x_emit_char): Added new function argument to handle custom
1490 length inserts, like single-byte strings.
1491 * config/tc-tic4x.h: Add proper align handling with NOP's.
1492 * Makefile.am: Added tic4x dependecy
1493 * Makefile.in: Regenerate
1495 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1497 * macro.c (get_any_string): Correct logic for not going beyond end
1500 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1502 * config/tc-mmix.c (get_putget_operands): Mark both possible
1503 operands as invalid at beginning.
1505 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1506 Initialize target of fixup to zero.
1508 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1510 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1511 NEWABI, but we should still emit HI16_S for non-PIC n32.
1513 2002-11-06 Richard Henderson <rth@redhat.com>
1515 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1516 (alpha_fix_adjustable): ... here.
1517 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1519 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1521 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1524 2002-11-05 H.J. Lu <hjl@gnu.org>
1526 * config/tc-mips.c (support_64bit_objects): Check *l before it
1529 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1531 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1532 SEC_LOAD flags for sections marked as 's'.
1534 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1536 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1537 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1538 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1541 * dep-in.sed: Fix typo.
1543 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1545 * configure.in: Update ARM CPU patterns.
1546 * configure: Regenerated.
1548 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1550 * itbl-lex.l: Use #include <> for generated headers.
1551 * itbl-ops.c: Likewise.
1553 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1555 * doc/gasp.texi: Fix typo in deprecation note.
1557 2002-10-23 Nick Clifton <nickc@redhat.com>
1559 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1560 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1562 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1564 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1565 (tc_frob_file_before_adjust): Don't define.
1566 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1568 (mmix_frob_file_before_adjust): Remove ineffective function.
1570 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1572 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1573 (cris_relax_frag): New function.
1574 (md_estimate_size_before_relax) <case ENCODE_RELAX
1575 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1576 expressions that will become absolute expressions to relaxation.
1577 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1578 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1579 value, not distance to symbol.
1580 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1581 Ditto. Correct placement of fixup.
1582 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1584 * config/tc-cris.h (cris_relax_frag): Declare.
1585 (md_relax_frag): Define.
1587 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1589 * config/obj-elf.c (special_sections): Use correct types for init
1591 (obj_elf_change_section): Don't mess with init array section type.
1593 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1595 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1596 for relocs against symbols in a merged section.
1598 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1600 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1601 table as register names.
1603 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1605 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1608 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1610 * expr.c (operand): Add support for n.nn flonums.
1612 2002-10-17 Johannes Stezenbach <js@convergence.de>
1614 * itbl-parse.y (entry): Provide empty action.
1616 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1618 * configure.in (BFDVER_H): Set and subst.
1619 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1620 * Makefile.am: Run "make dep-am".
1622 * configure: Regenerate.
1623 * Makefile.in: Regenerate.
1624 * doc/Makefile.in: Regenerate.
1626 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1628 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1629 (MD_APPLY_SYM_VALUE): Define for PE too.
1631 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1633 * Makefile.am: Run "make dep-am".
1634 (CPU_OBJ_VALID): sh64 coff is invalid.
1635 * as.c: #include "bfdver.h".
1636 * Makefile.in: Regenerate.
1637 * config.in: Regenerate.
1639 2002-10-14 Momchil Velikov <velco@fadata.bg>
1641 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1643 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1645 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1646 * configure: Regenerate.
1648 2002-10-13 Eric Christopher <echristo@redhat.com>
1649 Alexandre Oliva <aoliva@redhat.com>
1651 * config/tc-mips.c (s_gpdword): New function.
1652 (mips_pseudo_table): Add .gpdword.
1653 (mips_need_elf_addend_fixup): never for NEWABI.
1654 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1656 (s_cpadd): Generate .cpadd on NEWABI.
1658 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1660 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1662 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1664 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1665 (md_relax_frag): Adjust macro.
1666 * config/tc-mips.c (mips_relax_branch): New variable.
1667 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1668 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1669 (RELAX_MIPS16_P): Adjust.
1670 (append_insn): Emit branch to non-constant in a frag_var if
1671 branch-relaxation is desirable and possible.
1672 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1673 (OPTION_ELF_BASE): Adjust.
1674 (md_parse_option): Handle new options.
1675 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1677 (relaxed_branch_length): New function.
1678 (md_estimate_size_before_relax): Handle branch frags.
1679 (mips_relax_frag): Likewise.
1680 (md_convert_frag): Handle branch frags. Warn if branch is
1683 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1685 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1687 (md_apply_fix3): Add TLS relocs.
1688 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1691 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1692 Alan Modra <amodra@bigpond.net.au>
1694 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1695 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1697 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1699 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1702 2002-10-09 Richard Shann <richard.shann@superh.com>
1703 Stephen Clarke <stephen.clarke@superh.com>
1705 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1708 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1710 * contig/tc-sh.c (sh_local_pcrel): New.
1711 (sh_force_relocation): Use sh_local_pcrel.
1712 (md_pcrel_from_section): Check the relocation type whether it
1713 should be resolved locally. Use S_FORCE_RELOC.
1715 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1717 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1718 (TC_FORCE_RELOCATION): Tidy arg.
1720 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1721 Ken Raeburn <raeburn@cygnus.com>
1722 Aldy Hernandez <aldyh@redhat.com>
1723 DJ Delorie <dj@redhat.com>
1724 Michael Meissner <meissner@redhat.com>
1725 Eric Christopher <echristo@redhat.com>
1726 Richard Sandiford <rsandifo@redhat.com>
1728 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1729 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1730 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1731 (hilo_interlocks): True for CPU_VR5500.
1732 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1733 (mips_fix_vr4122_bugs): New.
1734 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1735 (mips_emit_delays): Likewise.
1736 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1737 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1738 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1739 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1740 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1741 (OPTION_ELF_BASE): Bump.
1742 (md_parse_option): Handle the new options.
1743 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1746 2002-09-29 H.J. Lu <hjl@gnu.org>
1748 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1749 twice if howto->pcrel_offset is true.
1751 2002-09-28 Matt Thomas <matt@3am-software.com>
1752 Jason Thorpe <thorpej@wasabisystems.com>
1754 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1755 convert undefined references to GOT32/PLT32 if PIC code is
1756 requested. Fix comment.
1758 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1760 * config/tc-sh.c (sh_force_relocation): Return 0 for
1761 some PC relative relocations when not relaxing.
1763 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1765 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1766 Define them if not BFD_ASSEMBLER.
1767 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1769 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1770 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1771 (tc_gen_reloc): Handle x86-64 TLS relocs.
1773 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1775 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1776 fixups to current or absolute section.
1778 2002-09-26 Jim Wilson <wilson@redhat.com>
1780 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1783 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1785 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1786 capable configuration.
1787 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1789 (mips_ip): Likewise.
1791 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1793 * config/tc-mips.c (append_insn): Fix jump overflow check.
1795 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1797 * config/tc-i386.c (process_operands): Warn about "lea" segment
1800 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1802 * write.c: Delete set_segment_vma and prototype. Update all callers.
1804 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1806 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1807 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1808 Rename "fseg" to "sym_seg".
1809 * Makefile.am: Run "make dep-am".
1810 * Makefile.in: Regenerate.
1811 * doc/Makefile.in: Regenerate.
1813 2002-09-20 Nick Clifton <nickc@redhat.com>
1815 * symbols.c (colon): Do not allow symbols to be created in the
1816 absolute section if WORKING_DOT_WORD is not defined and
1817 new_broken_words would require a new frag to be created.
1819 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1821 * expr.c (expr): Simplify foo-foo here.
1822 (clean_up_expression): Remove O_subtract code.
1824 * write.h (struct fix): Add fx_dot_value.
1825 (dot_value): Declare.
1826 * write.c (dot_value): New var.
1827 (fix_new_internal): Save dot_value as fx_dot_value.
1828 (fixup_segment): Adjust fx_offset using fx_dot_value.
1829 * expr.c (expr): Update dot_value.
1831 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1833 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1834 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1835 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1837 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1838 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1839 BFD_RELOC_386_TLS_GOTIE.
1841 2002-09-19 Richard Henderson <rth@redhat.com>
1843 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1845 (alpha_force_relocation): Don't special-case branch type relocs.
1847 2002-09-19 Nick Clifton <nickc@redhat.com>
1849 * config/tc-m68k.c (select_control_regs): Handle situation where
1850 architecture has not yet been selected.
1852 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1854 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1855 (IS_SEXT_16BIT_NUM): New macro.
1856 (macro_build_ldst_constoffset): New function, to build a set of
1857 instructions to do a load or store from a constant offset relative
1858 to a given register.
1859 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1860 .cprestore pseudo-op.
1862 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1864 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1866 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1868 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1870 2002-09-17 Stan Cox <scox@redhat.com>
1872 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1873 (macro): Likewise for la. Likewise for ld.
1874 (mips_after_parse_args): Make -xgot optional, not the default.
1875 (md_apply_fix3): Allow composite relocation to set up gp.
1876 (tc_gen_reloc): Allow relaxing for newabi.
1877 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1878 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1880 2002-09-17 Nick Clifton <nickc@redhat.com>
1882 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1883 BFD_RELOC_ARM_IMMEDIATE has been done.
1884 (tc_gen_reloc): Do not issue reloc number of unimplemented
1885 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1886 their name is already in the error message - plus remove them
1887 from the default case.
1889 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1890 behavior of instructions.
1892 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1894 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1895 Convert functions to K&R format.
1897 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1899 * config/tc-mips.c (pdr_seg): Define only for ELF.
1900 (s_change_section): Remove unused variable. Don't use for nonELF.
1902 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1904 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1906 * config/obj-elf.h (obj_elf_change_section): Likewise.
1908 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1910 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1911 (out_debug_info): Likewise.
1913 2002-09-16 Bruno Haible <bruno@clisp.org>
1915 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1916 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1917 * config/tc-i386.c (i386_target_format): Likewise.
1918 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1919 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1921 2002-09-13 Nick Clifton <nickc@redhat.com>
1923 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1924 when deciding if any operands have been skipped.
1926 2002-09-11 Nick Clifton <nickc@redhat.com>
1928 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1930 * po/tr.po: Updated Turkish translation.
1932 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1934 * config/tc-i386.c (md_apply_fix3): Allow addend for
1935 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1936 BFD_RELOC_386_TLS_LE_32.
1938 2002-09-05 Jeff Law <law@redhat.com>
1940 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1941 marker relocations such as ENTRY/EXIT.
1942 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1943 to both OBJ_ELF and OBJ_SOM.
1945 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1947 * doc/internals.texi (md_apply_fix3): Expand.
1948 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1949 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1950 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1951 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1952 EXTERN_FORCE_RELOC): Document.
1953 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1954 * as.h: Don't include struc-symbol.h for arc.
1956 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1957 subtract absolute symbol.
1958 * obj.h (struct format_ops): Add frob_file_before_fix.
1959 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1960 * symbols.c (S_FORCE_RELOC): New function.
1961 * symbols.h (S_FORCE_RELOC): Declare.
1962 * write.c (TC_FORCE_RELOCATION): Change default.
1963 (TC_FORCE_RELOCATION_ABS): Define.
1964 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1965 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1966 (TC_FORCE_RELOCATION_SECTION): Don't define.
1967 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1968 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1969 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1970 (TC_VALIDATE_FIX_SUB): Define.
1971 (TC_FIX_ADJUSTABLE): Don't define.
1972 (MD_APPLY_SYM_VALUE): Define this instead.
1973 (abs_section_sym): New variable.
1974 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1975 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1976 Don't put the absolute section sym on fixups here.
1977 (fix_segment): New function.
1978 (write_relocs): Don't call fixup_segment from here.
1979 (write_object_file): Instead call tc_frob_file_before_fix,
1980 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1981 Don't output the absolute section symbol.
1982 (fixup_segment): Rewrite.
1983 * write.h (abs_section_sym): Declare.
1984 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1986 (aout_format_ops): Adjust to suit.
1987 * config/obj-aout.h (obj_frob_file): Don't define.
1988 (obj_frob_file_before_fix): Define.
1989 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1990 (S_FORCE_RELOC): Define.
1991 * config/obj-bout.h (S_FORCE_RELOC): Define.
1992 * config/obj-coff.c (coff_format_ops): Init new field.
1993 * config/obj-coff.h: Formatting fixes.
1994 (obj_sec_sym_ok_for_reloc): Define.
1995 (S_FORCE_RELOC): Define.
1996 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1997 (ecoff_frob_file): .. from here.
1998 (ecoff_format_ops): Add new function.
1999 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2000 (obj_frob_file_before_fix): Define.
2001 * config/obj-elf.c (elf_format_ops): Init new field.
2002 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2003 * config/obj-ieee.h: Formatting fixes.
2004 (S_FORCE_RELOC): Define.
2005 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2006 * config/obj-vms.h (S_FORCE_RELOC): Define.
2007 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2008 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2009 for BFD_RELOC_32 and BFD_RELOC_64.
2010 (alpha_fix_adjustable): Remove extern and weak tests.
2011 (alpha_before_fix): Rename from alpha_adjust_symtab.
2012 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2013 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2014 (TC_VALIDATE_FIX): Tweak param name.
2015 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2016 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2017 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2018 (MD_APPLY_SYM_VALUE): Define.
2019 (tc_adjust_symtab): Don't define.
2020 (alpha_adjust_symtab): Don't declare.
2021 (tc_frob_file_before_fix): Define.
2022 (alpha_before_fix): Declare.
2023 (TC_INIT_FIX_DATA): Tweak param names.
2024 * config/tc-arc.c: Include "struc-symbol.h".
2025 (md_pcrel_from): Remove undefined sym fudge.
2026 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2027 Don't set fx_addnumber.
2028 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2029 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2030 (EXTERN_FORCE_RELOC): Define.
2031 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2032 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2033 (arm_validate_fix): Return void.
2034 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2035 Add plt and got reloc tests.
2036 (arm_force_relocation): Call S_FORCE_RELOC.
2037 * config/tc-arm.h (struct fix): Forward declare.
2038 (TC_VALIDATE_FIX): No longer set add_symbolP.
2039 (arm_validate_fix): Adjust declaration.
2040 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2041 (TC_FORCE_RELOCATION): Tweak param name.
2042 (TC_INIT_FIX_DATA): Likewise.
2043 (obj_fix_adjustable): Don't define.
2044 (tc_fix_adjustable): Call arm_fix_adjustable.
2045 (TC_FIX_ADJUSTABLE): Don't define.
2046 (MD_APPLY_SYM_VALUE): Define.
2047 (EXTERN_FORCE_RELOC): Define.
2048 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2049 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2050 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2051 Remove *valP fudges and code to subtract abs sym. Don't set
2053 * config/tc-avr.h: Formatting.
2054 (EXTERN_FORCE_RELOC): Define.
2055 (MD_APPLY_SYM_VALUE): Define.
2056 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2057 (md_apply_fix3): Remove code to subtract abs sym.
2058 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2059 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2060 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2061 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2062 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2063 (tc_fix_adjustable): Remove extern, weak tests.
2064 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2065 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2066 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2067 and code to subtract abs sym.
2068 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2069 (d10v_force_relocation): Call S_FORCE_RELOC.
2070 * config/tc-d10v.h: Don't include write.h.
2071 (struct fix): Instead, forward declare.
2072 (MD_PCREL_FROM_SECTION): Tweak param names.
2073 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2074 (d10v_fix_adjustable): Likewise.
2075 (obj_fix_adjustable): Don't define.
2076 (tc_fix_adjustable): Define.
2077 (TC_FORCE_RELOCATION): Tweak param name.
2078 (MD_APPLY_SYM_VALUE): Define.
2079 (EXTERN_FORCE_RELOC): Define.
2080 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2081 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2082 and code to subtract abs sym.
2083 * config/tc-d30v.h: Don't include write.h.
2084 (struct fix): Instead, forward declare.
2085 (MD_PCREL_FROM_SECTION): Tweak param names.
2086 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2087 (MD_APPLY_SYM_VALUE): Define.
2088 (EXTERN_FORCE_RELOC): Define.
2089 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2090 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2091 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2092 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2093 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2094 Don't use fx_addnumber.
2095 * config/tc-dlx.h: Don't include write.h.
2096 (md_convert_frag): We're not alpha twice over.
2097 (EXTERN_FORCE_RELOC): Define.
2098 (obj_fix_adjustable): Don't define.
2099 (tc_fix_adjustable): Define.
2100 (TC_FIX_ADJUSTABLE): Don't define.
2101 (MD_APPLY_SYM_VALUE): Define.
2102 (LOCAL_LABELS_DOLLAR): Undef always.
2103 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2104 (fr30_fix_adjustable): Remove extern, weak tests.
2105 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2106 (obj_fix_adjustable): Don't define.
2107 (tc_fix_adjustable): Define.
2108 (struct fix): Forward declare.
2109 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2110 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2111 (frv_fix_adjustable): Don't do extern, weak tests.
2112 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2113 (TC_FIX_ADJUSTABLE): Don't define.
2114 (obj_fix_adjustable): Don't define.
2115 (tc_fix_adjustable): Define.
2116 (struct fix): Forward declare.
2117 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2118 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2119 * config/tc-h8300.h (struct fix): Forward declare.
2120 (EXTERN_FORCE_RELOC): Define.
2121 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2122 (hppa_fix_adjustable): Don't test extern or weak. Don't
2123 symbol_mark_used_in_reloc.
2124 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2126 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2127 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2128 (TC_FORCE_RELOCATION_SECTION): Don't define.
2129 (MD_APPLY_SYM_VALUE): Define.
2130 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2131 to subtract abs sym.
2132 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2133 (MD_APPLY_SYM_VALUE): Define.
2134 (MD_PCREL_FROM_SECTION): Tweak param name.
2135 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2136 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2137 (i386_force_relocation): New function.
2138 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2139 (TC_VALIDATE_FIX): Likewise.
2140 (TC_FIX_ADJUSTABLE): Don't define.
2141 (MD_APPLY_SYM_VALUE): Define.
2142 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2143 (i386_force_relocation): Declare.
2144 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2145 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2146 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2147 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2148 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2149 (EXTERN_FORCE_RELOC): Define.
2150 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2151 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2152 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2153 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2154 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2155 Remove #if 0 code. Invert return boolean.
2156 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2157 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2158 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2159 (tc_coff_sizemachdep): Prototype.
2160 (i960_handle_align): Likewise.
2161 (i960_validate_fix): Adjust declaration.
2162 (reloc_callj): Likewise.
2163 (EXTERN_FORCE_RELOC): Define.
2164 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2165 (TC_FORCE_RELOCATION_ABS): Define.
2166 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2167 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2168 (TC_FIX_ADJUSTABLE): Don't define.
2169 (MD_APPLY_SYM_VALUE): Define.
2170 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2171 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2172 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2173 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2174 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2175 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2176 (MD_APPLY_SYM_VALUE): Define.
2177 (EXTERN_FORCE_RELOC): Define.
2178 (TC_FORCE_RELOCATION): Tweak param name.
2179 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2180 (m32r_fix_adjustable): Don't test extern, weak.
2181 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2182 (MD_APPLY_SYM_VALUE): Define.
2183 (obj_fix_adjustable): Don't define.
2184 (tc_fix_adjustable): Define.
2185 (tc_frob_file): Don't define.
2186 (tc_frob_file_before_fix): Define.
2187 (EXTERN_FORCE_RELOC): Define.
2188 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2189 BFD_RELOC_VTABLE_ENTRY address.
2190 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2191 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2192 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2193 Remove duplicated fx_done code.
2194 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2195 (EXTERN_FORCE_RELOC): Define.
2196 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2198 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2199 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2200 (TC_FIX_ADJUSTABLE): Don't define.
2201 (EXTERN_FORCE_RELOC): Define.
2202 (MD_APPLY_SYM_VALUE): Define.
2203 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2204 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2205 Remove fx_addsy tests.
2206 (mcore_force_relocation): Call S_FORCE_RELOC.
2207 (mcore_fix_adjustable): Don't test fx_addsy.
2208 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2209 (EXTERN_FORCE_RELOC): Define.
2210 (obj_fix_adjustable): Don't define.
2211 (tc_fix_adjustable): Define.
2212 (MD_APPLY_SYM_VALUE): Define.
2213 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2214 (mips_pic): No longer static.
2215 (mips_force_relocation): Call S_FORCE_RELOC.
2216 (mips_fix_adjustable): Remove extern, weak tests.
2217 * config/tc-mips.h (enum mips_pic_level): Declare.
2218 (mips_pic): Declare.
2219 (tc_frob_file): Don't define.
2220 (tc_frob_file_before_fix): Define this instead.
2221 (EXTERN_FORCE_RELOC): Define.
2222 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2223 with reg_section tests. Set fx_done instead of calling
2224 symbol_clear_used_in_reloc on bad relocs.
2225 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2226 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2227 (mmix_adjust_symtab): Simplify list handling. Abort on any
2229 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2230 BFD_RELOC_MMIX_LOCAL.
2231 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2232 (EXTERN_FORCE_RELOC): Define.
2233 (MD_PCREL_FROM_SECTION): Tweak param name.
2234 (tc_frob_file): Don't define.
2235 (tc_frob_file_before_fix): Define this instead.
2236 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2237 Remove SEC_CODE checks.
2238 (mn10300_fix_adjustable): Remove extern and weak tests.
2239 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2240 (TC_FORCE_RELOCATION): Tweak param name.
2241 (obj_fix_adjustable): Don't define.
2242 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2243 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2244 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2245 (openrisc_fix_adjustable): Don't test fx_addsy.
2246 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2247 (obj_fix_adjustable): Don't define.
2248 (tc_fix_adjustable): Define this instead.
2249 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2250 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2251 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2252 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2253 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2254 (MD_APPLY_SYM_VALUE): Define.
2255 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2256 Don't subtract symbol value.
2257 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2258 (EXTERN_FORCE_RELOC): Define.
2259 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2260 (MD_APPLY_SYM_VALUE): Define.
2261 (obj_fix_adjustable): Don't define.
2262 (tc_fix_adjustable): Define this instead.
2263 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2265 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2266 (ppc_force_relocation <elf version>): New.
2267 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2268 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2269 comments. Don't subtract fx_subsy as that is already done.
2270 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2271 (MD_PCREL_FROM_SECTION): Likewise.
2272 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2273 ppc_force_relocation.
2274 (TC_FORCE_RELOCATION_SECTION): Delete.
2275 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2276 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2277 (MD_APPLY_SYM_VALUE): Define.
2278 * config/tc-s390.c: #include "dwarf2dbg.h".
2279 (s390_insn): Remove excess parens.
2280 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2281 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2282 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2283 non-NULL. Don't subtract off fx_addsy value.
2284 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2285 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2286 (TC_FIX_ADJUSTABLE): Don't define.
2287 (MD_APPLY_SYM_VALUE): Define.
2288 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2289 (SWITCH_TABLE): Likewise.
2290 (sh_force_relocation): Call S_FORCE_RELOC.
2291 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2292 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2293 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2294 fx_addnumber is zero on entry. Save val in fx_addnumber.
2295 (tc_gen_reloc): Don't subtract fx_subsy.
2296 * config/tc-sh.h (struct fix): Move.
2297 (obj_fix_adjustable): Don't define.
2298 (tc_fix_adjustable): Define this instead.
2299 (TC_FIX_ADJUSTABLE): Don't define.
2300 (MD_APPLY_SYM_VALUE): Define.
2301 (SWITCH_TABLE_CONS): Define.
2302 (SWITCH_TABLE): Define.
2303 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2304 (TC_VALIDATE_FIX_SUB): Define.
2305 (MD_PCREL_FROM_SECTION): Tweak param name.
2306 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2307 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2308 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2309 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2310 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2311 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2312 (TC_VALIDATE_FIX_SUB): Define.
2313 (MD_PCREL_FROM_SECTION): Tweak param name.
2314 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2315 (tc_gen_reloc): Use S_FORCE_RELOC.
2316 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2317 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2318 (TC_FORCE_RELOCATION_ABS): Define this instead.
2319 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2320 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2321 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2322 (MD_APPLY_SYM_VALUE): Define.
2323 (TC_FIX_DATA_PRINT): Tweak param name.
2324 * config/tc-tic30.c (USE_STDOUT): Don't define.
2325 (md_parse_option): Remove stupid debug code.
2326 (tc_gen_reloc): Don't use fx_addnumber.
2327 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2328 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2329 * config/tc-v850.h (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 this instead.
2333 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2334 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2335 (TC_FIX_ADJUSTABLE): Don't define.
2336 (MD_APPLY_SYM_VALUE): Define this instead.
2337 (tc_fix_adjustable): Remove extern and weak tests.
2338 * config/tc-w65.h (struct fix): Forward declare.
2339 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2341 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2342 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2343 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2345 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2346 (MD_APPLY_SYM_VALUE): Define.
2347 (obj_fix_adjustable): Don't define.
2348 (tc_fix_adjustable): Define this instead.
2349 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2351 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2353 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2354 (ppc_fix_adjustable <coff version>): Cleanup.
2356 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2357 (md_parse_option): No -a64 without BFD64.
2358 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2359 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2361 2002-09-04 Nick Clifton <nickc@redhat.com>
2363 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2364 instructions into the hash table if the target cpu is the BookE32.
2366 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2368 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2371 2000-08-28 Catherine Moore <clm@redhat.com>
2373 * tc-v850.c (v850_relax): Declare.
2374 (v850_longcode): New routine.
2375 (v850_handle_align): New routine.
2376 (md_pseudo_table): Add longcall and longjump.
2377 (md_parse_option): Check for relax option.
2378 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2379 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2380 (md_apply_fix3): Likewise.
2381 (v850_force_relocation): Likewise.
2382 (v850_comm): Change the current section.
2383 (md_assemble): Ensure that the correct value is put in the
2385 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2386 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2387 Remove redundant v850ea support.
2388 * tc-v850.h (HANDLE_ALIGN): Define.
2389 (v850_handle_align): Declare.
2390 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2392 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2394 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2395 * configure: Regenerate.
2396 * NEWS: Mention new port.
2398 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2400 * config/obj-coff.c: Add sdef definition.
2401 * config/obj-coff.h: Add tic4x include file and set
2403 * config/tc-tic4x.c: New file.
2404 * config/tc-tic4x.h: New file.
2406 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2408 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2409 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2410 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2411 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2412 (RELOC_ENUM): Define.
2413 (fix_new_internal): Use RELOC_ENUM.
2414 (fix_new, fix_new_exp): Likewise.
2415 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2416 Replace gotos with continue.
2417 (write_relocs): Formatting. Avoid symbol loops in
2418 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2419 errors, and error number in other cases.
2420 (fixup_segment): Remove param names from prototype. Rename
2421 "this_segment_type" to "this_segment". Update linkrelax comment.
2422 Remove "size, "place" and "where" local vars. Formatting. Update
2423 "no symbol" comment. Remove #if 0 and #if 1.
2425 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2427 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2429 * dwarf2dbg.c: Always include dwarf2dbg.h.
2430 (dwarf2_directive_file): Adjust dummy version args.
2431 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2432 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2433 when symbol values differ.
2434 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2435 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2436 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2438 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2440 * config/tc-w65.c (md_section_align): Fix typo.
2441 (md_parse_option): Return 0, not 1.
2443 2002-08-22 Nick Clifton <nickc@redhat.com>
2445 * doc/as.texinfo (Section): Note that if '@' is a comment
2446 character then another symbol is used to prefix the section's
2449 2002-08-22 Christian Groessler <chris@groessler.org>
2451 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2454 2002-08-12 Graeme Peterson <gp@qnx.com>
2456 * configure.in: Add support for sh-**-nto* target.
2457 * configure: Regenerate.
2459 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2461 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2463 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2465 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2467 (ppc_apuinfo_section_add): Define only if format is ELF.
2468 (md_assemble): Emit APUinfo section only if format is ELF.
2471 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2473 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2474 * config/tc-frv.c: Likewise.
2475 * config/tc-hppa.c: Likewise.
2476 * config/tc-ia64.c: Likewise.
2477 * config/tc-ip2k.c: Likewise.
2478 * config/tc-m68hc11.c: Likewise.
2479 * config/tc-m68k.c: Likewise.
2480 * config/tc-mmix.c: Likewise.
2481 * config/tc-mn10300.c: Likewise.
2482 * config/tc-sh.c: Likewise.
2483 * config/tc-sparc.c: Likewise.
2484 * config/tc-v850.c: Likewise.
2486 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2488 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2491 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2493 From matthew green <mrg@redhat.com>
2495 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2496 PPC_OPCODE_PPC is, except for BookE architectures.
2497 (md_parse_option): Add support for -mspe.
2498 (md_show_usage): Add -mspe.
2499 (md_parse_option): Add support for -me500 and
2500 -me500x2 to generate code for Motorola e500 core complex.
2501 (md_show_usage): Add -me500 and -me500x2.
2503 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2504 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2505 PPC_APUINFO_BRLOCK): New macros.
2507 (ppc_cleanup): New function.
2508 (ppc_apuinfo_section_add): New function.
2510 (md_assemble): Collect info and write the APUinfo section.
2512 * config/tc-ppc.h (md_cleanup): Define.
2513 (ppc_cleanup): Export.
2514 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2516 2002-08-17 Stan Cox <scox@redhat.com>
2518 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2519 config/tc-mips.c (s_change_section): New function to support
2520 IRIX .section pseudo-op.
2522 2002-08-16 Nick Clifton <nickc@redhat.com>
2524 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2526 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2528 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2529 the fix-up against on the right frag.
2530 (s_cpsetup): Likewise. Parse third argument as expression, to
2531 handle global symbols and forward/backward labels correctly.
2533 2002-08-14 Nick Clifton <nickc@redhat.com>
2535 * read.c (stringer): Catch attempts to create strings in the abs
2538 * config/tc-alpha.c: Fix compiling for COFF targets.
2539 Some minor formatting tidyups.
2541 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2543 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2544 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2545 according to the reloc.
2546 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2547 (TC_FORCE_RELOCATION): Define.
2548 (tc_m68hc11_force_relocation): Declare.
2550 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2551 (s_m68hc11_relax): New function for relax group.
2552 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2553 beginning of jump instruction.
2554 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2555 address computation.
2556 (tc-gen_reloc): Update.
2557 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2559 (tc_m68hc11_force_relocation): New function, handle new relocs.
2560 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2561 reloc for the linker relax pass.
2562 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2565 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2567 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2568 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2569 (s_m68hc11_mode): New function for .mode pseudo op.
2570 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2572 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2573 (m68hc11_elf_final_processing): Declare.
2575 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2577 * config/tc-m68hc11.c (md_begin): Take into account additional
2578 page operand for call instruction.
2579 (print_opcode_format): Likewise.
2580 (check_range): Likewise for page range checking.
2581 (get_operand): Don't skip a possible comma in operands.
2582 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2583 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2584 (fixup24): New to handle call reloc.
2585 (build_insn): Handle missing page operand for call instruction.
2587 (md_apply_fix3): Take into account new relocs.
2588 (get_operand): Fix the mode for indexed indirect addressing.
2589 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2591 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2593 * config/tc-mips.c (mips_ip): Don't work out the value of
2594 constant %hi()s here.
2596 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2598 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2599 for ELF, and don't bother checking ELF relocs when non-ELF.
2600 (i386_immediate): Allow absolute_section expressions for aout.
2601 (i386_displacement): Likewise. Also test bfd_is_com_section.
2602 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2603 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2604 not when fx_addsy. Remove dead code.
2606 2002-08-09 Graeme Peterson <gp@qnx.com>
2608 * configure.in: Add support for ppc-*-nto* target.
2609 * configure: Regenerate.
2611 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2613 * config/tc-i386.h: Reorganize.
2615 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2617 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2618 immediate offset in "dla" and "la" expansions.
2620 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2622 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2623 Remove "bfd_gas=yes" from target table when covered later.
2624 Consolidate some entries.
2625 * configure: Regenerate
2627 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2629 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2630 at start of insn, pass it to output_disp and output_imm.
2631 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2632 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2634 (output_imm): Added arguments. Compute properly addend for
2636 (md_apply_fix3): Remove R_386_GOTPC handling.
2638 2002-08-06 George France <france@handhelds.org>
2640 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2641 and m21264b processor names and cpu types.
2642 * doc/c-alpha.texi: Documented new types.
2644 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2646 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2648 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2650 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2651 handling to BFD_RELOC_MIPS16_GPREL.
2653 2002-08-01 Nick Clifton <nickc@redhat.com>
2655 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2656 pool is computed using signed arithmetic so that proper sign
2657 extension is performed if X_add_number is a 64-bit integer.
2659 2002-08-01 H.J. Lu <hjl@gnu.org>
2660 Daniel Jacobowitz <drow@mvista.com>
2662 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2663 .debug_line section unless it has line information.
2665 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2667 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2668 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2669 Allow default displacement size to be an option "--disp-size-default".
2670 (md_number_to_disp): Make error messages include value. Use %d to
2671 print integers, not %s.
2672 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2673 get duplicate messages sometimes.
2674 (convert_iif): Grow frag to max possible instruction size. Avoid
2675 creating unnecessary fixes.
2676 (md_number_to_field) Add prototype.
2677 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2678 prototypes and make static.
2679 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2680 (evaluate_expr): Use resultP argument instead of exprP global.
2681 (get_addr_mode): Quiten compiler warnings.
2682 (encode_operand): eliminate unused variables. Quiten compiler
2683 warnings. Eliminate nul character in format strings.
2684 (parse): argc is unsigned.
2685 (reloc): Type cast index to quieten compiler.
2686 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2687 (md_convert_frag): Note unused parameters. Remove unused
2689 (md_create_long_jump, md_create_short_jump,
2690 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2693 2002-07-31 Nick Clifton <nickc@redhat.com>
2695 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2696 of the PDP-11 and 2.11BSD a.out support.
2698 2002-07-31 Momchil Velikov <velco@fadata.bg>
2700 * config/tc-v850.c (md_assemble): Fix range check for immediate
2703 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2705 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2706 to Broadcom SB-1 core support.
2708 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2710 * config/tc-mips.c (mips_target_format): Fix formatting.
2711 Add recognition of n32 ABI formats.
2713 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2715 * tc-mips.c (load_address): Don't clobber $at when loading a
2716 64-bit address in non-PIC code if noat is in effect.
2719 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2721 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2722 used in division/multiply macro expansions similarly to how they
2723 are used in the variants with break instructions.
2726 2002-07-30 Graeme Peterson <gp@qnx.com>
2728 * configure.in: Add support for arm-*-nto target.
2729 * configure: Regenerate.
2731 2002-07-30 Nick Clifton <nickc@redhat.com>
2733 * config/tc-arm.c (struct literal_pool): Add fields to allow
2734 multiple literal pools to be maintained.
2735 (find_literal_pool): New function.
2736 (find_or_make_literal_pool): New function.
2737 (add_to_literal_pool): Use find_or_make_literal_pool.
2738 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2740 (s_ltorg): Use find_literal_pool.
2741 (arm_cleanup): Dump all literal pools.
2742 * doc/c-arm.texi: Document new behaviour of only dumping literal
2745 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2747 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2748 rather than PPC_OPCODE_32 for powerpc64*.
2750 2002-07-25 Nick Clifton <nickc@redhat.com>
2752 * po/es.po: Updated Spanish translation.
2753 * po/fr.po: Updated French translation.
2755 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2757 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2758 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2759 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2760 * configure, config.in: Regenerate.
2761 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2762 (mips_set_options): Remove "abi" field.
2763 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2766 (mips_arch_string, mips_arch_info): New vars.
2767 (mips_tune_string, mips_tune_info): New vars.
2768 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2769 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2770 (mips_isa_to_str, mips_cpu_to_str): Remove.
2771 (mips_ip): If the selected architecture is a generic ISA rather
2772 than a processor, only mention the ISA level in error messages.
2773 (OPTION_MCPU): Remove.
2775 (md_longopts): Add -mfp64, remove -mcpu.
2776 (mips_set_option_string): New fn.
2777 (md_parse_option): Make -mipsN update file_mips_isa rather than
2778 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2779 Don't let -mgp32 and -mfp32 change the ABI.
2780 (show): Move to end of file. Constify string argument.
2781 (md_show_usage): Move to the end of the file. Read available
2782 architectures from mips_cpu_info_table.
2783 (mips_set_architecture): New fn.
2784 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2785 is an alias for -march=mipsN. Don't change the ABI based on other
2786 flags. Infer the register size from the ABI as well as the
2787 architecture. Complain about more conflicting arguments.
2788 Unify logic with GCC.
2789 (s_mipsset): Don't change the ABI.
2790 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2791 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2792 "mipsN"-type entries. Remove entries that vary only in the
2793 manufacturer's prefix, or that have "000" replaced by "k".
2794 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2795 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2796 (mips_parse_cpu): New fn.
2797 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2798 (mips_cpu_info_from_isa): Minor formatting tweak.
2800 2002-07-24 Nick Clifton <nickc@redhat.com>
2802 * po/sv.po: Updated Swedish translation.
2803 * po/es.po: Updated Spanish translation.
2805 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2807 * Makefile.am: Run "make dep-am".
2808 * Makefile.in: Regenerate.
2809 * doc/Makefile.in: Regenerate.
2810 * config.in: Regenerate.
2811 * po/POTFILES.in: Regenerate.
2813 2002-07-23 Nick Clifton <nickc@redhat.com>
2815 * po/fr.po: Updated French translation.
2817 2002-07-23 Nick Clifton <nickc@redhat.com>
2819 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2822 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2824 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2825 instead of S_IS_EXTERN.
2826 (md_estimate_size_before_relax): Likewise.
2827 (mips_fix_adjustable): Likewise.
2829 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2831 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2833 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2834 Nick Clifton <nickc@redhat.com>
2836 * cond.c (s_ifdef): Treat a referenced but not yet defined
2837 symbol as if it were undefined, in exactly the same way as
2840 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2841 consider referenced bug not yet defined symbols to be
2844 2002-07-18 Denis Chertykov <denisc@overta.ru>
2845 Frank Ch. Eigler <fche@redhat.com>
2846 Alan Lehotsky <alehotsky@cygnus.com>
2847 John Healy <jhealy@redhat.com>
2848 Jeff Johnston <jjohnstn@redhat.com>
2850 * configure.in: Add ip2k configuraton.
2851 * configure: Regenerate.
2852 * Makefile.am: Add ip2k configuraton.
2853 * Makefile.in: Regenerate.
2854 * configure: Regenerate.
2855 * Makefile.in: Regenerate.
2856 * config/tc-ip2k.c: New file.
2857 * config/tc-ip2k.h: New files.
2858 * NEWS: Mention new support.
2859 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2860 * doc/Makefile.in: Regenerate.
2861 * doc/all.texi: Set IP2K
2862 * doc/as.texinfo: Add IP2K description.
2863 * doc/c-ip2k.texi: New file.
2865 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2867 * NEWS: Reformat to match style of other NEWS files.
2869 2002-07-17 Jan Hubicka <jh@suse.cz>
2871 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2873 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2875 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2877 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2879 * NEWS: Add 'Changes in 2.13'.
2881 2002-07-15 Matt Fredette <fredette@netbsd.org>
2883 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2885 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2887 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2888 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2891 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2893 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2894 (ppc_frob_file_before_adjust): New function.
2895 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2896 (ppc_elf_frob_symbol): Don't declare.
2897 (tc_frob_file_before_adjust): Define.
2898 (ppc_frob_file_before_adjust): Declare.
2900 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2901 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2904 (ppc_xcoff64): Rename to ppc_obj64.
2905 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2906 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2907 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2909 (ppc_target_format): Use ppc_obj64 to select format.
2910 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2911 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2912 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2913 (tc_frob_symbol): Likewise.
2914 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2915 BFD_DEFAULT_TARGET_SIZE.
2917 (ppc_is_toc_sym): Likewise.
2918 (md_apply_fix3): Likewise.
2919 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2920 BFD_DEFAULT_TARGET_SIZE.
2921 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2922 (tc_frob_symbol): Likewise.
2924 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2926 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2927 (mips_ip): Likewise.
2929 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2931 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2932 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2933 (md_apply_fix3): Formatting. Remove redundant test.
2934 (tc_gen_reloc): Remove redundant code.
2935 (tc_i386_force_relocation): Delete. Movy body of function to..
2936 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2938 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2940 * configure.in: Add hppa-*-openbsd* target, change
2941 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2943 * configure: Regenerate.
2945 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2947 * config/tc-mips.c (macro): Shift the 32-bit address range
2948 accessible with a lone "lui" down by 32768.
2950 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2952 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2953 instead of "dadd" in address calculations.
2956 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2958 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2960 (md_assemble): Instead, zap the suffix here.
2962 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2964 * NEWS: Remove next release number until the release is actually
2967 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2969 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2971 * Makefile.in: Regenerate.
2973 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2975 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2976 to symbols in merge sections, even non pc-relative ones.
2978 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2980 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2982 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2984 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2985 .softregs and .eeprom.
2987 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2989 * NEWS: Note the next release is 2.13.
2991 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2993 * po/tr.po: New translation imported.
2995 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2997 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2998 (ecoff_directive_def): Likewise.
2999 (ecoff_directive_tag): Likewise.
3000 * listing.c (file_info): Likewise.
3001 * hash.c (what): Likewise.
3003 2002-06-25 H.J. Lu <hjl@gnu.org>
3005 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3006 * Makefile.in: Regenerated.
3008 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3010 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3011 (assemble_ppi): Generate warning if the same register is used
3012 twice as destination in the same padd / pmuls instruction.
3014 2002-06-18 Dave Brolley <brolley@redhat.com>
3016 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3017 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3018 * configure.in: Support frv-*-*.
3019 * Makefile.am (CPU_TYPES): Add frv.
3020 (TARGET_CPU_CFILES): Add tc-frv.c.
3021 (TARGET_CPU_HFILES): Add tc-frv.h.
3022 (DEPTC_frv_coff): New variable.
3023 (DEPTC_frv_elf): New variable.
3024 (DEPOBJ_frv_coff): New variable.
3025 (DEPOBJ_frv_elf): New variable.
3026 (DEP_frv_coff): New variable.
3027 (DEP_frv_elf): New variable.
3028 * tc-frv.c: New file.
3029 * tc-frv.h: New file.
3031 2002-06-17 Catherine Moore <clm@redhat.com>
3033 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3035 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3037 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3039 2002-06-17 Tom Rix <trix@redhat.com>
3041 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3043 2002-06-14 H.J. Lu <hjl@gnu.org>
3044 Daniel Jacobowitz <drow@mvista.com>
3046 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3047 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3048 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3049 and new_logical_line for the first .file directive.
3050 * read.c (s_app_file_string): New function.
3051 (s_app_file): Call it.
3052 * read.h (s_app_file_string): Add declaration.
3054 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3056 * configure.in: Remove MIPS_STABS_ELF.
3057 * configure: Regenerated.
3058 * config.in: Regenerated.
3059 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3061 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3063 (pdr_seg): Declare unconditionally.
3064 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3065 (s_mips_end): Likewise. Generate stabs function markers.
3066 (s_mips_ent): Generate stabs function markers.
3067 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3069 (s_mips_mask): Likewise.
3070 (mips_flag_mdebug): New.
3071 (md_longopts): Add "mdebug" and "no-mdebug".
3072 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3073 (mips_after_parse_args): Set mips_flag_mdebug.
3074 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3076 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3078 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3079 value twice for RELA relocations.
3081 2002-06-12 Ben Elliston <bje@redhat.com>
3083 * symbols.c (resolve_symbol_value): Initialise final_val.
3085 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3087 2002-06-11 Tom Rix <trix@redhat.com>
3089 * config/tc-ppc.c (ppc_subseg_align): Delete.
3090 (ppc_change_csect): Default csect align is 2.
3091 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3093 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3095 * config/tc-avr.c (mcu_types): Update.
3097 2002-06-08 Matt Thomas <matt@3am-software.com>
3099 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3100 (vax-*-netbsd*): New targets.
3101 * configure: Regenerate.
3102 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3103 * config/tc-vax.c: Add support for ELF and PIC.
3104 (flag_want_pic): New flag.
3105 (float_cons): Fix prototype.
3106 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3107 (md_assemble): Introduce a new is_absolute local, and use it
3108 rather than repeating the test. Make fatal errors actually
3109 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3110 Add support for ELF. Add support for PIC.
3111 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3112 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3114 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3115 optional for a.out, and not allowed for VMS. Adjust all callers.
3116 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3117 (md_create_long_jump): Likewise.
3118 (md_undefined_symbol): Likewise.
3119 (md_section_align): Likewise.
3120 (md_shortopts): Allow -k and -K for ELF.
3121 (md_parse_option): Set flag_want_pic if -k or -K.
3122 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3123 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3124 * config/tc-vax.h (tc_headers_hook): Remove.
3125 (TARGET_FORMAT): Set according to object format and target
3127 (BFD_ARCH, TARGET_ARCH): Define.
3128 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3129 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3130 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3131 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3133 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3135 * Makefile.am: Run "make dep-am".
3136 * Makefile.in: Regenerate.
3138 * as.c: Replace CONST with const.
3139 * write.c: Likewise.
3140 * config/obj-coff.c: Likewise.
3141 * config/tc-a29k.c: Likewise.
3142 * config/tc-arm.c: Likewise.
3143 * config/tc-dlx.c: Likewise.
3144 * config/tc-h8300.c: Likewise.
3145 * config/tc-h8500.c: Likewise.
3146 * config/tc-i370.c: Likewise.
3147 * config/tc-i860.c: Likewise.
3148 * config/tc-i960.c: Likewise.
3149 * config/tc-m68hc11.c: Likewise.
3150 * config/tc-m68k.c: Likewise.
3151 * config/tc-m88k.c: Likewise.
3152 * config/tc-mcore.c: Likewise.
3153 * config/tc-mips.c: Likewise.
3154 * config/tc-ns32k.c: Likewise.
3155 * config/tc-pdp11.c: Likewise.
3156 * config/tc-pj.c: Likewise.
3157 * config/tc-s390.c: Likewise.
3158 * config/tc-sh.c: Likewise.
3159 * config/tc-sparc.c: Likewise.
3160 * config/tc-tahoe.c: Likewise.
3161 * config/tc-tic80.c: Likewise.
3162 * config/tc-v850.c: Likewise.
3163 * config/tc-vax.c: Likewise.
3164 * config/tc-w65.c: Likewise.
3165 * config/tc-z8k.c: Likewise.
3167 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3169 Based on patch from Matt Green:
3170 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3171 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3172 (s_mips_loc): New function.
3173 (mips_nonecoff_pseudo_table): Call them.
3174 (append_insn): Call dwarf2_emit_insn.
3176 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3178 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3180 (file_ase_mips16): New veriable.
3181 (mips_eabi64): Remove.
3182 (CPU_HAS_MIPS16): New define.
3183 (CPU_HAS_MDMX): Fix data type.
3184 (md_begin): Code cleanup. Use file_ase_mips16.
3185 (mips_elf_final_processing): Handle mips16 header flag.
3186 Handle EABI flag without intermediate variable.
3188 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3190 * doc/as.texinfo: Update MIPS documentation.
3192 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3194 * config/tc-mips.c: Add define for $zero register.
3195 (md_begin): Add $zero as alias name for $0.
3196 (insn_uses_reg): Use ZERO define.
3197 (mips_ip): Add $zero as alias name for $0.
3198 (mips16_ip): Likewise.
3199 (s_cplocal): Demand empty rest of input line.
3200 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3201 names. Use ZERO define. Fix input_line_pointer progress.
3203 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3205 * symbols.c: Replace CONST by const throughout.
3206 (symbol_find_exact): Split out from..
3207 (symbol_find_base): ..here.
3208 * symbols.h: Replace CONST by const throughout.
3209 (symbol_find_exact): Declare.
3210 * config/obj-elf.c: #include "struc-symbol.h".
3211 (elf_frob_file): If group name matches an exported symbol, use that
3212 symbol for the signature and ".group" as the section name.
3214 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3216 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3219 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3221 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3222 and mips_opts.ase_mdmx if they are uninitialized.
3224 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3226 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3227 (hppa_force_relocation): Check if a stub just before the start symbol
3228 of the last call_info is reachable before forcing relocation. Fix
3231 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3233 * config/tc-mips.c (mips_after_parse_args): New function.
3234 (md_begin): Move processing of defaults to mips_after_parse_args.
3235 config/tc-mips.h (md_after_parse_args): Define.
3237 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3239 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3240 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3241 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3242 * configure: Regenerate.
3243 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3246 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3248 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3250 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3252 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3253 linkonce flag. Print all warnings.
3254 (obj_elf_section): Parse ",comdat" for groups.
3255 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3256 consistency of comdat flag.
3258 2002-06-02 Richard Henderson <rth@redhat.com>
3260 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3261 with LITERALs without sequence numbers.
3263 2002-06-01 Richard Henderson <rth@redhat.com>
3265 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3266 Rename them LITUSE_ALPHA_*.
3268 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3270 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3271 accept parentheses enclosed register lists.
3273 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3275 * Makefile.am: Run "make dep-am".
3276 * Makefile.in: Regenerate.
3277 * po/POTFILES.in: Regenerate.
3279 2002-05-31 Graeme Peterson <gp@qnx.com>
3281 * configure.in: Add i386-*-nto-qnx*.
3282 * configure: Regenerate.
3284 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3286 * config/tc-mips.c (mips_ip): Use unsigned long values for
3289 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3291 * config/tc-mips.c (s_cpsetup): Fix initialization of
3292 mips_cpreturn_register and mips_cpreturn_offset.
3294 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3296 * config/tc-mips.c (s_cpsetup): Fix comment.
3298 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3300 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3301 (mips_ip): Likewise.
3302 (mips16_ip): Likewise.
3303 (tc_get_register): Likewise.
3305 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3306 Ed Satterthwaite <ehs@broadcom.com>
3308 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3309 (mips_opts): Initialize "ase_mdmx" member.
3310 (file_ase_mdmx): New variable.
3311 (CPU_HAS_MDMX): New macro.
3312 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3313 based on command line options and configuration defaults.
3314 (macro_build): Note in comment that use of MDMX in macros is
3315 not currently allowed.
3316 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3317 "Z" MDMX operand types.
3318 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3319 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3321 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3322 Add support for "-mdmx" and "-no-mdmx" options.
3323 (OPTION_ELF_BASE): Move to accomodate new options.
3324 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3325 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3326 file_ase_mdmx was set.
3327 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3328 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3331 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3333 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3334 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3335 command line switch conforming to gcc conventions.
3336 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3338 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3340 * config/tc-mips.c (macro_build_jalr): New Function.
3341 (md_begin): NewABI uses big GOTs.
3342 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3343 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3344 (load_address): Add some NewABI PIC support.
3346 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3347 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3349 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3351 * config/tc-mips.c (load_address): Use mips_gp_register instead
3352 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3354 (macro): Use mips_gp_register instead of hardcoded value.
3356 2002-05-30 Richard Henderson <rth@redhat.com>
3358 * expr.h (operatorT): Add O_md17..O_md32.
3359 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3360 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3361 O_tprelhi, O_tprello, O_tprel): New.
3362 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3363 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3364 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3365 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3366 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3367 (md_apply_fix3): Handle TLS relocations.
3368 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3369 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3370 associated TLS reloc. Check lituse_tls relocs match up.
3371 (emit_insn): Handle TLS relocations.
3374 * doc/c-alpha.texi: Add docs for tls relocations.
3376 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3378 * config/tc-mips.c (mips_gprel_offset): New variable.
3379 (s_gpvalue): Use it.
3381 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3383 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3384 write-write conflicts.
3385 (md_assemble): Reformat introductory comment.
3386 (parallel_ok): Prevent packing only if the first
3387 instruction cannot be packed.
3389 2002-05-30 Jason Eckhardt <jle@redhat.com>
3390 Tom Rix <trix@redhat.com>
3392 * config/tc-d10v.c (build_insn): Check for immediates.
3394 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3396 * config/tc-mips.c: Replace GP in comments by $gp.
3397 (mips_big_got): Initialize.
3398 (mips_trap): Initialize.
3399 (load_address): Use mips_gp_register instead of hardcoded value.
3400 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3401 (macro): Use mips_gp_register instead of hardcoded value.
3402 (macro2): Change load_address calls.
3403 (md_pcrel_from): Comment formatting.
3404 (s_cpload): Use mips_gp_register instead of hardcoded value.
3405 (s_cprestore): Likewise. Comment formatting.
3406 (s_gpword): Fix data type.
3407 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3408 (nopic_need_relax): Replace GP in comments by $gp.
3409 (mips_elf_final_processing): Better comment.
3411 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3413 * configure.in: Add DLX configuraton
3414 * Makefile.am: Add DLX configuraton
3415 * configure: Regenerate.
3416 * Makefile.in: Regenerate.
3417 * config/tc-dlx.c: New file.
3418 * config/tc-dlx.h: New files.
3419 * NEWS: Mention new support.
3421 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3423 * config/obj-coff.c (write_object_file): Add missing semicolon.
3425 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3427 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3428 by the define. Remove superfluous check of mips_opts.mips16.
3429 (append_insn): Likewise. Canonicalize variable increments.
3430 (macro_build): Canonicalize variable increments.
3431 (macro_build_lui): Likewise.
3432 (load_register): Likewise.
3433 (load_address): Move pointer initialization.
3434 (macro): Move pointer to a more local scope. Canonicalize variable
3435 increments. Better comments. Replace magic constant for RA by the
3437 (macro2): Replace magic constant for RA by the define. Canonicalize
3438 variable increments.
3439 (mips_ip): Canonicalize variable increments.
3440 (mips16_ip): Replace magic constant for RA by the define.
3441 (my_getSmallParser): Canonicalize variable increments/decrements.
3442 (my_getPercentOp): Likewise.
3443 (my_getSmallExpression): Likewise.
3444 (s_align): Likewise.
3445 (s_mipsset): Likewise.
3446 (s_cpsetup): Likewise.
3447 (s_insn): Remove superfluous check of mips_opts.mips16.
3448 (s_mips_stab): Likewise.
3449 (mips_handle_align): Canonicalize variable increments.
3450 (s_mips_ent): Likewise.
3451 (s_mips_end): Add comment.
3453 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3455 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3456 * configure: Regenerate.
3458 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3460 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3461 * Makefile.in: Regenerate.
3462 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3463 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3464 * configure: Regenerate.
3465 * as.h: Use #include "" instead of <> for local header files.
3466 * flonum-konst.c: Likewise.
3467 * flonum-mult.c: Likewise.
3469 * listing.c: Likewise.
3470 * config/tc-ia64.h: Likewise.
3471 * config/tc-v850.h: Likewise.
3473 2002-05-24 TAMURA Kent <kent@netbsd.org>
3475 * configure.in: Add a target for i386-netbsdpe.
3476 * configure: Regenerate.
3478 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3480 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3481 (obj_elf_common): Call elf_common.
3482 (obj_elf_tls_common): New function.
3483 (elf_pseudo_tab): Support .tls_common.
3484 (special_sections): Add .tdata and .tbss.
3485 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3487 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3488 (obj_elf_parse_section_letters): Include T in error message.
3489 * config/tc-ppc.c (ppc_section_letter): Likewise.
3490 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3491 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3493 * config/tc-sparc.c (md_apply_fix3): Likewise.
3494 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3495 Define them if not BFD_ASSEMBLER.
3496 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3498 (md_apply_fix3): Add TLS relocs.
3499 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3500 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3501 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3502 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3503 (ia64_elf_section_letter): Include T in error message.
3504 (md_begin): Support TLS operators.
3505 (md_operand): Likewise.
3506 (ia64_gen_real_reloc_type): Support TLS relocs.
3507 * write.c (adjust_reloc_syms): Don't change symbols in
3508 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3510 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3512 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3513 round the relocation up rather than down.
3515 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3517 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3519 * doc/as.texinfo: Document that the COFF version of .section
3520 ignores the 'a' flag.
3522 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3524 * config/tc-alpha.c (assemble_tokens): Protect use of
3525 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3527 * write.c (size_seg): Check adjustment to last frag.
3528 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3530 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3531 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3532 (write_object_file): Invoke md_do_align if available, and use
3533 frag_align_code on text sections.
3534 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3535 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3536 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3537 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3538 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3541 2002-05-22 H.J. Lu <hjl@gnu.org>
3543 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3546 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3548 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3551 2002-05-22 H.J. Lu <hjl@gnu.org>
3553 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3554 for one .loc for compiler.
3556 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3558 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3561 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3563 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3564 Optimize the rotate by zero case.
3566 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3568 * configure.in: Remove accidental enabling of bfd_gas=yes for
3570 * configure: Regenerate.
3572 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3574 * app.c: Fix formatting.
3576 * ehopt.c: Likewise.
3578 * input-file.c: Likewise.
3579 * listing.c: Likewise.
3580 * macro.h: Likewise.
3581 * stabs.c: Likewise.
3582 * symbols.c: Likewise.
3584 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3586 * config/obj-generic.c: Delete file.
3587 * config/obj-generic.h: Likewise.
3589 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3591 * config/tc-avr.c (mcu_types): Update for new devices.
3593 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3595 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3597 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3599 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3600 worked sometimes by accident. Fix copy&paste comment.
3602 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3604 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3605 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3606 (mips_elf_final_processing): Let n32 use .reginfo.
3608 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3610 * config/tc-mips.c (append_insn): Fix too small range of variable.
3612 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3614 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3615 listing_prev_line().
3617 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3619 * config/tc-arm.c (md_assemble): Remove redundant call to
3622 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3625 * stabs.c (s_stab_generic): Fix grammatical error in warning
3628 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3630 * write.c (subsegs_finish): Don't specially align last subseg.
3632 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3634 * stabs.c (s_stab_generic): Warn about a description field that is
3637 * config/obj-coff.c: Fix compile time warnings when compiling
3638 without BFD_ASSEMBLER defined.
3641 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3643 (md_pcrel_from_section): Use md_pcrel_from().
3645 2002-05-11 Bruno Haible <bruno@clisp.org>
3647 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3648 by dwarf2_directive_loc, instead of calling dwarf2_where.
3650 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3652 * config/obj-coff.h: Fix formatting.
3653 * config/tc-mcore.c: Likewise.
3654 * config/tc-mn10300.c: Likewise.
3655 * config/tc-openrisc.c: Likewise.
3656 * config/tc-or32.c: Likewise.
3657 * config/tc-pdp11.c: Likewise.
3658 * config/tc-ppc.c: Likewise.
3659 * config/tc-ppc.h: Likewise.
3660 * config/tc-sh64.c: Likewise.
3661 * config/tc-sh.c: Likewise.
3662 * config/tc-tic54x.c: Likewise.
3663 * config/tc-xstormy16.c: Likewise.
3664 * config/tc-xstormy16.h: Likewise.
3666 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3668 * config/obj-coff.c: Fix formatting.
3669 * config/obj-elf.c: Likewise.
3670 * config/tc-alpha.c: Likewise.
3671 * config/tc-arm.c: Likewise.
3672 * config/tc-d10v.c: Likewise.
3673 * config/tc-d30v.c: Likewise.
3674 * config/tc-h8300.c: Likewise.
3675 * config/tc-hppa.c: Likewise.
3677 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3679 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3680 reloc when no_cond_jump_promotion.
3682 2002-05-08 Jim Wilson <wilson@redhat.com>
3684 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3685 current variable part of frag.
3687 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3689 * config/tc-mmix.c: Fix formatting.
3690 * config/tc-mmix.h: Likewise.
3692 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3694 * configure: Regenerate.
3696 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3698 * config/tc-m68k.c: Fix formatting.
3700 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3702 * Makefile.am: Honour DESTDIR.
3703 * Makefile.in: Regenerate.
3705 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3707 * config/tc-ia64.c: Fix formatting.
3708 * config/tc-ia64.h: Likewise.
3710 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3712 * config/tc-mips.c: Fix formatting.
3713 * config/tc-s390.c: Likewise.
3714 * config/tc-s390.h: Likewise.
3716 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3718 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3719 information for instructions.
3721 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3723 * as.h: Fix formatting.
3726 * dwarf2dbg.c: Likewise.
3727 * frags.h: Likewise.
3729 * macro.c: Likewise.
3731 * stabs.c: Likewise.
3732 * symbols.c: Likewise.
3734 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3736 * app.c (mri_pseudo): Only declare for TC_M68K.
3738 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3739 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3740 BFD_RELOC_16_BASEREL.
3741 (md_assemble): Likewise.
3742 (md_apply_fix3): Likewise.
3744 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3746 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3747 zero into an add of zero - it is not the same.
3749 2002-05-01 Arati Dikey <aratid@kpit.com>
3751 * tc-sh.c (get_specific): Generate warning if the same
3752 destination register is used in parallel instructions.
3754 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3756 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3758 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3760 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3761 backwards to prevent cascading errors.
3763 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3765 * configure.in: Add support for powerpc-*-windiss.
3766 * configure: Regenerated.
3768 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3770 * config/tc-s390.c (md_parse_option): Formatting.
3772 * config/tc-i386.c: Formatting fixes, add missing space in error
3775 2002-04-24 Christian Groessler <chris@groessler.org>
3777 * config/tc-z8k.c (build_bytes): Add support for new cases:
3778 CLASS_IGNORE and ARG_NIM4.
3779 (md_assemble): Prevent destruction of input_line_pointer if
3780 get_operands returns failure.
3782 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3784 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3785 instructions to be generated by macros.
3787 2002-04-24 Andreas Schwab <schwab@suse.de>
3789 * config/tc-i386.c (output_jump, output_disp)
3790 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3792 (md_apply_fix3): Remember addend value for rela relocations.
3793 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3795 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3797 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3798 from previous change.
3800 2002-04-22 Eric Christopher <echristo@redhat.com>
3802 * config/tc-mips.c (macro_build): Add warning if macro instructions
3803 are expanded into a branch delay slot.
3805 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3807 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3808 numbers, gdb relies on them to detect the start of the prologue.
3810 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3812 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3813 symbols in merge sections.
3815 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3817 * as.c (main): Don't reference _bfd_chunksize.
3819 2002-04-15 Tom Rix <trix@redhat.com>
3821 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3822 symbols in merge sections.
3824 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3826 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3827 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3828 argument for the precision.
3829 (gen_to_words): Update accordingly.
3831 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3833 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3834 BFD_VERSION_STRING unavailable.
3835 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3837 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3839 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3840 symbol_used_in_reloc_p is true.
3842 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3845 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3847 * dep-in.sed: Cope with absolute paths.
3848 * Makefile.am (dep.sed): Subst TOPDIR.
3850 * Makefile.in: Regenerate.
3852 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3854 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3855 (mips_ip): Remove unused variable.
3856 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3857 unsigned char with bfd_byte.
3858 (s_file): Remove unused variable.
3859 (s_mips_ent): Likewise.
3861 2002-04-03 Tom Rix <trix@redhat.com>
3863 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3865 (find_opcode): Fix warning in as_warn.
3866 * config/tc-d10v.h: Update Copyright.
3868 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3869 Tom Rix <trix@redhat.com>
3871 From Jeff Knaggs <jknaggs@redhat.com>
3872 * config/tc-d10v.c (check_resource_conflict): New function to
3873 check for resource conflicts.
3875 From Jason Eckhardt <jle@redhat.com>
3876 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3878 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3879 reserved control registers is used.
3880 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3883 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3884 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3885 instruction cannot be packed.
3887 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3888 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3889 write-write conflicts.
3890 (md_assemble): Reformat introductory comment.
3891 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3894 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3896 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3897 O_logical_not>): Derive final_seg from add_symbol.
3898 <O_multiply..O_logical_or>: More final_seg twiddles.
3900 2002-04-01 Jessica Han <jessica@cup.hp.com>
3902 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3905 2002-03-27 Andreas Schwab <schwab@suse.de>
3907 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3908 field for pc-relative fixups.
3909 (output_disp): Likewise.
3910 (md_estimate_size_before_relax): Likewise.
3911 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3912 pc-relative fixups in 64bit mode.
3914 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3916 * config/te-aix5.h: Typo fix.
3918 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3920 * Makefile.am: Run "make dep-am".
3921 * Makefile.in: Regenerate.
3922 * doc/Makefile.in: Regenerate.
3924 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3926 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3927 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3929 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3931 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3932 the EXTENDED bit here; report the estimate according to the
3935 2002-03-18 Tom Rix <trix@redhat.com>
3937 * configure.in: Add AIX 5 support.
3938 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3939 * config/te-aix5.h: New file. AIX 5 support.
3940 * configure: Regenerate.
3942 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3944 * po/fr.po: Updated version.
3946 2002-03-16 Andreas Jaeger <aj@suse.de>
3948 * doc/c-mips.texi (Machine Dependencies): Add new node.
3950 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3952 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3953 (mips_opts): Initialize "ase_mips3d" member.
3954 (file_ase_mips3d): New variable.
3955 (CPU_HAS_MIPS3D): New macro.
3956 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3957 based on command line options and configuration defaults.
3958 (macro_build, mips_ip): Accept MIPS-3D instructions if
3959 mips_opts.ase_mips3d is set.
3960 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3961 Add support for "-mips3d" and "-no-mips3d" options.
3962 (OPTION_ELF_BASE): Move to accomodate new options.
3963 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3964 (mips_elf_final_processing): Add a comment indicating that a
3965 MIPS-3D ASE ELF header flag should be set, when one exists.
3966 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3967 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3968 nomips3d" directives.
3970 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3972 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3973 a weak symbol in same section to be within reach.
3975 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3977 * po/fr.po: Updated version.
3979 2002-03-12 Andreas Schwab <schwab@suse.de>
3981 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3982 body record so that an error is given for misplaced .save
3985 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3987 * config/tc-i386.h (REX_OPCODE): Define.
3988 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3989 (rex_byte): typedef to int.
3990 * config/tc-i386.c: Group prototypes and vars together.
3991 Formatting fixes. Remove occurrences of "register" keyword.
3994 (mode_from_disp_size): Add INLINE keyword to prototype.
3995 (fits_in_signed_byte): Likewise.
3996 (fits_in_unsigned_byte): Likewise.
3997 (fits_in_unsigned_word): Likewise.
3998 (fits_in_signed_word): Likewise.
3999 (fits_in_unsigned_long): Likewise.
4000 (fits_in_signed_long): Likewise.
4001 (type_names): Constify.
4002 (intel_float_operand): Constify param.
4003 (add_prefix): Use REX_OPCODE.
4004 (md_assemble): Likewise. Modify for changed rex_byte.
4005 (parse_insn): Split out of md_assemble.
4006 (parse_operands): Likewise.
4007 (swap_operands): Likewise.
4008 (optimize_imm): Likewise.
4009 (optimize_disp): Likewise.
4010 (match_template): Likewise.
4011 (check_string): Likewise.
4012 (process_suffix): Likewise.
4013 (check_byte_reg): Likewise.
4014 (check_long_reg): Likewise.
4015 (check_qword_reg): Likewise.
4016 (check_word_reg): Likewise.
4017 (finalize_imm): Likewise.
4018 (process_operands): Likewise.
4019 (build_modrm_byte): Likewise.
4020 (output_insn): Likewise.
4021 (output_branch): Likewise.
4022 (output_jump): Likewise.
4023 (output_interseg_jump): Likewise.
4024 (output_disp): Likewise.
4025 (output_imm): Likewise.
4027 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4029 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4031 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4033 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4034 relocs except when BFD64.
4036 * write.c (number_to_chars_bigendian): Don't abort when N is
4037 larger than sizeof (VAL).
4038 (number_to_chars_littleendian): Likewise.
4040 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4042 * config/tc-hppa.c (md_apply_fix3): Add cast.
4043 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4046 2002-03-05 Paul Koning <pkoning@equallogic.com>
4048 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4049 (parse_ac5): New function for parsing float regs in float operand.
4050 (parse_expression): Remove attempt to make literals be octal.
4051 (parse_op_no_deferred): Support float literals.
4052 (parse_op): Reject attempts to refer to float regs.
4053 (parse_fop): New function, like parse_op but for float operand.
4054 (md_assemble): Add cases to parse float operands. Also fix
4055 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4057 2002-03-04 H.J. Lu <hjl@gnu.org>
4059 * config/obj-elf.c (special_section): Add .init_array,
4060 .fini_array and .preinit_array.
4062 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4063 .init_array and .fini_array.
4065 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4067 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4069 (obj_frob_symbol): Copy visibility.
4071 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4073 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4075 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4077 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4079 * po/es.po: Updated.
4081 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4083 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4084 only, undo the changes made on 2001-06-08, with the
4085 effect being that common or extern symbols are
4086 adjusted for embedded-PIC, but weak symbols are not.
4087 (md_estimate_size_before_relax: Likewise, with the effect
4088 that extern symbols are treated the same as weak symbols
4089 only if not embedded-PIC.
4090 (mips_fix_adjustable) Likewise, with the effect that
4091 weak or extern symbols are not adjusted for embedded-PIC.
4092 (md_apply_fix3): Tweak so that the case where value is zero
4093 is handled more correctly for embedded-PIC code.
4095 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4097 * doc/as.texinfo (Overview): Add missing @ifset IA64
4099 * configure.in (LINGUAS): Add es.po.
4100 * configure: Regenerate.
4101 * po/es.po: New file.
4103 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4105 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4106 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4107 and NO_PIC cases. Code cleanup.
4108 (macro2): Fix handling of 64bit register loads.
4110 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4112 * doc/as.texinfo: Add entry for IA64.
4113 * doc/c-ia64.texi: New file.
4115 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4117 * config/tc-hppa.c: Update copyright date.
4119 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4120 Remove references to chip manufacturers.
4121 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4123 (md_show_usage): Remove references to chip manufacturers. Mention
4125 (md_begin): Test power4 opcode flag bits.
4127 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4129 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4130 count exceeds prologue count.
4131 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4132 (unwind.label_prologue_count): New member.
4134 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4136 (get_saved_prologue_count): New function.
4137 (save_prologue_count): New function.
4138 (free_saved_prologue_count): New function.
4139 (dot_label_state): Record state label by calling save_prologue_count().
4140 (dot_copy_state): Restore prologue count by calling
4141 get_saved_prologue_count().
4142 (generate_unwind_image): Free up list of saved prologue
4143 counts by calling free_saved_prologue_counts().
4145 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4147 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4148 function declarations.
4150 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4152 * NEWS: Note that GASP is now deprecated.
4153 * Makefile.am: Do not build gasp-new by default.
4154 * Makefile.in: Regenerate.
4155 * doc/Makefile.am: Do not install gasp.info.
4156 * doc/Makefile.in: Regenerate.
4157 * gas/gasp.texi: Note that gasp is now deprecated.
4159 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4161 * NEWS: Mark 2.12 branch.
4163 2002-02-19 Tom Tromey <tromey@redhat.com>
4165 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4167 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4169 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4172 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4174 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4175 Make bit size independent of architecture switch.
4176 (md_begin): Add warning for -m64 with -Aesa.
4177 (s390_md_end): Use renamed architecture defines.
4179 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4181 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4183 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4185 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4188 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4190 * config/tc-mips.c (md_estimate_size_before_relax): Really
4191 make sure we treat weak like extern only for ELF. (Fixes
4192 patch from 2001-07-25.)
4194 2002-02-15 Ben Elliston <bje@redhat.com>
4196 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4199 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4201 * NEWS: Mention support for MMIX.
4203 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4205 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4206 a sequence of indpendent 'if' statements for easier debugging
4207 and future modification.
4209 2002-02-13 Matt Fredette <fredette@netbsd.org>
4211 * config/tc-m68k.c (md_show_usage): No longer display a
4212 hard-coded "68020" for the default CPU, instead display the
4213 canonical name of the true, configured default CPU.
4214 (m68k_elf_final_processing): Mark objects for sub-68020
4215 CPUs with the new EF_M68000 flag.
4217 2002-02-13 Andreas Schwab <schwab@suse.de>
4219 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4220 pc-relative relocations to merge sections in 64-bit mode.
4222 2002-02-13 Ben Elliston <bje@redhat.com>
4224 * NEWS: Document floating point number handling in gasp.
4225 * gasp.c: Include <assert.h> and "xregex.h".
4226 (is_flonum): New function.
4227 (chew_flownum): Likewise.
4228 (change_base): Consume flonums from the input, where possible.
4229 * doc/gasp.texi (Constants): Document floating point numbers.
4231 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4233 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4234 that implicitly use LR and RR selectors.
4236 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4238 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4239 and `epsw' as available on AM33 and above only.
4240 (other_register_name): Add logic to handle machine type encoded in
4243 2002-02-11 Tom Rix <trix@redhat.com>
4245 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4248 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4250 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4253 2002-02-11 Jan Hubicka <jh@suse.cz>
4255 * i386.c (md_assemble): Support 32bit address prefix.
4256 (i386_displacement): Likewise.
4257 (i386_index_check): Accept 32bit addressing in 64bit mode.
4259 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4261 * config/tc-sh.c (dot): Removed unused function.
4263 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4265 * Makefile.am: "make dep-am".
4266 * Makefile.in: Regenerate.
4267 * aclocal.m4: Regenerate.
4268 * config.in: Regenerate.
4269 * configure: Regenerate.
4270 * doc/Makefile.in: Regenerate.
4272 2002-02-10 Richard Henderson <rth@redhat.com>
4274 * doc/c-alpha.texi: New file.
4275 * doc/Makefile.am (CPU_DOCS): Add it.
4276 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4278 2002-02-09 Richard Henderson <rth@redhat.com>
4280 * config/tc-alpha.c (O_samegp): New.
4281 (USER_RELOC_P): Include it.
4282 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4283 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4284 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4285 (alpha_validate_fix): New.
4286 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4288 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4290 * doc/c-cris.texi: New.
4291 * doc/all.texi: @set CRIS.
4292 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4293 Include c-cris.texi.
4294 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4295 * doc/Makefile.in: Regenerate.
4297 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4299 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4300 determine if a number is a sign-extended 32-bit number.
4301 (load_register): Use IS_SEXT_32BIT_NUM.
4302 (macro): Check if load/store macro handling is using a
4303 constant 32-bit address on 64-bit address systems, and if
4304 so optimize the generation of that address.
4306 2002-02-08 Richard Henderson <rth@redhat.com>
4308 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4309 we've eliminated all foreign relocation types yet.
4310 (alpha_fix_adjustable): Likewise.
4312 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4314 Contribute sh64-elf.
4315 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4316 Stephen Clarke <Stephen.Clarke@st.com>
4317 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4318 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4319 * config/tc-sh.c (md_relax_table): Added default sizes for
4320 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4321 MOVI_16, MOVI_32 and MOVI_48.
4322 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4323 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4325 (shmedia_md_estimate_size_before_relax): Remove redundant
4326 blocks. Set fragP->fr_var even if relaxation type unchanged.
4327 Retain UNDEF_MOVI until expression decays to number.
4328 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4329 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4330 relocation types. Take fixP->fx_addnumber into account too.
4331 (shmedia_md_apply_fix): Likewise.
4332 (shmedia_md_convert_frag): Likewise.
4333 (shmedia_build_Mytes): Likewise.
4334 (sh64_consume_datalabel): Complain about nested datalabel.
4335 Support PIC relocs. Call sh_parse_name.
4336 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4337 in tc-sh.h to SHmedia reloc types.
4338 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4339 MOVI_GOTPC): New relaxation constants.
4340 (md_relax_table): Introduce relaxation directives for PIC-related
4342 (sh_PIC_related_p): Handle datalabel.
4343 (sh_check_fixup): Choose SH5 PIC relocations.
4344 (sh_cons_fix_new): Added BDF_RELOC_64.
4345 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4346 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4347 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4348 current ISA is SHmedia, get 7 bytes.
4349 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4350 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4352 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4353 shmedia_apply_fix3 and make void.
4354 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4355 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4357 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4358 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4359 2001-03-14 DJ Delorie <dj@redhat.com>
4360 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4361 * doc/Makefile.in(CPU_DOCS): Ditto.
4362 * doc/c-sh64.texi: New file.
4363 * doc/as.texinfo: Add SH64 support.
4364 2001-03-13 DJ Delorie <dj@redhat.com>
4365 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4366 A_REUSE_PREV so that its purpose is more obvious.
4367 (shmedia_build_Mytes): Ditto.
4368 2001-03-07 DJ Delorie <dj@redhat.com>
4369 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4371 (sh64_vtable_inherit): Ditto.
4372 (strip_datalabels): New, strip "datalabel" from given line.
4373 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4375 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4376 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4378 (shmedia_build_Mytes): ... to here.
4379 2001-03-06 DJ Delorie <dj@redhat.com>
4380 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4382 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4383 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4384 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4385 address by one in call to dwarf2_emit_insn.
4386 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4387 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4388 alignment handling broken by imported changes.
4389 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4390 (sh64_handle_align): Declare.
4391 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4392 (sh64_max_mem_for_rs_align_code): Declare.
4393 (enum sh64_isa_values): Moved here from tc-sh64.c.
4394 (md_do_align): Define.
4395 (sh64_do_align): Declare.
4396 (struct sh64_tc_frag_data): New.
4397 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4399 (TC_FRAG_INIT): Change to set new datatype.
4400 (struct sh64_segment_info_type): Rename member
4401 last_flushed_location to last_contents_mark. All users changed.
4402 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4403 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4404 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4405 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4406 of unsetting seen_insn.
4407 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4408 call sh64_update_contents_mark.
4409 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4410 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4411 enum sh64_isa_values.
4412 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4413 (emitting_crange): Boolean guard moved to file scope from function
4414 scope in sh64_set_contents_type.
4416 (sh64_update_contents_mark): New; most split out from
4417 sh64_flush_pending_output.
4418 (shmedia_md_end): Call sh64_update_contents_mark. Set
4419 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4420 (sh64_do_align): New function.
4421 (sh64_max_mem_for_rs_align_code): New function.
4422 (sh64_handle_align): Rename from shmedia_do_align. Make
4423 non-static. Add head comment. Emit zero bytes for n bytes modulo
4424 four. Change return-type to void.
4425 (shmedia_elf_new_section): Remove.
4426 (shmedia_md_assemble): Call sh64_update_contents_mark.
4427 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4428 new frag. Call sh64_update_contents_mark after making the new
4430 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4431 and sh_flush_pending_output.
4432 (sh64_flag_output): Also call md_flush_pending_output, but add
4433 condition on not emitting_crange.
4434 (sh64_tc_cons_fix_new): Remove.
4435 2001-01-12 Nick Clifton <nickc@redhat.com>
4436 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4437 alignment handling scheme imported from sourceware.
4438 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4439 * config/tc-sh64.h (TARGET_FORMAT): Define.
4440 (sh64_target_format): Prototype.
4441 * config/tc-sh64.c (sh64_target_mach): New function.
4442 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4443 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4444 zero_address_frag instead of copying the frag of the symbol.
4445 (shmedia_frob_file_before_adjust): Ditto.
4446 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4447 to valueT to remove signedness.
4448 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4449 headers to output_bfd. Do not evaluate symbols if final is false;
4451 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4452 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4453 to the current frag, call shmedia_md_convert_frag to emit fixups
4454 and make frag_wane neutralize the frag. Update comments.
4455 * config/tc-sh.c (md_convert_frag): Change caller of
4456 shmedia_md_convert_frag.
4457 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4458 * config/tc-sh64.h: Tweak comments and correct formatting.
4459 * config/tc-sh64.c: Ditto.
4460 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4461 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4462 for the no-relocation case.
4463 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4464 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4466 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4468 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4469 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4471 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4473 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4474 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4475 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4476 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4477 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4478 if reloc is emitted.
4479 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4480 New options plus bugfixes.
4481 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4483 (md_parse_option): Handle new options.
4484 (md_show_usage): Add blurb for new options.
4485 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4486 (sh64_expand, sh64_pt32): New variables.
4487 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4488 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4489 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4490 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4491 <resolved previously-pc-relative relocs>: Handle
4492 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4493 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4494 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4495 points to SHcompact code.
4496 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4497 SH64PCREL16)>: Check that ISA of what operand points at and
4498 PTA/PTB matches, or emit error.
4499 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4500 SHMEDIA_BFD_RELOC_PT.
4501 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4503 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4504 condition for MOVI expansion.
4505 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4506 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4508 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4510 (sh64_target_format): Error-check setting of sh64_pt32 and
4511 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4512 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4513 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4514 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4515 * config/tc-sh64.c: Improve comments.
4516 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4517 not say the linker will check correctness of PTA/PTB expansion.
4518 (shmedia_md_end): Make non-static.
4519 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4521 * config/tc-sh.c (sh_finalize): Remove.
4522 * config/tc-sh.h (md_end): Do not define.
4523 Remove prototype for sh_finalize.
4524 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4525 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4526 sh64_section_data container when storing section type in tdata
4527 field in elf_section_data.
4528 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4530 * Makefile.am: Update dependencies.
4531 * Makefile.in: Regenerate.
4532 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4533 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4534 dwarf2_emit_insn call with test on debug_type.
4535 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4536 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4537 CRT_SH5_ISA32 sticky for 64-bit.
4538 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4539 Generate .crange sections when switching ISA mode or emitting
4540 constants in same section as code.
4541 * config/tc-sh64.c: Reformat structure definitions.
4542 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4544 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4545 to emit a .cranges descriptor when contents type changes. Only
4546 emit error if changing contents type and -no-mix is in effect.
4547 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4548 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4549 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4550 sh64_flush_last_crange over sections.
4551 When checking main symbol of datalabel symbol, check for
4552 STO_SH5_ISA32, not ISA type of section in definition.
4553 (shmedia_frob_file_before_adjust): Check main symbol for
4554 STO_SH5_ISA32; don't check ISA type of section in definition.
4555 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4556 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4557 .cranges entries have been output.
4558 (shmedia_elf_new_section): Just call md_flush_pending_output.
4559 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4560 fix. Do not set tc_segment_info_data.in_code for section. Call
4561 sh64_set_contents_type for SHmedia code.
4562 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4563 false. Call md_flush_pending_output.
4564 (sh64_target_format): Check that -no-mix and
4565 -shcompact-const-crange are used in sane combination with other
4567 (shmedia_md_pcrel_from_section): Check type of fix for how to
4569 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4570 not ISA type of section in definition.
4571 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4572 hold contents-type state.
4573 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4574 (sh64_flush_pending_output): Declare.
4575 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4576 (sh64_tc_cons_fix_new): Declare.
4577 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4578 call sh64_flag_output.
4579 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4580 call sh64_set_contents_type to mark SHcompact code and set
4582 (md_longopts): New options "-no-mix" and
4583 "-shcompact-const-crange".
4584 (md_parse_option): Handle new options.
4585 (md_show_usage): Add blurb for new options.
4586 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4587 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4588 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4589 (sh64_last_insn_frag): New.
4590 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4591 to get frag for insn opcode for generating fixups; do not assume it
4593 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4595 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4597 (TC_FRAG_TYPE): Define as fragS *.
4598 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4599 (sh64_last_insn_frag): Declare.
4600 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4601 not == NULL before dereferencing.
4602 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4603 Get rid of BFD section flag and EF_SH64_ABI64.
4604 * config/tc-sh64.c (shmedia_frob_section_type): Use
4605 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4606 communicate the section as containing SHmedia code. Describe why.
4607 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4608 EF_SH64 regardless of ABI.
4609 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4610 in error message. Handle resolved expressions for
4611 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4612 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4613 (shmedia_check_limits): Handle BFD_RELOC_64.
4614 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4615 a STO_SH5_ISA32 symbol, only the BFD value.
4616 2000-12-11 Ben Elliston <bje@redhat.com>
4617 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4618 dwarf2_generate_asm_lineno.
4619 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4620 Handle PC-relative MOVI expansions with assembler relaxation.
4621 Generate PC-relative relocs from 16-bit PC-relative expressions.
4622 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4623 (shmedia_md_pcrel_from_section): ...here.
4624 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4625 turned completely resolved. Adjust relocation type for 16-bit
4626 immediate operands that has turned PC-relative. Adjust back for
4627 MD_PCREL_FROM_SECTION being applied twice.
4628 (shmedia_md_convert_frag): Always emit reloc for expression with
4629 global or weak symbol. Handle relaxation result for PC-relative
4631 (shmedia_md_estimate_size_before_relax): An expression with a weak
4632 or global symbol can not be relaxed. Break out tests for
4633 relaxable symbol into variable sym_relaxable.
4634 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4635 UNDEF_MOVI)>: Break out any PC-relative expression and change
4637 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4639 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4640 MOVI expansion. If X_op_symbol of the immediate expression is
4641 set, make an expression symbol for the argument to frag_var.
4642 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4644 (END): Adjust for new relaxations.
4645 (md_relax_table): Add entries for new relaxations.
4646 2000-12-07 Ben Elliston <bje@redhat.com>
4647 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4648 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4649 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4650 SHORI operand offsets in PT/PTA/PTB expansions.
4651 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4652 Implement DataLabel semantics.
4653 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4654 shmedia_frob_file_before_adjust.
4655 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4656 (DATALABEL_SUFFIX): Define.
4657 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4658 symbol list to update "datalabel" symbols to their main symbol
4660 (shmedia_frob_file_before_adjust): New.
4661 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4662 undefined and set STT_DATALABEL.
4663 (sh64_frob_label): Initialize TC symbol field.
4664 (sh64_consume_datalabel): Actually implement semantics. New
4665 parameter operandf, call it instead of expression.
4666 (sh64_exclude_symbol): New.
4667 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4668 to sh64_consume_datalabel.
4669 (tc_symbol_new_hook): Define to tc_frob_symbol.
4670 (TC_SYMFIELD_TYPE): Define to symbolS *.
4671 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4672 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4673 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4675 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4676 generating dwarf2 debug information.
4677 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4678 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4679 elf64-sh64 for the 64-bit ABI.
4680 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4682 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4683 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4685 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4686 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4687 (enum sh64_abi_values): New type.
4688 (enum sh64_isa_values): New type.
4689 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4690 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4691 (sh64_abi): Replace shmedia_64.
4692 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4693 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4694 (s_sh64_mode): Check validity for this target.
4695 (sh64_target_format): Initialize defaults for ISA and ABI.
4696 Fallback to old object format if no SH64 ISA or ABI has been
4698 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4699 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4700 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4701 * config/tc-sh64.h: Fix typo in comment.
4702 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4703 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4704 <PT fixups for absolute values>: Size will be longest, not
4706 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4707 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4708 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4709 and l1 to hold lowercase of two first characters. Change all
4710 remaining TO_LOWER to tolower.
4711 * config/tc-sh64.c (TO_LOWER): Delete.
4712 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4713 (md_parse_name): Define.
4714 (sh64_consume_datalabel): Declare.
4715 (DOLLAR_DOT): Define.
4716 * config/tc-sh64.c (shmedia_parse_exp): New.
4717 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4718 (shmedia_parse_reg): Remove const from src
4720 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4721 (shmedia_md_assemble): Ditto for op_end variable.
4722 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4723 Use shmedia_parse_exp, not parse_exp.
4724 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4725 parameter. All callers changed.
4726 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4728 (shmedia_parse_reg): Put first two character in local variables.
4729 Use tolower, not TO_LOWER. If no register is found and argtype
4730 indicates a control register, scan shmedia_creg_table
4732 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4733 * Makefile.am (CPU_TYPES): Add sh64.
4734 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4735 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4736 Regenerate dependencies.
4737 * Makefile.in: Regenerate.
4738 * configure.in: Add support for sh64-*-elf*.
4739 * configure: Regenerate.
4740 * config/tc-sh64.h: New.
4741 * config/tc-sh64.c: New.
4742 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4743 .mode, .isa and .uaquad.
4744 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4745 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4746 [HAVE_SH64] (END): Define as 10.
4747 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4748 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4750 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4751 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4752 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4753 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4755 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4756 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4757 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4758 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4759 SHmedia instructions. Handle state-change after switching to
4761 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4762 (md_parse_option) [HAVE_SH64]: Parse new options.
4763 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4764 (md_convert_frag) [HAVE_SH64] <default>: Call
4765 shmedia_md_convert_frag instead of abort.
4766 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4767 BFD_RELOC_SH_SHMEDIA_CODE.
4768 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4769 SHcompact or SHmedia code.
4770 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4771 shmedia_md_apply_fix instead of abort.
4772 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4773 result from calling shmedia_md_estimate_size_before_relax instead
4775 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4777 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4778 shmedia_init_reloc and do nothing more if it returns non-zero.
4779 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4780 * po/POTFILES.in: Regenerate.
4781 * po/gas.pot: Regenerate.
4783 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4785 * config/tc-sh.c (parse_at): Install the correct version of
4788 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4789 assume fixP->fx_subsy is non-NULL.
4791 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4793 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4794 A_DISP_PC_ABS, and adjust it by -4.
4795 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4797 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4798 the operand type is not A_DISP_PC_ABS.
4800 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4802 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4803 common and weak symbols. Handle common and weak symbols as
4804 undefined symbols with regards to GREG handling and merging.
4805 (mmix_frob_file): Ditto.
4807 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4809 * configure.in (hppa-*-netbsd*): New target.
4810 * configure: Regenerate.
4811 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4813 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4815 * config/tc-v850.c: Add missing prototypes amd use old-style
4816 function definitions.
4817 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4818 (sdata_section tdata_section, zdata_section, sbss_section,
4819 tbss_section, zbss_section, rosdata_section, rozdata_section,
4820 scommon_section, tcommon_section, zcommon_section,
4821 call_table_data_section, call_table_text_section): Delete.
4822 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4823 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4824 v850_call_table_data, v850_call_table_text): Delete.
4825 (struct v850_seg_entry): New.
4826 (v850_seg_table): New.
4827 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4828 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4829 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4830 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4833 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4834 recording of alignment.
4835 (md_pseudo_table): Use v850_seg.
4836 (md_begin): Don't init .call_table_data and .call_table_text here.
4837 Set v850_seg_table bss entry.
4839 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4841 Support on-demand global register allocation by passing on
4842 base-plus-offset relocs to the linker.
4843 * config/tc-mmix.c: Tweak and fix typos in comments.
4844 (allocate_undefined_gregs_in_linker): New variable.
4845 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4846 (md_longopts): Add --linker-allocated-gregs.
4847 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4848 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4849 (md_show_usage): Update text for -x. Add text for
4850 --linker-allocated-gregs.
4851 (tc_gen_reloc): Derive default value for addend from val and
4852 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4853 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4854 GREG if allocate_undefined_gregs_in_linker.
4855 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4856 --linker-allocated-gregs.
4857 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4858 --linker-allocated-gregs. Mention that it's implied by -x.
4859 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4860 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4862 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4864 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4866 * Makefile.am: Run "make dep-am"
4867 * Makefile.in: Regenerate.
4869 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4871 * config/tc-or32.c: New file.
4872 * config/tc-or32.h: New file.
4873 * configure.in: Add support for or32 targets.
4874 * configure: Regenerate.
4875 * config/obj-coff.c: Add support for or32 targets.
4876 * config/obj-coff.h: Add support for or32 targets.
4877 * Makefile.am: Add support for or32 targets.
4878 * Makefile.in: Regenerate.
4879 * NEWS: Mention support for OpenRISC.
4880 * doc/Makefile.in: Regenerate.
4881 * po/POTFILES.in: Regenerate.
4882 * po/gas.pot: Regenerate.
4884 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4886 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4889 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4891 * config/tc-mips.c (tc_gen_reloc): Arrange for
4892 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4893 their LO16 parts, even for ELF.
4895 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4897 * config/tc-i386.c: Protect definitions of true and false
4900 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4902 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4903 made because of .weak, if they are neither defined nor used in any
4906 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4908 * configure: Regenerated.
4910 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4912 * doc/Makefile.am (install): Depend on install-info.
4913 * doc/Makefile.in: Regenerate.
4915 2002-01-26 Nick Clifton <nick@redhat.com>
4917 * po/fr.po: Updated version
4919 2002-01-24 Kazu Hirata <kazu@hxi.com>
4921 * config/tc-h8300.c (check_operand): Don't print a warning
4922 when a valid 24-bit address is given to a 16-bit address
4925 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4927 * config/tc-sh.c (sh_elf_suffix): Removed.
4928 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4929 sh_end_of_match, sh_parse_name): New functions.
4930 (sh_elf_cons): Simplify.
4931 (parse_exp): Reject misplaced PIC operands.
4932 (md_undefined_symbol): Simplify.
4933 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4934 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4935 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4936 Complain if subsy remains at the end.
4937 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4938 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4940 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4942 * config/tc-mn10300.c (xr_registers): Move `pc'...
4943 (other_registers): ... here.
4945 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4947 * Makefile.am: Run "make dep-am".
4948 * Makefile.in: Regenerate.
4949 * gas/po/POTFILES.in: Regenerate.
4951 2002-01-21 DJ Delorie <dj@redhat.com>
4953 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4954 stabstr_name allocation permanent, as it will be referenced from
4957 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4959 * configure.in (ia64-*-netbsd*): New target.
4960 * configure: Regenerate.
4962 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4964 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4966 <Detailed description, ARM options>: Ditto.
4967 * doc/c-arm.texi (ARM Options): Ditto.
4969 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4971 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4972 do_mia, do_mar and do_mra respectively.
4973 (do_mav_*): Renamed from do_c_*.
4974 (mav_reg_required_here, mav_parse_offset): Renamed from
4975 cirrus_reg_required_here and cirrus_parse_offset respectively.
4976 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4978 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4979 Keith Walker <keith.walker@arm.com>
4981 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4982 (insns): Add pattern for bxj instruction.
4983 (do_bxj): New function.
4984 (arm_cpus): Add arm926ej.
4985 (arm_archs): Add armv5tej.
4987 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4989 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4991 2002-01-19 Keith Walker <keith.walker@arm.com>
4993 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4995 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4997 * NEWS: Mention new ARM command-line options and VFP support.
4999 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5001 (ARM_CEXT_MAVERICK): Similarly.
5002 (ARM_ANY): Now means any core instruction.
5003 (CPU_DEFAULT): Default to ARM_ANY.
5004 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5005 (pic_code): Declare for all object types. Make type int.
5006 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5007 (march_fpu_opt, mfpu_opt): Declare.
5008 (md_longopts): Tidy up conditional definitions.
5009 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5010 (arm_long_opts): New tables.
5011 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5012 (arm_parse_extension): New function.
5013 (md_parse_option): Rewrite using new table-driven system.
5014 (md_show_usage): Use new table-driven system.
5015 (md_begin): Calculate cpu_variant from command line option data.
5016 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5017 command-line options.
5018 * doc/c-arm.texi: Likewise.
5020 2002-01-18 Andreas Jaeger <aj@suse.de>
5022 * as.c (parse_args): Update year.
5024 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5026 * config/tc-tic54x.c (encode_address): Add a more informative
5027 warning about incorrect syntax.
5029 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5031 * po/gas.pot: Regenerate.
5033 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5035 * macro.c (get_any_string): Add no-c-format comment to prevent
5036 confusion when translating string.
5037 * gasp.c (get_any_string): Add no-c-format comment to prevent
5038 confusion when translating string.
5040 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5041 Johannes Stezenbach <js@convergence.de>
5042 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5043 matched before the shorter ones.
5044 (my_getSmallParser): Fix handling of nested parentheses in
5045 percent_op's. Code cleanup.
5046 (my_getPercentOp): New function, code from my_getSmallParser.
5047 (my_getSmallExpression): Fix handling of closing parentheses.
5048 Code cleanup. Better comments.
5050 2002-01-16 Nick Clifton <nickc@redhat.com>
5052 po/tr.po: New file: Turkish translation.
5053 configure.in (LINGUAS): Add "tr".
5054 configure: Regenerate.
5056 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5058 Support for VFP instructions
5059 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5060 (cp_address_required_here): New argument wb_ok. When false, do not
5061 accept write-back forms of addressing. Change all callers.
5062 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5063 (FPU_VFP_EXT_V2): Define.
5064 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5065 Define in terms of above.
5066 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5067 (vfp_reg): New struct.
5068 (vfp_regs): New array of registers.
5069 (insns): Add VFP instructions.
5070 (sn_table): New array of VFP single-precision register names.
5071 (dn_table): New array of VFP double-precision register names.
5072 (all_reg_maps): Add the new register tables.
5073 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5074 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5075 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5076 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5077 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5078 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5079 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5080 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5081 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5082 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5083 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5084 (do_vfp_sp_dp_cvt): New functions.
5085 (md_begin): Set soft-float flag for appropriate VFP work.
5086 (md_atof): Handle VFP-format doubles.
5087 (md_parse_option): Handle VFP command-line options.
5088 (md_show_usage): Display VFP command-line options.
5090 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5092 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5093 various command line options.
5095 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5097 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5099 (xstormy16_md_apply_fix3): Do not return a value.
5101 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5103 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5104 the -EL/-EB option that matches the target's endianness.
5105 (md_parse_option): Likewise.
5107 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5109 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5110 is not dependent on ARM_BI_ENDIAN.
5112 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5114 * tc-arm.c (all error messages): Normalize capitalization of messages.
5116 * tc-arm.h (md_operand): Delete define.
5117 * tc-arm.c (in_my_get_expression): New static variable.
5118 (my_get_expression): Set and clear it.
5119 (md_operand): New function. If called from my_get_expression
5120 put the error in inst.error.
5121 (output_inst): Now takes argument of instruction being assembled.
5122 Print it out with any error message.
5123 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5125 (end_of_line): Don't update inst.error if it is already set.
5127 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5129 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5130 op that can be translated into a mvn instruction.
5132 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5134 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5135 setting default md.flags.
5136 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5137 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5138 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5139 for 32 bit unwind info blocks.
5140 (generate_unwind_image): Add support for different types
5141 of unwind images (32 bits and/or big-endian).
5142 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5143 (ia64_target_format): Add support for hpux target formats.
5144 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5145 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5146 SHT_FINI_ARRAY elf section types.
5148 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5150 * tc-arm.c (struct reg_entry): Move before prototypes.
5151 (int_register, cp_register, fp_register): Delete.
5152 (reg_table): Delete. Replaced with ...
5153 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5154 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5155 (mav_dspsc_table): ... one table per register set.
5156 (arm_reg_hsh): Delete.
5157 (struct reg_map): New structure.
5158 (all_reg_maps): New array.
5159 (enum arm_reg_type): New enums.
5160 (build_reg_hsh): New function.
5161 (insert_reg_alias): Use hash table passed by caller. Adjust all
5163 (create_register_alias): New function, split out from ...
5164 (md_assemble): ... here.
5165 (md_begin): Build new register hash tables.
5166 (arm_reg_parse): New argument for the hash table to search. Adjust all
5168 (arm_reg_parse_any): New function.
5169 (co_proc_number): Look up the processor number in the processor hash
5171 (cirrus_regtype): Delete.
5172 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5173 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5174 (ARM_EXT_MAVERICKsc_register): Delete.
5175 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5176 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5178 (do_c_triple_4, do_c_triple_5): Delete.
5179 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5180 (do_c_quad_6): Delete.
5181 (do_c_quad_6[ab]): New functions.
5182 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5183 arguments to use new register parsing methods.
5184 (cirrus_reg_required_here): Likewise.
5185 (insns): Reclassify cirrus maverick worker functions.
5186 (cirrus_valid_reg): Delete.
5188 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5190 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5191 (sh*-*-netbsdelf*): New target.
5192 * configure: Regenerate.
5193 * tc-sh.h: Update copyright years.
5194 (TARGET_FORMAT): Add version for TE_NetBSD.
5196 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5198 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5201 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5203 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5204 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5206 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5208 * tc-mips.c (mips_cprestore_valid): New flag.
5209 (mips_frame_reg_valid): New flag.
5210 (macro) [M_JAL_2]: Check both flags.
5211 [M_JAL_A]: Likewise.
5212 (s_cprestore): Set mips_cprestore_valid.
5213 (tc_get_register): If setting mips_frame_reg, set
5214 mips_frame_reg_valid and clear mips_cprestore_valid.
5215 (s_mips_ent): Clear both flags.
5216 (s_mips_end): Clear both flags.
5218 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5220 * write.c (write_object_file): Make use of bfd_section_list_remove.
5221 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5222 * config/tc-mmix.c (mmix_frob_file): Likewise.
5224 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5226 * configure.in (i386-*-netbsdelf*): Collapse target into...
5227 (i386-*-netbsd*): ...this. Add support for x86-64.
5228 * configure: Regenerated.
5230 2002-01-03 matthew green <mrg@redhat.com>
5232 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5234 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5236 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5239 For older changes see ChangeLog-0001
5245 version-control: never