1 2003-04-22 H.J. Lu <hjl@gnu.org>
3 * app.c (do_scrub_chars): Check for valid label.
5 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7 * doc/as.texinfo: Replace references to Mitsubishi M32R with
8 references to Renesas M32R.
9 * doc/c-m32r.texi: Likewise.
11 2003-04-21 Richard Henderson <rth@redhat.com>
13 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
14 (out_file_list): Assign non-null filename after generating error.
16 2003-04-18 Jakub Jelinek <jakub@redhat.com>
18 * ehopt.c (check_eh_frame): For aug_size == 0
19 in state_seeing_aug_size state skip the state_skipping_aug
22 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
24 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
26 * doc/c-h8500.texi: Likewise.
27 * doc/c-sh.texi: Likewise.
28 * doc/c-sh64.texi: Likewise.
29 * doc/h8.texi: Likewise.
30 * config/tc-h8300.c: Likewise.
31 * config/tc-h8300.h: Likewise.
32 * config/tc-h8500.c: Likewise.
33 * config/tc-h8500.h: Likewise.
34 * config/tc-sh.c: Likewise.
35 * config/tc-sh.h: Likewise.
36 * config/tc-sh64.c: Likewise.
37 * config/tc-sh64.h: Likewise.
39 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
41 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
42 * config/tc-mips.c: Use signed add for n32 address arithmetic.
43 (append_insn): When filling delay slots with instructions
44 that have fixups that tc_gen_reloc might consider modifyable
45 in variant frags, start a new frag.
46 (load_address): Generate GOT_DISP with of without offset
47 depending on whether symbol is local. For -xgot, use
48 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
49 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
50 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
51 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
52 <ld_st>: In NewABI with small got, always use
53 GOT_PAGE/GOT_OFST, with the latter in the load/store
54 instruction. With big got, use GOT_HI16/GOT_LO16 or
56 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
57 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
58 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
59 (md_convert_frag): Use memmove for safe copying of overlapping
62 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
64 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
65 -mlong, -mshort-double and -mlong-double options; use table @code.
66 (M68HC11-Syntax): Update to document 68HC12 operands.
67 (M68HC11-Modifiers): New section for operand modifiers.
68 (M68HC11-Directives): New section for specific assembler directives.
69 (M68HC11-Branch): Fix Overfull hbox error.
71 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
73 * config/tc-mips.c (macro): Add comments explaining the rationale
76 2003-04-09 Chris Demetriou <cgd@broadcom.com>
78 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
79 constant address that Alexandre took out by accident. Reject
80 64-bit addresses that are not sign extensions of 32 bits only if
81 we don't support 64-bit address constants.
83 2003-04-09 Alan Modra <amodra@bigpond.net.au>
85 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
87 2003-04-08 Nick Clifton <nickc@redhat.com>
89 * as.c (perform_an_assembly_pass): If using cgen, call
91 * cgen.c (gas_cgen_begin): New function. If
92 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
93 otherwise call cgen_clear_signed_overflow_ok.
94 * cgen.h: Prototype gas_cgen_begin.
96 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
98 * write.c (write_relocs): Remove unused variable.
100 2003-04-06 Chris Demetriou <cgd@broadcom.com>
102 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
103 (macro): Use new macro to decide whether to emit constant address
104 as 32 or 64 bits if addresses are 32-bit wide but registers are
107 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
109 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
110 (M6811_OP_PAGE_ADDR): New internal define.
111 (get_operand): New modifier %page and %addr to obtain page and
112 address part of a far-function.
113 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
114 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
116 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
117 (find_opcode): Add comment.
118 (md_estimate_size_before_relax): Force relocation of
119 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
120 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
121 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
122 on the symbol itself so that DWARF2 strings are merged correctly.
124 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
126 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
127 default tic4x target format to 'coff2-tic4x'.
128 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
130 * config/tc-tic4x.h: Ditto
132 2003-04-03 Nick Clifton <nickc@redhat.com>
134 * NEWS: Mention support for Xtensa architecture.
136 2003-04-02 Philip Blundell <philb@gnu.org>
138 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
140 2003-04-02 Chris Demetriou <cgd@broadcom.com>
142 * config/tc-mips.c (macro2): Adjust implementation of
143 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
144 in the case where the source and destination registers
147 2003-04-01 Bob Wilson <bob.wilson@acm.org>
149 * Makefile.am (CPU_TYPES): Add xtensa.
150 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
151 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
152 (xtensa-relax.o): New target.
154 * Makefile.in: Regenerate.
155 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
156 extra_objects for xtensa targets.
157 * configure: Regenerate.
158 * write.c (write_object_file): Add new md_post_relax_hook.
159 * config/tc-xtensa.c: New file.
160 * config/tc-xtensa.h: Likewise.
161 * config/xtensa-istack.h: Likewise.
162 * config/xtensa-relax.c: Likewise.
163 * config/xtensa-relax.h: Likewise.
164 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
165 * doc/Makefile.in: Regenerate.
166 * doc/all.texi: Set new XTENSA variable.
167 * doc/as.texinfo: Set new Xtensa variable. Describe
168 Xtensa-specific options. Define line comment character for
169 Xtensa. Add Xtensa processors to list of ELF targets where
170 alignment is specified in bytes. Add new Xtensa-Dependent node.
171 Add acknowledgements for those contributing to the Xtensa port.
172 * doc/internals.texi: Describe new md_post_relax_hook.
173 * doc/c-xtensa.texi: New file.
176 2003-04-01 Nick Clifton <nickc@redhat.com>
177 Richard Earnshaw <rearnsha@arm.com>
179 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
180 (ARM_ARCH_IWMMXT): Simplify.
181 (insns): Place iwmmx instructions in correct place in table.
182 (arm_add_note): New function: Add a note entry to a .note section.
183 (md_begin): Make the default architecture be unknown.
184 Suppress the creation of an arm note section.
186 2003-03-26 Eric Christopher <echristo@redhat.com>
188 * config/tc-mips.c (nopic_need_relax): Check for
191 2003-03-25 Stan Cox <scox@redhat.com>
192 Nick Clifton <nickc@redhat.com>
194 Contribute support for Intel's iWMMXt chip - an ARM variant:
196 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
197 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
198 (enum wreg_type, enum iwmmxt_insn_type): New types.
199 (wr_register, wc_register, wcg_register): New macros.
200 (iwmmxt_table): New variable.
201 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
202 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
203 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
204 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
205 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
206 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
207 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
208 cp_byte_address_offset, cp_byte_address_required_here,
209 check_iwmmxt_insn): New functions.
210 (asm_opcode_insns): Add iWMMXt instructions.
211 (md_begin): Set the mach value for iWMMXt targets. Create a note
212 section to identify iwmmxt binaries.
213 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
214 * doc/c-arm.texi: Document the support for the iWMMXt.
215 * NEWS: Mention new support.
217 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
219 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
220 * doc/all.texi: Likewise.
221 * doc/c-tic54x.texi: Likewise.
223 2003-03-21 Andreas Schwab <schwab@suse.de>
225 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
226 avoid aliasing issue.
228 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
230 * config/tc-s390.c (s390_arch_size): Initialize to zero.
231 (current_arch_mask): Rename to current_mode_mask.
232 (current_arch_requested): Remove variable.
233 (current_cpu): New variable.
234 (init_default_arch): Set defaults values for s390_arch_size,
235 current_mode_mask and current_cpu.
236 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
237 (md_begin): Replace current_arch_mask by current_cpu.
238 (md_assemble): Adapt check and error message to current_mode_mask and
241 2003-03-09 James E Wilson <wilson@tuliptree.org>
243 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
244 * read.c (get_line_sb): Return end of line character or '\n' if
245 it is zero or non-existent.
247 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
249 * config/tc-mips.c (mips_validate_fix): New function.
250 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
251 (mips_validate_fix): Declare.
253 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
255 * Reverted 2003-03-02's patch.
257 2003-03-11 Steve Ellcey <sje@cup.hp.com>
259 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
260 (TC_DWARF2_EMIT_OFFSET): Provide default.
261 (out_debug_aranges, out_debug_info): Use it.
262 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
263 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
264 (ia64_gen_real_reloc_type): ... here.
265 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
267 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
269 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
270 (s_mips_ent): Likewise.
272 2003-03-04 Dmitry Diky <diwil@mail.ru>
274 * config/tc-msp430.c (mcu_types): Add recently announced x1122
275 and x1123 devices, add missed x437.
276 (md_show_usage): Sort device list.
278 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
280 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
281 (md_begin): Use preset_target_arch.
282 (md_longopts): Make isa option unconditional.
283 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
284 set preset_target_arch.
285 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
286 by -S_GET_VALUE (fixP->fx_subsy).
287 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
289 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
290 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
292 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
294 * config/tc-mips.c (append_insn): Add handling of
295 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
296 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
297 misaligned address and reange overflow.
298 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
299 earlier warnings about misaligned address and reange overflow.
300 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
301 (md_apply_fix): Likewise. Fix warning output.
302 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
303 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
304 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
306 2003-02-21 Nick Clifton <nickc@redhat.com>
308 * NEWS: Mention availability of test generator program.
310 2003-02-21 Miles Bader <miles@gnu.org>
312 * config/tc-v850.c (system_registers): Add v850e debug registers.
313 (system_register_name): Accept up to 27 (the last v850e sys register).
315 2003-02-21 Bob Wilson <bob.wilson@acm.org>
317 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
318 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
319 Capitalize section headings consistently. Format index entries more
320 consistently. Unconditionalize text about whether text and data
321 sections are alterable. Use @ifnottex for alternatives to @tex output
322 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
323 .size and .type directives. Be more polite about bad bug reports.
324 Move FDL into a separate file.
325 * doc/fdl.texi: New file.
327 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
329 * config/tc-mips.c (prev_reloc_op_frag): New variable.
330 (macro): Check it to decide whether a new frag is needed.
331 (my_getSmallExpression): Set it.
333 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
335 * cgen.c: Fix typo: intial -> initial.
337 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
339 * app.c (do_scrub_chars): Handle '||' in two states.
341 2003-02-13 Alan Modra <amodra@bigpond.net.au>
343 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
344 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
346 2003-02-11 Uwe Stieber <uwe@wwws.de>
348 * configure.in: Add support for kaOS as cross build target system.
349 * configure: Regenerated.
351 2003-02-10 Nick Clifton <nickc@redhat.com>
353 * config/tc-arm.c (md_begin): If the Maverick co-processor is
354 selected, set the EF_ARM_MAVERICK_FLOAT flag and
355 bfd_mach_arm_ep9312 machine number.
357 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
359 * config/tc-mips.c (reloc_needs_lo_p): New function.
360 (fixup_has_matching_lo_p): New function.
361 (append_insn): Use reloc_needs_lo_p to check whether a relocation
362 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
363 if that fixup already has a matching %lo(). Don't call frag_wane here.
364 (macro): Call frag_wane here if the last unmatched hi was in the
366 (pic_need_relax): New function, split out from...
367 (md_estimate_size_before_relax): ...here.
368 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
369 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
371 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
373 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
375 2003-02-06 Alan Modra <amodra@bigpond.net.au>
377 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
380 2003-02-05 Alan Modra <amodra@bigpond.net.au>
382 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
383 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
384 accept x@got+off etc.
385 (md_assemble): Handle TLS relocs.
386 (ppc_force_relocation): Force for all TLS relocs.
387 (ppc_fix_adjustable): Likewise.
388 (md_apply_fix3): Handle TLS relocs.
390 2003-02-04 Alan Modra <amodra@bigpond.net.au>
392 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
393 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
395 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
397 * config/tc-mips.c (enum small_ex_type): Remove.
398 (imm_unmatched_hi): Remove.
399 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
400 argument from calls to append_insn.
401 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
403 (macro_build): Update append_insn calls.
404 (mips16_macro_build, macro_build_lui): Likewise.
405 (mips_ip): Rework handling of small expressions. Move explicit
406 relocation handling into my_getSmallExpression. Assume that the
407 value of 'o' operands is zero if there is only one bracketed
409 (percent_op): Make constant. Record the BFD relocation code
410 associated with each operator.
411 (my_getSmallParser, my_getPercentOp): Remove.
412 (parse_relocation): New function.
413 (my_getSamllExpression): Rework. Fill in relocations here
414 rather than in mips_ip.
416 2003-01-29 Nick Clifton <nickc@redhat.com>
418 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
419 assembler's handling of # <linenum> "<filename>" directives work.
421 2003-01-28 Jakub Jelinek <jakub@redhat.com>
423 * dwarf2dbg.c: Include filenames.h.
424 (struct file_entry): Make filename const char *.
425 (dirs, dirs_in_use, dirs_allocated): New variables.
426 (get_filenum): Add NUM argument. Build directory table.
427 (dwarf2_where): Adjust caller.
428 (dwarf2_directive_file): Use get_filenum to allocate
429 slot in file and directory tables.
430 (dwarf2_directive_loc): Recreate full filename from
431 directory and filename part if needed for listing.
432 (out_file_list): Output directory table.
433 Output main source file dirname before its filename.
435 2003-01-28 Dmitry Diky <diwil@mail.ru>
437 * config/tc-msp430.c: Replace occurences of 'tolower' with
440 2003-01-27 David Mosberger <davidm@hpl.hp.com>
442 * config/tc-ia64.c (dot_vframesp): Correct error message.
443 (dot_vframepsp): Ditto.
445 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
447 * configure.in (em): Set to irix on all Irix systems.
448 * configure: Rebuilt.
449 * config/te-irix.h: New file.
450 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
451 whether to use Irix-specific 64-bit format.
453 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
455 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
457 2003-01-25 Jakub Jelinek <jakub@redhat.com>
459 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
460 (tc_gen_reloc): Handle TLS relocs.
461 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
462 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
464 * config/obj-elf.c (obj_elf_section_word): Handle tls.
465 (obj_elf_type): Handle tls_object.
467 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
469 * config/tc-s390.c (s390_tls_suffix): New function.
470 (elf_suffix_type): Add suffix enums for TLS relocations.
471 (s390_elf_suffix): Add suffix strings for TLS relocations.
472 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
474 (md_gather_operands): Map new instruction operand/elf suffix
475 combinations for TLS to bfd relocations.
476 (tc_s390_fix_adjustable): Add new TLS relocations.
477 (tc_s390_force_relocation): Likewise.
478 (md_apply_fix3): Likewise.
480 2003-01-24 Alan Modra <amodra@bigpond.net.au>
482 * as.h: Update copyright date.
483 * symbols.c: Likewise.
484 * config/tc-d10v.h: Likewise.
485 * config/tc-fr30.h: Likewise.
486 * config/tc-i960.h: Likewise.
487 * config/tc-mips.h: Likewise.
489 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
490 (MD_APPLY_SYM_VALUE): Move.
492 2003-01-23 Nick Clifton <nickc@redhat.com>
494 NEWS: Announce sh2e support.
498 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
500 * config/tc-sh.c (md_show_usage): Added sh2e next to
502 (sh_elf_final_processing): Handle arch_sh2e.
504 2003-01-23 Alan Modra <amodra@bigpond.net.au>
506 * symbols.c (S_FORCE_RELOC): Add "strict" param.
507 * symbols.h (S_FORCE_RELOC): Likewise.
508 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
509 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
510 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
511 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
512 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
513 * write.c (generic_force_reloc): New function.
514 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
515 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
516 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
517 * as.h (generic_force_reloc): Declare.
518 * doc/internals.texi (S_FORCE_RELOC): Update.
519 (TC_FORCE_RELOCATION_SUB_SAME): Update.
521 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
523 (alpha_fix_adjustable): Likewise.
524 * config/tc-arm.c (arm_force_relocation): Likewise.
525 * config/tc-cris.c (md_cris_force_relocation): Likewise.
526 * config/tc-frv.c (frv_force_relocation): Likewise.
527 * config/tc-i386.c (md_apply_fix3): Likewise.
528 * config/tc-ia64.c (ia64_force_relocation): Likewise.
529 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
530 * config/tc-m32r.c (m32r_force_relocation): Likewise.
531 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
532 * config/tc-mcore.c (mcore_force_relocation): Likewise.
533 * config/tc-mips.c (mips_force_relocation): Likewise.
534 * config/tc-mmix.c (mmix_force_relocation): Likewise.
535 * config/tc-ppc.c (ppc_force_relocation): Likewise.
536 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
537 * config/tc-sh.c (sh_force_relocation): Likewise.
538 (md_pcrel_from_section): Likewise.
539 * config/tc-sparc.c (tc_gen_reloc): Likewise.
540 * config/tc-v850.c (v850_force_relocation): Likewise.
541 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
542 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
543 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
544 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
546 * config/tc-d10v.c (d10v_force_relocation): Delete.
547 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
548 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
549 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
550 * config/tc-fr30.c (fr30_force_relocation): Delete.
551 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
552 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
553 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
554 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
555 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
556 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
557 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
558 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
559 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
560 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
561 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
562 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
563 * config/tc-i386.c (i386_force_relocation): Delete.
564 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
566 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
567 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
568 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
569 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
571 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
572 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
574 2003-01-23 Alan Modra <amodra@bigpond.net.au>
576 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
577 sh64_elf_section_data.
578 * config/tc-sh64.h: Include elf32-sh64.h.
579 * config/tc-m68hc11.c: Don't include stdio.h.
580 (md_show_usage): Fix missing continuation.
581 * Makefile.am: Run "make dep-am".
582 * Makefile.in: Regenerate.
584 2003-01-22 Nick Clifton <nickc@redhat.com>
586 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
588 2003-01-21 Fabio Alemagna <falemagn@aros.org>
590 * configure.in: Handle *-*-aros*.
591 * configure: Regenerated from configure.in.
593 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
595 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
596 gotplt and pltoff relocations.
597 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
598 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
599 gotplt and pltoff to bfd relocations.
600 (md_gather_operands): Map new instruction operand/elf suffix
601 combinations to bfd relocations.
602 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
603 to the list of unadjustable relocations.
604 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
605 and pltoff relocations.
606 (md_apply_fix3): Add the new relocations.
608 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
610 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
613 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
615 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
616 of relocs for memory bank addressing.
618 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
620 * config/tc-m68hc11.c (md_show_usage): Update usage.
621 (md_parse_option): Recognize -m68hcs12.
622 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
624 * doc/as.texinfo (Overview): Document new option -m68hcs12.
626 2003-01-16 Jakub Jelinek <jakub@redhat.com>
628 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
630 2003-01-16 Alan Modra <amodra@bigpond.net.au>
632 * Makefile.am: Run "make dep-am".
633 * Makefile.in: Regenerate.
634 * po/POTFILES.in: Regenerate.
636 2003-01-11 Alan Modra <amodra@bigpond.net.au>
638 * read.c (get_absolute_expr): New, split out from..
639 (get_absolute_expression): ..here.
640 * read.h (get_absolute_expr): Declare.
641 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
642 Trim size to arch bits_per_address, and test for negative input
643 via get_absolute_expr.
645 2003-01-07 DJ Delorie <dj@redhat.com>
647 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
649 (xstormy16_md_apply_fix3): Use adjustment.
651 2003-01-02 Ben Elliston <bje@redhat.com>
653 * configure.in: Add iq2000-elf target.
654 * configure: Regenerate.
655 * config/tc-iq2000.c: New file.
656 * config/tc-iq2000.h: Likewise.
657 * po/gas.pot: Regenerate.
659 2003-01-02 Chris Demetriou <cgd@broadcom.com>
661 * config/tc-mips.c: Update copyright years to include 2003.
662 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
663 Additionally, clean up their code slightly and clean up their
666 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
668 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
670 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
672 * doc/Makefile.in: Regenerate.
674 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
676 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
677 of .init and .fini sections for array initializers and finalizers.
679 2002-12-31 Chris Demetriou <cgd@broadcom.com>
681 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
682 the "+D" operand, which will be used only by the disassembler.
684 2002-12-30 Chris Demetriou <cgd@broadcom.com>
686 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
688 * configure: Regenerate.
689 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
690 (macro_build): Handle "K" operand.
691 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
692 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
693 (mips_ip): New variable "lastpos", and implement "+A", "+B",
694 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
695 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
696 (validate_mips_insn): Implement "+" as a way to extend the
697 allowed operands, and implement "K", "+A", "+B", and "+C"
699 (OPTION_MIPS32R2): New define.
700 (md_longopts): Add entry for OPTION_MIPS32R2.
701 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
702 (md_parse_option): Handle OPTION_MIPS32R2.
703 (s_mipsset): Reimplement handling of ".set mipsN" options
704 and add support for ".set mips32r2".
705 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
706 (md_show_usage): Document "-mips32r2" option.
707 * doc/as.texinfo: Document "-mips32r2" option.
708 * doc/c-mips.texi: Likewise.
710 2002-12-30 Dmitry Diky <diwil@mail.ru>
712 * configure.in: Add msp430 target.
713 * configure: Regenerate.
714 * Makefile.am: Add msp430 target.
715 * Makefile.in: Regenerate.
716 * config/tc-msp430.c: New file: msp430 assembler.
717 * config/tc-msp430.h: New file: target macros for msp430.
718 * doc/Makefile.am: Add msp430 target.
719 * doc/Makefile.in: Regenerate.
720 * doc/as.texinfo: Include msp430 documenation.
721 * doc/all.texi: Enable msp430 documentation.
722 * doc/c-msp430.texi: New file: document msp430 specific features
725 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
727 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
728 (dwarf2_finish): Use it.
729 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
730 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
732 2002-12-20 DJ Delorie <dj@redhat.com>
734 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
735 BFD_RELOC_XSTORMY16_12.
737 2002-12-19 Alan Modra <amodra@bigpond.net.au>
739 * doc/as.texinfo (Invoking): Typo fix.
740 * config/tc-tic54x.c (encode_operand): Comment typo fix.
742 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
744 * doc/c-alpha.texi: Fix typos.
745 * doc/c-arm.texi: Likewise.
746 * doc/c-d10v.texi: Likewise.
747 * doc/c-i370.texi: Likewise.
748 * doc/c-i960.texi: Likewise.
749 * doc/c-ia64.texi: Likewise.
750 * doc/c-mmix.texi: Likewise.
751 * doc/c-ns32k.texi: Likewise.
752 * doc/c-pdp11.texi: Likewise.
753 * doc/c-pj.texi: Likewise.
754 * doc/c-sh64.texi: Likewise.
755 * doc/c-sparc.texi: Likewise.
756 * doc/c-tic54x.texi: Likewise.
757 * doc/c-v850.texi: Likewise.
758 * doc/c-vax.texi: Likewise.
759 * doc/internals.texi: Likewise.
761 2002-12-18 Chris Demetriou <cgd@broadcom.com>
763 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
764 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
765 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
766 arrange not to issue warnings about use of AT when AT is not
769 2002-12-17 Nick Clifton <nickc@redhat.com>
771 * as.c (std_longopts): Duplicate --keep-locals entry in order to
772 prevent it being confused with -k.
774 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
776 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
777 has already been set up, use it.
779 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
781 * ChangeLog-9295: Fix a typo.
783 * config/tc-d10v.c: Fix a comment typo.
784 * config/tc-dlx.c: Likewise.
785 * config/tc-h8300.h: Likewise.
786 * config/tc-h8500.h: Likewise.
787 * config/tc-mips.c: Likewise.
788 * config/tc-s390.c: Likewise.
789 * config/tc-sh.h: Likewise.
790 * config/tc-tic80.h: Likewise.
791 * config/tc-w65.h: Likewise.
792 * config/tc-z8k.c: Likewise.
793 * config/tc-z8k.h: Likewise.
794 * testsuite/gas/h8300/cmpsi2.s: Likewise.
796 2002-12-16 Alan Modra <amodra@bigpond.net.au>
798 * config/tc-d30v.c (check_range): Warning fixes, formatting.
799 Simplify sign extension. Remove redundant unsigned < 0 test.
800 * config/tc-i960.c (md_ri_to_chars): Prototype.
801 * config/tc-mcore.c (md_pseudo_table): Fix typo.
802 (dump_literals): Init brarsym, and test later instead of isforce.
804 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
805 (parse): Constify line and lineptr.
806 (md_begin): Calculate endop here.
808 2002-12-13 Alan Modra <amodra@bigpond.net.au>
810 * config/obj-vms.c: Formatting. Include fnctl.h.
811 (Create_VMS_Object_File): Fix creat call for sane unix systems.
812 (Object_Record_Offset): Make it a size_t.
813 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
814 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
815 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
816 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
817 (vms_fixup_data_section <data_size>): Add here instead.
818 * config/e-criself.c: Fix typo in last change.
820 2002-12-13 Alan Modra <amodra@bigpond.net.au>
822 * write.c (write_object_file): Fix signed/unsigned warning.
823 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
824 * config/e-criself.c (criself_bfd_name): Prototype.
825 * config/obj-aout.c (s_sect): Remove unused function.
826 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
827 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
828 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
829 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
830 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
831 (VMS_RSYM_Parse <Current_Routine>): Likewise.
832 (vms_fixup_text_section <text_siz>): Likewise.
833 (synthesize_data_segment <data_size>): Likewise.
834 (vms_fixup_xtors_section <sect_no>): Likewise.
835 (structure_count): Don't use implicit int type.
836 * config/tc-a29k.c (insert_sreg): Prototype.
837 (define_some_regs): Prototype, make static.
838 (parse_operand): Likewise.
839 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
840 (md_show_usage <stream>): Likewise.
841 (md_section_align <segment>): Likewise.
842 (md_convert_frag <all args>): Likewise.
843 (md_estimate_size_before_relax <all args>): Likewise.
844 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
845 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
846 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
847 (md_undefined_symbol <name>): Likewise.
848 (md_convert_frag <all args>): Likewise.
849 (write_long <opcode>): Likewise.
850 (tc_gen_reloc <seg>): Likewise.
851 (md_estimate_size_before_relax <all args>): Likewise.
852 (md_apply_fix3 <seg>): Likewise.
853 (s_d30v_align <ignore>): Likewise.
854 (build_insn): Correct format string.
855 (md_apply_fix3): Likewise.
856 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
857 (md_undefined_symbol <name>): Likewise.
858 (md_convert_frag <all args>): Likewise.
859 (md_cgen_lookup_reloc <insn>): Likewise.
860 (md_begin): Delete unused vars.
861 (md_assemble): Likewise.
862 (md_estimate_size_before_relax): Likewise.
863 (fr30_relax_frag): #if 0 out, seems unused.
864 (md_atof): Remove declaration of atof_ieee.
865 (restore_colon): Prototype.
866 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
867 (frv_find_in_vliw): Likewise.
868 (frv_debug_tomcat): Likewise.
869 (frv_adjust_vliw_count): Likewise.
870 (frv_tomcat_shuffle): Likewise.
871 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
872 frv_find_in_vliw call.
873 (md_atof): Remove declaration of atof_ieee.
874 * config/tc-h8500.c (cons): Delete declaration.
875 (md_begin <opcode>): Constify.
876 (displacement_size, immediate_size, absolute_size): Remove.
877 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
878 (tc_crawl_symbol_chain <headers>): Likewise.
879 (md_undefined_symbol <name>): Likewise.
880 (tc_headers_hook <headers>): Likewise.
881 (md_parse_option <c,arg>): Likewise.
882 (md_show_usage <stream>): Likewise.
883 (md_convert_frag <headers, seg>): Likewise.
884 (tc_coff_symbol_emit_hook <ignore>): Likewise.
885 (md_atof): Remove declaration of atof_ieee.
886 (tc_aout_fix_to_chars): Remove unused function.
887 (parse_reg): Prototype.
888 (parse_exp): Prototype.
889 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
890 (parse_reglist): Prototype.
891 (get_operand): Prototype.
892 (get_operands): Prototype.
893 (get_specific): Prototype. Make "this_index" signed.
894 (check): Prototype, make static.
896 (build_relaxable_instruction): Prototype, make static.
897 (build_bytes): Prototype.
898 (wordify_scb): Prototype.
899 * config/tc-h8500.h (start_label): Declare.
900 (tc_coff_sizemachdep): Declare.
901 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
902 (i370_rmode <unused>): Likewise.
903 (i370_csect <unused>): Likewise.
904 (i370_dc <unused>): Likewise.
905 (i370_ds <unused>): Likewise.
906 (i370_elf_lcomm <unused>): Likewise.
907 (i370_ltorg <ignore>): Likewise.
908 (i370_using <ignore>): Likewise.
909 (i370_drop <ignore>): Likewise.
910 (i370_byte <ignore>): Likewise.
911 (i370_tc <ignore>): Likewise.
912 (md_estimate_size_before_relax <fragp, seg>): Likewise.
913 (md_convert_frag <all args>): Likewise.
914 (md_undefined_symbol <name>): Likewise.
915 (md_pcrel_from_section <sec>): Likewise.
916 (tc_gen_reloc <seg>): Likewise.
917 (i370_section_letter): #if 0 unused functions.
918 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
919 (symbol_locate): Prototype.
920 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
921 (md_number_to_disp, md_number_to_field): Remove.
922 (md_apply_fix3): Correct format string and cast "fup".
923 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
924 (s_endian <ignore>): Likewise.
925 (md_undefined_symbol <name>): Likewise.
926 (tc_crawl_symbol_chain <headers>): Likewise.
927 (tc_set_bal_of_call): Likewise.
928 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
929 (i960_handle_align <fragp>): Likewise.
930 (i960_validate_fix <this_segment_type>): Likewise
931 (tc_gen_reloc <section>): Likewise.
932 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
933 (struct memS, struct regop): Forward declare.
934 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
935 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
936 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
937 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
938 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
939 (md_chars_to_number, md_number_to_imm): Make static, prototype.
940 (md_number_to_field): Likewise.
941 (md_number_to_disp): Remove unused function.
942 (md_atof): Remove declaration of atof_ieee.
943 (md_apply_fix3): Correct md_number_to_imm call.
944 * config/tc-ip2k.c (md_assemble): Warning fix.
945 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
946 (fill_insn <ignore>): Likewise.
947 (debug_sym <ignore>): Likewise.
948 (md_undefined_symbol <name>): Likewise.
949 (m32r_scomm <ignore>): Likewise.
950 (md_convert_frag <abfd>): Likewise.
951 (md_cgen_lookup_reloc <insn>): Likewise.
952 (m32r_record_hi16 <seg>): Likewise.
953 (md_estimate_size_before_relax): #if 0 old_fr_fix.
954 (allow_m32rx): Prototype.
955 (first_writes_to_seconds_operands): Prototype.
956 (writes_to_pc): Prototype.
957 (can_make_parallel): Prototype.
958 (make_parallel): Prototype.
959 (target_make_parallel): Prototype.
960 (assemble_two_insns): Prototype.
961 (m32r_record_hi16): Prototype.
962 (md_atof): Remove declaration of atof_ieee.
963 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
964 (m32r_force_relocation): Prototype.
965 (m32r_elf_section_change_hook): Prototype.
966 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
967 (md_show_usage): Fix signed/unsigned warning.
968 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
969 (calcop): Ditto for reg_prefix var.
970 (hexval): Add cast to fix signed/unsigned warning.
971 (md_number_to_disp): Delete unused function.
972 (md_number_to_field): Likewise.
973 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
974 (match_name): Prototype.
975 (get_bf2): Prototype.
976 (get_bf_offset_expression): Prototype.
977 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
978 (md_undefined_symbol <ignore>): Likewise.
979 (md_create_short_jump <all args>): Likewise.
980 (md_create_long_jump <all args>): Likewise.
981 (md_convert_frag <abfd, sec>): Likewise.
982 (md_apply_fix3 <segment>): Likewise.
983 (md_section_align <segment>): Likewise.
984 (md_pcrel_from_section <sec>): Likewise.
985 (tc_gen_reloc <section>): Likewise.
986 (reg_m, reg_n, immediate): Delete unused vars.
987 (dump_literals): Fix signed/unsigned warning.
988 (enter_literal): Likewise.
989 (parse_imm): Likewise. Also fix format string.
990 (parse_mem): Remove unused var.
991 (md_assemble <LS>): Abort on unexpected inst.
992 (md_atof): Remove declaration of atof_ieee.
993 (md_parse_option): Remove unused vars.
994 (md_apply_fix3): Fix format strings, cast args.
995 (tc_gen_reloc): Delete unused var.
996 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
997 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
998 (md_undefined_symbol <name>): Likewise.
999 (md_convert_frag <abfd>): Likewise.
1000 (tc_gen_reloc <seg>): Likewise.
1001 (check_operand <insn>): Likewise.
1002 (md_convert_frag): Fix format strings.
1003 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1004 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1005 (md_atof): Remove declaration of atof_ieee.
1006 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1007 (md_apply_fix3): Fix bogus >>='s.
1008 (md_undefined_symbol): Delete unused var.
1009 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1010 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1011 (fake_opcode): Adjust for pj_opc_int_t change.
1012 (md_begin): Likewise.
1013 (md_assemble): Likewise.
1014 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1015 instead of non-existent third arg of parse_exp_save_ilp.
1016 (md_parse_option): Correct "little" and "big" calls.
1017 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1018 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1019 (tc_gen_reloc <section>): Likewise.
1020 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1021 (debug): Rewrite using VA_* macros.
1022 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1023 (md_convert_frag): Likewise.
1024 (md_parse_option): Likewise.
1025 (md_show_usage): Likewise.
1026 (md_undefined_symbol): Likewise.
1027 (tc_gen_reloc): Likewise.
1028 (md_operand): Likewise.
1029 (tc_aout_pre_write_hook): Delete.
1030 (struct tic30_insn): Make "operands" unsigned.
1031 (struct tic30_par_insn): Likewise.
1032 (md_assemble): Likewise for "count", "i" and "numops".
1033 (tic30_parallel_insn): Likewise for vars here.
1034 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1035 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1036 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1037 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1038 (md_undefined_symbol): Likewise.
1039 (md_parse_option): Likewise.
1040 (md_convert_frag): Likewise.
1041 (tc_coff_symbol_emit_hook): Likewise.
1042 (md_atof): Remove declaration of atof_ieee.
1043 (const_overflow): Warning fixes, tidy.
1044 (get_operands): Delete unused vars.
1045 (internal_error_a): Adjust format string to expect a long for arg.
1046 (find_opcode): Warning fixes, simplify.
1047 (build_insn): Cast internal_error_a arg.
1048 (md_begin): Likewise.
1049 (md_apply_fix3): Likewise.
1050 (md_assemble): Delete unused var.
1051 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1052 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1053 (whatreg, parse_reg, parse_exp): Make static, prototype.
1054 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1055 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1056 (get_operand, get_operands, get_specific, newfix): Likewise.
1057 (apply_fix, build_bytes): Likewise.
1058 (md_atof): Remove declaration of atof_ieee.
1059 (tc_aout_fix_to_chars): Delete.
1060 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1062 (md_parse_option): Fix s_segm and s_unseg calls.
1064 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1066 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1068 (RELAX_BRANCH_RELOC_S2): Delete.
1069 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1070 Do not handle BFD_RELOC_16_PCREL.
1071 (macro_build, mips_ip): Likewise.
1072 (md_pcrel_from): Return 4 for undefined symbols regardless of
1074 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1075 Don't dereference howto if no such relocation is available.
1076 Do not apply hack for in-place zero addend in NEWABI.
1077 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1079 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1080 Alan Modra <amodra@bigpond.net.au>
1082 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1083 (TC_LINKRELAX_FIXUP): Add comments.
1085 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1087 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1089 (r_register_name, xr_register_name): Add prototype declarations.
1091 2002-12-08 H.J. Lu <hjl@gnu.org>
1093 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1094 copied from tc-i386.c.
1096 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1098 Fix Bug savannah/1825:
1099 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1100 (md_relax_table): Define specific relax for PC-rel offsets.
1101 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1102 (m68hc11_relax_frag): Handle the new relax code.
1103 (md_convert_frag): Likewise.
1104 (md_estimate_size_before_relax): Likewise.
1106 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1108 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1110 2002-12-05 Richard Henderson <rth@redhat.com>
1112 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1113 (ia64_gen_real_reloc_type): Handle it.
1114 (pseudo_func): Add @ltoffx.
1115 (md_begin): Build .<ltoffx>.
1116 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1118 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1120 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1121 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1122 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1123 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1124 COFF to call arm_force_relocation.
1126 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1128 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1130 (emit_one_bundle): Handle "hint" instruction.
1131 (operand_match): Match IA64_OPND_AR_CSD.
1133 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1135 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1138 2002-12-03 Nick Clifton <nickc@redhat.com>
1140 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1141 .PPC.EMB.apuinfo sections.
1143 2002-12-03 Richard Henderson <rth@redhat.com>
1145 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1147 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1149 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1150 (cons, s_align_bytes): Delete declaration.
1152 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1154 (dot): Delete unused function.
1155 (w65_expression): Remove unused arg.
1156 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1158 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1160 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1162 (check): Remove unused function.
1163 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1164 on unhandled switch case.
1165 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1167 (tc_crawl_symbol_chain): Delete unused function.
1168 (tc_headers_hook): Likewise.
1169 (tc_Nout_fix_to_chars): Likewise.
1170 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1171 (md_parse_option): Likewise.
1172 (md_convert_frag): Likewise.
1173 (tc_coff_symbol_emit_hook): Likewise.
1174 (md_show_usage): Likewise.
1175 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1176 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1177 (w65_expression): Declare.
1179 * po/POTFILES.in: Regenerate.
1181 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1182 and ARM_ADRL_IMMEDIATE.
1184 2002-12-02 Nick Clifton <nickc@redhat.com>
1186 * gasp.c: Delete. It has been deprecated.
1187 * NEWS: Mention that gasp has been removed.
1188 * Makefile.am: Remove references to gasp.
1189 * makefile.vms: Likewise.
1190 * mpw-make.sed: Likewise.
1191 * Makeile.in: Regenerate.
1192 * doc/gasp.texi: Delete.
1193 * doc/Makefile.am: Remove references to gasp.texi.
1194 * doc/Makefile.in: Regenerate.
1195 * macro.c: Delete references to gasp.
1196 Remove use of comment_char function parameter as it is no longer
1198 * macro.h: Update prototypes to remove comment_char parameter.
1200 * read.c (read_a_source_file, s_irp): Remove comment_char
1201 parameter from invocation of functions in macro.c
1203 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1205 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1207 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1209 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1210 (tc_gen_reloc): Mark section param as not used.
1212 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1214 Fix Bug savannah/1825:
1215 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1216 that are not pc-relative.
1217 (m68hc11_relax_frag): Declare.
1219 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1220 the offsetable indexed addressing modes (n,r).
1221 (build_insn): Cleanup some locals.
1222 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1223 relaxation of difference between two symbols of same section.
1224 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1225 only when this is a PC-relative operand and the offset is not absolute.
1226 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1227 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1228 be handled by m68hc11_relax_frag.
1230 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1232 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1233 (32-bit int, 64-bit double).
1234 (md_longopts): New options -mshort, -mlong, -mshort-double and
1235 -mlong-double to control the ABI.
1236 (md_show_usage): Update.
1237 (md_parse_option): Handle new options.
1238 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1240 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1242 * symbols.c (report_op_error): New function, broken out of ...
1243 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1246 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1248 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1249 for BFD_RELOC_32_PLT_PCREL.
1251 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1253 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1254 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1255 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1256 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1257 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1258 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1259 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1260 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1261 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1262 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1263 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1264 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1265 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1266 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1267 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1268 TRUE/FALSE. Formatting.
1270 2002-11-29 Nick Clifton <nickc@redhat.com>
1272 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1273 assume a value of zero.
1274 (do_bkpt): Likewise.
1276 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1278 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1279 for TLS relocations.
1281 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1283 * config/tc-ia64.c (md_apply_fix3): Add default case.
1285 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1287 * symbols.c (S_SET_THREAD_LOCAL): New function.
1288 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1289 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1290 for TLS relocations.
1291 * config/tc-ia64.c (md_apply_fix3): Likewise.
1292 * config/tc-alpha.c (md_apply_fix3): Likewise.
1294 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1296 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1299 2002-11-26 DJ Delorie <dj@redhat.com.
1301 * dwarf2dbg.c (scale_addr_delta): New.
1302 (size_inc_line_addr): Use it.
1303 (emit_inc_line_addr): Use it.
1305 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1307 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1308 (md_assemble): Don't pass on branches to constants as relaxable.
1311 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1313 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1315 2002-11-21 Randolph Chung <randolph@tausq.org>
1317 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1318 only if they have default visibility.
1320 2002-11-21 Richard Henderson <rth@redhat.com>
1322 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1325 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1327 * config/tc-mcore.c (mcore_pool_count): New function.
1328 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1330 2002-11-20 Klee Dienes <kdienes@apple.com>
1332 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1333 coalesce the name fields to use the same pointer.
1335 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1336 the name fields to use the same pointer.
1337 (get_specific): Check for opcodes with the same name using strcmp
1338 as well as comparing the pointer.
1340 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1342 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1345 2002-11-19 Richard Henderson <rth@redhat.com>
1347 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1348 visibility portion of st_other.
1350 2002-11-19 Klee Dienes <kdienes@apple.com>
1352 * config/tc-h8300.c (struct h8_instruction): New type, used to
1353 wrap h8_opcodes with length, noperands, idx, and size fields
1354 (computed at run-time).
1355 (h8_instructions): New variable.
1356 (md_begin): Allocate the storage for h8_instructions. Fill
1357 h8_instructions with pointers to the appropriate opcode and the
1358 correct value for the additional fields.
1359 (clever_message): Update to use h8_instructions instead of
1361 (build_bytes): Ditto.
1362 (get_specific): Ditto.
1363 (md_assemble): Ditto.
1365 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1367 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1368 adjustments to symbols in merge sections.
1370 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1372 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1374 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1376 * dwarf2dbg.h (dwarf2_format): New enum.
1377 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1378 (out_debug_line, out_debug_info): Add code for handling 64-bit
1380 * config/tc-mips.h (mips_dwarf2_format): Declare.
1381 * config/tc-mips.c (mips_dwarf2_format): New function.
1382 * doc/internals.texi (DWARF2_FORMAT): Document.
1384 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1386 * config/tc-mips.c (s_change_section): Make sure input buffer
1387 is not accessed past the end. Don't hand
1388 obj_elf_change_section a pointer into the input buffer.
1390 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1392 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1395 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1397 * config/tc-tic4x.c: Fixed proper commandline
1398 parameters. Added support for new opcode-list format. General
1399 error message fixups.
1400 (c4x_inst_add): Reject insn not for our CPU
1401 (md_begin): Added matrix for setting the proper opcode-level &
1402 device-flags according to cpu type and revision. Rewrite the
1404 (c4x_operand_parse): Fix opcode bug
1405 (c4x_operands_match): New function argument. Added dry-run
1406 mechanism, that is optional error generation. Added constraint 'i'
1408 (c4x_insn_check): Added new function for post-verification of the
1410 (md_assemble): Check all opcodes before croaking because of an
1411 argument mismatch. Need this to be able to fully support
1412 ortogonally arguments.
1413 (md_parse_options): Revised commandprompt swicthes and added new
1415 (md_show_usage): Complete rewrite of printout.
1417 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1419 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1420 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1421 warning when using constant direct bigger than 2^16. Add the new
1424 2002-11-11 Christopher Faylor <cgf@redhat.com>
1426 * configure.in: Use .gdbinit under Cygwin.
1427 * configure: Regenerate.
1429 2002-11-11 Christopher Faylor <cgf@redhat.com>
1431 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1434 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1436 * config/tc-tic4x.c: Declare as many functions as possible as
1437 static. Maintenance on the general indenting. Removed unnecessary
1438 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1439 function. Add support for new DSP, TMS320VC33. Fix bug for
1440 converting flonum constants.
1441 (c4x_do_align): Add proper align handling. Setup align to insert
1443 (c4x_gen_to_words): Support for extended TI type floats.
1444 (md_atof): Proper dumping of multiple-word littlenums.
1445 (c4x_atof): Added support for extended TI type floats.
1446 (c4x_stringer): Added new function to handle compact strings.
1447 (c4x_emit_char): Added new function argument to handle custom
1448 length inserts, like single-byte strings.
1449 * config/tc-tic4x.h: Add proper align handling with NOP's.
1450 * Makefile.am: Added tic4x dependecy
1451 * Makefile.in: Regenerate
1453 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1455 * macro.c (get_any_string): Correct logic for not going beyond end
1458 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1460 * config/tc-mmix.c (get_putget_operands): Mark both possible
1461 operands as invalid at beginning.
1463 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1464 Initialize target of fixup to zero.
1466 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1468 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1469 NEWABI, but we should still emit HI16_S for non-PIC n32.
1471 2002-11-06 Richard Henderson <rth@redhat.com>
1473 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1474 (alpha_fix_adjustable): ... here.
1475 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1477 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1479 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1482 2002-11-05 H.J. Lu <hjl@gnu.org>
1484 * config/tc-mips.c (support_64bit_objects): Check *l before it
1487 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1489 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1490 SEC_LOAD flags for sections marked as 's'.
1492 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1494 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1495 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1496 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1499 * dep-in.sed: Fix typo.
1501 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1503 * configure.in: Update ARM CPU patterns.
1504 * configure: Regenerated.
1506 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1508 * itbl-lex.l: Use #include <> for generated headers.
1509 * itbl-ops.c: Likewise.
1511 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1513 * doc/gasp.texi: Fix typo in deprecation note.
1515 2002-10-23 Nick Clifton <nickc@redhat.com>
1517 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1518 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1520 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1522 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1523 (tc_frob_file_before_adjust): Don't define.
1524 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1526 (mmix_frob_file_before_adjust): Remove ineffective function.
1528 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1530 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1531 (cris_relax_frag): New function.
1532 (md_estimate_size_before_relax) <case ENCODE_RELAX
1533 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1534 expressions that will become absolute expressions to relaxation.
1535 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1536 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1537 value, not distance to symbol.
1538 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1539 Ditto. Correct placement of fixup.
1540 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1542 * config/tc-cris.h (cris_relax_frag): Declare.
1543 (md_relax_frag): Define.
1545 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1547 * config/obj-elf.c (special_sections): Use correct types for init
1549 (obj_elf_change_section): Don't mess with init array section type.
1551 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1553 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1554 for relocs against symbols in a merged section.
1556 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1558 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1559 table as register names.
1561 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1563 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1566 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1568 * expr.c (operand): Add support for n.nn flonums.
1570 2002-10-17 Johannes Stezenbach <js@convergence.de>
1572 * itbl-parse.y (entry): Provide empty action.
1574 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1576 * configure.in (BFDVER_H): Set and subst.
1577 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1578 * Makefile.am: Run "make dep-am".
1580 * configure: Regenerate.
1581 * Makefile.in: Regenerate.
1582 * doc/Makefile.in: Regenerate.
1584 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1586 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1587 (MD_APPLY_SYM_VALUE): Define for PE too.
1589 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1591 * Makefile.am: Run "make dep-am".
1592 (CPU_OBJ_VALID): sh64 coff is invalid.
1593 * as.c: #include "bfdver.h".
1594 * Makefile.in: Regenerate.
1595 * config.in: Regenerate.
1597 2002-10-14 Momchil Velikov <velco@fadata.bg>
1599 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1601 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1603 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1604 * configure: Regenerate.
1606 2002-10-13 Eric Christopher <echristo@redhat.com>
1607 Alexandre Oliva <aoliva@redhat.com>
1609 * config/tc-mips.c (s_gpdword): New function.
1610 (mips_pseudo_table): Add .gpdword.
1611 (mips_need_elf_addend_fixup): never for NEWABI.
1612 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1614 (s_cpadd): Generate .cpadd on NEWABI.
1616 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1618 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1620 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1622 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1623 (md_relax_frag): Adjust macro.
1624 * config/tc-mips.c (mips_relax_branch): New variable.
1625 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1626 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1627 (RELAX_MIPS16_P): Adjust.
1628 (append_insn): Emit branch to non-constant in a frag_var if
1629 branch-relaxation is desirable and possible.
1630 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1631 (OPTION_ELF_BASE): Adjust.
1632 (md_parse_option): Handle new options.
1633 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1635 (relaxed_branch_length): New function.
1636 (md_estimate_size_before_relax): Handle branch frags.
1637 (mips_relax_frag): Likewise.
1638 (md_convert_frag): Handle branch frags. Warn if branch is
1641 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1643 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1645 (md_apply_fix3): Add TLS relocs.
1646 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1649 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1650 Alan Modra <amodra@bigpond.net.au>
1652 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1653 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1655 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1657 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1660 2002-10-09 Richard Shann <richard.shann@superh.com>
1661 Stephen Clarke <stephen.clarke@superh.com>
1663 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1666 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1668 * contig/tc-sh.c (sh_local_pcrel): New.
1669 (sh_force_relocation): Use sh_local_pcrel.
1670 (md_pcrel_from_section): Check the relocation type whether it
1671 should be resolved locally. Use S_FORCE_RELOC.
1673 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1675 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1676 (TC_FORCE_RELOCATION): Tidy arg.
1678 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1679 Ken Raeburn <raeburn@cygnus.com>
1680 Aldy Hernandez <aldyh@redhat.com>
1681 DJ Delorie <dj@redhat.com>
1682 Michael Meissner <meissner@redhat.com>
1683 Eric Christopher <echristo@redhat.com>
1684 Richard Sandiford <rsandifo@redhat.com>
1686 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1687 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1688 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1689 (hilo_interlocks): True for CPU_VR5500.
1690 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1691 (mips_fix_vr4122_bugs): New.
1692 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1693 (mips_emit_delays): Likewise.
1694 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1695 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1696 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1697 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1698 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1699 (OPTION_ELF_BASE): Bump.
1700 (md_parse_option): Handle the new options.
1701 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1704 2002-09-29 H.J. Lu <hjl@gnu.org>
1706 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1707 twice if howto->pcrel_offset is true.
1709 2002-09-28 Matt Thomas <matt@3am-software.com>
1710 Jason Thorpe <thorpej@wasabisystems.com>
1712 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1713 convert undefined references to GOT32/PLT32 if PIC code is
1714 requested. Fix comment.
1716 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1718 * config/tc-sh.c (sh_force_relocation): Return 0 for
1719 some PC relative relocations when not relaxing.
1721 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1723 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1724 Define them if not BFD_ASSEMBLER.
1725 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1727 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1728 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1729 (tc_gen_reloc): Handle x86-64 TLS relocs.
1731 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1733 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1734 fixups to current or absolute section.
1736 2002-09-26 Jim Wilson <wilson@redhat.com>
1738 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1741 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1743 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1744 capable configuration.
1745 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1747 (mips_ip): Likewise.
1749 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1751 * config/tc-mips.c (append_insn): Fix jump overflow check.
1753 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1755 * config/tc-i386.c (process_operands): Warn about "lea" segment
1758 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1760 * write.c: Delete set_segment_vma and prototype. Update all callers.
1762 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1764 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1765 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1766 Rename "fseg" to "sym_seg".
1767 * Makefile.am: Run "make dep-am".
1768 * Makefile.in: Regenerate.
1769 * doc/Makefile.in: Regenerate.
1771 2002-09-20 Nick Clifton <nickc@redhat.com>
1773 * symbols.c (colon): Do not allow symbols to be created in the
1774 absolute section if WORKING_DOT_WORD is not defined and
1775 new_broken_words would require a new frag to be created.
1777 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1779 * expr.c (expr): Simplify foo-foo here.
1780 (clean_up_expression): Remove O_subtract code.
1782 * write.h (struct fix): Add fx_dot_value.
1783 (dot_value): Declare.
1784 * write.c (dot_value): New var.
1785 (fix_new_internal): Save dot_value as fx_dot_value.
1786 (fixup_segment): Adjust fx_offset using fx_dot_value.
1787 * expr.c (expr): Update dot_value.
1789 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1791 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1792 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1793 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1795 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1796 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1797 BFD_RELOC_386_TLS_GOTIE.
1799 2002-09-19 Richard Henderson <rth@redhat.com>
1801 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1803 (alpha_force_relocation): Don't special-case branch type relocs.
1805 2002-09-19 Nick Clifton <nickc@redhat.com>
1807 * config/tc-m68k.c (select_control_regs): Handle situation where
1808 architecture has not yet been selected.
1810 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1812 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1813 (IS_SEXT_16BIT_NUM): New macro.
1814 (macro_build_ldst_constoffset): New function, to build a set of
1815 instructions to do a load or store from a constant offset relative
1816 to a given register.
1817 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1818 .cprestore pseudo-op.
1820 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1822 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1824 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1826 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1828 2002-09-17 Stan Cox <scox@redhat.com>
1830 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1831 (macro): Likewise for la. Likewise for ld.
1832 (mips_after_parse_args): Make -xgot optional, not the default.
1833 (md_apply_fix3): Allow composite relocation to set up gp.
1834 (tc_gen_reloc): Allow relaxing for newabi.
1835 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1836 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1838 2002-09-17 Nick Clifton <nickc@redhat.com>
1840 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1841 BFD_RELOC_ARM_IMMEDIATE has been done.
1842 (tc_gen_reloc): Do not issue reloc number of unimplemented
1843 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1844 their name is already in the error message - plus remove them
1845 from the default case.
1847 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1848 behavior of instructions.
1850 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1852 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1853 Convert functions to K&R format.
1855 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1857 * config/tc-mips.c (pdr_seg): Define only for ELF.
1858 (s_change_section): Remove unused variable. Don't use for nonELF.
1860 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1862 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1864 * config/obj-elf.h (obj_elf_change_section): Likewise.
1866 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1868 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1869 (out_debug_info): Likewise.
1871 2002-09-16 Bruno Haible <bruno@clisp.org>
1873 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1874 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1875 * config/tc-i386.c (i386_target_format): Likewise.
1876 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1877 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1879 2002-09-13 Nick Clifton <nickc@redhat.com>
1881 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1882 when deciding if any operands have been skipped.
1884 2002-09-11 Nick Clifton <nickc@redhat.com>
1886 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1888 * po/tr.po: Updated Turkish translation.
1890 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1892 * config/tc-i386.c (md_apply_fix3): Allow addend for
1893 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1894 BFD_RELOC_386_TLS_LE_32.
1896 2002-09-05 Jeff Law <law@redhat.com>
1898 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1899 marker relocations such as ENTRY/EXIT.
1900 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1901 to both OBJ_ELF and OBJ_SOM.
1903 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1905 * doc/internals.texi (md_apply_fix3): Expand.
1906 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1907 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1908 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1909 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1910 EXTERN_FORCE_RELOC): Document.
1911 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1912 * as.h: Don't include struc-symbol.h for arc.
1914 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1915 subtract absolute symbol.
1916 * obj.h (struct format_ops): Add frob_file_before_fix.
1917 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1918 * symbols.c (S_FORCE_RELOC): New function.
1919 * symbols.h (S_FORCE_RELOC): Declare.
1920 * write.c (TC_FORCE_RELOCATION): Change default.
1921 (TC_FORCE_RELOCATION_ABS): Define.
1922 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1923 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1924 (TC_FORCE_RELOCATION_SECTION): Don't define.
1925 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1926 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1927 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1928 (TC_VALIDATE_FIX_SUB): Define.
1929 (TC_FIX_ADJUSTABLE): Don't define.
1930 (MD_APPLY_SYM_VALUE): Define this instead.
1931 (abs_section_sym): New variable.
1932 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1933 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1934 Don't put the absolute section sym on fixups here.
1935 (fix_segment): New function.
1936 (write_relocs): Don't call fixup_segment from here.
1937 (write_object_file): Instead call tc_frob_file_before_fix,
1938 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1939 Don't output the absolute section symbol.
1940 (fixup_segment): Rewrite.
1941 * write.h (abs_section_sym): Declare.
1942 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1944 (aout_format_ops): Adjust to suit.
1945 * config/obj-aout.h (obj_frob_file): Don't define.
1946 (obj_frob_file_before_fix): Define.
1947 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1948 (S_FORCE_RELOC): Define.
1949 * config/obj-bout.h (S_FORCE_RELOC): Define.
1950 * config/obj-coff.c (coff_format_ops): Init new field.
1951 * config/obj-coff.h: Formatting fixes.
1952 (obj_sec_sym_ok_for_reloc): Define.
1953 (S_FORCE_RELOC): Define.
1954 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1955 (ecoff_frob_file): .. from here.
1956 (ecoff_format_ops): Add new function.
1957 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1958 (obj_frob_file_before_fix): Define.
1959 * config/obj-elf.c (elf_format_ops): Init new field.
1960 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1961 * config/obj-ieee.h: Formatting fixes.
1962 (S_FORCE_RELOC): Define.
1963 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1964 * config/obj-vms.h (S_FORCE_RELOC): Define.
1965 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1966 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1967 for BFD_RELOC_32 and BFD_RELOC_64.
1968 (alpha_fix_adjustable): Remove extern and weak tests.
1969 (alpha_before_fix): Rename from alpha_adjust_symtab.
1970 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1971 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1972 (TC_VALIDATE_FIX): Tweak param name.
1973 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1974 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1975 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1976 (MD_APPLY_SYM_VALUE): Define.
1977 (tc_adjust_symtab): Don't define.
1978 (alpha_adjust_symtab): Don't declare.
1979 (tc_frob_file_before_fix): Define.
1980 (alpha_before_fix): Declare.
1981 (TC_INIT_FIX_DATA): Tweak param names.
1982 * config/tc-arc.c: Include "struc-symbol.h".
1983 (md_pcrel_from): Remove undefined sym fudge.
1984 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1985 Don't set fx_addnumber.
1986 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1987 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1988 (EXTERN_FORCE_RELOC): Define.
1989 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1990 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1991 (arm_validate_fix): Return void.
1992 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1993 Add plt and got reloc tests.
1994 (arm_force_relocation): Call S_FORCE_RELOC.
1995 * config/tc-arm.h (struct fix): Forward declare.
1996 (TC_VALIDATE_FIX): No longer set add_symbolP.
1997 (arm_validate_fix): Adjust declaration.
1998 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1999 (TC_FORCE_RELOCATION): Tweak param name.
2000 (TC_INIT_FIX_DATA): Likewise.
2001 (obj_fix_adjustable): Don't define.
2002 (tc_fix_adjustable): Call arm_fix_adjustable.
2003 (TC_FIX_ADJUSTABLE): Don't define.
2004 (MD_APPLY_SYM_VALUE): Define.
2005 (EXTERN_FORCE_RELOC): Define.
2006 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2007 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2008 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2009 Remove *valP fudges and code to subtract abs sym. Don't set
2011 * config/tc-avr.h: Formatting.
2012 (EXTERN_FORCE_RELOC): Define.
2013 (MD_APPLY_SYM_VALUE): Define.
2014 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2015 (md_apply_fix3): Remove code to subtract abs sym.
2016 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2017 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2018 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2019 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2020 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2021 (tc_fix_adjustable): Remove extern, weak tests.
2022 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2023 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2024 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2025 and code to subtract abs sym.
2026 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2027 (d10v_force_relocation): Call S_FORCE_RELOC.
2028 * config/tc-d10v.h: Don't include write.h.
2029 (struct fix): Instead, forward declare.
2030 (MD_PCREL_FROM_SECTION): Tweak param names.
2031 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2032 (d10v_fix_adjustable): Likewise.
2033 (obj_fix_adjustable): Don't define.
2034 (tc_fix_adjustable): Define.
2035 (TC_FORCE_RELOCATION): Tweak param name.
2036 (MD_APPLY_SYM_VALUE): Define.
2037 (EXTERN_FORCE_RELOC): Define.
2038 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2039 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2040 and code to subtract abs sym.
2041 * config/tc-d30v.h: Don't include write.h.
2042 (struct fix): Instead, forward declare.
2043 (MD_PCREL_FROM_SECTION): Tweak param names.
2044 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2045 (MD_APPLY_SYM_VALUE): Define.
2046 (EXTERN_FORCE_RELOC): Define.
2047 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2048 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2049 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2050 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2051 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2052 Don't use fx_addnumber.
2053 * config/tc-dlx.h: Don't include write.h.
2054 (md_convert_frag): We're not alpha twice over.
2055 (EXTERN_FORCE_RELOC): Define.
2056 (obj_fix_adjustable): Don't define.
2057 (tc_fix_adjustable): Define.
2058 (TC_FIX_ADJUSTABLE): Don't define.
2059 (MD_APPLY_SYM_VALUE): Define.
2060 (LOCAL_LABELS_DOLLAR): Undef always.
2061 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2062 (fr30_fix_adjustable): Remove extern, weak tests.
2063 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2064 (obj_fix_adjustable): Don't define.
2065 (tc_fix_adjustable): Define.
2066 (struct fix): Forward declare.
2067 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2068 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2069 (frv_fix_adjustable): Don't do extern, weak tests.
2070 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2071 (TC_FIX_ADJUSTABLE): Don't define.
2072 (obj_fix_adjustable): Don't define.
2073 (tc_fix_adjustable): Define.
2074 (struct fix): Forward declare.
2075 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2076 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2077 * config/tc-h8300.h (struct fix): Forward declare.
2078 (EXTERN_FORCE_RELOC): Define.
2079 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2080 (hppa_fix_adjustable): Don't test extern or weak. Don't
2081 symbol_mark_used_in_reloc.
2082 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2084 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2085 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2086 (TC_FORCE_RELOCATION_SECTION): Don't define.
2087 (MD_APPLY_SYM_VALUE): Define.
2088 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2089 to subtract abs sym.
2090 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2091 (MD_APPLY_SYM_VALUE): Define.
2092 (MD_PCREL_FROM_SECTION): Tweak param name.
2093 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2094 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2095 (i386_force_relocation): New function.
2096 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2097 (TC_VALIDATE_FIX): Likewise.
2098 (TC_FIX_ADJUSTABLE): Don't define.
2099 (MD_APPLY_SYM_VALUE): Define.
2100 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2101 (i386_force_relocation): Declare.
2102 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2103 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2104 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2105 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2106 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2107 (EXTERN_FORCE_RELOC): Define.
2108 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2109 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2110 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2111 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2112 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2113 Remove #if 0 code. Invert return boolean.
2114 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2115 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2116 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2117 (tc_coff_sizemachdep): Prototype.
2118 (i960_handle_align): Likewise.
2119 (i960_validate_fix): Adjust declaration.
2120 (reloc_callj): Likewise.
2121 (EXTERN_FORCE_RELOC): Define.
2122 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2123 (TC_FORCE_RELOCATION_ABS): Define.
2124 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2125 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2126 (TC_FIX_ADJUSTABLE): Don't define.
2127 (MD_APPLY_SYM_VALUE): Define.
2128 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2129 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2130 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2131 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2132 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2133 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2134 (MD_APPLY_SYM_VALUE): Define.
2135 (EXTERN_FORCE_RELOC): Define.
2136 (TC_FORCE_RELOCATION): Tweak param name.
2137 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2138 (m32r_fix_adjustable): Don't test extern, weak.
2139 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2140 (MD_APPLY_SYM_VALUE): Define.
2141 (obj_fix_adjustable): Don't define.
2142 (tc_fix_adjustable): Define.
2143 (tc_frob_file): Don't define.
2144 (tc_frob_file_before_fix): Define.
2145 (EXTERN_FORCE_RELOC): Define.
2146 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2147 BFD_RELOC_VTABLE_ENTRY address.
2148 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2149 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2150 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2151 Remove duplicated fx_done code.
2152 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2153 (EXTERN_FORCE_RELOC): Define.
2154 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2156 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2157 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2158 (TC_FIX_ADJUSTABLE): Don't define.
2159 (EXTERN_FORCE_RELOC): Define.
2160 (MD_APPLY_SYM_VALUE): Define.
2161 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2162 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2163 Remove fx_addsy tests.
2164 (mcore_force_relocation): Call S_FORCE_RELOC.
2165 (mcore_fix_adjustable): Don't test fx_addsy.
2166 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2167 (EXTERN_FORCE_RELOC): Define.
2168 (obj_fix_adjustable): Don't define.
2169 (tc_fix_adjustable): Define.
2170 (MD_APPLY_SYM_VALUE): Define.
2171 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2172 (mips_pic): No longer static.
2173 (mips_force_relocation): Call S_FORCE_RELOC.
2174 (mips_fix_adjustable): Remove extern, weak tests.
2175 * config/tc-mips.h (enum mips_pic_level): Declare.
2176 (mips_pic): Declare.
2177 (tc_frob_file): Don't define.
2178 (tc_frob_file_before_fix): Define this instead.
2179 (EXTERN_FORCE_RELOC): Define.
2180 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2181 with reg_section tests. Set fx_done instead of calling
2182 symbol_clear_used_in_reloc on bad relocs.
2183 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2184 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2185 (mmix_adjust_symtab): Simplify list handling. Abort on any
2187 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2188 BFD_RELOC_MMIX_LOCAL.
2189 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2190 (EXTERN_FORCE_RELOC): Define.
2191 (MD_PCREL_FROM_SECTION): Tweak param name.
2192 (tc_frob_file): Don't define.
2193 (tc_frob_file_before_fix): Define this instead.
2194 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2195 Remove SEC_CODE checks.
2196 (mn10300_fix_adjustable): Remove extern and weak tests.
2197 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2198 (TC_FORCE_RELOCATION): Tweak param name.
2199 (obj_fix_adjustable): Don't define.
2200 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2201 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2202 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2203 (openrisc_fix_adjustable): Don't test fx_addsy.
2204 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2205 (obj_fix_adjustable): Don't define.
2206 (tc_fix_adjustable): Define this instead.
2207 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2208 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2209 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2210 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2211 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2212 (MD_APPLY_SYM_VALUE): Define.
2213 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2214 Don't subtract symbol value.
2215 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2216 (EXTERN_FORCE_RELOC): Define.
2217 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2218 (MD_APPLY_SYM_VALUE): Define.
2219 (obj_fix_adjustable): Don't define.
2220 (tc_fix_adjustable): Define this instead.
2221 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2223 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2224 (ppc_force_relocation <elf version>): New.
2225 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2226 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2227 comments. Don't subtract fx_subsy as that is already done.
2228 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2229 (MD_PCREL_FROM_SECTION): Likewise.
2230 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2231 ppc_force_relocation.
2232 (TC_FORCE_RELOCATION_SECTION): Delete.
2233 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2234 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2235 (MD_APPLY_SYM_VALUE): Define.
2236 * config/tc-s390.c: #include "dwarf2dbg.h".
2237 (s390_insn): Remove excess parens.
2238 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2239 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2240 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2241 non-NULL. Don't subtract off fx_addsy value.
2242 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2243 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2244 (TC_FIX_ADJUSTABLE): Don't define.
2245 (MD_APPLY_SYM_VALUE): Define.
2246 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2247 (SWITCH_TABLE): Likewise.
2248 (sh_force_relocation): Call S_FORCE_RELOC.
2249 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2250 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2251 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2252 fx_addnumber is zero on entry. Save val in fx_addnumber.
2253 (tc_gen_reloc): Don't subtract fx_subsy.
2254 * config/tc-sh.h (struct fix): Move.
2255 (obj_fix_adjustable): Don't define.
2256 (tc_fix_adjustable): Define this instead.
2257 (TC_FIX_ADJUSTABLE): Don't define.
2258 (MD_APPLY_SYM_VALUE): Define.
2259 (SWITCH_TABLE_CONS): Define.
2260 (SWITCH_TABLE): Define.
2261 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2262 (TC_VALIDATE_FIX_SUB): Define.
2263 (MD_PCREL_FROM_SECTION): Tweak param name.
2264 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2265 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2266 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2267 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2268 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2269 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2270 (TC_VALIDATE_FIX_SUB): Define.
2271 (MD_PCREL_FROM_SECTION): Tweak param name.
2272 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2273 (tc_gen_reloc): Use S_FORCE_RELOC.
2274 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2275 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2276 (TC_FORCE_RELOCATION_ABS): Define this instead.
2277 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2278 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2279 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2280 (MD_APPLY_SYM_VALUE): Define.
2281 (TC_FIX_DATA_PRINT): Tweak param name.
2282 * config/tc-tic30.c (USE_STDOUT): Don't define.
2283 (md_parse_option): Remove stupid debug code.
2284 (tc_gen_reloc): Don't use fx_addnumber.
2285 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2286 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2287 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2288 (tc_fix_adjustable): Define this instead.
2289 (TC_FIX_ADJUSTABLE): Don't define.
2290 (MD_APPLY_SYM_VALUE): Define this instead.
2291 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2292 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2293 (TC_FIX_ADJUSTABLE): Don't define.
2294 (MD_APPLY_SYM_VALUE): Define this instead.
2295 (tc_fix_adjustable): Remove extern and weak tests.
2296 * config/tc-w65.h (struct fix): Forward declare.
2297 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2299 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2300 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2301 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2303 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2304 (MD_APPLY_SYM_VALUE): Define.
2305 (obj_fix_adjustable): Don't define.
2306 (tc_fix_adjustable): Define this instead.
2307 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2309 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2311 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2312 (ppc_fix_adjustable <coff version>): Cleanup.
2314 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2315 (md_parse_option): No -a64 without BFD64.
2316 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2317 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2319 2002-09-04 Nick Clifton <nickc@redhat.com>
2321 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2322 instructions into the hash table if the target cpu is the BookE32.
2324 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2326 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2329 2000-08-28 Catherine Moore <clm@redhat.com>
2331 * tc-v850.c (v850_relax): Declare.
2332 (v850_longcode): New routine.
2333 (v850_handle_align): New routine.
2334 (md_pseudo_table): Add longcall and longjump.
2335 (md_parse_option): Check for relax option.
2336 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2337 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2338 (md_apply_fix3): Likewise.
2339 (v850_force_relocation): Likewise.
2340 (v850_comm): Change the current section.
2341 (md_assemble): Ensure that the correct value is put in the
2343 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2344 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2345 Remove redundant v850ea support.
2346 * tc-v850.h (HANDLE_ALIGN): Define.
2347 (v850_handle_align): Declare.
2348 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2350 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2352 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2353 * configure: Regenerate.
2354 * NEWS: Mention new port.
2356 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2358 * config/obj-coff.c: Add sdef definition.
2359 * config/obj-coff.h: Add tic4x include file and set
2361 * config/tc-tic4x.c: New file.
2362 * config/tc-tic4x.h: New file.
2364 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2366 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2367 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2368 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2369 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2370 (RELOC_ENUM): Define.
2371 (fix_new_internal): Use RELOC_ENUM.
2372 (fix_new, fix_new_exp): Likewise.
2373 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2374 Replace gotos with continue.
2375 (write_relocs): Formatting. Avoid symbol loops in
2376 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2377 errors, and error number in other cases.
2378 (fixup_segment): Remove param names from prototype. Rename
2379 "this_segment_type" to "this_segment". Update linkrelax comment.
2380 Remove "size, "place" and "where" local vars. Formatting. Update
2381 "no symbol" comment. Remove #if 0 and #if 1.
2383 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2385 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2387 * dwarf2dbg.c: Always include dwarf2dbg.h.
2388 (dwarf2_directive_file): Adjust dummy version args.
2389 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2390 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2391 when symbol values differ.
2392 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2393 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2394 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2396 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2398 * config/tc-w65.c (md_section_align): Fix typo.
2399 (md_parse_option): Return 0, not 1.
2401 2002-08-22 Nick Clifton <nickc@redhat.com>
2403 * doc/as.texinfo (Section): Note that if '@' is a comment
2404 character then another symbol is used to prefix the section's
2407 2002-08-22 Christian Groessler <chris@groessler.org>
2409 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2412 2002-08-12 Graeme Peterson <gp@qnx.com>
2414 * configure.in: Add support for sh-**-nto* target.
2415 * configure: Regenerate.
2417 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2419 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2421 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2423 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2425 (ppc_apuinfo_section_add): Define only if format is ELF.
2426 (md_assemble): Emit APUinfo section only if format is ELF.
2429 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2431 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2432 * config/tc-frv.c: Likewise.
2433 * config/tc-hppa.c: Likewise.
2434 * config/tc-ia64.c: Likewise.
2435 * config/tc-ip2k.c: Likewise.
2436 * config/tc-m68hc11.c: Likewise.
2437 * config/tc-m68k.c: Likewise.
2438 * config/tc-mmix.c: Likewise.
2439 * config/tc-mn10300.c: Likewise.
2440 * config/tc-sh.c: Likewise.
2441 * config/tc-sparc.c: Likewise.
2442 * config/tc-v850.c: Likewise.
2444 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2446 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2449 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2451 From matthew green <mrg@redhat.com>
2453 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2454 PPC_OPCODE_PPC is, except for BookE architectures.
2455 (md_parse_option): Add support for -mspe.
2456 (md_show_usage): Add -mspe.
2457 (md_parse_option): Add support for -me500 and
2458 -me500x2 to generate code for Motorola e500 core complex.
2459 (md_show_usage): Add -me500 and -me500x2.
2461 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2462 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2463 PPC_APUINFO_BRLOCK): New macros.
2465 (ppc_cleanup): New function.
2466 (ppc_apuinfo_section_add): New function.
2468 (md_assemble): Collect info and write the APUinfo section.
2470 * config/tc-ppc.h (md_cleanup): Define.
2471 (ppc_cleanup): Export.
2472 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2474 2002-08-17 Stan Cox <scox@redhat.com>
2476 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2477 config/tc-mips.c (s_change_section): New function to support
2478 IRIX .section pseudo-op.
2480 2002-08-16 Nick Clifton <nickc@redhat.com>
2482 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2484 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2486 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2487 the fix-up against on the right frag.
2488 (s_cpsetup): Likewise. Parse third argument as expression, to
2489 handle global symbols and forward/backward labels correctly.
2491 2002-08-14 Nick Clifton <nickc@redhat.com>
2493 * read.c (stringer): Catch attempts to create strings in the abs
2496 * config/tc-alpha.c: Fix compiling for COFF targets.
2497 Some minor formatting tidyups.
2499 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2501 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2502 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2503 according to the reloc.
2504 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2505 (TC_FORCE_RELOCATION): Define.
2506 (tc_m68hc11_force_relocation): Declare.
2508 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2509 (s_m68hc11_relax): New function for relax group.
2510 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2511 beginning of jump instruction.
2512 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2513 address computation.
2514 (tc-gen_reloc): Update.
2515 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2517 (tc_m68hc11_force_relocation): New function, handle new relocs.
2518 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2519 reloc for the linker relax pass.
2520 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2523 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2525 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2526 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2527 (s_m68hc11_mode): New function for .mode pseudo op.
2528 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2530 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2531 (m68hc11_elf_final_processing): Declare.
2533 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2535 * config/tc-m68hc11.c (md_begin): Take into account additional
2536 page operand for call instruction.
2537 (print_opcode_format): Likewise.
2538 (check_range): Likewise for page range checking.
2539 (get_operand): Don't skip a possible comma in operands.
2540 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2541 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2542 (fixup24): New to handle call reloc.
2543 (build_insn): Handle missing page operand for call instruction.
2545 (md_apply_fix3): Take into account new relocs.
2546 (get_operand): Fix the mode for indexed indirect addressing.
2547 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2549 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2551 * config/tc-mips.c (mips_ip): Don't work out the value of
2552 constant %hi()s here.
2554 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2556 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2557 for ELF, and don't bother checking ELF relocs when non-ELF.
2558 (i386_immediate): Allow absolute_section expressions for aout.
2559 (i386_displacement): Likewise. Also test bfd_is_com_section.
2560 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2561 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2562 not when fx_addsy. Remove dead code.
2564 2002-08-09 Graeme Peterson <gp@qnx.com>
2566 * configure.in: Add support for ppc-*-nto* target.
2567 * configure: Regenerate.
2569 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2571 * config/tc-i386.h: Reorganize.
2573 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2575 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2576 immediate offset in "dla" and "la" expansions.
2578 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2580 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2581 Remove "bfd_gas=yes" from target table when covered later.
2582 Consolidate some entries.
2583 * configure: Regenerate
2585 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2587 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2588 at start of insn, pass it to output_disp and output_imm.
2589 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2590 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2592 (output_imm): Added arguments. Compute properly addend for
2594 (md_apply_fix3): Remove R_386_GOTPC handling.
2596 2002-08-06 George France <france@handhelds.org>
2598 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2599 and m21264b processor names and cpu types.
2600 * doc/c-alpha.texi: Documented new types.
2602 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2604 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2606 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2608 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2609 handling to BFD_RELOC_MIPS16_GPREL.
2611 2002-08-01 Nick Clifton <nickc@redhat.com>
2613 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2614 pool is computed using signed arithmetic so that proper sign
2615 extension is performed if X_add_number is a 64-bit integer.
2617 2002-08-01 H.J. Lu <hjl@gnu.org>
2618 Daniel Jacobowitz <drow@mvista.com>
2620 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2621 .debug_line section unless it has line information.
2623 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2625 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2626 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2627 Allow default displacement size to be an option "--disp-size-default".
2628 (md_number_to_disp): Make error messages include value. Use %d to
2629 print integers, not %s.
2630 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2631 get duplicate messages sometimes.
2632 (convert_iif): Grow frag to max possible instruction size. Avoid
2633 creating unnecessary fixes.
2634 (md_number_to_field) Add prototype.
2635 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2636 prototypes and make static.
2637 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2638 (evaluate_expr): Use resultP argument instead of exprP global.
2639 (get_addr_mode): Quiten compiler warnings.
2640 (encode_operand): eliminate unused variables. Quiten compiler
2641 warnings. Eliminate nul character in format strings.
2642 (parse): argc is unsigned.
2643 (reloc): Type cast index to quieten compiler.
2644 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2645 (md_convert_frag): Note unused parameters. Remove unused
2647 (md_create_long_jump, md_create_short_jump,
2648 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2651 2002-07-31 Nick Clifton <nickc@redhat.com>
2653 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2654 of the PDP-11 and 2.11BSD a.out support.
2656 2002-07-31 Momchil Velikov <velco@fadata.bg>
2658 * config/tc-v850.c (md_assemble): Fix range check for immediate
2661 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2663 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2664 to Broadcom SB-1 core support.
2666 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2668 * config/tc-mips.c (mips_target_format): Fix formatting.
2669 Add recognition of n32 ABI formats.
2671 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2673 * tc-mips.c (load_address): Don't clobber $at when loading a
2674 64-bit address in non-PIC code if noat is in effect.
2677 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2679 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2680 used in division/multiply macro expansions similarly to how they
2681 are used in the variants with break instructions.
2684 2002-07-30 Graeme Peterson <gp@qnx.com>
2686 * configure.in: Add support for arm-*-nto target.
2687 * configure: Regenerate.
2689 2002-07-30 Nick Clifton <nickc@redhat.com>
2691 * config/tc-arm.c (struct literal_pool): Add fields to allow
2692 multiple literal pools to be maintained.
2693 (find_literal_pool): New function.
2694 (find_or_make_literal_pool): New function.
2695 (add_to_literal_pool): Use find_or_make_literal_pool.
2696 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2698 (s_ltorg): Use find_literal_pool.
2699 (arm_cleanup): Dump all literal pools.
2700 * doc/c-arm.texi: Document new behaviour of only dumping literal
2703 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2705 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2706 rather than PPC_OPCODE_32 for powerpc64*.
2708 2002-07-25 Nick Clifton <nickc@redhat.com>
2710 * po/es.po: Updated Spanish translation.
2711 * po/fr.po: Updated French translation.
2713 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2715 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2716 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2717 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2718 * configure, config.in: Regenerate.
2719 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2720 (mips_set_options): Remove "abi" field.
2721 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2724 (mips_arch_string, mips_arch_info): New vars.
2725 (mips_tune_string, mips_tune_info): New vars.
2726 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2727 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2728 (mips_isa_to_str, mips_cpu_to_str): Remove.
2729 (mips_ip): If the selected architecture is a generic ISA rather
2730 than a processor, only mention the ISA level in error messages.
2731 (OPTION_MCPU): Remove.
2733 (md_longopts): Add -mfp64, remove -mcpu.
2734 (mips_set_option_string): New fn.
2735 (md_parse_option): Make -mipsN update file_mips_isa rather than
2736 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2737 Don't let -mgp32 and -mfp32 change the ABI.
2738 (show): Move to end of file. Constify string argument.
2739 (md_show_usage): Move to the end of the file. Read available
2740 architectures from mips_cpu_info_table.
2741 (mips_set_architecture): New fn.
2742 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2743 is an alias for -march=mipsN. Don't change the ABI based on other
2744 flags. Infer the register size from the ABI as well as the
2745 architecture. Complain about more conflicting arguments.
2746 Unify logic with GCC.
2747 (s_mipsset): Don't change the ABI.
2748 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2749 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2750 "mipsN"-type entries. Remove entries that vary only in the
2751 manufacturer's prefix, or that have "000" replaced by "k".
2752 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2753 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2754 (mips_parse_cpu): New fn.
2755 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2756 (mips_cpu_info_from_isa): Minor formatting tweak.
2758 2002-07-24 Nick Clifton <nickc@redhat.com>
2760 * po/sv.po: Updated Swedish translation.
2761 * po/es.po: Updated Spanish translation.
2763 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2765 * Makefile.am: Run "make dep-am".
2766 * Makefile.in: Regenerate.
2767 * doc/Makefile.in: Regenerate.
2768 * config.in: Regenerate.
2769 * po/POTFILES.in: Regenerate.
2771 2002-07-23 Nick Clifton <nickc@redhat.com>
2773 * po/fr.po: Updated French translation.
2775 2002-07-23 Nick Clifton <nickc@redhat.com>
2777 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2780 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2782 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2783 instead of S_IS_EXTERN.
2784 (md_estimate_size_before_relax): Likewise.
2785 (mips_fix_adjustable): Likewise.
2787 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2789 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2791 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2792 Nick Clifton <nickc@redhat.com>
2794 * cond.c (s_ifdef): Treat a referenced but not yet defined
2795 symbol as if it were undefined, in exactly the same way as
2798 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2799 consider referenced bug not yet defined symbols to be
2802 2002-07-18 Denis Chertykov <denisc@overta.ru>
2803 Frank Ch. Eigler <fche@redhat.com>
2804 Alan Lehotsky <alehotsky@cygnus.com>
2805 John Healy <jhealy@redhat.com>
2806 Jeff Johnston <jjohnstn@redhat.com>
2808 * configure.in: Add ip2k configuraton.
2809 * configure: Regenerate.
2810 * Makefile.am: Add ip2k configuraton.
2811 * Makefile.in: Regenerate.
2812 * configure: Regenerate.
2813 * Makefile.in: Regenerate.
2814 * config/tc-ip2k.c: New file.
2815 * config/tc-ip2k.h: New files.
2816 * NEWS: Mention new support.
2817 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2818 * doc/Makefile.in: Regenerate.
2819 * doc/all.texi: Set IP2K
2820 * doc/as.texinfo: Add IP2K description.
2821 * doc/c-ip2k.texi: New file.
2823 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2825 * NEWS: Reformat to match style of other NEWS files.
2827 2002-07-17 Jan Hubicka <jh@suse.cz>
2829 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2831 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2833 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2835 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2837 * NEWS: Add 'Changes in 2.13'.
2839 2002-07-15 Matt Fredette <fredette@netbsd.org>
2841 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2843 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2845 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2846 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2849 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2851 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2852 (ppc_frob_file_before_adjust): New function.
2853 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2854 (ppc_elf_frob_symbol): Don't declare.
2855 (tc_frob_file_before_adjust): Define.
2856 (ppc_frob_file_before_adjust): Declare.
2858 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2859 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2862 (ppc_xcoff64): Rename to ppc_obj64.
2863 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2864 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2865 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2867 (ppc_target_format): Use ppc_obj64 to select format.
2868 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2869 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2870 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2871 (tc_frob_symbol): Likewise.
2872 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2873 BFD_DEFAULT_TARGET_SIZE.
2875 (ppc_is_toc_sym): Likewise.
2876 (md_apply_fix3): Likewise.
2877 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2878 BFD_DEFAULT_TARGET_SIZE.
2879 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2880 (tc_frob_symbol): Likewise.
2882 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2884 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2885 (mips_ip): Likewise.
2887 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2889 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2890 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2891 (md_apply_fix3): Formatting. Remove redundant test.
2892 (tc_gen_reloc): Remove redundant code.
2893 (tc_i386_force_relocation): Delete. Movy body of function to..
2894 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2896 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2898 * configure.in: Add hppa-*-openbsd* target, change
2899 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2901 * configure: Regenerate.
2903 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2905 * config/tc-mips.c (macro): Shift the 32-bit address range
2906 accessible with a lone "lui" down by 32768.
2908 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2910 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2911 instead of "dadd" in address calculations.
2914 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2916 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2918 (md_assemble): Instead, zap the suffix here.
2920 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2922 * NEWS: Remove next release number until the release is actually
2925 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2927 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2929 * Makefile.in: Regenerate.
2931 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2933 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2934 to symbols in merge sections, even non pc-relative ones.
2936 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2938 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2940 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2942 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2943 .softregs and .eeprom.
2945 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2947 * NEWS: Note the next release is 2.13.
2949 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2951 * po/tr.po: New translation imported.
2953 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2955 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2956 (ecoff_directive_def): Likewise.
2957 (ecoff_directive_tag): Likewise.
2958 * listing.c (file_info): Likewise.
2959 * hash.c (what): Likewise.
2961 2002-06-25 H.J. Lu <hjl@gnu.org>
2963 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2964 * Makefile.in: Regenerated.
2966 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2968 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2969 (assemble_ppi): Generate warning if the same register is used
2970 twice as destination in the same padd / pmuls instruction.
2972 2002-06-18 Dave Brolley <brolley@redhat.com>
2974 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2975 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2976 * configure.in: Support frv-*-*.
2977 * Makefile.am (CPU_TYPES): Add frv.
2978 (TARGET_CPU_CFILES): Add tc-frv.c.
2979 (TARGET_CPU_HFILES): Add tc-frv.h.
2980 (DEPTC_frv_coff): New variable.
2981 (DEPTC_frv_elf): New variable.
2982 (DEPOBJ_frv_coff): New variable.
2983 (DEPOBJ_frv_elf): New variable.
2984 (DEP_frv_coff): New variable.
2985 (DEP_frv_elf): New variable.
2986 * tc-frv.c: New file.
2987 * tc-frv.h: New file.
2989 2002-06-17 Catherine Moore <clm@redhat.com>
2991 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2993 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2995 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2997 2002-06-17 Tom Rix <trix@redhat.com>
2999 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3001 2002-06-14 H.J. Lu <hjl@gnu.org>
3002 Daniel Jacobowitz <drow@mvista.com>
3004 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3005 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3006 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3007 and new_logical_line for the first .file directive.
3008 * read.c (s_app_file_string): New function.
3009 (s_app_file): Call it.
3010 * read.h (s_app_file_string): Add declaration.
3012 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3014 * configure.in: Remove MIPS_STABS_ELF.
3015 * configure: Regenerated.
3016 * config.in: Regenerated.
3017 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3019 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3021 (pdr_seg): Declare unconditionally.
3022 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3023 (s_mips_end): Likewise. Generate stabs function markers.
3024 (s_mips_ent): Generate stabs function markers.
3025 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3027 (s_mips_mask): Likewise.
3028 (mips_flag_mdebug): New.
3029 (md_longopts): Add "mdebug" and "no-mdebug".
3030 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3031 (mips_after_parse_args): Set mips_flag_mdebug.
3032 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3034 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3036 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3037 value twice for RELA relocations.
3039 2002-06-12 Ben Elliston <bje@redhat.com>
3041 * symbols.c (resolve_symbol_value): Initialise final_val.
3043 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3045 2002-06-11 Tom Rix <trix@redhat.com>
3047 * config/tc-ppc.c (ppc_subseg_align): Delete.
3048 (ppc_change_csect): Default csect align is 2.
3049 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3051 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3053 * config/tc-avr.c (mcu_types): Update.
3055 2002-06-08 Matt Thomas <matt@3am-software.com>
3057 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3058 (vax-*-netbsd*): New targets.
3059 * configure: Regenerate.
3060 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3061 * config/tc-vax.c: Add support for ELF and PIC.
3062 (flag_want_pic): New flag.
3063 (float_cons): Fix prototype.
3064 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3065 (md_assemble): Introduce a new is_absolute local, and use it
3066 rather than repeating the test. Make fatal errors actually
3067 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3068 Add support for ELF. Add support for PIC.
3069 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3070 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3072 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3073 optional for a.out, and not allowed for VMS. Adjust all callers.
3074 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3075 (md_create_long_jump): Likewise.
3076 (md_undefined_symbol): Likewise.
3077 (md_section_align): Likewise.
3078 (md_shortopts): Allow -k and -K for ELF.
3079 (md_parse_option): Set flag_want_pic if -k or -K.
3080 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3081 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3082 * config/tc-vax.h (tc_headers_hook): Remove.
3083 (TARGET_FORMAT): Set according to object format and target
3085 (BFD_ARCH, TARGET_ARCH): Define.
3086 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3087 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3088 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3089 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3091 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3093 * Makefile.am: Run "make dep-am".
3094 * Makefile.in: Regenerate.
3096 * as.c: Replace CONST with const.
3097 * write.c: Likewise.
3098 * config/obj-coff.c: Likewise.
3099 * config/tc-a29k.c: Likewise.
3100 * config/tc-arm.c: Likewise.
3101 * config/tc-dlx.c: Likewise.
3102 * config/tc-h8300.c: Likewise.
3103 * config/tc-h8500.c: Likewise.
3104 * config/tc-i370.c: Likewise.
3105 * config/tc-i860.c: Likewise.
3106 * config/tc-i960.c: Likewise.
3107 * config/tc-m68hc11.c: Likewise.
3108 * config/tc-m68k.c: Likewise.
3109 * config/tc-m88k.c: Likewise.
3110 * config/tc-mcore.c: Likewise.
3111 * config/tc-mips.c: Likewise.
3112 * config/tc-ns32k.c: Likewise.
3113 * config/tc-pdp11.c: Likewise.
3114 * config/tc-pj.c: Likewise.
3115 * config/tc-s390.c: Likewise.
3116 * config/tc-sh.c: Likewise.
3117 * config/tc-sparc.c: Likewise.
3118 * config/tc-tahoe.c: Likewise.
3119 * config/tc-tic80.c: Likewise.
3120 * config/tc-v850.c: Likewise.
3121 * config/tc-vax.c: Likewise.
3122 * config/tc-w65.c: Likewise.
3123 * config/tc-z8k.c: Likewise.
3125 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3127 Based on patch from Matt Green:
3128 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3129 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3130 (s_mips_loc): New function.
3131 (mips_nonecoff_pseudo_table): Call them.
3132 (append_insn): Call dwarf2_emit_insn.
3134 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3136 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3138 (file_ase_mips16): New veriable.
3139 (mips_eabi64): Remove.
3140 (CPU_HAS_MIPS16): New define.
3141 (CPU_HAS_MDMX): Fix data type.
3142 (md_begin): Code cleanup. Use file_ase_mips16.
3143 (mips_elf_final_processing): Handle mips16 header flag.
3144 Handle EABI flag without intermediate variable.
3146 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3148 * doc/as.texinfo: Update MIPS documentation.
3150 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3152 * config/tc-mips.c: Add define for $zero register.
3153 (md_begin): Add $zero as alias name for $0.
3154 (insn_uses_reg): Use ZERO define.
3155 (mips_ip): Add $zero as alias name for $0.
3156 (mips16_ip): Likewise.
3157 (s_cplocal): Demand empty rest of input line.
3158 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3159 names. Use ZERO define. Fix input_line_pointer progress.
3161 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3163 * symbols.c: Replace CONST by const throughout.
3164 (symbol_find_exact): Split out from..
3165 (symbol_find_base): ..here.
3166 * symbols.h: Replace CONST by const throughout.
3167 (symbol_find_exact): Declare.
3168 * config/obj-elf.c: #include "struc-symbol.h".
3169 (elf_frob_file): If group name matches an exported symbol, use that
3170 symbol for the signature and ".group" as the section name.
3172 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3174 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3177 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3179 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3180 and mips_opts.ase_mdmx if they are uninitialized.
3182 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3184 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3185 (hppa_force_relocation): Check if a stub just before the start symbol
3186 of the last call_info is reachable before forcing relocation. Fix
3189 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3191 * config/tc-mips.c (mips_after_parse_args): New function.
3192 (md_begin): Move processing of defaults to mips_after_parse_args.
3193 config/tc-mips.h (md_after_parse_args): Define.
3195 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3197 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3198 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3199 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3200 * configure: Regenerate.
3201 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3204 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3206 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3208 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3210 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3211 linkonce flag. Print all warnings.
3212 (obj_elf_section): Parse ",comdat" for groups.
3213 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3214 consistency of comdat flag.
3216 2002-06-02 Richard Henderson <rth@redhat.com>
3218 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3219 with LITERALs without sequence numbers.
3221 2002-06-01 Richard Henderson <rth@redhat.com>
3223 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3224 Rename them LITUSE_ALPHA_*.
3226 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3228 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3229 accept parentheses enclosed register lists.
3231 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3233 * Makefile.am: Run "make dep-am".
3234 * Makefile.in: Regenerate.
3235 * po/POTFILES.in: Regenerate.
3237 2002-05-31 Graeme Peterson <gp@qnx.com>
3239 * configure.in: Add i386-*-nto-qnx*.
3240 * configure: Regenerate.
3242 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3244 * config/tc-mips.c (mips_ip): Use unsigned long values for
3247 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3249 * config/tc-mips.c (s_cpsetup): Fix initialization of
3250 mips_cpreturn_register and mips_cpreturn_offset.
3252 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3254 * config/tc-mips.c (s_cpsetup): Fix comment.
3256 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3258 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3259 (mips_ip): Likewise.
3260 (mips16_ip): Likewise.
3261 (tc_get_register): Likewise.
3263 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3264 Ed Satterthwaite <ehs@broadcom.com>
3266 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3267 (mips_opts): Initialize "ase_mdmx" member.
3268 (file_ase_mdmx): New variable.
3269 (CPU_HAS_MDMX): New macro.
3270 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3271 based on command line options and configuration defaults.
3272 (macro_build): Note in comment that use of MDMX in macros is
3273 not currently allowed.
3274 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3275 "Z" MDMX operand types.
3276 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3277 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3279 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3280 Add support for "-mdmx" and "-no-mdmx" options.
3281 (OPTION_ELF_BASE): Move to accomodate new options.
3282 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3283 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3284 file_ase_mdmx was set.
3285 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3286 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3289 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3291 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3292 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3293 command line switch conforming to gcc conventions.
3294 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3296 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3298 * config/tc-mips.c (macro_build_jalr): New Function.
3299 (md_begin): NewABI uses big GOTs.
3300 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3301 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3302 (load_address): Add some NewABI PIC support.
3304 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3305 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3307 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3309 * config/tc-mips.c (load_address): Use mips_gp_register instead
3310 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3312 (macro): Use mips_gp_register instead of hardcoded value.
3314 2002-05-30 Richard Henderson <rth@redhat.com>
3316 * expr.h (operatorT): Add O_md17..O_md32.
3317 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3318 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3319 O_tprelhi, O_tprello, O_tprel): New.
3320 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3321 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3322 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3323 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3324 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3325 (md_apply_fix3): Handle TLS relocations.
3326 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3327 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3328 associated TLS reloc. Check lituse_tls relocs match up.
3329 (emit_insn): Handle TLS relocations.
3332 * doc/c-alpha.texi: Add docs for tls relocations.
3334 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3336 * config/tc-mips.c (mips_gprel_offset): New variable.
3337 (s_gpvalue): Use it.
3339 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3341 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3342 write-write conflicts.
3343 (md_assemble): Reformat introductory comment.
3344 (parallel_ok): Prevent packing only if the first
3345 instruction cannot be packed.
3347 2002-05-30 Jason Eckhardt <jle@redhat.com>
3348 Tom Rix <trix@redhat.com>
3350 * config/tc-d10v.c (build_insn): Check for immediates.
3352 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3354 * config/tc-mips.c: Replace GP in comments by $gp.
3355 (mips_big_got): Initialize.
3356 (mips_trap): Initialize.
3357 (load_address): Use mips_gp_register instead of hardcoded value.
3358 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3359 (macro): Use mips_gp_register instead of hardcoded value.
3360 (macro2): Change load_address calls.
3361 (md_pcrel_from): Comment formatting.
3362 (s_cpload): Use mips_gp_register instead of hardcoded value.
3363 (s_cprestore): Likewise. Comment formatting.
3364 (s_gpword): Fix data type.
3365 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3366 (nopic_need_relax): Replace GP in comments by $gp.
3367 (mips_elf_final_processing): Better comment.
3369 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3371 * configure.in: Add DLX configuraton
3372 * Makefile.am: Add DLX configuraton
3373 * configure: Regenerate.
3374 * Makefile.in: Regenerate.
3375 * config/tc-dlx.c: New file.
3376 * config/tc-dlx.h: New files.
3377 * NEWS: Mention new support.
3379 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3381 * config/obj-coff.c (write_object_file): Add missing semicolon.
3383 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3385 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3386 by the define. Remove superfluous check of mips_opts.mips16.
3387 (append_insn): Likewise. Canonicalize variable increments.
3388 (macro_build): Canonicalize variable increments.
3389 (macro_build_lui): Likewise.
3390 (load_register): Likewise.
3391 (load_address): Move pointer initialization.
3392 (macro): Move pointer to a more local scope. Canonicalize variable
3393 increments. Better comments. Replace magic constant for RA by the
3395 (macro2): Replace magic constant for RA by the define. Canonicalize
3396 variable increments.
3397 (mips_ip): Canonicalize variable increments.
3398 (mips16_ip): Replace magic constant for RA by the define.
3399 (my_getSmallParser): Canonicalize variable increments/decrements.
3400 (my_getPercentOp): Likewise.
3401 (my_getSmallExpression): Likewise.
3402 (s_align): Likewise.
3403 (s_mipsset): Likewise.
3404 (s_cpsetup): Likewise.
3405 (s_insn): Remove superfluous check of mips_opts.mips16.
3406 (s_mips_stab): Likewise.
3407 (mips_handle_align): Canonicalize variable increments.
3408 (s_mips_ent): Likewise.
3409 (s_mips_end): Add comment.
3411 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3413 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3414 * configure: Regenerate.
3416 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3418 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3419 * Makefile.in: Regenerate.
3420 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3421 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3422 * configure: Regenerate.
3423 * as.h: Use #include "" instead of <> for local header files.
3424 * flonum-konst.c: Likewise.
3425 * flonum-mult.c: Likewise.
3427 * listing.c: Likewise.
3428 * config/tc-ia64.h: Likewise.
3429 * config/tc-v850.h: Likewise.
3431 2002-05-24 TAMURA Kent <kent@netbsd.org>
3433 * configure.in: Add a target for i386-netbsdpe.
3434 * configure: Regenerate.
3436 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3438 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3439 (obj_elf_common): Call elf_common.
3440 (obj_elf_tls_common): New function.
3441 (elf_pseudo_tab): Support .tls_common.
3442 (special_sections): Add .tdata and .tbss.
3443 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3445 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3446 (obj_elf_parse_section_letters): Include T in error message.
3447 * config/tc-ppc.c (ppc_section_letter): Likewise.
3448 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3449 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3451 * config/tc-sparc.c (md_apply_fix3): Likewise.
3452 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3453 Define them if not BFD_ASSEMBLER.
3454 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3456 (md_apply_fix3): Add TLS relocs.
3457 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3458 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3459 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3460 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3461 (ia64_elf_section_letter): Include T in error message.
3462 (md_begin): Support TLS operators.
3463 (md_operand): Likewise.
3464 (ia64_gen_real_reloc_type): Support TLS relocs.
3465 * write.c (adjust_reloc_syms): Don't change symbols in
3466 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3468 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3470 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3471 round the relocation up rather than down.
3473 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3475 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3477 * doc/as.texinfo: Document that the COFF version of .section
3478 ignores the 'a' flag.
3480 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3482 * config/tc-alpha.c (assemble_tokens): Protect use of
3483 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3485 * write.c (size_seg): Check adjustment to last frag.
3486 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3488 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3489 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3490 (write_object_file): Invoke md_do_align if available, and use
3491 frag_align_code on text sections.
3492 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3493 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3494 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3495 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3496 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3499 2002-05-22 H.J. Lu <hjl@gnu.org>
3501 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3504 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3506 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3509 2002-05-22 H.J. Lu <hjl@gnu.org>
3511 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3512 for one .loc for compiler.
3514 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3516 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3519 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3521 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3522 Optimize the rotate by zero case.
3524 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3526 * configure.in: Remove accidental enabling of bfd_gas=yes for
3528 * configure: Regenerate.
3530 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3532 * app.c: Fix formatting.
3534 * ehopt.c: Likewise.
3536 * input-file.c: Likewise.
3537 * listing.c: Likewise.
3538 * macro.h: Likewise.
3539 * stabs.c: Likewise.
3540 * symbols.c: Likewise.
3542 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3544 * config/obj-generic.c: Delete file.
3545 * config/obj-generic.h: Likewise.
3547 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3549 * config/tc-avr.c (mcu_types): Update for new devices.
3551 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3553 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3555 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3557 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3558 worked sometimes by accident. Fix copy&paste comment.
3560 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3562 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3563 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3564 (mips_elf_final_processing): Let n32 use .reginfo.
3566 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3568 * config/tc-mips.c (append_insn): Fix too small range of variable.
3570 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3572 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3573 listing_prev_line().
3575 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3577 * config/tc-arm.c (md_assemble): Remove redundant call to
3580 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3583 * stabs.c (s_stab_generic): Fix grammatical error in warning
3586 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3588 * write.c (subsegs_finish): Don't specially align last subseg.
3590 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3592 * stabs.c (s_stab_generic): Warn about a description field that is
3595 * config/obj-coff.c: Fix compile time warnings when compiling
3596 without BFD_ASSEMBLER defined.
3599 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3601 (md_pcrel_from_section): Use md_pcrel_from().
3603 2002-05-11 Bruno Haible <bruno@clisp.org>
3605 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3606 by dwarf2_directive_loc, instead of calling dwarf2_where.
3608 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3610 * config/obj-coff.h: Fix formatting.
3611 * config/tc-mcore.c: Likewise.
3612 * config/tc-mn10300.c: Likewise.
3613 * config/tc-openrisc.c: Likewise.
3614 * config/tc-or32.c: Likewise.
3615 * config/tc-pdp11.c: Likewise.
3616 * config/tc-ppc.c: Likewise.
3617 * config/tc-ppc.h: Likewise.
3618 * config/tc-sh64.c: Likewise.
3619 * config/tc-sh.c: Likewise.
3620 * config/tc-tic54x.c: Likewise.
3621 * config/tc-xstormy16.c: Likewise.
3622 * config/tc-xstormy16.h: Likewise.
3624 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3626 * config/obj-coff.c: Fix formatting.
3627 * config/obj-elf.c: Likewise.
3628 * config/tc-alpha.c: Likewise.
3629 * config/tc-arm.c: Likewise.
3630 * config/tc-d10v.c: Likewise.
3631 * config/tc-d30v.c: Likewise.
3632 * config/tc-h8300.c: Likewise.
3633 * config/tc-hppa.c: Likewise.
3635 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3637 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3638 reloc when no_cond_jump_promotion.
3640 2002-05-08 Jim Wilson <wilson@redhat.com>
3642 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3643 current variable part of frag.
3645 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3647 * config/tc-mmix.c: Fix formatting.
3648 * config/tc-mmix.h: Likewise.
3650 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3652 * configure: Regenerate.
3654 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3656 * config/tc-m68k.c: Fix formatting.
3658 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3660 * Makefile.am: Honour DESTDIR.
3661 * Makefile.in: Regenerate.
3663 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3665 * config/tc-ia64.c: Fix formatting.
3666 * config/tc-ia64.h: Likewise.
3668 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3670 * config/tc-mips.c: Fix formatting.
3671 * config/tc-s390.c: Likewise.
3672 * config/tc-s390.h: Likewise.
3674 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3676 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3677 information for instructions.
3679 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3681 * as.h: Fix formatting.
3684 * dwarf2dbg.c: Likewise.
3685 * frags.h: Likewise.
3687 * macro.c: Likewise.
3689 * stabs.c: Likewise.
3690 * symbols.c: Likewise.
3692 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3694 * app.c (mri_pseudo): Only declare for TC_M68K.
3696 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3697 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3698 BFD_RELOC_16_BASEREL.
3699 (md_assemble): Likewise.
3700 (md_apply_fix3): Likewise.
3702 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3704 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3705 zero into an add of zero - it is not the same.
3707 2002-05-01 Arati Dikey <aratid@kpit.com>
3709 * tc-sh.c (get_specific): Generate warning if the same
3710 destination register is used in parallel instructions.
3712 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3714 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3716 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3718 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3719 backwards to prevent cascading errors.
3721 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3723 * configure.in: Add support for powerpc-*-windiss.
3724 * configure: Regenerated.
3726 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3728 * config/tc-s390.c (md_parse_option): Formatting.
3730 * config/tc-i386.c: Formatting fixes, add missing space in error
3733 2002-04-24 Christian Groessler <chris@groessler.org>
3735 * config/tc-z8k.c (build_bytes): Add support for new cases:
3736 CLASS_IGNORE and ARG_NIM4.
3737 (md_assemble): Prevent destruction of input_line_pointer if
3738 get_operands returns failure.
3740 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3742 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3743 instructions to be generated by macros.
3745 2002-04-24 Andreas Schwab <schwab@suse.de>
3747 * config/tc-i386.c (output_jump, output_disp)
3748 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3750 (md_apply_fix3): Remember addend value for rela relocations.
3751 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3753 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3755 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3756 from previous change.
3758 2002-04-22 Eric Christopher <echristo@redhat.com>
3760 * config/tc-mips.c (macro_build): Add warning if macro instructions
3761 are expanded into a branch delay slot.
3763 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3765 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3766 numbers, gdb relies on them to detect the start of the prologue.
3768 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3770 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3771 symbols in merge sections.
3773 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3775 * as.c (main): Don't reference _bfd_chunksize.
3777 2002-04-15 Tom Rix <trix@redhat.com>
3779 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3780 symbols in merge sections.
3782 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3784 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3785 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3786 argument for the precision.
3787 (gen_to_words): Update accordingly.
3789 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3791 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3792 BFD_VERSION_STRING unavailable.
3793 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3795 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3797 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3798 symbol_used_in_reloc_p is true.
3800 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3803 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3805 * dep-in.sed: Cope with absolute paths.
3806 * Makefile.am (dep.sed): Subst TOPDIR.
3808 * Makefile.in: Regenerate.
3810 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3812 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3813 (mips_ip): Remove unused variable.
3814 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3815 unsigned char with bfd_byte.
3816 (s_file): Remove unused variable.
3817 (s_mips_ent): Likewise.
3819 2002-04-03 Tom Rix <trix@redhat.com>
3821 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3823 (find_opcode): Fix warning in as_warn.
3824 * config/tc-d10v.h: Update Copyright.
3826 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3827 Tom Rix <trix@redhat.com>
3829 From Jeff Knaggs <jknaggs@redhat.com>
3830 * config/tc-d10v.c (check_resource_conflict): New function to
3831 check for resource conflicts.
3833 From Jason Eckhardt <jle@redhat.com>
3834 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3836 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3837 reserved control registers is used.
3838 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3841 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3842 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3843 instruction cannot be packed.
3845 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3846 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3847 write-write conflicts.
3848 (md_assemble): Reformat introductory comment.
3849 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3852 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3854 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3855 O_logical_not>): Derive final_seg from add_symbol.
3856 <O_multiply..O_logical_or>: More final_seg twiddles.
3858 2002-04-01 Jessica Han <jessica@cup.hp.com>
3860 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3863 2002-03-27 Andreas Schwab <schwab@suse.de>
3865 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3866 field for pc-relative fixups.
3867 (output_disp): Likewise.
3868 (md_estimate_size_before_relax): Likewise.
3869 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3870 pc-relative fixups in 64bit mode.
3872 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3874 * config/te-aix5.h: Typo fix.
3876 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3878 * Makefile.am: Run "make dep-am".
3879 * Makefile.in: Regenerate.
3880 * doc/Makefile.in: Regenerate.
3882 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3884 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3885 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3887 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3889 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3890 the EXTENDED bit here; report the estimate according to the
3893 2002-03-18 Tom Rix <trix@redhat.com>
3895 * configure.in: Add AIX 5 support.
3896 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3897 * config/te-aix5.h: New file. AIX 5 support.
3898 * configure: Regenerate.
3900 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3902 * po/fr.po: Updated version.
3904 2002-03-16 Andreas Jaeger <aj@suse.de>
3906 * doc/c-mips.texi (Machine Dependencies): Add new node.
3908 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3910 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3911 (mips_opts): Initialize "ase_mips3d" member.
3912 (file_ase_mips3d): New variable.
3913 (CPU_HAS_MIPS3D): New macro.
3914 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3915 based on command line options and configuration defaults.
3916 (macro_build, mips_ip): Accept MIPS-3D instructions if
3917 mips_opts.ase_mips3d is set.
3918 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3919 Add support for "-mips3d" and "-no-mips3d" options.
3920 (OPTION_ELF_BASE): Move to accomodate new options.
3921 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3922 (mips_elf_final_processing): Add a comment indicating that a
3923 MIPS-3D ASE ELF header flag should be set, when one exists.
3924 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3925 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3926 nomips3d" directives.
3928 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3930 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3931 a weak symbol in same section to be within reach.
3933 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3935 * po/fr.po: Updated version.
3937 2002-03-12 Andreas Schwab <schwab@suse.de>
3939 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3940 body record so that an error is given for misplaced .save
3943 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3945 * config/tc-i386.h (REX_OPCODE): Define.
3946 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3947 (rex_byte): typedef to int.
3948 * config/tc-i386.c: Group prototypes and vars together.
3949 Formatting fixes. Remove occurrences of "register" keyword.
3952 (mode_from_disp_size): Add INLINE keyword to prototype.
3953 (fits_in_signed_byte): Likewise.
3954 (fits_in_unsigned_byte): Likewise.
3955 (fits_in_unsigned_word): Likewise.
3956 (fits_in_signed_word): Likewise.
3957 (fits_in_unsigned_long): Likewise.
3958 (fits_in_signed_long): Likewise.
3959 (type_names): Constify.
3960 (intel_float_operand): Constify param.
3961 (add_prefix): Use REX_OPCODE.
3962 (md_assemble): Likewise. Modify for changed rex_byte.
3963 (parse_insn): Split out of md_assemble.
3964 (parse_operands): Likewise.
3965 (swap_operands): Likewise.
3966 (optimize_imm): Likewise.
3967 (optimize_disp): Likewise.
3968 (match_template): Likewise.
3969 (check_string): Likewise.
3970 (process_suffix): Likewise.
3971 (check_byte_reg): Likewise.
3972 (check_long_reg): Likewise.
3973 (check_qword_reg): Likewise.
3974 (check_word_reg): Likewise.
3975 (finalize_imm): Likewise.
3976 (process_operands): Likewise.
3977 (build_modrm_byte): Likewise.
3978 (output_insn): Likewise.
3979 (output_branch): Likewise.
3980 (output_jump): Likewise.
3981 (output_interseg_jump): Likewise.
3982 (output_disp): Likewise.
3983 (output_imm): Likewise.
3985 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3987 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3989 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3991 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3992 relocs except when BFD64.
3994 * write.c (number_to_chars_bigendian): Don't abort when N is
3995 larger than sizeof (VAL).
3996 (number_to_chars_littleendian): Likewise.
3998 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4000 * config/tc-hppa.c (md_apply_fix3): Add cast.
4001 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4004 2002-03-05 Paul Koning <pkoning@equallogic.com>
4006 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4007 (parse_ac5): New function for parsing float regs in float operand.
4008 (parse_expression): Remove attempt to make literals be octal.
4009 (parse_op_no_deferred): Support float literals.
4010 (parse_op): Reject attempts to refer to float regs.
4011 (parse_fop): New function, like parse_op but for float operand.
4012 (md_assemble): Add cases to parse float operands. Also fix
4013 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4015 2002-03-04 H.J. Lu <hjl@gnu.org>
4017 * config/obj-elf.c (special_section): Add .init_array,
4018 .fini_array and .preinit_array.
4020 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4021 .init_array and .fini_array.
4023 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4025 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4027 (obj_frob_symbol): Copy visibility.
4029 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4031 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4033 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4035 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4037 * po/es.po: Updated.
4039 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4041 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4042 only, undo the changes made on 2001-06-08, with the
4043 effect being that common or extern symbols are
4044 adjusted for embedded-PIC, but weak symbols are not.
4045 (md_estimate_size_before_relax: Likewise, with the effect
4046 that extern symbols are treated the same as weak symbols
4047 only if not embedded-PIC.
4048 (mips_fix_adjustable) Likewise, with the effect that
4049 weak or extern symbols are not adjusted for embedded-PIC.
4050 (md_apply_fix3): Tweak so that the case where value is zero
4051 is handled more correctly for embedded-PIC code.
4053 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4055 * doc/as.texinfo (Overview): Add missing @ifset IA64
4057 * configure.in (LINGUAS): Add es.po.
4058 * configure: Regenerate.
4059 * po/es.po: New file.
4061 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4063 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4064 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4065 and NO_PIC cases. Code cleanup.
4066 (macro2): Fix handling of 64bit register loads.
4068 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4070 * doc/as.texinfo: Add entry for IA64.
4071 * doc/c-ia64.texi: New file.
4073 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4075 * config/tc-hppa.c: Update copyright date.
4077 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4078 Remove references to chip manufacturers.
4079 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4081 (md_show_usage): Remove references to chip manufacturers. Mention
4083 (md_begin): Test power4 opcode flag bits.
4085 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4087 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4088 count exceeds prologue count.
4089 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4090 (unwind.label_prologue_count): New member.
4092 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4094 (get_saved_prologue_count): New function.
4095 (save_prologue_count): New function.
4096 (free_saved_prologue_count): New function.
4097 (dot_label_state): Record state label by calling save_prologue_count().
4098 (dot_copy_state): Restore prologue count by calling
4099 get_saved_prologue_count().
4100 (generate_unwind_image): Free up list of saved prologue
4101 counts by calling free_saved_prologue_counts().
4103 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4105 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4106 function declarations.
4108 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4110 * NEWS: Note that GASP is now deprecated.
4111 * Makefile.am: Do not build gasp-new by default.
4112 * Makefile.in: Regenerate.
4113 * doc/Makefile.am: Do not install gasp.info.
4114 * doc/Makefile.in: Regenerate.
4115 * gas/gasp.texi: Note that gasp is now deprecated.
4117 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4119 * NEWS: Mark 2.12 branch.
4121 2002-02-19 Tom Tromey <tromey@redhat.com>
4123 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4125 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4127 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4130 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4132 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4133 Make bit size independent of architecture switch.
4134 (md_begin): Add warning for -m64 with -Aesa.
4135 (s390_md_end): Use renamed architecture defines.
4137 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4139 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4141 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4143 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4146 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4148 * config/tc-mips.c (md_estimate_size_before_relax): Really
4149 make sure we treat weak like extern only for ELF. (Fixes
4150 patch from 2001-07-25.)
4152 2002-02-15 Ben Elliston <bje@redhat.com>
4154 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4157 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4159 * NEWS: Mention support for MMIX.
4161 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4163 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4164 a sequence of indpendent 'if' statements for easier debugging
4165 and future modification.
4167 2002-02-13 Matt Fredette <fredette@netbsd.org>
4169 * config/tc-m68k.c (md_show_usage): No longer display a
4170 hard-coded "68020" for the default CPU, instead display the
4171 canonical name of the true, configured default CPU.
4172 (m68k_elf_final_processing): Mark objects for sub-68020
4173 CPUs with the new EF_M68000 flag.
4175 2002-02-13 Andreas Schwab <schwab@suse.de>
4177 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4178 pc-relative relocations to merge sections in 64-bit mode.
4180 2002-02-13 Ben Elliston <bje@redhat.com>
4182 * NEWS: Document floating point number handling in gasp.
4183 * gasp.c: Include <assert.h> and "xregex.h".
4184 (is_flonum): New function.
4185 (chew_flownum): Likewise.
4186 (change_base): Consume flonums from the input, where possible.
4187 * doc/gasp.texi (Constants): Document floating point numbers.
4189 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4191 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4192 that implicitly use LR and RR selectors.
4194 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4196 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4197 and `epsw' as available on AM33 and above only.
4198 (other_register_name): Add logic to handle machine type encoded in
4201 2002-02-11 Tom Rix <trix@redhat.com>
4203 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4206 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4208 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4211 2002-02-11 Jan Hubicka <jh@suse.cz>
4213 * i386.c (md_assemble): Support 32bit address prefix.
4214 (i386_displacement): Likewise.
4215 (i386_index_check): Accept 32bit addressing in 64bit mode.
4217 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4219 * config/tc-sh.c (dot): Removed unused function.
4221 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4223 * Makefile.am: "make dep-am".
4224 * Makefile.in: Regenerate.
4225 * aclocal.m4: Regenerate.
4226 * config.in: Regenerate.
4227 * configure: Regenerate.
4228 * doc/Makefile.in: Regenerate.
4230 2002-02-10 Richard Henderson <rth@redhat.com>
4232 * doc/c-alpha.texi: New file.
4233 * doc/Makefile.am (CPU_DOCS): Add it.
4234 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4236 2002-02-09 Richard Henderson <rth@redhat.com>
4238 * config/tc-alpha.c (O_samegp): New.
4239 (USER_RELOC_P): Include it.
4240 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4241 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4242 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4243 (alpha_validate_fix): New.
4244 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4246 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4248 * doc/c-cris.texi: New.
4249 * doc/all.texi: @set CRIS.
4250 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4251 Include c-cris.texi.
4252 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4253 * doc/Makefile.in: Regenerate.
4255 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4257 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4258 determine if a number is a sign-extended 32-bit number.
4259 (load_register): Use IS_SEXT_32BIT_NUM.
4260 (macro): Check if load/store macro handling is using a
4261 constant 32-bit address on 64-bit address systems, and if
4262 so optimize the generation of that address.
4264 2002-02-08 Richard Henderson <rth@redhat.com>
4266 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4267 we've eliminated all foreign relocation types yet.
4268 (alpha_fix_adjustable): Likewise.
4270 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4272 Contribute sh64-elf.
4273 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4274 Stephen Clarke <Stephen.Clarke@st.com>
4275 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4276 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4277 * config/tc-sh.c (md_relax_table): Added default sizes for
4278 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4279 MOVI_16, MOVI_32 and MOVI_48.
4280 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4281 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4283 (shmedia_md_estimate_size_before_relax): Remove redundant
4284 blocks. Set fragP->fr_var even if relaxation type unchanged.
4285 Retain UNDEF_MOVI until expression decays to number.
4286 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4287 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4288 relocation types. Take fixP->fx_addnumber into account too.
4289 (shmedia_md_apply_fix): Likewise.
4290 (shmedia_md_convert_frag): Likewise.
4291 (shmedia_build_Mytes): Likewise.
4292 (sh64_consume_datalabel): Complain about nested datalabel.
4293 Support PIC relocs. Call sh_parse_name.
4294 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4295 in tc-sh.h to SHmedia reloc types.
4296 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4297 MOVI_GOTPC): New relaxation constants.
4298 (md_relax_table): Introduce relaxation directives for PIC-related
4300 (sh_PIC_related_p): Handle datalabel.
4301 (sh_check_fixup): Choose SH5 PIC relocations.
4302 (sh_cons_fix_new): Added BDF_RELOC_64.
4303 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4304 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4305 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4306 current ISA is SHmedia, get 7 bytes.
4307 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4308 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4310 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4311 shmedia_apply_fix3 and make void.
4312 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4313 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4315 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4316 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4317 2001-03-14 DJ Delorie <dj@redhat.com>
4318 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4319 * doc/Makefile.in(CPU_DOCS): Ditto.
4320 * doc/c-sh64.texi: New file.
4321 * doc/as.texinfo: Add SH64 support.
4322 2001-03-13 DJ Delorie <dj@redhat.com>
4323 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4324 A_REUSE_PREV so that its purpose is more obvious.
4325 (shmedia_build_Mytes): Ditto.
4326 2001-03-07 DJ Delorie <dj@redhat.com>
4327 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4329 (sh64_vtable_inherit): Ditto.
4330 (strip_datalabels): New, strip "datalabel" from given line.
4331 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4333 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4334 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4336 (shmedia_build_Mytes): ... to here.
4337 2001-03-06 DJ Delorie <dj@redhat.com>
4338 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4340 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4341 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4342 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4343 address by one in call to dwarf2_emit_insn.
4344 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4345 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4346 alignment handling broken by imported changes.
4347 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4348 (sh64_handle_align): Declare.
4349 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4350 (sh64_max_mem_for_rs_align_code): Declare.
4351 (enum sh64_isa_values): Moved here from tc-sh64.c.
4352 (md_do_align): Define.
4353 (sh64_do_align): Declare.
4354 (struct sh64_tc_frag_data): New.
4355 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4357 (TC_FRAG_INIT): Change to set new datatype.
4358 (struct sh64_segment_info_type): Rename member
4359 last_flushed_location to last_contents_mark. All users changed.
4360 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4361 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4362 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4363 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4364 of unsetting seen_insn.
4365 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4366 call sh64_update_contents_mark.
4367 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4368 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4369 enum sh64_isa_values.
4370 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4371 (emitting_crange): Boolean guard moved to file scope from function
4372 scope in sh64_set_contents_type.
4374 (sh64_update_contents_mark): New; most split out from
4375 sh64_flush_pending_output.
4376 (shmedia_md_end): Call sh64_update_contents_mark. Set
4377 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4378 (sh64_do_align): New function.
4379 (sh64_max_mem_for_rs_align_code): New function.
4380 (sh64_handle_align): Rename from shmedia_do_align. Make
4381 non-static. Add head comment. Emit zero bytes for n bytes modulo
4382 four. Change return-type to void.
4383 (shmedia_elf_new_section): Remove.
4384 (shmedia_md_assemble): Call sh64_update_contents_mark.
4385 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4386 new frag. Call sh64_update_contents_mark after making the new
4388 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4389 and sh_flush_pending_output.
4390 (sh64_flag_output): Also call md_flush_pending_output, but add
4391 condition on not emitting_crange.
4392 (sh64_tc_cons_fix_new): Remove.
4393 2001-01-12 Nick Clifton <nickc@redhat.com>
4394 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4395 alignment handling scheme imported from sourceware.
4396 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4397 * config/tc-sh64.h (TARGET_FORMAT): Define.
4398 (sh64_target_format): Prototype.
4399 * config/tc-sh64.c (sh64_target_mach): New function.
4400 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4401 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4402 zero_address_frag instead of copying the frag of the symbol.
4403 (shmedia_frob_file_before_adjust): Ditto.
4404 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4405 to valueT to remove signedness.
4406 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4407 headers to output_bfd. Do not evaluate symbols if final is false;
4409 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4410 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4411 to the current frag, call shmedia_md_convert_frag to emit fixups
4412 and make frag_wane neutralize the frag. Update comments.
4413 * config/tc-sh.c (md_convert_frag): Change caller of
4414 shmedia_md_convert_frag.
4415 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4416 * config/tc-sh64.h: Tweak comments and correct formatting.
4417 * config/tc-sh64.c: Ditto.
4418 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4419 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4420 for the no-relocation case.
4421 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4422 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4424 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4426 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4427 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4429 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4431 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4432 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4433 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4434 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4435 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4436 if reloc is emitted.
4437 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4438 New options plus bugfixes.
4439 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4441 (md_parse_option): Handle new options.
4442 (md_show_usage): Add blurb for new options.
4443 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4444 (sh64_expand, sh64_pt32): New variables.
4445 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4446 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4447 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4448 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4449 <resolved previously-pc-relative relocs>: Handle
4450 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4451 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4452 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4453 points to SHcompact code.
4454 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4455 SH64PCREL16)>: Check that ISA of what operand points at and
4456 PTA/PTB matches, or emit error.
4457 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4458 SHMEDIA_BFD_RELOC_PT.
4459 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4461 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4462 condition for MOVI expansion.
4463 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4464 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4466 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4468 (sh64_target_format): Error-check setting of sh64_pt32 and
4469 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4470 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4471 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4472 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4473 * config/tc-sh64.c: Improve comments.
4474 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4475 not say the linker will check correctness of PTA/PTB expansion.
4476 (shmedia_md_end): Make non-static.
4477 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4479 * config/tc-sh.c (sh_finalize): Remove.
4480 * config/tc-sh.h (md_end): Do not define.
4481 Remove prototype for sh_finalize.
4482 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4483 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4484 sh64_section_data container when storing section type in tdata
4485 field in elf_section_data.
4486 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4488 * Makefile.am: Update dependencies.
4489 * Makefile.in: Regenerate.
4490 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4491 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4492 dwarf2_emit_insn call with test on debug_type.
4493 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4494 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4495 CRT_SH5_ISA32 sticky for 64-bit.
4496 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4497 Generate .crange sections when switching ISA mode or emitting
4498 constants in same section as code.
4499 * config/tc-sh64.c: Reformat structure definitions.
4500 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4502 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4503 to emit a .cranges descriptor when contents type changes. Only
4504 emit error if changing contents type and -no-mix is in effect.
4505 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4506 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4507 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4508 sh64_flush_last_crange over sections.
4509 When checking main symbol of datalabel symbol, check for
4510 STO_SH5_ISA32, not ISA type of section in definition.
4511 (shmedia_frob_file_before_adjust): Check main symbol for
4512 STO_SH5_ISA32; don't check ISA type of section in definition.
4513 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4514 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4515 .cranges entries have been output.
4516 (shmedia_elf_new_section): Just call md_flush_pending_output.
4517 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4518 fix. Do not set tc_segment_info_data.in_code for section. Call
4519 sh64_set_contents_type for SHmedia code.
4520 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4521 false. Call md_flush_pending_output.
4522 (sh64_target_format): Check that -no-mix and
4523 -shcompact-const-crange are used in sane combination with other
4525 (shmedia_md_pcrel_from_section): Check type of fix for how to
4527 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4528 not ISA type of section in definition.
4529 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4530 hold contents-type state.
4531 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4532 (sh64_flush_pending_output): Declare.
4533 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4534 (sh64_tc_cons_fix_new): Declare.
4535 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4536 call sh64_flag_output.
4537 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4538 call sh64_set_contents_type to mark SHcompact code and set
4540 (md_longopts): New options "-no-mix" and
4541 "-shcompact-const-crange".
4542 (md_parse_option): Handle new options.
4543 (md_show_usage): Add blurb for new options.
4544 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4545 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4546 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4547 (sh64_last_insn_frag): New.
4548 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4549 to get frag for insn opcode for generating fixups; do not assume it
4551 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4553 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4555 (TC_FRAG_TYPE): Define as fragS *.
4556 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4557 (sh64_last_insn_frag): Declare.
4558 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4559 not == NULL before dereferencing.
4560 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4561 Get rid of BFD section flag and EF_SH64_ABI64.
4562 * config/tc-sh64.c (shmedia_frob_section_type): Use
4563 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4564 communicate the section as containing SHmedia code. Describe why.
4565 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4566 EF_SH64 regardless of ABI.
4567 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4568 in error message. Handle resolved expressions for
4569 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4570 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4571 (shmedia_check_limits): Handle BFD_RELOC_64.
4572 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4573 a STO_SH5_ISA32 symbol, only the BFD value.
4574 2000-12-11 Ben Elliston <bje@redhat.com>
4575 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4576 dwarf2_generate_asm_lineno.
4577 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4578 Handle PC-relative MOVI expansions with assembler relaxation.
4579 Generate PC-relative relocs from 16-bit PC-relative expressions.
4580 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4581 (shmedia_md_pcrel_from_section): ...here.
4582 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4583 turned completely resolved. Adjust relocation type for 16-bit
4584 immediate operands that has turned PC-relative. Adjust back for
4585 MD_PCREL_FROM_SECTION being applied twice.
4586 (shmedia_md_convert_frag): Always emit reloc for expression with
4587 global or weak symbol. Handle relaxation result for PC-relative
4589 (shmedia_md_estimate_size_before_relax): An expression with a weak
4590 or global symbol can not be relaxed. Break out tests for
4591 relaxable symbol into variable sym_relaxable.
4592 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4593 UNDEF_MOVI)>: Break out any PC-relative expression and change
4595 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4597 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4598 MOVI expansion. If X_op_symbol of the immediate expression is
4599 set, make an expression symbol for the argument to frag_var.
4600 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4602 (END): Adjust for new relaxations.
4603 (md_relax_table): Add entries for new relaxations.
4604 2000-12-07 Ben Elliston <bje@redhat.com>
4605 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4606 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4607 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4608 SHORI operand offsets in PT/PTA/PTB expansions.
4609 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4610 Implement DataLabel semantics.
4611 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4612 shmedia_frob_file_before_adjust.
4613 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4614 (DATALABEL_SUFFIX): Define.
4615 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4616 symbol list to update "datalabel" symbols to their main symbol
4618 (shmedia_frob_file_before_adjust): New.
4619 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4620 undefined and set STT_DATALABEL.
4621 (sh64_frob_label): Initialize TC symbol field.
4622 (sh64_consume_datalabel): Actually implement semantics. New
4623 parameter operandf, call it instead of expression.
4624 (sh64_exclude_symbol): New.
4625 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4626 to sh64_consume_datalabel.
4627 (tc_symbol_new_hook): Define to tc_frob_symbol.
4628 (TC_SYMFIELD_TYPE): Define to symbolS *.
4629 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4630 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4631 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4633 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4634 generating dwarf2 debug information.
4635 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4636 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4637 elf64-sh64 for the 64-bit ABI.
4638 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4640 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4641 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4643 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4644 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4645 (enum sh64_abi_values): New type.
4646 (enum sh64_isa_values): New type.
4647 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4648 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4649 (sh64_abi): Replace shmedia_64.
4650 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4651 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4652 (s_sh64_mode): Check validity for this target.
4653 (sh64_target_format): Initialize defaults for ISA and ABI.
4654 Fallback to old object format if no SH64 ISA or ABI has been
4656 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4657 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4658 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4659 * config/tc-sh64.h: Fix typo in comment.
4660 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4661 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4662 <PT fixups for absolute values>: Size will be longest, not
4664 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4665 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4666 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4667 and l1 to hold lowercase of two first characters. Change all
4668 remaining TO_LOWER to tolower.
4669 * config/tc-sh64.c (TO_LOWER): Delete.
4670 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4671 (md_parse_name): Define.
4672 (sh64_consume_datalabel): Declare.
4673 (DOLLAR_DOT): Define.
4674 * config/tc-sh64.c (shmedia_parse_exp): New.
4675 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4676 (shmedia_parse_reg): Remove const from src
4678 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4679 (shmedia_md_assemble): Ditto for op_end variable.
4680 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4681 Use shmedia_parse_exp, not parse_exp.
4682 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4683 parameter. All callers changed.
4684 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4686 (shmedia_parse_reg): Put first two character in local variables.
4687 Use tolower, not TO_LOWER. If no register is found and argtype
4688 indicates a control register, scan shmedia_creg_table
4690 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4691 * Makefile.am (CPU_TYPES): Add sh64.
4692 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4693 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4694 Regenerate dependencies.
4695 * Makefile.in: Regenerate.
4696 * configure.in: Add support for sh64-*-elf*.
4697 * configure: Regenerate.
4698 * config/tc-sh64.h: New.
4699 * config/tc-sh64.c: New.
4700 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4701 .mode, .isa and .uaquad.
4702 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4703 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4704 [HAVE_SH64] (END): Define as 10.
4705 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4706 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4708 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4709 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4710 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4711 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4713 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4714 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4715 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4716 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4717 SHmedia instructions. Handle state-change after switching to
4719 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4720 (md_parse_option) [HAVE_SH64]: Parse new options.
4721 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4722 (md_convert_frag) [HAVE_SH64] <default>: Call
4723 shmedia_md_convert_frag instead of abort.
4724 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4725 BFD_RELOC_SH_SHMEDIA_CODE.
4726 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4727 SHcompact or SHmedia code.
4728 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4729 shmedia_md_apply_fix instead of abort.
4730 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4731 result from calling shmedia_md_estimate_size_before_relax instead
4733 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4735 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4736 shmedia_init_reloc and do nothing more if it returns non-zero.
4737 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4738 * po/POTFILES.in: Regenerate.
4739 * po/gas.pot: Regenerate.
4741 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4743 * config/tc-sh.c (parse_at): Install the correct version of
4746 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4747 assume fixP->fx_subsy is non-NULL.
4749 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4751 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4752 A_DISP_PC_ABS, and adjust it by -4.
4753 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4755 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4756 the operand type is not A_DISP_PC_ABS.
4758 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4760 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4761 common and weak symbols. Handle common and weak symbols as
4762 undefined symbols with regards to GREG handling and merging.
4763 (mmix_frob_file): Ditto.
4765 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4767 * configure.in (hppa-*-netbsd*): New target.
4768 * configure: Regenerate.
4769 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4771 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4773 * config/tc-v850.c: Add missing prototypes amd use old-style
4774 function definitions.
4775 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4776 (sdata_section tdata_section, zdata_section, sbss_section,
4777 tbss_section, zbss_section, rosdata_section, rozdata_section,
4778 scommon_section, tcommon_section, zcommon_section,
4779 call_table_data_section, call_table_text_section): Delete.
4780 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4781 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4782 v850_call_table_data, v850_call_table_text): Delete.
4783 (struct v850_seg_entry): New.
4784 (v850_seg_table): New.
4785 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4786 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4787 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4788 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4791 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4792 recording of alignment.
4793 (md_pseudo_table): Use v850_seg.
4794 (md_begin): Don't init .call_table_data and .call_table_text here.
4795 Set v850_seg_table bss entry.
4797 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4799 Support on-demand global register allocation by passing on
4800 base-plus-offset relocs to the linker.
4801 * config/tc-mmix.c: Tweak and fix typos in comments.
4802 (allocate_undefined_gregs_in_linker): New variable.
4803 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4804 (md_longopts): Add --linker-allocated-gregs.
4805 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4806 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4807 (md_show_usage): Update text for -x. Add text for
4808 --linker-allocated-gregs.
4809 (tc_gen_reloc): Derive default value for addend from val and
4810 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4811 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4812 GREG if allocate_undefined_gregs_in_linker.
4813 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4814 --linker-allocated-gregs.
4815 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4816 --linker-allocated-gregs. Mention that it's implied by -x.
4817 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4818 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4820 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4822 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4824 * Makefile.am: Run "make dep-am"
4825 * Makefile.in: Regenerate.
4827 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4829 * config/tc-or32.c: New file.
4830 * config/tc-or32.h: New file.
4831 * configure.in: Add support for or32 targets.
4832 * configure: Regenerate.
4833 * config/obj-coff.c: Add support for or32 targets.
4834 * config/obj-coff.h: Add support for or32 targets.
4835 * Makefile.am: Add support for or32 targets.
4836 * Makefile.in: Regenerate.
4837 * NEWS: Mention support for OpenRISC.
4838 * doc/Makefile.in: Regenerate.
4839 * po/POTFILES.in: Regenerate.
4840 * po/gas.pot: Regenerate.
4842 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4844 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4847 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4849 * config/tc-mips.c (tc_gen_reloc): Arrange for
4850 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4851 their LO16 parts, even for ELF.
4853 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4855 * config/tc-i386.c: Protect definitions of true and false
4858 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4860 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4861 made because of .weak, if they are neither defined nor used in any
4864 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4866 * configure: Regenerated.
4868 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4870 * doc/Makefile.am (install): Depend on install-info.
4871 * doc/Makefile.in: Regenerate.
4873 2002-01-26 Nick Clifton <nick@redhat.com>
4875 * po/fr.po: Updated version
4877 2002-01-24 Kazu Hirata <kazu@hxi.com>
4879 * config/tc-h8300.c (check_operand): Don't print a warning
4880 when a valid 24-bit address is given to a 16-bit address
4883 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4885 * config/tc-sh.c (sh_elf_suffix): Removed.
4886 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4887 sh_end_of_match, sh_parse_name): New functions.
4888 (sh_elf_cons): Simplify.
4889 (parse_exp): Reject misplaced PIC operands.
4890 (md_undefined_symbol): Simplify.
4891 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4892 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4893 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4894 Complain if subsy remains at the end.
4895 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4896 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4898 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4900 * config/tc-mn10300.c (xr_registers): Move `pc'...
4901 (other_registers): ... here.
4903 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4905 * Makefile.am: Run "make dep-am".
4906 * Makefile.in: Regenerate.
4907 * gas/po/POTFILES.in: Regenerate.
4909 2002-01-21 DJ Delorie <dj@redhat.com>
4911 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4912 stabstr_name allocation permanent, as it will be referenced from
4915 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4917 * configure.in (ia64-*-netbsd*): New target.
4918 * configure: Regenerate.
4920 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4922 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4924 <Detailed description, ARM options>: Ditto.
4925 * doc/c-arm.texi (ARM Options): Ditto.
4927 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4929 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4930 do_mia, do_mar and do_mra respectively.
4931 (do_mav_*): Renamed from do_c_*.
4932 (mav_reg_required_here, mav_parse_offset): Renamed from
4933 cirrus_reg_required_here and cirrus_parse_offset respectively.
4934 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4936 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4937 Keith Walker <keith.walker@arm.com>
4939 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4940 (insns): Add pattern for bxj instruction.
4941 (do_bxj): New function.
4942 (arm_cpus): Add arm926ej.
4943 (arm_archs): Add armv5tej.
4945 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4947 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4949 2002-01-19 Keith Walker <keith.walker@arm.com>
4951 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4953 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4955 * NEWS: Mention new ARM command-line options and VFP support.
4957 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4959 (ARM_CEXT_MAVERICK): Similarly.
4960 (ARM_ANY): Now means any core instruction.
4961 (CPU_DEFAULT): Default to ARM_ANY.
4962 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4963 (pic_code): Declare for all object types. Make type int.
4964 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4965 (march_fpu_opt, mfpu_opt): Declare.
4966 (md_longopts): Tidy up conditional definitions.
4967 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4968 (arm_long_opts): New tables.
4969 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4970 (arm_parse_extension): New function.
4971 (md_parse_option): Rewrite using new table-driven system.
4972 (md_show_usage): Use new table-driven system.
4973 (md_begin): Calculate cpu_variant from command line option data.
4974 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4975 command-line options.
4976 * doc/c-arm.texi: Likewise.
4978 2002-01-18 Andreas Jaeger <aj@suse.de>
4980 * as.c (parse_args): Update year.
4982 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4984 * config/tc-tic54x.c (encode_address): Add a more informative
4985 warning about incorrect syntax.
4987 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4989 * po/gas.pot: Regenerate.
4991 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4993 * macro.c (get_any_string): Add no-c-format comment to prevent
4994 confusion when translating string.
4995 * gasp.c (get_any_string): Add no-c-format comment to prevent
4996 confusion when translating string.
4998 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4999 Johannes Stezenbach <js@convergence.de>
5000 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5001 matched before the shorter ones.
5002 (my_getSmallParser): Fix handling of nested parentheses in
5003 percent_op's. Code cleanup.
5004 (my_getPercentOp): New function, code from my_getSmallParser.
5005 (my_getSmallExpression): Fix handling of closing parentheses.
5006 Code cleanup. Better comments.
5008 2002-01-16 Nick Clifton <nickc@redhat.com>
5010 po/tr.po: New file: Turkish translation.
5011 configure.in (LINGUAS): Add "tr".
5012 configure: Regenerate.
5014 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5016 Support for VFP instructions
5017 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5018 (cp_address_required_here): New argument wb_ok. When false, do not
5019 accept write-back forms of addressing. Change all callers.
5020 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5021 (FPU_VFP_EXT_V2): Define.
5022 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5023 Define in terms of above.
5024 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5025 (vfp_reg): New struct.
5026 (vfp_regs): New array of registers.
5027 (insns): Add VFP instructions.
5028 (sn_table): New array of VFP single-precision register names.
5029 (dn_table): New array of VFP double-precision register names.
5030 (all_reg_maps): Add the new register tables.
5031 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5032 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5033 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5034 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5035 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5036 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5037 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5038 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5039 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5040 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5041 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5042 (do_vfp_sp_dp_cvt): New functions.
5043 (md_begin): Set soft-float flag for appropriate VFP work.
5044 (md_atof): Handle VFP-format doubles.
5045 (md_parse_option): Handle VFP command-line options.
5046 (md_show_usage): Display VFP command-line options.
5048 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5050 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5051 various command line options.
5053 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5055 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5057 (xstormy16_md_apply_fix3): Do not return a value.
5059 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5061 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5062 the -EL/-EB option that matches the target's endianness.
5063 (md_parse_option): Likewise.
5065 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5067 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5068 is not dependent on ARM_BI_ENDIAN.
5070 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5072 * tc-arm.c (all error messages): Normalize capitalization of messages.
5074 * tc-arm.h (md_operand): Delete define.
5075 * tc-arm.c (in_my_get_expression): New static variable.
5076 (my_get_expression): Set and clear it.
5077 (md_operand): New function. If called from my_get_expression
5078 put the error in inst.error.
5079 (output_inst): Now takes argument of instruction being assembled.
5080 Print it out with any error message.
5081 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5083 (end_of_line): Don't update inst.error if it is already set.
5085 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5087 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5088 op that can be translated into a mvn instruction.
5090 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5092 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5093 setting default md.flags.
5094 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5095 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5096 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5097 for 32 bit unwind info blocks.
5098 (generate_unwind_image): Add support for different types
5099 of unwind images (32 bits and/or big-endian).
5100 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5101 (ia64_target_format): Add support for hpux target formats.
5102 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5103 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5104 SHT_FINI_ARRAY elf section types.
5106 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5108 * tc-arm.c (struct reg_entry): Move before prototypes.
5109 (int_register, cp_register, fp_register): Delete.
5110 (reg_table): Delete. Replaced with ...
5111 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5112 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5113 (mav_dspsc_table): ... one table per register set.
5114 (arm_reg_hsh): Delete.
5115 (struct reg_map): New structure.
5116 (all_reg_maps): New array.
5117 (enum arm_reg_type): New enums.
5118 (build_reg_hsh): New function.
5119 (insert_reg_alias): Use hash table passed by caller. Adjust all
5121 (create_register_alias): New function, split out from ...
5122 (md_assemble): ... here.
5123 (md_begin): Build new register hash tables.
5124 (arm_reg_parse): New argument for the hash table to search. Adjust all
5126 (arm_reg_parse_any): New function.
5127 (co_proc_number): Look up the processor number in the processor hash
5129 (cirrus_regtype): Delete.
5130 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5131 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5132 (ARM_EXT_MAVERICKsc_register): Delete.
5133 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5134 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5136 (do_c_triple_4, do_c_triple_5): Delete.
5137 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5138 (do_c_quad_6): Delete.
5139 (do_c_quad_6[ab]): New functions.
5140 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5141 arguments to use new register parsing methods.
5142 (cirrus_reg_required_here): Likewise.
5143 (insns): Reclassify cirrus maverick worker functions.
5144 (cirrus_valid_reg): Delete.
5146 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5148 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5149 (sh*-*-netbsdelf*): New target.
5150 * configure: Regenerate.
5151 * tc-sh.h: Update copyright years.
5152 (TARGET_FORMAT): Add version for TE_NetBSD.
5154 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5156 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5159 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5161 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5162 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5164 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5166 * tc-mips.c (mips_cprestore_valid): New flag.
5167 (mips_frame_reg_valid): New flag.
5168 (macro) [M_JAL_2]: Check both flags.
5169 [M_JAL_A]: Likewise.
5170 (s_cprestore): Set mips_cprestore_valid.
5171 (tc_get_register): If setting mips_frame_reg, set
5172 mips_frame_reg_valid and clear mips_cprestore_valid.
5173 (s_mips_ent): Clear both flags.
5174 (s_mips_end): Clear both flags.
5176 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5178 * write.c (write_object_file): Make use of bfd_section_list_remove.
5179 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5180 * config/tc-mmix.c (mmix_frob_file): Likewise.
5182 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5184 * configure.in (i386-*-netbsdelf*): Collapse target into...
5185 (i386-*-netbsd*): ...this. Add support for x86-64.
5186 * configure: Regenerated.
5188 2002-01-03 matthew green <mrg@redhat.com>
5190 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5192 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5194 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5197 For older changes see ChangeLog-0001
5203 version-control: never