1 2003-03-04 Dmitry Diky <diwil@mail.ru>
3 * config/tc-msp430.c (mcu_types): Add recenly announced x1122
4 and x1123 devices, add missed x437.
5 (md_show_usage): Sort device list.
7 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
9 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
10 (md_begin): Use preset_target_arch.
11 (md_longopts): Make isa option unconditional.
12 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
13 set preset_target_arch.
14 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
15 by -S_GET_VALUE (fixP->fx_subsy).
16 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
18 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
19 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
21 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
23 * config/tc-mips.c (append_insn): Add handling of
24 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
25 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
26 misaligned address and reange overflow.
27 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
28 earlier warnings about misaligned address and reange overflow.
29 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
30 (md_apply_fix): Likewise. Fix warning output.
31 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
32 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
33 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
35 2003-02-21 Nick Clifton <nickc@redhat.com>
37 * NEWS: Mention availability of test generator program.
39 2003-02-21 Miles Bader <miles@gnu.org>
41 * config/tc-v850.c (system_registers): Add v850e debug registers.
42 (system_register_name): Accept up to 27 (the last v850e sys register).
44 2003-02-21 Bob Wilson <bob.wilson@acm.org>
46 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
47 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
48 Capitalize section headings consistently. Format index entries more
49 consistently. Unconditionalize text about whether text and data
50 sections are alterable. Use @ifnottex for alternatives to @tex output
51 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
52 .size and .type directives. Be more polite about bad bug reports.
53 Move FDL into a separate file.
54 * doc/fdl.texi: New file.
56 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
58 * config/tc-mips.c (prev_reloc_op_frag): New variable.
59 (macro): Check it to decide whether a new frag is needed.
60 (my_getSmallExpression): Set it.
62 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
64 * cgen.c: Fix typo: intial -> initial.
66 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
68 * app.c (do_scrub_chars): Handle '||' in two states.
70 2003-02-13 Alan Modra <amodra@bigpond.net.au>
72 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
73 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
75 2003-02-11 Uwe Stieber <uwe@wwws.de>
77 * configure.in: Add support for kaOS as cross build target system.
78 * configure: Regenerated.
80 2003-02-10 Nick Clifton <nickc@redhat.com>
82 * config/tc-arm.c (md_begin): If the Maverick co-processor is
83 selected, set the EF_ARM_MAVERICK_FLOAT flag and
84 bfd_mach_arm_ep9312 machine number.
86 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
88 * config/tc-mips.c (reloc_needs_lo_p): New function.
89 (fixup_has_matching_lo_p): New function.
90 (append_insn): Use reloc_needs_lo_p to check whether a relocation
91 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
92 if that fixup already has a matching %lo(). Don't call frag_wane here.
93 (macro): Call frag_wane here if the last unmatched hi was in the
95 (pic_need_relax): New function, split out from...
96 (md_estimate_size_before_relax): ...here.
97 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
98 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
100 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
102 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
104 2003-02-06 Alan Modra <amodra@bigpond.net.au>
106 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
109 2003-02-05 Alan Modra <amodra@bigpond.net.au>
111 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
112 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
113 accept x@got+off etc.
114 (md_assemble): Handle TLS relocs.
115 (ppc_force_relocation): Force for all TLS relocs.
116 (ppc_fix_adjustable): Likewise.
117 (md_apply_fix3): Handle TLS relocs.
119 2003-02-04 Alan Modra <amodra@bigpond.net.au>
121 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
122 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
124 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
126 * config/tc-mips.c (enum small_ex_type): Remove.
127 (imm_unmatched_hi): Remove.
128 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
129 argument from calls to append_insn.
130 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
132 (macro_build): Update append_insn calls.
133 (mips16_macro_build, macro_build_lui): Likewise.
134 (mips_ip): Rework handling of small expressions. Move explicit
135 relocation handling into my_getSmallExpression. Assume that the
136 value of 'o' operands is zero if there is only one bracketed
138 (percent_op): Make constant. Record the BFD relocation code
139 associated with each operator.
140 (my_getSmallParser, my_getPercentOp): Remove.
141 (parse_relocation): New function.
142 (my_getSamllExpression): Rework. Fill in relocations here
143 rather than in mips_ip.
145 2003-01-29 Nick Clifton <nickc@redhat.com>
147 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
148 assembler's handling of # <linenum> "<filename>" directives work.
150 2003-01-28 Jakub Jelinek <jakub@redhat.com>
152 * dwarf2dbg.c: Include filenames.h.
153 (struct file_entry): Make filename const char *.
154 (dirs, dirs_in_use, dirs_allocated): New variables.
155 (get_filenum): Add NUM argument. Build directory table.
156 (dwarf2_where): Adjust caller.
157 (dwarf2_directive_file): Use get_filenum to allocate
158 slot in file and directory tables.
159 (dwarf2_directive_loc): Recreate full filename from
160 directory and filename part if needed for listing.
161 (out_file_list): Output directory table.
162 Output main source file dirname before its filename.
164 2003-01-28 Dmitry Diky <diwil@mail.ru>
166 * config/tc-msp430.c: Replace occurences of 'tolower' with
169 2003-01-27 David Mosberger <davidm@hpl.hp.com>
171 * config/tc-ia64.c (dot_vframesp): Correct error message.
172 (dot_vframepsp): Ditto.
174 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
176 * configure.in (em): Set to irix on all Irix systems.
177 * configure: Rebuilt.
178 * config/te-irix.h: New file.
179 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
180 whether to use Irix-specific 64-bit format.
182 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
184 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
186 2003-01-25 Jakub Jelinek <jakub@redhat.com>
188 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
189 (tc_gen_reloc): Handle TLS relocs.
190 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
191 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
193 * config/obj-elf.c (obj_elf_section_word): Handle tls.
194 (obj_elf_type): Handle tls_object.
196 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
198 * config/tc-s390.c (s390_tls_suffix): New function.
199 (elf_suffix_type): Add suffix enums for TLS relocations.
200 (s390_elf_suffix): Add suffix strings for TLS relocations.
201 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
203 (md_gather_operands): Map new instruction operand/elf suffix
204 combinations for TLS to bfd relocations.
205 (tc_s390_fix_adjustable): Add new TLS relocations.
206 (tc_s390_force_relocation): Likewise.
207 (md_apply_fix3): Likewise.
209 2003-01-24 Alan Modra <amodra@bigpond.net.au>
211 * as.h: Update copyright date.
212 * symbols.c: Likewise.
213 * config/tc-d10v.h: Likewise.
214 * config/tc-fr30.h: Likewise.
215 * config/tc-i960.h: Likewise.
216 * config/tc-mips.h: Likewise.
218 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
219 (MD_APPLY_SYM_VALUE): Move.
221 2003-01-23 Nick Clifton <nickc@redhat.com>
223 NEWS: Announce sh2e support.
227 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
229 * config/tc-sh.c (md_show_usage): Added sh2e next to
231 (sh_elf_final_processing): Handle arch_sh2e.
233 2003-01-23 Alan Modra <amodra@bigpond.net.au>
235 * symbols.c (S_FORCE_RELOC): Add "strict" param.
236 * symbols.h (S_FORCE_RELOC): Likewise.
237 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
238 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
239 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
240 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
241 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
242 * write.c (generic_force_reloc): New function.
243 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
244 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
245 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
246 * as.h (generic_force_reloc): Declare.
247 * doc/internals.texi (S_FORCE_RELOC): Update.
248 (TC_FORCE_RELOCATION_SUB_SAME): Update.
250 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
252 (alpha_fix_adjustable): Likewise.
253 * config/tc-arm.c (arm_force_relocation): Likewise.
254 * config/tc-cris.c (md_cris_force_relocation): Likewise.
255 * config/tc-frv.c (frv_force_relocation): Likewise.
256 * config/tc-i386.c (md_apply_fix3): Likewise.
257 * config/tc-ia64.c (ia64_force_relocation): Likewise.
258 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
259 * config/tc-m32r.c (m32r_force_relocation): Likewise.
260 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
261 * config/tc-mcore.c (mcore_force_relocation): Likewise.
262 * config/tc-mips.c (mips_force_relocation): Likewise.
263 * config/tc-mmix.c (mmix_force_relocation): Likewise.
264 * config/tc-ppc.c (ppc_force_relocation): Likewise.
265 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
266 * config/tc-sh.c (sh_force_relocation): Likewise.
267 (md_pcrel_from_section): Likewise.
268 * config/tc-sparc.c (tc_gen_reloc): Likewise.
269 * config/tc-v850.c (v850_force_relocation): Likewise.
270 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
271 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
272 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
273 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
275 * config/tc-d10v.c (d10v_force_relocation): Delete.
276 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
277 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
278 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
279 * config/tc-fr30.c (fr30_force_relocation): Delete.
280 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
281 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
282 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
283 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
284 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
285 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
286 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
287 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
288 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
289 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
290 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
291 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
292 * config/tc-i386.c (i386_force_relocation): Delete.
293 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
295 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
296 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
297 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
298 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
300 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
301 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
303 2003-01-23 Alan Modra <amodra@bigpond.net.au>
305 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
306 sh64_elf_section_data.
307 * config/tc-sh64.h: Include elf32-sh64.h.
308 * config/tc-m68hc11.c: Don't include stdio.h.
309 (md_show_usage): Fix missing continuation.
310 * Makefile.am: Run "make dep-am".
311 * Makefile.in: Regenerate.
313 2003-01-22 Nick Clifton <nickc@redhat.com>
315 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
317 2003-01-21 Fabio Alemagna <falemagn@aros.org>
319 * configure.in: Handle *-*-aros*.
320 * configure: Regenerated from configure.in.
322 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
324 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
325 gotplt and pltoff relocations.
326 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
327 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
328 gotplt and pltoff to bfd relocations.
329 (md_gather_operands): Map new instruction operand/elf suffix
330 combinations to bfd relocations.
331 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
332 to the list of unadjustable relocations.
333 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
334 and pltoff relocations.
335 (md_apply_fix3): Add the new relocations.
337 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
339 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
342 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
344 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
345 of relocs for memory bank addressing.
347 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
349 * config/tc-m68hc11.c (md_show_usage): Update usage.
350 (md_parse_option): Recognize -m68hcs12.
351 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
353 * doc/as.texinfo (Overview): Document new option -m68hcs12.
355 2003-01-16 Jakub Jelinek <jakub@redhat.com>
357 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
359 2003-01-16 Alan Modra <amodra@bigpond.net.au>
361 * Makefile.am: Run "make dep-am".
362 * Makefile.in: Regenerate.
363 * po/POTFILES.in: Regenerate.
365 2003-01-11 Alan Modra <amodra@bigpond.net.au>
367 * read.c (get_absolute_expr): New, split out from..
368 (get_absolute_expression): ..here.
369 * read.h (get_absolute_expr): Declare.
370 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
371 Trim size to arch bits_per_address, and test for negative input
372 via get_absolute_expr.
374 2003-01-07 DJ Delorie <dj@redhat.com>
376 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
378 (xstormy16_md_apply_fix3): Use adjustment.
380 2003-01-02 Ben Elliston <bje@redhat.com>
382 * configure.in: Add iq2000-elf target.
383 * configure: Regenerate.
384 * config/tc-iq2000.c: New file.
385 * config/tc-iq2000.h: Likewise.
386 * po/gas.pot: Regenerate.
388 2003-01-02 Chris Demetriou <cgd@broadcom.com>
390 * config/tc-mips.c: Update copyright years to include 2003.
391 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
392 Additionally, clean up their code slightly and clean up their
395 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
397 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
399 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
401 * doc/Makefile.in: Regenerate.
403 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
405 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
406 of .init and .fini sections for array initializers and finalizers.
408 2002-12-31 Chris Demetriou <cgd@broadcom.com>
410 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
411 the "+D" operand, which will be used only by the disassembler.
413 2002-12-30 Chris Demetriou <cgd@broadcom.com>
415 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
417 * configure: Regenerate.
418 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
419 (macro_build): Handle "K" operand.
420 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
421 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
422 (mips_ip): New variable "lastpos", and implement "+A", "+B",
423 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
424 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
425 (validate_mips_insn): Implement "+" as a way to extend the
426 allowed operands, and implement "K", "+A", "+B", and "+C"
428 (OPTION_MIPS32R2): New define.
429 (md_longopts): Add entry for OPTION_MIPS32R2.
430 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
431 (md_parse_option): Handle OPTION_MIPS32R2.
432 (s_mipsset): Reimplement handling of ".set mipsN" options
433 and add support for ".set mips32r2".
434 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
435 (md_show_usage): Document "-mips32r2" option.
436 * doc/as.texinfo: Document "-mips32r2" option.
437 * doc/c-mips.texi: Likewise.
439 2002-12-30 Dmitry Diky <diwil@mail.ru>
441 * configure.in: Add msp430 target.
442 * configure: Regenerate.
443 * Makefile.am: Add msp430 target.
444 * Makefile.in: Regenerate.
445 * config/tc-msp430.c: New file: msp430 assembler.
446 * config/tc-msp430.h: New file: target macros for msp430.
447 * doc/Makefile.am: Add msp430 target.
448 * doc/Makefile.in: Regenerate.
449 * doc/as.texinfo: Include msp430 documenation.
450 * doc/all.texi: Enable msp430 documentation.
451 * doc/c-msp430.texi: New file: document msp430 specific features
454 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
456 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
457 (dwarf2_finish): Use it.
458 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
459 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
461 2002-12-20 DJ Delorie <dj@redhat.com>
463 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
464 BFD_RELOC_XSTORMY16_12.
466 2002-12-19 Alan Modra <amodra@bigpond.net.au>
468 * doc/as.texinfo (Invoking): Typo fix.
469 * config/tc-tic54x.c (encode_operand): Comment typo fix.
471 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
473 * doc/c-alpha.texi: Fix typos.
474 * doc/c-arm.texi: Likewise.
475 * doc/c-d10v.texi: Likewise.
476 * doc/c-i370.texi: Likewise.
477 * doc/c-i960.texi: Likewise.
478 * doc/c-ia64.texi: Likewise.
479 * doc/c-mmix.texi: Likewise.
480 * doc/c-ns32k.texi: Likewise.
481 * doc/c-pdp11.texi: Likewise.
482 * doc/c-pj.texi: Likewise.
483 * doc/c-sh64.texi: Likewise.
484 * doc/c-sparc.texi: Likewise.
485 * doc/c-tic54x.texi: Likewise.
486 * doc/c-v850.texi: Likewise.
487 * doc/c-vax.texi: Likewise.
488 * doc/internals.texi: Likewise.
490 2002-12-18 Chris Demetriou <cgd@broadcom.com>
492 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
493 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
494 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
495 arrange not to issue warnings about use of AT when AT is not
498 2002-12-17 Nick Clifton <nickc@redhat.com>
500 * as.c (std_longopts): Duplicate --keep-locals entry in order to
501 prevent it being confused with -k.
503 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
505 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
506 has already been set up, use it.
508 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
510 * ChangeLog-9295: Fix a typo.
512 * config/tc-d10v.c: Fix a comment typo.
513 * config/tc-dlx.c: Likewise.
514 * config/tc-h8300.h: Likewise.
515 * config/tc-h8500.h: Likewise.
516 * config/tc-mips.c: Likewise.
517 * config/tc-s390.c: Likewise.
518 * config/tc-sh.h: Likewise.
519 * config/tc-tic80.h: Likewise.
520 * config/tc-w65.h: Likewise.
521 * config/tc-z8k.c: Likewise.
522 * config/tc-z8k.h: Likewise.
523 * testsuite/gas/h8300/cmpsi2.s: Likewise.
525 2002-12-16 Alan Modra <amodra@bigpond.net.au>
527 * config/tc-d30v.c (check_range): Warning fixes, formatting.
528 Simplify sign extension. Remove redundant unsigned < 0 test.
529 * config/tc-i960.c (md_ri_to_chars): Prototype.
530 * config/tc-mcore.c (md_pseudo_table): Fix typo.
531 (dump_literals): Init brarsym, and test later instead of isforce.
533 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
534 (parse): Constify line and lineptr.
535 (md_begin): Calculate endop here.
537 2002-12-13 Alan Modra <amodra@bigpond.net.au>
539 * config/obj-vms.c: Formatting. Include fnctl.h.
540 (Create_VMS_Object_File): Fix creat call for sane unix systems.
541 (Object_Record_Offset): Make it a size_t.
542 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
543 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
544 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
545 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
546 (vms_fixup_data_section <data_size>): Add here instead.
547 * config/e-criself.c: Fix typo in last change.
549 2002-12-13 Alan Modra <amodra@bigpond.net.au>
551 * write.c (write_object_file): Fix signed/unsigned warning.
552 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
553 * config/e-criself.c (criself_bfd_name): Prototype.
554 * config/obj-aout.c (s_sect): Remove unused function.
555 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
556 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
557 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
558 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
559 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
560 (VMS_RSYM_Parse <Current_Routine>): Likewise.
561 (vms_fixup_text_section <text_siz>): Likewise.
562 (synthesize_data_segment <data_size>): Likewise.
563 (vms_fixup_xtors_section <sect_no>): Likewise.
564 (structure_count): Don't use implicit int type.
565 * config/tc-a29k.c (insert_sreg): Prototype.
566 (define_some_regs): Prototype, make static.
567 (parse_operand): Likewise.
568 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
569 (md_show_usage <stream>): Likewise.
570 (md_section_align <segment>): Likewise.
571 (md_convert_frag <all args>): Likewise.
572 (md_estimate_size_before_relax <all args>): Likewise.
573 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
574 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
575 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
576 (md_undefined_symbol <name>): Likewise.
577 (md_convert_frag <all args>): Likewise.
578 (write_long <opcode>): Likewise.
579 (tc_gen_reloc <seg>): Likewise.
580 (md_estimate_size_before_relax <all args>): Likewise.
581 (md_apply_fix3 <seg>): Likewise.
582 (s_d30v_align <ignore>): Likewise.
583 (build_insn): Correct format string.
584 (md_apply_fix3): Likewise.
585 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
586 (md_undefined_symbol <name>): Likewise.
587 (md_convert_frag <all args>): Likewise.
588 (md_cgen_lookup_reloc <insn>): Likewise.
589 (md_begin): Delete unused vars.
590 (md_assemble): Likewise.
591 (md_estimate_size_before_relax): Likewise.
592 (fr30_relax_frag): #if 0 out, seems unused.
593 (md_atof): Remove declaration of atof_ieee.
594 (restore_colon): Prototype.
595 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
596 (frv_find_in_vliw): Likewise.
597 (frv_debug_tomcat): Likewise.
598 (frv_adjust_vliw_count): Likewise.
599 (frv_tomcat_shuffle): Likewise.
600 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
601 frv_find_in_vliw call.
602 (md_atof): Remove declaration of atof_ieee.
603 * config/tc-h8500.c (cons): Delete declaration.
604 (md_begin <opcode>): Constify.
605 (displacement_size, immediate_size, absolute_size): Remove.
606 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
607 (tc_crawl_symbol_chain <headers>): Likewise.
608 (md_undefined_symbol <name>): Likewise.
609 (tc_headers_hook <headers>): Likewise.
610 (md_parse_option <c,arg>): Likewise.
611 (md_show_usage <stream>): Likewise.
612 (md_convert_frag <headers, seg>): Likewise.
613 (tc_coff_symbol_emit_hook <ignore>): Likewise.
614 (md_atof): Remove declaration of atof_ieee.
615 (tc_aout_fix_to_chars): Remove unused function.
616 (parse_reg): Prototype.
617 (parse_exp): Prototype.
618 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
619 (parse_reglist): Prototype.
620 (get_operand): Prototype.
621 (get_operands): Prototype.
622 (get_specific): Prototype. Make "this_index" signed.
623 (check): Prototype, make static.
625 (build_relaxable_instruction): Prototype, make static.
626 (build_bytes): Prototype.
627 (wordify_scb): Prototype.
628 * config/tc-h8500.h (start_label): Declare.
629 (tc_coff_sizemachdep): Declare.
630 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
631 (i370_rmode <unused>): Likewise.
632 (i370_csect <unused>): Likewise.
633 (i370_dc <unused>): Likewise.
634 (i370_ds <unused>): Likewise.
635 (i370_elf_lcomm <unused>): Likewise.
636 (i370_ltorg <ignore>): Likewise.
637 (i370_using <ignore>): Likewise.
638 (i370_drop <ignore>): Likewise.
639 (i370_byte <ignore>): Likewise.
640 (i370_tc <ignore>): Likewise.
641 (md_estimate_size_before_relax <fragp, seg>): Likewise.
642 (md_convert_frag <all args>): Likewise.
643 (md_undefined_symbol <name>): Likewise.
644 (md_pcrel_from_section <sec>): Likewise.
645 (tc_gen_reloc <seg>): Likewise.
646 (i370_section_letter): #if 0 unused functions.
647 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
648 (symbol_locate): Prototype.
649 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
650 (md_number_to_disp, md_number_to_field): Remove.
651 (md_apply_fix3): Correct format string and cast "fup".
652 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
653 (s_endian <ignore>): Likewise.
654 (md_undefined_symbol <name>): Likewise.
655 (tc_crawl_symbol_chain <headers>): Likewise.
656 (tc_set_bal_of_call): Likewise.
657 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
658 (i960_handle_align <fragp>): Likewise.
659 (i960_validate_fix <this_segment_type>): Likewise
660 (tc_gen_reloc <section>): Likewise.
661 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
662 (struct memS, struct regop): Forward declare.
663 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
664 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
665 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
666 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
667 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
668 (md_chars_to_number, md_number_to_imm): Make static, prototype.
669 (md_number_to_field): Likewise.
670 (md_number_to_disp): Remove unused function.
671 (md_atof): Remove declaration of atof_ieee.
672 (md_apply_fix3): Correct md_number_to_imm call.
673 * config/tc-ip2k.c (md_assemble): Warning fix.
674 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
675 (fill_insn <ignore>): Likewise.
676 (debug_sym <ignore>): Likewise.
677 (md_undefined_symbol <name>): Likewise.
678 (m32r_scomm <ignore>): Likewise.
679 (md_convert_frag <abfd>): Likewise.
680 (md_cgen_lookup_reloc <insn>): Likewise.
681 (m32r_record_hi16 <seg>): Likewise.
682 (md_estimate_size_before_relax): #if 0 old_fr_fix.
683 (allow_m32rx): Prototype.
684 (first_writes_to_seconds_operands): Prototype.
685 (writes_to_pc): Prototype.
686 (can_make_parallel): Prototype.
687 (make_parallel): Prototype.
688 (target_make_parallel): Prototype.
689 (assemble_two_insns): Prototype.
690 (m32r_record_hi16): Prototype.
691 (md_atof): Remove declaration of atof_ieee.
692 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
693 (m32r_force_relocation): Prototype.
694 (m32r_elf_section_change_hook): Prototype.
695 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
696 (md_show_usage): Fix signed/unsigned warning.
697 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
698 (calcop): Ditto for reg_prefix var.
699 (hexval): Add cast to fix signed/unsigned warning.
700 (md_number_to_disp): Delete unused function.
701 (md_number_to_field): Likewise.
702 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
703 (match_name): Prototype.
704 (get_bf2): Prototype.
705 (get_bf_offset_expression): Prototype.
706 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
707 (md_undefined_symbol <ignore>): Likewise.
708 (md_create_short_jump <all args>): Likewise.
709 (md_create_long_jump <all args>): Likewise.
710 (md_convert_frag <abfd, sec>): Likewise.
711 (md_apply_fix3 <segment>): Likewise.
712 (md_section_align <segment>): Likewise.
713 (md_pcrel_from_section <sec>): Likewise.
714 (tc_gen_reloc <section>): Likewise.
715 (reg_m, reg_n, immediate): Delete unused vars.
716 (dump_literals): Fix signed/unsigned warning.
717 (enter_literal): Likewise.
718 (parse_imm): Likewise. Also fix format string.
719 (parse_mem): Remove unused var.
720 (md_assemble <LS>): Abort on unexpected inst.
721 (md_atof): Remove declaration of atof_ieee.
722 (md_parse_option): Remove unused vars.
723 (md_apply_fix3): Fix format strings, cast args.
724 (tc_gen_reloc): Delete unused var.
725 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
726 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
727 (md_undefined_symbol <name>): Likewise.
728 (md_convert_frag <abfd>): Likewise.
729 (tc_gen_reloc <seg>): Likewise.
730 (check_operand <insn>): Likewise.
731 (md_convert_frag): Fix format strings.
732 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
733 * config/tc-openrisc.c (ignore_pseudo): Prototype.
734 (md_atof): Remove declaration of atof_ieee.
735 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
736 (md_apply_fix3): Fix bogus >>='s.
737 (md_undefined_symbol): Delete unused var.
738 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
739 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
740 (fake_opcode): Adjust for pj_opc_int_t change.
741 (md_begin): Likewise.
742 (md_assemble): Likewise.
743 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
744 instead of non-existent third arg of parse_exp_save_ilp.
745 (md_parse_option): Correct "little" and "big" calls.
746 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
747 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
748 (tc_gen_reloc <section>): Likewise.
749 * config/tc-tic30.c: #include stdarg.h or varargs.h.
750 (debug): Rewrite using VA_* macros.
751 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
752 (md_convert_frag): Likewise.
753 (md_parse_option): Likewise.
754 (md_show_usage): Likewise.
755 (md_undefined_symbol): Likewise.
756 (tc_gen_reloc): Likewise.
757 (md_operand): Likewise.
758 (tc_aout_pre_write_hook): Delete.
759 (struct tic30_insn): Make "operands" unsigned.
760 (struct tic30_par_insn): Likewise.
761 (md_assemble): Likewise for "count", "i" and "numops".
762 (tic30_parallel_insn): Likewise for vars here.
763 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
764 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
765 * config/tc-tic80.c (obj_coff_section): Delete declaration.
766 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
767 (md_undefined_symbol): Likewise.
768 (md_parse_option): Likewise.
769 (md_convert_frag): Likewise.
770 (tc_coff_symbol_emit_hook): Likewise.
771 (md_atof): Remove declaration of atof_ieee.
772 (const_overflow): Warning fixes, tidy.
773 (get_operands): Delete unused vars.
774 (internal_error_a): Adjust format string to expect a long for arg.
775 (find_opcode): Warning fixes, simplify.
776 (build_insn): Cast internal_error_a arg.
777 (md_begin): Likewise.
778 (md_apply_fix3): Likewise.
779 (md_assemble): Delete unused var.
780 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
781 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
782 (whatreg, parse_reg, parse_exp): Make static, prototype.
783 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
784 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
785 (get_operand, get_operands, get_specific, newfix): Likewise.
786 (apply_fix, build_bytes): Likewise.
787 (md_atof): Remove declaration of atof_ieee.
788 (tc_aout_fix_to_chars): Delete.
789 (md_begin): Constify "opcode". Don't try to init opcode->idx.
791 (md_parse_option): Fix s_segm and s_unseg calls.
793 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
795 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
797 (RELAX_BRANCH_RELOC_S2): Delete.
798 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
799 Do not handle BFD_RELOC_16_PCREL.
800 (macro_build, mips_ip): Likewise.
801 (md_pcrel_from): Return 4 for undefined symbols regardless of
803 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
804 Don't dereference howto if no such relocation is available.
805 Do not apply hack for in-place zero addend in NEWABI.
806 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
808 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
809 Alan Modra <amodra@bigpond.net.au>
811 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
812 (TC_LINKRELAX_FIXUP): Add comments.
814 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
816 * config/tc-mn10300.c (set_arch_mach): Change argument type to
818 (r_register_name, xr_register_name): Add prototype declarations.
820 2002-12-08 H.J. Lu <hjl@gnu.org>
822 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
823 copied from tc-i386.c.
825 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
827 Fix Bug savannah/1825:
828 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
829 (md_relax_table): Define specific relax for PC-rel offsets.
830 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
831 (m68hc11_relax_frag): Handle the new relax code.
832 (md_convert_frag): Likewise.
833 (md_estimate_size_before_relax): Likewise.
835 2002-12-08 Alan Modra <amodra@bigpond.net.au>
837 * subsegs.c (section_symbol): Use the symbol, not the section, name.
839 2002-12-05 Richard Henderson <rth@redhat.com>
841 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
842 (ia64_gen_real_reloc_type): Handle it.
843 (pseudo_func): Add @ltoffx.
844 (md_begin): Build .<ltoffx>.
845 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
847 2002-12-05 Alan Modra <amodra@bigpond.net.au>
849 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
850 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
851 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
852 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
853 COFF to call arm_force_relocation.
855 2002-12-04 David Mosberger <davidm@hpl.hp.com>
857 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
859 (emit_one_bundle): Handle "hint" instruction.
860 (operand_match): Match IA64_OPND_AR_CSD.
862 2002-12-04 Alan Modra <amodra@bigpond.net.au>
864 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
867 2002-12-03 Nick Clifton <nickc@redhat.com>
869 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
870 .PPC.EMB.apuinfo sections.
872 2002-12-03 Richard Henderson <rth@redhat.com>
874 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
876 2002-12-03 Alan Modra <amodra@bigpond.net.au>
878 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
879 (cons, s_align_bytes): Delete declaration.
881 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
883 (dot): Delete unused function.
884 (w65_expression): Remove unused arg.
885 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
887 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
889 (get_specific): Prototype. Constify "struct opinfo *" arg and return
891 (check): Remove unused function.
892 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
893 on unhandled switch case.
894 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
896 (tc_crawl_symbol_chain): Delete unused function.
897 (tc_headers_hook): Likewise.
898 (tc_Nout_fix_to_chars): Likewise.
899 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
900 (md_parse_option): Likewise.
901 (md_convert_frag): Likewise.
902 (tc_coff_symbol_emit_hook): Likewise.
903 (md_show_usage): Likewise.
904 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
905 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
906 (w65_expression): Declare.
908 * po/POTFILES.in: Regenerate.
910 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
911 and ARM_ADRL_IMMEDIATE.
913 2002-12-02 Nick Clifton <nickc@redhat.com>
915 * gasp.c: Delete. It has been deprecated.
916 * NEWS: Mention that gasp has been removed.
917 * Makefile.am: Remove references to gasp.
918 * makefile.vms: Likewise.
919 * mpw-make.sed: Likewise.
920 * Makeile.in: Regenerate.
921 * doc/gasp.texi: Delete.
922 * doc/Makefile.am: Remove references to gasp.texi.
923 * doc/Makefile.in: Regenerate.
924 * macro.c: Delete references to gasp.
925 Remove use of comment_char function parameter as it is no longer
927 * macro.h: Update prototypes to remove comment_char parameter.
929 * read.c (read_a_source_file, s_irp): Remove comment_char
930 parameter from invocation of functions in macro.c
932 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
934 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
936 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
938 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
939 (tc_gen_reloc): Mark section param as not used.
941 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
943 Fix Bug savannah/1825:
944 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
945 that are not pc-relative.
946 (m68hc11_relax_frag): Declare.
948 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
949 the offsetable indexed addressing modes (n,r).
950 (build_insn): Cleanup some locals.
951 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
952 relaxation of difference between two symbols of same section.
953 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
954 only when this is a PC-relative operand and the offset is not absolute.
955 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
956 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
957 be handled by m68hc11_relax_frag.
959 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
961 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
962 (32-bit int, 64-bit double).
963 (md_longopts): New options -mshort, -mlong, -mshort-double and
964 -mlong-double to control the ABI.
965 (md_show_usage): Update.
966 (md_parse_option): Handle new options.
967 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
969 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
971 * symbols.c (report_op_error): New function, broken out of ...
972 (resolve_symbol_value): ... here. Use for both monadic and dyadic
975 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
977 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
978 for BFD_RELOC_32_PLT_PCREL.
980 2002-11-30 Alan Modra <amodra@bigpond.net.au>
982 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
983 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
984 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
985 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
986 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
987 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
988 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
989 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
990 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
991 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
992 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
993 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
994 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
995 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
996 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
997 TRUE/FALSE. Formatting.
999 2002-11-29 Nick Clifton <nickc@redhat.com>
1001 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1002 assume a value of zero.
1003 (do_bkpt): Likewise.
1005 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1007 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1008 for TLS relocations.
1010 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1012 * config/tc-ia64.c (md_apply_fix3): Add default case.
1014 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1016 * symbols.c (S_SET_THREAD_LOCAL): New function.
1017 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1018 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1019 for TLS relocations.
1020 * config/tc-ia64.c (md_apply_fix3): Likewise.
1021 * config/tc-alpha.c (md_apply_fix3): Likewise.
1023 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1025 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1028 2002-11-26 DJ Delorie <dj@redhat.com.
1030 * dwarf2dbg.c (scale_addr_delta): New.
1031 (size_inc_line_addr): Use it.
1032 (emit_inc_line_addr): Use it.
1034 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1036 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1037 (md_assemble): Don't pass on branches to constants as relaxable.
1040 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1042 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1044 2002-11-21 Randolph Chung <randolph@tausq.org>
1046 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1047 only if they have default visibility.
1049 2002-11-21 Richard Henderson <rth@redhat.com>
1051 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1054 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1056 * config/tc-mcore.c (mcore_pool_count): New function.
1057 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1059 2002-11-20 Klee Dienes <kdienes@apple.com>
1061 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1062 coalesce the name fields to use the same pointer.
1064 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1065 the name fields to use the same pointer.
1066 (get_specific): Check for opcodes with the same name using strcmp
1067 as well as comparing the pointer.
1069 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1071 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1074 2002-11-19 Richard Henderson <rth@redhat.com>
1076 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1077 visibility portion of st_other.
1079 2002-11-19 Klee Dienes <kdienes@apple.com>
1081 * config/tc-h8300.c (struct h8_instruction): New type, used to
1082 wrap h8_opcodes with length, noperands, idx, and size fields
1083 (computed at run-time).
1084 (h8_instructions): New variable.
1085 (md_begin): Allocate the storage for h8_instructions. Fill
1086 h8_instructions with pointers to the appropriate opcode and the
1087 correct value for the additional fields.
1088 (clever_message): Update to use h8_instructions instead of
1090 (build_bytes): Ditto.
1091 (get_specific): Ditto.
1092 (md_assemble): Ditto.
1094 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1096 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1097 adjustments to symbols in merge sections.
1099 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1101 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1103 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1105 * dwarf2dbg.h (dwarf2_format): New enum.
1106 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1107 (out_debug_line, out_debug_info): Add code for handling 64-bit
1109 * config/tc-mips.h (mips_dwarf2_format): Declare.
1110 * config/tc-mips.c (mips_dwarf2_format): New function.
1111 * doc/internals.texi (DWARF2_FORMAT): Document.
1113 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1115 * config/tc-mips.c (s_change_section): Make sure input buffer
1116 is not accessed past the end. Don't hand
1117 obj_elf_change_section a pointer into the input buffer.
1119 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1121 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1124 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1126 * config/tc-tic4x.c: Fixed proper commandline
1127 parameters. Added support for new opcode-list format. General
1128 error message fixups.
1129 (c4x_inst_add): Reject insn not for our CPU
1130 (md_begin): Added matrix for setting the proper opcode-level &
1131 device-flags according to cpu type and revision. Rewrite the
1133 (c4x_operand_parse): Fix opcode bug
1134 (c4x_operands_match): New function argument. Added dry-run
1135 mechanism, that is optional error generation. Added constraint 'i'
1137 (c4x_insn_check): Added new function for post-verification of the
1139 (md_assemble): Check all opcodes before croaking because of an
1140 argument mismatch. Need this to be able to fully support
1141 ortogonally arguments.
1142 (md_parse_options): Revised commandprompt swicthes and added new
1144 (md_show_usage): Complete rewrite of printout.
1146 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1148 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1149 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1150 warning when using constant direct bigger than 2^16. Add the new
1153 2002-11-11 Christopher Faylor <cgf@redhat.com>
1155 * configure.in: Use .gdbinit under Cygwin.
1156 * configure: Regenerate.
1158 2002-11-11 Christopher Faylor <cgf@redhat.com>
1160 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1163 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1165 * config/tc-tic4x.c: Declare as many functions as possible as
1166 static. Maintenance on the general indenting. Removed unnecessary
1167 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1168 function. Add support for new DSP, TMS320VC33. Fix bug for
1169 converting flonum constants.
1170 (c4x_do_align): Add proper align handling. Setup align to insert
1172 (c4x_gen_to_words): Support for extended TI type floats.
1173 (md_atof): Proper dumping of multiple-word littlenums.
1174 (c4x_atof): Added support for extended TI type floats.
1175 (c4x_stringer): Added new function to handle compact strings.
1176 (c4x_emit_char): Added new function argument to handle custom
1177 length inserts, like single-byte strings.
1178 * config/tc-tic4x.h: Add proper align handling with NOP's.
1179 * Makefile.am: Added tic4x dependecy
1180 * Makefile.in: Regenerate
1182 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1184 * macro.c (get_any_string): Correct logic for not going beyond end
1187 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1189 * config/tc-mmix.c (get_putget_operands): Mark both possible
1190 operands as invalid at beginning.
1192 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1193 Initialize target of fixup to zero.
1195 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1197 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1198 NEWABI, but we should still emit HI16_S for non-PIC n32.
1200 2002-11-06 Richard Henderson <rth@redhat.com>
1202 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1203 (alpha_fix_adjustable): ... here.
1204 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1206 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1208 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1211 2002-11-05 H.J. Lu <hjl@gnu.org>
1213 * config/tc-mips.c (support_64bit_objects): Check *l before it
1216 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1218 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1219 SEC_LOAD flags for sections marked as 's'.
1221 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1223 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1224 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1225 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1228 * dep-in.sed: Fix typo.
1230 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1232 * configure.in: Update ARM CPU patterns.
1233 * configure: Regenerated.
1235 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1237 * itbl-lex.l: Use #include <> for generated headers.
1238 * itbl-ops.c: Likewise.
1240 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1242 * doc/gasp.texi: Fix typo in deprecation note.
1244 2002-10-23 Nick Clifton <nickc@redhat.com>
1246 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1247 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1249 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1251 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1252 (tc_frob_file_before_adjust): Don't define.
1253 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1255 (mmix_frob_file_before_adjust): Remove ineffective function.
1257 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1259 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1260 (cris_relax_frag): New function.
1261 (md_estimate_size_before_relax) <case ENCODE_RELAX
1262 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1263 expressions that will become absolute expressions to relaxation.
1264 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1265 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1266 value, not distance to symbol.
1267 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1268 Ditto. Correct placement of fixup.
1269 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1271 * config/tc-cris.h (cris_relax_frag): Declare.
1272 (md_relax_frag): Define.
1274 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1276 * config/obj-elf.c (special_sections): Use correct types for init
1278 (obj_elf_change_section): Don't mess with init array section type.
1280 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1282 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1283 for relocs against symbols in a merged section.
1285 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1287 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1288 table as register names.
1290 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1292 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1295 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1297 * expr.c (operand): Add support for n.nn flonums.
1299 2002-10-17 Johannes Stezenbach <js@convergence.de>
1301 * itbl-parse.y (entry): Provide empty action.
1303 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1305 * configure.in (BFDVER_H): Set and subst.
1306 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1307 * Makefile.am: Run "make dep-am".
1309 * configure: Regenerate.
1310 * Makefile.in: Regenerate.
1311 * doc/Makefile.in: Regenerate.
1313 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1315 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1316 (MD_APPLY_SYM_VALUE): Define for PE too.
1318 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1320 * Makefile.am: Run "make dep-am".
1321 (CPU_OBJ_VALID): sh64 coff is invalid.
1322 * as.c: #include "bfdver.h".
1323 * Makefile.in: Regenerate.
1324 * config.in: Regenerate.
1326 2002-10-14 Momchil Velikov <velco@fadata.bg>
1328 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1330 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1332 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1333 * configure: Regenerate.
1335 2002-10-13 Eric Christopher <echristo@redhat.com>
1336 Alexandre Oliva <aoliva@redhat.com>
1338 * config/tc-mips.c (s_gpdword): New function.
1339 (mips_pseudo_table): Add .gpdword.
1340 (mips_need_elf_addend_fixup): never for NEWABI.
1341 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1343 (s_cpadd): Generate .cpadd on NEWABI.
1345 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1347 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1349 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1351 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1352 (md_relax_frag): Adjust macro.
1353 * config/tc-mips.c (mips_relax_branch): New variable.
1354 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1355 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1356 (RELAX_MIPS16_P): Adjust.
1357 (append_insn): Emit branch to non-constant in a frag_var if
1358 branch-relaxation is desirable and possible.
1359 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1360 (OPTION_ELF_BASE): Adjust.
1361 (md_parse_option): Handle new options.
1362 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1364 (relaxed_branch_length): New function.
1365 (md_estimate_size_before_relax): Handle branch frags.
1366 (mips_relax_frag): Likewise.
1367 (md_convert_frag): Handle branch frags. Warn if branch is
1370 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1372 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1374 (md_apply_fix3): Add TLS relocs.
1375 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1378 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1379 Alan Modra <amodra@bigpond.net.au>
1381 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1382 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1384 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1386 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1389 2002-10-09 Richard Shann <richard.shann@superh.com>
1390 Stephen Clarke <stephen.clarke@superh.com>
1392 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1395 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1397 * contig/tc-sh.c (sh_local_pcrel): New.
1398 (sh_force_relocation): Use sh_local_pcrel.
1399 (md_pcrel_from_section): Check the relocation type whether it
1400 should be resolved locally. Use S_FORCE_RELOC.
1402 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1404 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1405 (TC_FORCE_RELOCATION): Tidy arg.
1407 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1408 Ken Raeburn <raeburn@cygnus.com>
1409 Aldy Hernandez <aldyh@redhat.com>
1410 DJ Delorie <dj@redhat.com>
1411 Michael Meissner <meissner@redhat.com>
1412 Eric Christopher <echristo@redhat.com>
1413 Richard Sandiford <rsandifo@redhat.com>
1415 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1416 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1417 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1418 (hilo_interlocks): True for CPU_VR5500.
1419 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1420 (mips_fix_vr4122_bugs): New.
1421 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1422 (mips_emit_delays): Likewise.
1423 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1424 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1425 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1426 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1427 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1428 (OPTION_ELF_BASE): Bump.
1429 (md_parse_option): Handle the new options.
1430 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1433 2002-09-29 H.J. Lu <hjl@gnu.org>
1435 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1436 twice if howto->pcrel_offset is true.
1438 2002-09-28 Matt Thomas <matt@3am-software.com>
1439 Jason Thorpe <thorpej@wasabisystems.com>
1441 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1442 convert undefined references to GOT32/PLT32 if PIC code is
1443 requested. Fix comment.
1445 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1447 * config/tc-sh.c (sh_force_relocation): Return 0 for
1448 some PC relative relocations when not relaxing.
1450 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1452 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1453 Define them if not BFD_ASSEMBLER.
1454 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1456 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1457 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1458 (tc_gen_reloc): Handle x86-64 TLS relocs.
1460 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1462 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1463 fixups to current or absolute section.
1465 2002-09-26 Jim Wilson <wilson@redhat.com>
1467 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1470 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1472 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1473 capable configuration.
1474 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1476 (mips_ip): Likewise.
1478 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1480 * config/tc-mips.c (append_insn): Fix jump overflow check.
1482 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1484 * config/tc-i386.c (process_operands): Warn about "lea" segment
1487 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1489 * write.c: Delete set_segment_vma and prototype. Update all callers.
1491 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1493 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1494 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1495 Rename "fseg" to "sym_seg".
1496 * Makefile.am: Run "make dep-am".
1497 * Makefile.in: Regenerate.
1498 * doc/Makefile.in: Regenerate.
1500 2002-09-20 Nick Clifton <nickc@redhat.com>
1502 * symbols.c (colon): Do not allow symbols to be created in the
1503 absolute section if WORKING_DOT_WORD is not defined and
1504 new_broken_words would require a new frag to be created.
1506 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1508 * expr.c (expr): Simplify foo-foo here.
1509 (clean_up_expression): Remove O_subtract code.
1511 * write.h (struct fix): Add fx_dot_value.
1512 (dot_value): Declare.
1513 * write.c (dot_value): New var.
1514 (fix_new_internal): Save dot_value as fx_dot_value.
1515 (fixup_segment): Adjust fx_offset using fx_dot_value.
1516 * expr.c (expr): Update dot_value.
1518 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1520 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1521 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1522 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1524 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1525 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1526 BFD_RELOC_386_TLS_GOTIE.
1528 2002-09-19 Richard Henderson <rth@redhat.com>
1530 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1532 (alpha_force_relocation): Don't special-case branch type relocs.
1534 2002-09-19 Nick Clifton <nickc@redhat.com>
1536 * config/tc-m68k.c (select_control_regs): Handle situation where
1537 architecture has not yet been selected.
1539 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1541 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1542 (IS_SEXT_16BIT_NUM): New macro.
1543 (macro_build_ldst_constoffset): New function, to build a set of
1544 instructions to do a load or store from a constant offset relative
1545 to a given register.
1546 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1547 .cprestore pseudo-op.
1549 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1551 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1553 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1555 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1557 2002-09-17 Stan Cox <scox@redhat.com>
1559 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1560 (macro): Likewise for la. Likewise for ld.
1561 (mips_after_parse_args): Make -xgot optional, not the default.
1562 (md_apply_fix3): Allow composite relocation to set up gp.
1563 (tc_gen_reloc): Allow relaxing for newabi.
1564 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1565 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1567 2002-09-17 Nick Clifton <nickc@redhat.com>
1569 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1570 BFD_RELOC_ARM_IMMEDIATE has been done.
1571 (tc_gen_reloc): Do not issue reloc number of unimplemented
1572 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1573 their name is already in the error message - plus remove them
1574 from the default case.
1576 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1577 behavior of instructions.
1579 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1581 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1582 Convert functions to K&R format.
1584 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1586 * config/tc-mips.c (pdr_seg): Define only for ELF.
1587 (s_change_section): Remove unused variable. Don't use for nonELF.
1589 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1591 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1593 * config/obj-elf.h (obj_elf_change_section): Likewise.
1595 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1597 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1598 (out_debug_info): Likewise.
1600 2002-09-16 Bruno Haible <bruno@clisp.org>
1602 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1603 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1604 * config/tc-i386.c (i386_target_format): Likewise.
1605 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1606 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1608 2002-09-13 Nick Clifton <nickc@redhat.com>
1610 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1611 when deciding if any operands have been skipped.
1613 2002-09-11 Nick Clifton <nickc@redhat.com>
1615 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1617 * po/tr.po: Updated Turkish translation.
1619 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1621 * config/tc-i386.c (md_apply_fix3): Allow addend for
1622 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1623 BFD_RELOC_386_TLS_LE_32.
1625 2002-09-05 Jeff Law <law@redhat.com>
1627 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1628 marker relocations such as ENTRY/EXIT.
1629 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1630 to both OBJ_ELF and OBJ_SOM.
1632 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1634 * doc/internals.texi (md_apply_fix3): Expand.
1635 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1636 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1637 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1638 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1639 EXTERN_FORCE_RELOC): Document.
1640 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1641 * as.h: Don't include struc-symbol.h for arc.
1643 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1644 subtract absolute symbol.
1645 * obj.h (struct format_ops): Add frob_file_before_fix.
1646 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1647 * symbols.c (S_FORCE_RELOC): New function.
1648 * symbols.h (S_FORCE_RELOC): Declare.
1649 * write.c (TC_FORCE_RELOCATION): Change default.
1650 (TC_FORCE_RELOCATION_ABS): Define.
1651 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1652 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1653 (TC_FORCE_RELOCATION_SECTION): Don't define.
1654 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1655 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1656 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1657 (TC_VALIDATE_FIX_SUB): Define.
1658 (TC_FIX_ADJUSTABLE): Don't define.
1659 (MD_APPLY_SYM_VALUE): Define this instead.
1660 (abs_section_sym): New variable.
1661 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1662 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1663 Don't put the absolute section sym on fixups here.
1664 (fix_segment): New function.
1665 (write_relocs): Don't call fixup_segment from here.
1666 (write_object_file): Instead call tc_frob_file_before_fix,
1667 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1668 Don't output the absolute section symbol.
1669 (fixup_segment): Rewrite.
1670 * write.h (abs_section_sym): Declare.
1671 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1673 (aout_format_ops): Adjust to suit.
1674 * config/obj-aout.h (obj_frob_file): Don't define.
1675 (obj_frob_file_before_fix): Define.
1676 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1677 (S_FORCE_RELOC): Define.
1678 * config/obj-bout.h (S_FORCE_RELOC): Define.
1679 * config/obj-coff.c (coff_format_ops): Init new field.
1680 * config/obj-coff.h: Formatting fixes.
1681 (obj_sec_sym_ok_for_reloc): Define.
1682 (S_FORCE_RELOC): Define.
1683 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1684 (ecoff_frob_file): .. from here.
1685 (ecoff_format_ops): Add new function.
1686 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1687 (obj_frob_file_before_fix): Define.
1688 * config/obj-elf.c (elf_format_ops): Init new field.
1689 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1690 * config/obj-ieee.h: Formatting fixes.
1691 (S_FORCE_RELOC): Define.
1692 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1693 * config/obj-vms.h (S_FORCE_RELOC): Define.
1694 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1695 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1696 for BFD_RELOC_32 and BFD_RELOC_64.
1697 (alpha_fix_adjustable): Remove extern and weak tests.
1698 (alpha_before_fix): Rename from alpha_adjust_symtab.
1699 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1700 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1701 (TC_VALIDATE_FIX): Tweak param name.
1702 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1703 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1704 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1705 (MD_APPLY_SYM_VALUE): Define.
1706 (tc_adjust_symtab): Don't define.
1707 (alpha_adjust_symtab): Don't declare.
1708 (tc_frob_file_before_fix): Define.
1709 (alpha_before_fix): Declare.
1710 (TC_INIT_FIX_DATA): Tweak param names.
1711 * config/tc-arc.c: Include "struc-symbol.h".
1712 (md_pcrel_from): Remove undefined sym fudge.
1713 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1714 Don't set fx_addnumber.
1715 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1716 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1717 (EXTERN_FORCE_RELOC): Define.
1718 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1719 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1720 (arm_validate_fix): Return void.
1721 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1722 Add plt and got reloc tests.
1723 (arm_force_relocation): Call S_FORCE_RELOC.
1724 * config/tc-arm.h (struct fix): Forward declare.
1725 (TC_VALIDATE_FIX): No longer set add_symbolP.
1726 (arm_validate_fix): Adjust declaration.
1727 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1728 (TC_FORCE_RELOCATION): Tweak param name.
1729 (TC_INIT_FIX_DATA): Likewise.
1730 (obj_fix_adjustable): Don't define.
1731 (tc_fix_adjustable): Call arm_fix_adjustable.
1732 (TC_FIX_ADJUSTABLE): Don't define.
1733 (MD_APPLY_SYM_VALUE): Define.
1734 (EXTERN_FORCE_RELOC): Define.
1735 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1736 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1737 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1738 Remove *valP fudges and code to subtract abs sym. Don't set
1740 * config/tc-avr.h: Formatting.
1741 (EXTERN_FORCE_RELOC): Define.
1742 (MD_APPLY_SYM_VALUE): Define.
1743 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1744 (md_apply_fix3): Remove code to subtract abs sym.
1745 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1746 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1747 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1748 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1749 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1750 (tc_fix_adjustable): Remove extern, weak tests.
1751 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1752 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1753 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1754 and code to subtract abs sym.
1755 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1756 (d10v_force_relocation): Call S_FORCE_RELOC.
1757 * config/tc-d10v.h: Don't include write.h.
1758 (struct fix): Instead, forward declare.
1759 (MD_PCREL_FROM_SECTION): Tweak param names.
1760 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1761 (d10v_fix_adjustable): Likewise.
1762 (obj_fix_adjustable): Don't define.
1763 (tc_fix_adjustable): Define.
1764 (TC_FORCE_RELOCATION): Tweak param name.
1765 (MD_APPLY_SYM_VALUE): Define.
1766 (EXTERN_FORCE_RELOC): Define.
1767 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1768 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1769 and code to subtract abs sym.
1770 * config/tc-d30v.h: Don't include write.h.
1771 (struct fix): Instead, forward declare.
1772 (MD_PCREL_FROM_SECTION): Tweak param names.
1773 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1774 (MD_APPLY_SYM_VALUE): Define.
1775 (EXTERN_FORCE_RELOC): Define.
1776 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1777 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1778 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1779 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1780 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1781 Don't use fx_addnumber.
1782 * config/tc-dlx.h: Don't include write.h.
1783 (md_convert_frag): We're not alpha twice over.
1784 (EXTERN_FORCE_RELOC): Define.
1785 (obj_fix_adjustable): Don't define.
1786 (tc_fix_adjustable): Define.
1787 (TC_FIX_ADJUSTABLE): Don't define.
1788 (MD_APPLY_SYM_VALUE): Define.
1789 (LOCAL_LABELS_DOLLAR): Undef always.
1790 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1791 (fr30_fix_adjustable): Remove extern, weak tests.
1792 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1793 (obj_fix_adjustable): Don't define.
1794 (tc_fix_adjustable): Define.
1795 (struct fix): Forward declare.
1796 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1797 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1798 (frv_fix_adjustable): Don't do extern, weak tests.
1799 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1800 (TC_FIX_ADJUSTABLE): Don't define.
1801 (obj_fix_adjustable): Don't define.
1802 (tc_fix_adjustable): Define.
1803 (struct fix): Forward declare.
1804 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1805 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1806 * config/tc-h8300.h (struct fix): Forward declare.
1807 (EXTERN_FORCE_RELOC): Define.
1808 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1809 (hppa_fix_adjustable): Don't test extern or weak. Don't
1810 symbol_mark_used_in_reloc.
1811 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1813 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1814 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1815 (TC_FORCE_RELOCATION_SECTION): Don't define.
1816 (MD_APPLY_SYM_VALUE): Define.
1817 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1818 to subtract abs sym.
1819 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1820 (MD_APPLY_SYM_VALUE): Define.
1821 (MD_PCREL_FROM_SECTION): Tweak param name.
1822 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1823 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1824 (i386_force_relocation): New function.
1825 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1826 (TC_VALIDATE_FIX): Likewise.
1827 (TC_FIX_ADJUSTABLE): Don't define.
1828 (MD_APPLY_SYM_VALUE): Define.
1829 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1830 (i386_force_relocation): Declare.
1831 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1832 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1833 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1834 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1835 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1836 (EXTERN_FORCE_RELOC): Define.
1837 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1838 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1839 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1840 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1841 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1842 Remove #if 0 code. Invert return boolean.
1843 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1844 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1845 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1846 (tc_coff_sizemachdep): Prototype.
1847 (i960_handle_align): Likewise.
1848 (i960_validate_fix): Adjust declaration.
1849 (reloc_callj): Likewise.
1850 (EXTERN_FORCE_RELOC): Define.
1851 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1852 (TC_FORCE_RELOCATION_ABS): Define.
1853 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1854 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1855 (TC_FIX_ADJUSTABLE): Don't define.
1856 (MD_APPLY_SYM_VALUE): Define.
1857 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1858 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1859 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1860 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1861 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1862 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1863 (MD_APPLY_SYM_VALUE): Define.
1864 (EXTERN_FORCE_RELOC): Define.
1865 (TC_FORCE_RELOCATION): Tweak param name.
1866 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1867 (m32r_fix_adjustable): Don't test extern, weak.
1868 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1869 (MD_APPLY_SYM_VALUE): Define.
1870 (obj_fix_adjustable): Don't define.
1871 (tc_fix_adjustable): Define.
1872 (tc_frob_file): Don't define.
1873 (tc_frob_file_before_fix): Define.
1874 (EXTERN_FORCE_RELOC): Define.
1875 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1876 BFD_RELOC_VTABLE_ENTRY address.
1877 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1878 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1879 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1880 Remove duplicated fx_done code.
1881 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1882 (EXTERN_FORCE_RELOC): Define.
1883 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1885 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1886 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1887 (TC_FIX_ADJUSTABLE): Don't define.
1888 (EXTERN_FORCE_RELOC): Define.
1889 (MD_APPLY_SYM_VALUE): Define.
1890 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1891 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1892 Remove fx_addsy tests.
1893 (mcore_force_relocation): Call S_FORCE_RELOC.
1894 (mcore_fix_adjustable): Don't test fx_addsy.
1895 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1896 (EXTERN_FORCE_RELOC): Define.
1897 (obj_fix_adjustable): Don't define.
1898 (tc_fix_adjustable): Define.
1899 (MD_APPLY_SYM_VALUE): Define.
1900 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1901 (mips_pic): No longer static.
1902 (mips_force_relocation): Call S_FORCE_RELOC.
1903 (mips_fix_adjustable): Remove extern, weak tests.
1904 * config/tc-mips.h (enum mips_pic_level): Declare.
1905 (mips_pic): Declare.
1906 (tc_frob_file): Don't define.
1907 (tc_frob_file_before_fix): Define this instead.
1908 (EXTERN_FORCE_RELOC): Define.
1909 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1910 with reg_section tests. Set fx_done instead of calling
1911 symbol_clear_used_in_reloc on bad relocs.
1912 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1913 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1914 (mmix_adjust_symtab): Simplify list handling. Abort on any
1916 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1917 BFD_RELOC_MMIX_LOCAL.
1918 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1919 (EXTERN_FORCE_RELOC): Define.
1920 (MD_PCREL_FROM_SECTION): Tweak param name.
1921 (tc_frob_file): Don't define.
1922 (tc_frob_file_before_fix): Define this instead.
1923 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1924 Remove SEC_CODE checks.
1925 (mn10300_fix_adjustable): Remove extern and weak tests.
1926 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1927 (TC_FORCE_RELOCATION): Tweak param name.
1928 (obj_fix_adjustable): Don't define.
1929 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1930 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1931 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1932 (openrisc_fix_adjustable): Don't test fx_addsy.
1933 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1934 (obj_fix_adjustable): Don't define.
1935 (tc_fix_adjustable): Define this instead.
1936 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1937 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1938 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1939 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1940 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1941 (MD_APPLY_SYM_VALUE): Define.
1942 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1943 Don't subtract symbol value.
1944 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1945 (EXTERN_FORCE_RELOC): Define.
1946 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1947 (MD_APPLY_SYM_VALUE): Define.
1948 (obj_fix_adjustable): Don't define.
1949 (tc_fix_adjustable): Define this instead.
1950 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1952 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1953 (ppc_force_relocation <elf version>): New.
1954 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1955 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1956 comments. Don't subtract fx_subsy as that is already done.
1957 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1958 (MD_PCREL_FROM_SECTION): Likewise.
1959 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1960 ppc_force_relocation.
1961 (TC_FORCE_RELOCATION_SECTION): Delete.
1962 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1963 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1964 (MD_APPLY_SYM_VALUE): Define.
1965 * config/tc-s390.c: #include "dwarf2dbg.h".
1966 (s390_insn): Remove excess parens.
1967 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1968 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1969 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1970 non-NULL. Don't subtract off fx_addsy value.
1971 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1972 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1973 (TC_FIX_ADJUSTABLE): Don't define.
1974 (MD_APPLY_SYM_VALUE): Define.
1975 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1976 (SWITCH_TABLE): Likewise.
1977 (sh_force_relocation): Call S_FORCE_RELOC.
1978 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1979 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1980 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1981 fx_addnumber is zero on entry. Save val in fx_addnumber.
1982 (tc_gen_reloc): Don't subtract fx_subsy.
1983 * config/tc-sh.h (struct fix): Move.
1984 (obj_fix_adjustable): Don't define.
1985 (tc_fix_adjustable): Define this instead.
1986 (TC_FIX_ADJUSTABLE): Don't define.
1987 (MD_APPLY_SYM_VALUE): Define.
1988 (SWITCH_TABLE_CONS): Define.
1989 (SWITCH_TABLE): Define.
1990 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1991 (TC_VALIDATE_FIX_SUB): Define.
1992 (MD_PCREL_FROM_SECTION): Tweak param name.
1993 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1994 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1995 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1996 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1997 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1998 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1999 (TC_VALIDATE_FIX_SUB): Define.
2000 (MD_PCREL_FROM_SECTION): Tweak param name.
2001 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2002 (tc_gen_reloc): Use S_FORCE_RELOC.
2003 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2004 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2005 (TC_FORCE_RELOCATION_ABS): Define this instead.
2006 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2007 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2008 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2009 (MD_APPLY_SYM_VALUE): Define.
2010 (TC_FIX_DATA_PRINT): Tweak param name.
2011 * config/tc-tic30.c (USE_STDOUT): Don't define.
2012 (md_parse_option): Remove stupid debug code.
2013 (tc_gen_reloc): Don't use fx_addnumber.
2014 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2015 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2016 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2017 (tc_fix_adjustable): Define this instead.
2018 (TC_FIX_ADJUSTABLE): Don't define.
2019 (MD_APPLY_SYM_VALUE): Define this instead.
2020 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2021 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2022 (TC_FIX_ADJUSTABLE): Don't define.
2023 (MD_APPLY_SYM_VALUE): Define this instead.
2024 (tc_fix_adjustable): Remove extern and weak tests.
2025 * config/tc-w65.h (struct fix): Forward declare.
2026 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2028 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2029 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2030 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2032 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2033 (MD_APPLY_SYM_VALUE): Define.
2034 (obj_fix_adjustable): Don't define.
2035 (tc_fix_adjustable): Define this instead.
2036 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2038 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2040 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2041 (ppc_fix_adjustable <coff version>): Cleanup.
2043 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2044 (md_parse_option): No -a64 without BFD64.
2045 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2046 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2048 2002-09-04 Nick Clifton <nickc@redhat.com>
2050 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2051 instructions into the hash table if the target cpu is the BookE32.
2053 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2055 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2058 2000-08-28 Catherine Moore <clm@redhat.com>
2060 * tc-v850.c (v850_relax): Declare.
2061 (v850_longcode): New routine.
2062 (v850_handle_align): New routine.
2063 (md_pseudo_table): Add longcall and longjump.
2064 (md_parse_option): Check for relax option.
2065 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2066 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2067 (md_apply_fix3): Likewise.
2068 (v850_force_relocation): Likewise.
2069 (v850_comm): Change the current section.
2070 (md_assemble): Ensure that the correct value is put in the
2072 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2073 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2074 Remove redundant v850ea support.
2075 * tc-v850.h (HANDLE_ALIGN): Define.
2076 (v850_handle_align): Declare.
2077 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2079 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2081 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2082 * configure: Regenerate.
2083 * NEWS: Mention new port.
2085 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2087 * config/obj-coff.c: Add sdef definition.
2088 * config/obj-coff.h: Add tic4x include file and set
2090 * config/tc-tic4x.c: New file.
2091 * config/tc-tic4x.h: New file.
2093 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2095 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2096 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2097 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2098 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2099 (RELOC_ENUM): Define.
2100 (fix_new_internal): Use RELOC_ENUM.
2101 (fix_new, fix_new_exp): Likewise.
2102 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2103 Replace gotos with continue.
2104 (write_relocs): Formatting. Avoid symbol loops in
2105 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2106 errors, and error number in other cases.
2107 (fixup_segment): Remove param names from prototype. Rename
2108 "this_segment_type" to "this_segment". Update linkrelax comment.
2109 Remove "size, "place" and "where" local vars. Formatting. Update
2110 "no symbol" comment. Remove #if 0 and #if 1.
2112 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2114 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2116 * dwarf2dbg.c: Always include dwarf2dbg.h.
2117 (dwarf2_directive_file): Adjust dummy version args.
2118 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2119 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2120 when symbol values differ.
2121 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2122 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2123 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2125 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2127 * config/tc-w65.c (md_section_align): Fix typo.
2128 (md_parse_option): Return 0, not 1.
2130 2002-08-22 Nick Clifton <nickc@redhat.com>
2132 * doc/as.texinfo (Section): Note that if '@' is a comment
2133 character then another symbol is used to prefix the section's
2136 2002-08-22 Christian Groessler <chris@groessler.org>
2138 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2141 2002-08-12 Graeme Peterson <gp@qnx.com>
2143 * configure.in: Add support for sh-**-nto* target.
2144 * configure: Regenerate.
2146 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2148 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2150 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2152 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2154 (ppc_apuinfo_section_add): Define only if format is ELF.
2155 (md_assemble): Emit APUinfo section only if format is ELF.
2158 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2160 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2161 * config/tc-frv.c: Likewise.
2162 * config/tc-hppa.c: Likewise.
2163 * config/tc-ia64.c: Likewise.
2164 * config/tc-ip2k.c: Likewise.
2165 * config/tc-m68hc11.c: Likewise.
2166 * config/tc-m68k.c: Likewise.
2167 * config/tc-mmix.c: Likewise.
2168 * config/tc-mn10300.c: Likewise.
2169 * config/tc-sh.c: Likewise.
2170 * config/tc-sparc.c: Likewise.
2171 * config/tc-v850.c: Likewise.
2173 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2175 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2178 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2180 From matthew green <mrg@redhat.com>
2182 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2183 PPC_OPCODE_PPC is, except for BookE architectures.
2184 (md_parse_option): Add support for -mspe.
2185 (md_show_usage): Add -mspe.
2186 (md_parse_option): Add support for -me500 and
2187 -me500x2 to generate code for Motorola e500 core complex.
2188 (md_show_usage): Add -me500 and -me500x2.
2190 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2191 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2192 PPC_APUINFO_BRLOCK): New macros.
2194 (ppc_cleanup): New function.
2195 (ppc_apuinfo_section_add): New function.
2197 (md_assemble): Collect info and write the APUinfo section.
2199 * config/tc-ppc.h (md_cleanup): Define.
2200 (ppc_cleanup): Export.
2201 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2203 2002-08-17 Stan Cox <scox@redhat.com>
2205 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2206 config/tc-mips.c (s_change_section): New function to support
2207 IRIX .section pseudo-op.
2209 2002-08-16 Nick Clifton <nickc@redhat.com>
2211 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2213 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2215 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2216 the fix-up against on the right frag.
2217 (s_cpsetup): Likewise. Parse third argument as expression, to
2218 handle global symbols and forward/backward labels correctly.
2220 2002-08-14 Nick Clifton <nickc@redhat.com>
2222 * read.c (stringer): Catch attempts to create strings in the abs
2225 * config/tc-alpha.c: Fix compiling for COFF targets.
2226 Some minor formatting tidyups.
2228 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2230 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2231 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2232 according to the reloc.
2233 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2234 (TC_FORCE_RELOCATION): Define.
2235 (tc_m68hc11_force_relocation): Declare.
2237 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2238 (s_m68hc11_relax): New function for relax group.
2239 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2240 beginning of jump instruction.
2241 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2242 address computation.
2243 (tc-gen_reloc): Update.
2244 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2246 (tc_m68hc11_force_relocation): New function, handle new relocs.
2247 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2248 reloc for the linker relax pass.
2249 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2252 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2254 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2255 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2256 (s_m68hc11_mode): New function for .mode pseudo op.
2257 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2259 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2260 (m68hc11_elf_final_processing): Declare.
2262 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2264 * config/tc-m68hc11.c (md_begin): Take into account additional
2265 page operand for call instruction.
2266 (print_opcode_format): Likewise.
2267 (check_range): Likewise for page range checking.
2268 (get_operand): Don't skip a possible comma in operands.
2269 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2270 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2271 (fixup24): New to handle call reloc.
2272 (build_insn): Handle missing page operand for call instruction.
2274 (md_apply_fix3): Take into account new relocs.
2275 (get_operand): Fix the mode for indexed indirect addressing.
2276 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2278 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2280 * config/tc-mips.c (mips_ip): Don't work out the value of
2281 constant %hi()s here.
2283 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2285 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2286 for ELF, and don't bother checking ELF relocs when non-ELF.
2287 (i386_immediate): Allow absolute_section expressions for aout.
2288 (i386_displacement): Likewise. Also test bfd_is_com_section.
2289 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2290 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2291 not when fx_addsy. Remove dead code.
2293 2002-08-09 Graeme Peterson <gp@qnx.com>
2295 * configure.in: Add support for ppc-*-nto* target.
2296 * configure: Regenerate.
2298 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2300 * config/tc-i386.h: Reorganize.
2302 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2304 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2305 immediate offset in "dla" and "la" expansions.
2307 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2309 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2310 Remove "bfd_gas=yes" from target table when covered later.
2311 Consolidate some entries.
2312 * configure: Regenerate
2314 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2316 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2317 at start of insn, pass it to output_disp and output_imm.
2318 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2319 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2321 (output_imm): Added arguments. Compute properly addend for
2323 (md_apply_fix3): Remove R_386_GOTPC handling.
2325 2002-08-06 George France <france@handhelds.org>
2327 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2328 and m21264b processor names and cpu types.
2329 * doc/c-alpha.texi: Documented new types.
2331 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2333 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2335 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2337 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2338 handling to BFD_RELOC_MIPS16_GPREL.
2340 2002-08-01 Nick Clifton <nickc@redhat.com>
2342 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2343 pool is computed using signed arithmetic so that proper sign
2344 extension is performed if X_add_number is a 64-bit integer.
2346 2002-08-01 H.J. Lu <hjl@gnu.org>
2347 Daniel Jacobowitz <drow@mvista.com>
2349 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2350 .debug_line section unless it has line information.
2352 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2354 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2355 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2356 Allow default displacement size to be an option "--disp-size-default".
2357 (md_number_to_disp): Make error messages include value. Use %d to
2358 print integers, not %s.
2359 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2360 get duplicate messages sometimes.
2361 (convert_iif): Grow frag to max possible instruction size. Avoid
2362 creating unnecessary fixes.
2363 (md_number_to_field) Add prototype.
2364 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2365 prototypes and make static.
2366 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2367 (evaluate_expr): Use resultP argument instead of exprP global.
2368 (get_addr_mode): Quiten compiler warnings.
2369 (encode_operand): eliminate unused variables. Quiten compiler
2370 warnings. Eliminate nul character in format strings.
2371 (parse): argc is unsigned.
2372 (reloc): Type cast index to quieten compiler.
2373 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2374 (md_convert_frag): Note unused parameters. Remove unused
2376 (md_create_long_jump, md_create_short_jump,
2377 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2380 2002-07-31 Nick Clifton <nickc@redhat.com>
2382 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2383 of the PDP-11 and 2.11BSD a.out support.
2385 2002-07-31 Momchil Velikov <velco@fadata.bg>
2387 * config/tc-v850.c (md_assemble): Fix range check for immediate
2390 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2392 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2393 to Broadcom SB-1 core support.
2395 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2397 * config/tc-mips.c (mips_target_format): Fix formatting.
2398 Add recognition of n32 ABI formats.
2400 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2402 * tc-mips.c (load_address): Don't clobber $at when loading a
2403 64-bit address in non-PIC code if noat is in effect.
2406 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2408 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2409 used in division/multiply macro expansions similarly to how they
2410 are used in the variants with break instructions.
2413 2002-07-30 Graeme Peterson <gp@qnx.com>
2415 * configure.in: Add support for arm-*-nto target.
2416 * configure: Regenerate.
2418 2002-07-30 Nick Clifton <nickc@redhat.com>
2420 * config/tc-arm.c (struct literal_pool): Add fields to allow
2421 multiple literal pools to be maintained.
2422 (find_literal_pool): New function.
2423 (find_or_make_literal_pool): New function.
2424 (add_to_literal_pool): Use find_or_make_literal_pool.
2425 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2427 (s_ltorg): Use find_literal_pool.
2428 (arm_cleanup): Dump all literal pools.
2429 * doc/c-arm.texi: Document new behaviour of only dumping literal
2432 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2434 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2435 rather than PPC_OPCODE_32 for powerpc64*.
2437 2002-07-25 Nick Clifton <nickc@redhat.com>
2439 * po/es.po: Updated Spanish translation.
2440 * po/fr.po: Updated French translation.
2442 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2444 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2445 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2446 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2447 * configure, config.in: Regenerate.
2448 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2449 (mips_set_options): Remove "abi" field.
2450 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2453 (mips_arch_string, mips_arch_info): New vars.
2454 (mips_tune_string, mips_tune_info): New vars.
2455 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2456 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2457 (mips_isa_to_str, mips_cpu_to_str): Remove.
2458 (mips_ip): If the selected architecture is a generic ISA rather
2459 than a processor, only mention the ISA level in error messages.
2460 (OPTION_MCPU): Remove.
2462 (md_longopts): Add -mfp64, remove -mcpu.
2463 (mips_set_option_string): New fn.
2464 (md_parse_option): Make -mipsN update file_mips_isa rather than
2465 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2466 Don't let -mgp32 and -mfp32 change the ABI.
2467 (show): Move to end of file. Constify string argument.
2468 (md_show_usage): Move to the end of the file. Read available
2469 architectures from mips_cpu_info_table.
2470 (mips_set_architecture): New fn.
2471 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2472 is an alias for -march=mipsN. Don't change the ABI based on other
2473 flags. Infer the register size from the ABI as well as the
2474 architecture. Complain about more conflicting arguments.
2475 Unify logic with GCC.
2476 (s_mipsset): Don't change the ABI.
2477 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2478 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2479 "mipsN"-type entries. Remove entries that vary only in the
2480 manufacturer's prefix, or that have "000" replaced by "k".
2481 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2482 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2483 (mips_parse_cpu): New fn.
2484 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2485 (mips_cpu_info_from_isa): Minor formatting tweak.
2487 2002-07-24 Nick Clifton <nickc@redhat.com>
2489 * po/sv.po: Updated Swedish translation.
2490 * po/es.po: Updated Spanish translation.
2492 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2494 * Makefile.am: Run "make dep-am".
2495 * Makefile.in: Regenerate.
2496 * doc/Makefile.in: Regenerate.
2497 * config.in: Regenerate.
2498 * po/POTFILES.in: Regenerate.
2500 2002-07-23 Nick Clifton <nickc@redhat.com>
2502 * po/fr.po: Updated French translation.
2504 2002-07-23 Nick Clifton <nickc@redhat.com>
2506 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2509 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2511 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2512 instead of S_IS_EXTERN.
2513 (md_estimate_size_before_relax): Likewise.
2514 (mips_fix_adjustable): Likewise.
2516 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2518 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2520 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2521 Nick Clifton <nickc@redhat.com>
2523 * cond.c (s_ifdef): Treat a referenced but not yet defined
2524 symbol as if it were undefined, in exactly the same way as
2527 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2528 consider referenced bug not yet defined symbols to be
2531 2002-07-18 Denis Chertykov <denisc@overta.ru>
2532 Frank Ch. Eigler <fche@redhat.com>
2533 Alan Lehotsky <alehotsky@cygnus.com>
2534 John Healy <jhealy@redhat.com>
2535 Jeff Johnston <jjohnstn@redhat.com>
2537 * configure.in: Add ip2k configuraton.
2538 * configure: Regenerate.
2539 * Makefile.am: Add ip2k configuraton.
2540 * Makefile.in: Regenerate.
2541 * configure: Regenerate.
2542 * Makefile.in: Regenerate.
2543 * config/tc-ip2k.c: New file.
2544 * config/tc-ip2k.h: New files.
2545 * NEWS: Mention new support.
2546 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2547 * doc/Makefile.in: Regenerate.
2548 * doc/all.texi: Set IP2K
2549 * doc/as.texinfo: Add IP2K description.
2550 * doc/c-ip2k.texi: New file.
2552 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2554 * NEWS: Reformat to match style of other NEWS files.
2556 2002-07-17 Jan Hubicka <jh@suse.cz>
2558 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2560 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2562 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2564 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2566 * NEWS: Add 'Changes in 2.13'.
2568 2002-07-15 Matt Fredette <fredette@netbsd.org>
2570 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2572 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2574 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2575 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2578 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2580 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2581 (ppc_frob_file_before_adjust): New function.
2582 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2583 (ppc_elf_frob_symbol): Don't declare.
2584 (tc_frob_file_before_adjust): Define.
2585 (ppc_frob_file_before_adjust): Declare.
2587 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2588 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2591 (ppc_xcoff64): Rename to ppc_obj64.
2592 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2593 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2594 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2596 (ppc_target_format): Use ppc_obj64 to select format.
2597 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2598 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2599 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2600 (tc_frob_symbol): Likewise.
2601 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2602 BFD_DEFAULT_TARGET_SIZE.
2604 (ppc_is_toc_sym): Likewise.
2605 (md_apply_fix3): Likewise.
2606 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2607 BFD_DEFAULT_TARGET_SIZE.
2608 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2609 (tc_frob_symbol): Likewise.
2611 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2613 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2614 (mips_ip): Likewise.
2616 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2618 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2619 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2620 (md_apply_fix3): Formatting. Remove redundant test.
2621 (tc_gen_reloc): Remove redundant code.
2622 (tc_i386_force_relocation): Delete. Movy body of function to..
2623 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2625 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2627 * configure.in: Add hppa-*-openbsd* target, change
2628 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2630 * configure: Regenerate.
2632 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2634 * config/tc-mips.c (macro): Shift the 32-bit address range
2635 accessible with a lone "lui" down by 32768.
2637 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2639 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2640 instead of "dadd" in address calculations.
2643 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2645 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2647 (md_assemble): Instead, zap the suffix here.
2649 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2651 * NEWS: Remove next release number until the release is actually
2654 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2656 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2658 * Makefile.in: Regenerate.
2660 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2662 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2663 to symbols in merge sections, even non pc-relative ones.
2665 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2667 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2669 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2671 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2672 .softregs and .eeprom.
2674 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2676 * NEWS: Note the next release is 2.13.
2678 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2680 * po/tr.po: New translation imported.
2682 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2684 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2685 (ecoff_directive_def): Likewise.
2686 (ecoff_directive_tag): Likewise.
2687 * listing.c (file_info): Likewise.
2688 * hash.c (what): Likewise.
2690 2002-06-25 H.J. Lu <hjl@gnu.org>
2692 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2693 * Makefile.in: Regenerated.
2695 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2697 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2698 (assemble_ppi): Generate warning if the same register is used
2699 twice as destination in the same padd / pmuls instruction.
2701 2002-06-18 Dave Brolley <brolley@redhat.com>
2703 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2704 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2705 * configure.in: Support frv-*-*.
2706 * Makefile.am (CPU_TYPES): Add frv.
2707 (TARGET_CPU_CFILES): Add tc-frv.c.
2708 (TARGET_CPU_HFILES): Add tc-frv.h.
2709 (DEPTC_frv_coff): New variable.
2710 (DEPTC_frv_elf): New variable.
2711 (DEPOBJ_frv_coff): New variable.
2712 (DEPOBJ_frv_elf): New variable.
2713 (DEP_frv_coff): New variable.
2714 (DEP_frv_elf): New variable.
2715 * tc-frv.c: New file.
2716 * tc-frv.h: New file.
2718 2002-06-17 Catherine Moore <clm@redhat.com>
2720 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2722 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2724 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2726 2002-06-17 Tom Rix <trix@redhat.com>
2728 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2730 2002-06-14 H.J. Lu <hjl@gnu.org>
2731 Daniel Jacobowitz <drow@mvista.com>
2733 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2734 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2735 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2736 and new_logical_line for the first .file directive.
2737 * read.c (s_app_file_string): New function.
2738 (s_app_file): Call it.
2739 * read.h (s_app_file_string): Add declaration.
2741 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2743 * configure.in: Remove MIPS_STABS_ELF.
2744 * configure: Regenerated.
2745 * config.in: Regenerated.
2746 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2748 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2750 (pdr_seg): Declare unconditionally.
2751 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2752 (s_mips_end): Likewise. Generate stabs function markers.
2753 (s_mips_ent): Generate stabs function markers.
2754 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2756 (s_mips_mask): Likewise.
2757 (mips_flag_mdebug): New.
2758 (md_longopts): Add "mdebug" and "no-mdebug".
2759 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2760 (mips_after_parse_args): Set mips_flag_mdebug.
2761 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2763 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2765 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2766 value twice for RELA relocations.
2768 2002-06-12 Ben Elliston <bje@redhat.com>
2770 * symbols.c (resolve_symbol_value): Initialise final_val.
2772 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2774 2002-06-11 Tom Rix <trix@redhat.com>
2776 * config/tc-ppc.c (ppc_subseg_align): Delete.
2777 (ppc_change_csect): Default csect align is 2.
2778 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2780 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2782 * config/tc-avr.c (mcu_types): Update.
2784 2002-06-08 Matt Thomas <matt@3am-software.com>
2786 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2787 (vax-*-netbsd*): New targets.
2788 * configure: Regenerate.
2789 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2790 * config/tc-vax.c: Add support for ELF and PIC.
2791 (flag_want_pic): New flag.
2792 (float_cons): Fix prototype.
2793 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2794 (md_assemble): Introduce a new is_absolute local, and use it
2795 rather than repeating the test. Make fatal errors actually
2796 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2797 Add support for ELF. Add support for PIC.
2798 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2799 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2801 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2802 optional for a.out, and not allowed for VMS. Adjust all callers.
2803 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2804 (md_create_long_jump): Likewise.
2805 (md_undefined_symbol): Likewise.
2806 (md_section_align): Likewise.
2807 (md_shortopts): Allow -k and -K for ELF.
2808 (md_parse_option): Set flag_want_pic if -k or -K.
2809 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2810 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2811 * config/tc-vax.h (tc_headers_hook): Remove.
2812 (TARGET_FORMAT): Set according to object format and target
2814 (BFD_ARCH, TARGET_ARCH): Define.
2815 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2816 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2817 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2818 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2820 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2822 * Makefile.am: Run "make dep-am".
2823 * Makefile.in: Regenerate.
2825 * as.c: Replace CONST with const.
2826 * write.c: Likewise.
2827 * config/obj-coff.c: Likewise.
2828 * config/tc-a29k.c: Likewise.
2829 * config/tc-arm.c: Likewise.
2830 * config/tc-dlx.c: Likewise.
2831 * config/tc-h8300.c: Likewise.
2832 * config/tc-h8500.c: Likewise.
2833 * config/tc-i370.c: Likewise.
2834 * config/tc-i860.c: Likewise.
2835 * config/tc-i960.c: Likewise.
2836 * config/tc-m68hc11.c: Likewise.
2837 * config/tc-m68k.c: Likewise.
2838 * config/tc-m88k.c: Likewise.
2839 * config/tc-mcore.c: Likewise.
2840 * config/tc-mips.c: Likewise.
2841 * config/tc-ns32k.c: Likewise.
2842 * config/tc-pdp11.c: Likewise.
2843 * config/tc-pj.c: Likewise.
2844 * config/tc-s390.c: Likewise.
2845 * config/tc-sh.c: Likewise.
2846 * config/tc-sparc.c: Likewise.
2847 * config/tc-tahoe.c: Likewise.
2848 * config/tc-tic80.c: Likewise.
2849 * config/tc-v850.c: Likewise.
2850 * config/tc-vax.c: Likewise.
2851 * config/tc-w65.c: Likewise.
2852 * config/tc-z8k.c: Likewise.
2854 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2856 Based on patch from Matt Green:
2857 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2858 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2859 (s_mips_loc): New function.
2860 (mips_nonecoff_pseudo_table): Call them.
2861 (append_insn): Call dwarf2_emit_insn.
2863 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2865 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2867 (file_ase_mips16): New veriable.
2868 (mips_eabi64): Remove.
2869 (CPU_HAS_MIPS16): New define.
2870 (CPU_HAS_MDMX): Fix data type.
2871 (md_begin): Code cleanup. Use file_ase_mips16.
2872 (mips_elf_final_processing): Handle mips16 header flag.
2873 Handle EABI flag without intermediate variable.
2875 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2877 * doc/as.texinfo: Update MIPS documentation.
2879 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2881 * config/tc-mips.c: Add define for $zero register.
2882 (md_begin): Add $zero as alias name for $0.
2883 (insn_uses_reg): Use ZERO define.
2884 (mips_ip): Add $zero as alias name for $0.
2885 (mips16_ip): Likewise.
2886 (s_cplocal): Demand empty rest of input line.
2887 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2888 names. Use ZERO define. Fix input_line_pointer progress.
2890 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2892 * symbols.c: Replace CONST by const throughout.
2893 (symbol_find_exact): Split out from..
2894 (symbol_find_base): ..here.
2895 * symbols.h: Replace CONST by const throughout.
2896 (symbol_find_exact): Declare.
2897 * config/obj-elf.c: #include "struc-symbol.h".
2898 (elf_frob_file): If group name matches an exported symbol, use that
2899 symbol for the signature and ".group" as the section name.
2901 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2903 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2906 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2908 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2909 and mips_opts.ase_mdmx if they are uninitialized.
2911 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2913 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2914 (hppa_force_relocation): Check if a stub just before the start symbol
2915 of the last call_info is reachable before forcing relocation. Fix
2918 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2920 * config/tc-mips.c (mips_after_parse_args): New function.
2921 (md_begin): Move processing of defaults to mips_after_parse_args.
2922 config/tc-mips.h (md_after_parse_args): Define.
2924 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2926 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2927 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2928 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2929 * configure: Regenerate.
2930 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2933 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2935 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2937 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2939 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2940 linkonce flag. Print all warnings.
2941 (obj_elf_section): Parse ",comdat" for groups.
2942 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2943 consistency of comdat flag.
2945 2002-06-02 Richard Henderson <rth@redhat.com>
2947 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2948 with LITERALs without sequence numbers.
2950 2002-06-01 Richard Henderson <rth@redhat.com>
2952 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2953 Rename them LITUSE_ALPHA_*.
2955 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2957 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2958 accept parentheses enclosed register lists.
2960 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2962 * Makefile.am: Run "make dep-am".
2963 * Makefile.in: Regenerate.
2964 * po/POTFILES.in: Regenerate.
2966 2002-05-31 Graeme Peterson <gp@qnx.com>
2968 * configure.in: Add i386-*-nto-qnx*.
2969 * configure: Regenerate.
2971 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2973 * config/tc-mips.c (mips_ip): Use unsigned long values for
2976 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2978 * config/tc-mips.c (s_cpsetup): Fix initialization of
2979 mips_cpreturn_register and mips_cpreturn_offset.
2981 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2983 * config/tc-mips.c (s_cpsetup): Fix comment.
2985 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2987 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2988 (mips_ip): Likewise.
2989 (mips16_ip): Likewise.
2990 (tc_get_register): Likewise.
2992 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2993 Ed Satterthwaite <ehs@broadcom.com>
2995 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2996 (mips_opts): Initialize "ase_mdmx" member.
2997 (file_ase_mdmx): New variable.
2998 (CPU_HAS_MDMX): New macro.
2999 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3000 based on command line options and configuration defaults.
3001 (macro_build): Note in comment that use of MDMX in macros is
3002 not currently allowed.
3003 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3004 "Z" MDMX operand types.
3005 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3006 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3008 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3009 Add support for "-mdmx" and "-no-mdmx" options.
3010 (OPTION_ELF_BASE): Move to accomodate new options.
3011 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3012 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3013 file_ase_mdmx was set.
3014 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3015 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3018 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3020 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3021 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3022 command line switch conforming to gcc conventions.
3023 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3025 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3027 * config/tc-mips.c (macro_build_jalr): New Function.
3028 (md_begin): NewABI uses big GOTs.
3029 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3030 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3031 (load_address): Add some NewABI PIC support.
3033 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3034 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3036 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3038 * config/tc-mips.c (load_address): Use mips_gp_register instead
3039 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3041 (macro): Use mips_gp_register instead of hardcoded value.
3043 2002-05-30 Richard Henderson <rth@redhat.com>
3045 * expr.h (operatorT): Add O_md17..O_md32.
3046 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3047 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3048 O_tprelhi, O_tprello, O_tprel): New.
3049 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3050 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3051 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3052 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3053 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3054 (md_apply_fix3): Handle TLS relocations.
3055 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3056 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3057 associated TLS reloc. Check lituse_tls relocs match up.
3058 (emit_insn): Handle TLS relocations.
3061 * doc/c-alpha.texi: Add docs for tls relocations.
3063 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3065 * config/tc-mips.c (mips_gprel_offset): New variable.
3066 (s_gpvalue): Use it.
3068 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3070 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3071 write-write conflicts.
3072 (md_assemble): Reformat introductory comment.
3073 (parallel_ok): Prevent packing only if the first
3074 instruction cannot be packed.
3076 2002-05-30 Jason Eckhardt <jle@redhat.com>
3077 Tom Rix <trix@redhat.com>
3079 * config/tc-d10v.c (build_insn): Check for immediates.
3081 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3083 * config/tc-mips.c: Replace GP in comments by $gp.
3084 (mips_big_got): Initialize.
3085 (mips_trap): Initialize.
3086 (load_address): Use mips_gp_register instead of hardcoded value.
3087 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3088 (macro): Use mips_gp_register instead of hardcoded value.
3089 (macro2): Change load_address calls.
3090 (md_pcrel_from): Comment formatting.
3091 (s_cpload): Use mips_gp_register instead of hardcoded value.
3092 (s_cprestore): Likewise. Comment formatting.
3093 (s_gpword): Fix data type.
3094 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3095 (nopic_need_relax): Replace GP in comments by $gp.
3096 (mips_elf_final_processing): Better comment.
3098 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3100 * configure.in: Add DLX configuraton
3101 * Makefile.am: Add DLX configuraton
3102 * configure: Regenerate.
3103 * Makefile.in: Regenerate.
3104 * config/tc-dlx.c: New file.
3105 * config/tc-dlx.h: New files.
3106 * NEWS: Mention new support.
3108 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3110 * config/obj-coff.c (write_object_file): Add missing semicolon.
3112 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3114 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3115 by the define. Remove superfluous check of mips_opts.mips16.
3116 (append_insn): Likewise. Canonicalize variable increments.
3117 (macro_build): Canonicalize variable increments.
3118 (macro_build_lui): Likewise.
3119 (load_register): Likewise.
3120 (load_address): Move pointer initialization.
3121 (macro): Move pointer to a more local scope. Canonicalize variable
3122 increments. Better comments. Replace magic constant for RA by the
3124 (macro2): Replace magic constant for RA by the define. Canonicalize
3125 variable increments.
3126 (mips_ip): Canonicalize variable increments.
3127 (mips16_ip): Replace magic constant for RA by the define.
3128 (my_getSmallParser): Canonicalize variable increments/decrements.
3129 (my_getPercentOp): Likewise.
3130 (my_getSmallExpression): Likewise.
3131 (s_align): Likewise.
3132 (s_mipsset): Likewise.
3133 (s_cpsetup): Likewise.
3134 (s_insn): Remove superfluous check of mips_opts.mips16.
3135 (s_mips_stab): Likewise.
3136 (mips_handle_align): Canonicalize variable increments.
3137 (s_mips_ent): Likewise.
3138 (s_mips_end): Add comment.
3140 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3142 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3143 * configure: Regenerate.
3145 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3147 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3148 * Makefile.in: Regenerate.
3149 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3150 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3151 * configure: Regenerate.
3152 * as.h: Use #include "" instead of <> for local header files.
3153 * flonum-konst.c: Likewise.
3154 * flonum-mult.c: Likewise.
3156 * listing.c: Likewise.
3157 * config/tc-ia64.h: Likewise.
3158 * config/tc-v850.h: Likewise.
3160 2002-05-24 TAMURA Kent <kent@netbsd.org>
3162 * configure.in: Add a target for i386-netbsdpe.
3163 * configure: Regenerate.
3165 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3167 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3168 (obj_elf_common): Call elf_common.
3169 (obj_elf_tls_common): New function.
3170 (elf_pseudo_tab): Support .tls_common.
3171 (special_sections): Add .tdata and .tbss.
3172 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3174 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3175 (obj_elf_parse_section_letters): Include T in error message.
3176 * config/tc-ppc.c (ppc_section_letter): Likewise.
3177 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3178 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3180 * config/tc-sparc.c (md_apply_fix3): Likewise.
3181 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3182 Define them if not BFD_ASSEMBLER.
3183 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3185 (md_apply_fix3): Add TLS relocs.
3186 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3187 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3188 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3189 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3190 (ia64_elf_section_letter): Include T in error message.
3191 (md_begin): Support TLS operators.
3192 (md_operand): Likewise.
3193 (ia64_gen_real_reloc_type): Support TLS relocs.
3194 * write.c (adjust_reloc_syms): Don't change symbols in
3195 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3197 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3199 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3200 round the relocation up rather than down.
3202 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3204 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3206 * doc/as.texinfo: Document that the COFF version of .section
3207 ignores the 'a' flag.
3209 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3211 * config/tc-alpha.c (assemble_tokens): Protect use of
3212 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3214 * write.c (size_seg): Check adjustment to last frag.
3215 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3217 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3218 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3219 (write_object_file): Invoke md_do_align if available, and use
3220 frag_align_code on text sections.
3221 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3222 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3223 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3224 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3225 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3228 2002-05-22 H.J. Lu <hjl@gnu.org>
3230 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3233 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3235 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3238 2002-05-22 H.J. Lu <hjl@gnu.org>
3240 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3241 for one .loc for compiler.
3243 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3245 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3248 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3250 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3251 Optimize the rotate by zero case.
3253 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3255 * configure.in: Remove accidental enabling of bfd_gas=yes for
3257 * configure: Regenerate.
3259 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3261 * app.c: Fix formatting.
3263 * ehopt.c: Likewise.
3265 * input-file.c: Likewise.
3266 * listing.c: Likewise.
3267 * macro.h: Likewise.
3268 * stabs.c: Likewise.
3269 * symbols.c: Likewise.
3271 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3273 * config/obj-generic.c: Delete file.
3274 * config/obj-generic.h: Likewise.
3276 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3278 * config/tc-avr.c (mcu_types): Update for new devices.
3280 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3282 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3284 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3286 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3287 worked sometimes by accident. Fix copy&paste comment.
3289 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3291 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3292 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3293 (mips_elf_final_processing): Let n32 use .reginfo.
3295 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3297 * config/tc-mips.c (append_insn): Fix too small range of variable.
3299 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3301 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3302 listing_prev_line().
3304 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3306 * config/tc-arm.c (md_assemble): Remove redundant call to
3309 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3312 * stabs.c (s_stab_generic): Fix grammatical error in warning
3315 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3317 * write.c (subsegs_finish): Don't specially align last subseg.
3319 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3321 * stabs.c (s_stab_generic): Warn about a description field that is
3324 * config/obj-coff.c: Fix compile time warnings when compiling
3325 without BFD_ASSEMBLER defined.
3328 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3330 (md_pcrel_from_section): Use md_pcrel_from().
3332 2002-05-11 Bruno Haible <bruno@clisp.org>
3334 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3335 by dwarf2_directive_loc, instead of calling dwarf2_where.
3337 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3339 * config/obj-coff.h: Fix formatting.
3340 * config/tc-mcore.c: Likewise.
3341 * config/tc-mn10300.c: Likewise.
3342 * config/tc-openrisc.c: Likewise.
3343 * config/tc-or32.c: Likewise.
3344 * config/tc-pdp11.c: Likewise.
3345 * config/tc-ppc.c: Likewise.
3346 * config/tc-ppc.h: Likewise.
3347 * config/tc-sh64.c: Likewise.
3348 * config/tc-sh.c: Likewise.
3349 * config/tc-tic54x.c: Likewise.
3350 * config/tc-xstormy16.c: Likewise.
3351 * config/tc-xstormy16.h: Likewise.
3353 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3355 * config/obj-coff.c: Fix formatting.
3356 * config/obj-elf.c: Likewise.
3357 * config/tc-alpha.c: Likewise.
3358 * config/tc-arm.c: Likewise.
3359 * config/tc-d10v.c: Likewise.
3360 * config/tc-d30v.c: Likewise.
3361 * config/tc-h8300.c: Likewise.
3362 * config/tc-hppa.c: Likewise.
3364 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3366 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3367 reloc when no_cond_jump_promotion.
3369 2002-05-08 Jim Wilson <wilson@redhat.com>
3371 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3372 current variable part of frag.
3374 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3376 * config/tc-mmix.c: Fix formatting.
3377 * config/tc-mmix.h: Likewise.
3379 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3381 * configure: Regenerate.
3383 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3385 * config/tc-m68k.c: Fix formatting.
3387 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3389 * Makefile.am: Honour DESTDIR.
3390 * Makefile.in: Regenerate.
3392 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3394 * config/tc-ia64.c: Fix formatting.
3395 * config/tc-ia64.h: Likewise.
3397 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3399 * config/tc-mips.c: Fix formatting.
3400 * config/tc-s390.c: Likewise.
3401 * config/tc-s390.h: Likewise.
3403 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3405 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3406 information for instructions.
3408 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3410 * as.h: Fix formatting.
3413 * dwarf2dbg.c: Likewise.
3414 * frags.h: Likewise.
3416 * macro.c: Likewise.
3418 * stabs.c: Likewise.
3419 * symbols.c: Likewise.
3421 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3423 * app.c (mri_pseudo): Only declare for TC_M68K.
3425 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3426 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3427 BFD_RELOC_16_BASEREL.
3428 (md_assemble): Likewise.
3429 (md_apply_fix3): Likewise.
3431 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3433 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3434 zero into an add of zero - it is not the same.
3436 2002-05-01 Arati Dikey <aratid@kpit.com>
3438 * tc-sh.c (get_specific): Generate warning if the same
3439 destination register is used in parallel instructions.
3441 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3443 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3445 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3447 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3448 backwards to prevent cascading errors.
3450 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3452 * configure.in: Add support for powerpc-*-windiss.
3453 * configure: Regenerated.
3455 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3457 * config/tc-s390.c (md_parse_option): Formatting.
3459 * config/tc-i386.c: Formatting fixes, add missing space in error
3462 2002-04-24 Christian Groessler <chris@groessler.org>
3464 * config/tc-z8k.c (build_bytes): Add support for new cases:
3465 CLASS_IGNORE and ARG_NIM4.
3466 (md_assemble): Prevent destruction of input_line_pointer if
3467 get_operands returns failure.
3469 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3471 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3472 instructions to be generated by macros.
3474 2002-04-24 Andreas Schwab <schwab@suse.de>
3476 * config/tc-i386.c (output_jump, output_disp)
3477 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3479 (md_apply_fix3): Remember addend value for rela relocations.
3480 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3482 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3484 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3485 from previous change.
3487 2002-04-22 Eric Christopher <echristo@redhat.com>
3489 * config/tc-mips.c (macro_build): Add warning if macro instructions
3490 are expanded into a branch delay slot.
3492 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3494 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3495 numbers, gdb relies on them to detect the start of the prologue.
3497 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3499 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3500 symbols in merge sections.
3502 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3504 * as.c (main): Don't reference _bfd_chunksize.
3506 2002-04-15 Tom Rix <trix@redhat.com>
3508 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3509 symbols in merge sections.
3511 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3513 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3514 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3515 argument for the precision.
3516 (gen_to_words): Update accordingly.
3518 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3520 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3521 BFD_VERSION_STRING unavailable.
3522 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3524 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3526 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3527 symbol_used_in_reloc_p is true.
3529 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3532 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3534 * dep-in.sed: Cope with absolute paths.
3535 * Makefile.am (dep.sed): Subst TOPDIR.
3537 * Makefile.in: Regenerate.
3539 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3541 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3542 (mips_ip): Remove unused variable.
3543 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3544 unsigned char with bfd_byte.
3545 (s_file): Remove unused variable.
3546 (s_mips_ent): Likewise.
3548 2002-04-03 Tom Rix <trix@redhat.com>
3550 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3552 (find_opcode): Fix warning in as_warn.
3553 * config/tc-d10v.h: Update Copyright.
3555 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3556 Tom Rix <trix@redhat.com>
3558 From Jeff Knaggs <jknaggs@redhat.com>
3559 * config/tc-d10v.c (check_resource_conflict): New function to
3560 check for resource conflicts.
3562 From Jason Eckhardt <jle@redhat.com>
3563 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3565 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3566 reserved control registers is used.
3567 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3570 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3571 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3572 instruction cannot be packed.
3574 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3575 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3576 write-write conflicts.
3577 (md_assemble): Reformat introductory comment.
3578 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3581 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3583 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3584 O_logical_not>): Derive final_seg from add_symbol.
3585 <O_multiply..O_logical_or>: More final_seg twiddles.
3587 2002-04-01 Jessica Han <jessica@cup.hp.com>
3589 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3592 2002-03-27 Andreas Schwab <schwab@suse.de>
3594 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3595 field for pc-relative fixups.
3596 (output_disp): Likewise.
3597 (md_estimate_size_before_relax): Likewise.
3598 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3599 pc-relative fixups in 64bit mode.
3601 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3603 * config/te-aix5.h: Typo fix.
3605 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3607 * Makefile.am: Run "make dep-am".
3608 * Makefile.in: Regenerate.
3609 * doc/Makefile.in: Regenerate.
3611 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3613 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3614 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3616 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3618 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3619 the EXTENDED bit here; report the estimate according to the
3622 2002-03-18 Tom Rix <trix@redhat.com>
3624 * configure.in: Add AIX 5 support.
3625 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3626 * config/te-aix5.h: New file. AIX 5 support.
3627 * configure: Regenerate.
3629 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3631 * po/fr.po: Updated version.
3633 2002-03-16 Andreas Jaeger <aj@suse.de>
3635 * doc/c-mips.texi (Machine Dependencies): Add new node.
3637 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3639 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3640 (mips_opts): Initialize "ase_mips3d" member.
3641 (file_ase_mips3d): New variable.
3642 (CPU_HAS_MIPS3D): New macro.
3643 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3644 based on command line options and configuration defaults.
3645 (macro_build, mips_ip): Accept MIPS-3D instructions if
3646 mips_opts.ase_mips3d is set.
3647 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3648 Add support for "-mips3d" and "-no-mips3d" options.
3649 (OPTION_ELF_BASE): Move to accomodate new options.
3650 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3651 (mips_elf_final_processing): Add a comment indicating that a
3652 MIPS-3D ASE ELF header flag should be set, when one exists.
3653 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3654 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3655 nomips3d" directives.
3657 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3659 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3660 a weak symbol in same section to be within reach.
3662 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3664 * po/fr.po: Updated version.
3666 2002-03-12 Andreas Schwab <schwab@suse.de>
3668 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3669 body record so that an error is given for misplaced .save
3672 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3674 * config/tc-i386.h (REX_OPCODE): Define.
3675 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3676 (rex_byte): typedef to int.
3677 * config/tc-i386.c: Group prototypes and vars together.
3678 Formatting fixes. Remove occurrences of "register" keyword.
3681 (mode_from_disp_size): Add INLINE keyword to prototype.
3682 (fits_in_signed_byte): Likewise.
3683 (fits_in_unsigned_byte): Likewise.
3684 (fits_in_unsigned_word): Likewise.
3685 (fits_in_signed_word): Likewise.
3686 (fits_in_unsigned_long): Likewise.
3687 (fits_in_signed_long): Likewise.
3688 (type_names): Constify.
3689 (intel_float_operand): Constify param.
3690 (add_prefix): Use REX_OPCODE.
3691 (md_assemble): Likewise. Modify for changed rex_byte.
3692 (parse_insn): Split out of md_assemble.
3693 (parse_operands): Likewise.
3694 (swap_operands): Likewise.
3695 (optimize_imm): Likewise.
3696 (optimize_disp): Likewise.
3697 (match_template): Likewise.
3698 (check_string): Likewise.
3699 (process_suffix): Likewise.
3700 (check_byte_reg): Likewise.
3701 (check_long_reg): Likewise.
3702 (check_qword_reg): Likewise.
3703 (check_word_reg): Likewise.
3704 (finalize_imm): Likewise.
3705 (process_operands): Likewise.
3706 (build_modrm_byte): Likewise.
3707 (output_insn): Likewise.
3708 (output_branch): Likewise.
3709 (output_jump): Likewise.
3710 (output_interseg_jump): Likewise.
3711 (output_disp): Likewise.
3712 (output_imm): Likewise.
3714 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3716 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3718 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3720 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3721 relocs except when BFD64.
3723 * write.c (number_to_chars_bigendian): Don't abort when N is
3724 larger than sizeof (VAL).
3725 (number_to_chars_littleendian): Likewise.
3727 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3729 * config/tc-hppa.c (md_apply_fix3): Add cast.
3730 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3733 2002-03-05 Paul Koning <pkoning@equallogic.com>
3735 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3736 (parse_ac5): New function for parsing float regs in float operand.
3737 (parse_expression): Remove attempt to make literals be octal.
3738 (parse_op_no_deferred): Support float literals.
3739 (parse_op): Reject attempts to refer to float regs.
3740 (parse_fop): New function, like parse_op but for float operand.
3741 (md_assemble): Add cases to parse float operands. Also fix
3742 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3744 2002-03-04 H.J. Lu <hjl@gnu.org>
3746 * config/obj-elf.c (special_section): Add .init_array,
3747 .fini_array and .preinit_array.
3749 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3750 .init_array and .fini_array.
3752 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3754 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3756 (obj_frob_symbol): Copy visibility.
3758 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3760 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3762 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3764 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3766 * po/es.po: Updated.
3768 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3770 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3771 only, undo the changes made on 2001-06-08, with the
3772 effect being that common or extern symbols are
3773 adjusted for embedded-PIC, but weak symbols are not.
3774 (md_estimate_size_before_relax: Likewise, with the effect
3775 that extern symbols are treated the same as weak symbols
3776 only if not embedded-PIC.
3777 (mips_fix_adjustable) Likewise, with the effect that
3778 weak or extern symbols are not adjusted for embedded-PIC.
3779 (md_apply_fix3): Tweak so that the case where value is zero
3780 is handled more correctly for embedded-PIC code.
3782 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3784 * doc/as.texinfo (Overview): Add missing @ifset IA64
3786 * configure.in (LINGUAS): Add es.po.
3787 * configure: Regenerate.
3788 * po/es.po: New file.
3790 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3792 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3793 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3794 and NO_PIC cases. Code cleanup.
3795 (macro2): Fix handling of 64bit register loads.
3797 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3799 * doc/as.texinfo: Add entry for IA64.
3800 * doc/c-ia64.texi: New file.
3802 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3804 * config/tc-hppa.c: Update copyright date.
3806 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3807 Remove references to chip manufacturers.
3808 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3810 (md_show_usage): Remove references to chip manufacturers. Mention
3812 (md_begin): Test power4 opcode flag bits.
3814 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3816 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3817 count exceeds prologue count.
3818 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3819 (unwind.label_prologue_count): New member.
3821 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3823 (get_saved_prologue_count): New function.
3824 (save_prologue_count): New function.
3825 (free_saved_prologue_count): New function.
3826 (dot_label_state): Record state label by calling save_prologue_count().
3827 (dot_copy_state): Restore prologue count by calling
3828 get_saved_prologue_count().
3829 (generate_unwind_image): Free up list of saved prologue
3830 counts by calling free_saved_prologue_counts().
3832 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3834 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3835 function declarations.
3837 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3839 * NEWS: Note that GASP is now deprecated.
3840 * Makefile.am: Do not build gasp-new by default.
3841 * Makefile.in: Regenerate.
3842 * doc/Makefile.am: Do not install gasp.info.
3843 * doc/Makefile.in: Regenerate.
3844 * gas/gasp.texi: Note that gasp is now deprecated.
3846 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3848 * NEWS: Mark 2.12 branch.
3850 2002-02-19 Tom Tromey <tromey@redhat.com>
3852 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3854 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3856 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3859 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3861 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3862 Make bit size independent of architecture switch.
3863 (md_begin): Add warning for -m64 with -Aesa.
3864 (s390_md_end): Use renamed architecture defines.
3866 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3868 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3870 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3872 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3875 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3877 * config/tc-mips.c (md_estimate_size_before_relax): Really
3878 make sure we treat weak like extern only for ELF. (Fixes
3879 patch from 2001-07-25.)
3881 2002-02-15 Ben Elliston <bje@redhat.com>
3883 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3886 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3888 * NEWS: Mention support for MMIX.
3890 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3892 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3893 a sequence of indpendent 'if' statements for easier debugging
3894 and future modification.
3896 2002-02-13 Matt Fredette <fredette@netbsd.org>
3898 * config/tc-m68k.c (md_show_usage): No longer display a
3899 hard-coded "68020" for the default CPU, instead display the
3900 canonical name of the true, configured default CPU.
3901 (m68k_elf_final_processing): Mark objects for sub-68020
3902 CPUs with the new EF_M68000 flag.
3904 2002-02-13 Andreas Schwab <schwab@suse.de>
3906 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3907 pc-relative relocations to merge sections in 64-bit mode.
3909 2002-02-13 Ben Elliston <bje@redhat.com>
3911 * NEWS: Document floating point number handling in gasp.
3912 * gasp.c: Include <assert.h> and "xregex.h".
3913 (is_flonum): New function.
3914 (chew_flownum): Likewise.
3915 (change_base): Consume flonums from the input, where possible.
3916 * doc/gasp.texi (Constants): Document floating point numbers.
3918 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3920 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3921 that implicitly use LR and RR selectors.
3923 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3925 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3926 and `epsw' as available on AM33 and above only.
3927 (other_register_name): Add logic to handle machine type encoded in
3930 2002-02-11 Tom Rix <trix@redhat.com>
3932 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3935 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3937 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3940 2002-02-11 Jan Hubicka <jh@suse.cz>
3942 * i386.c (md_assemble): Support 32bit address prefix.
3943 (i386_displacement): Likewise.
3944 (i386_index_check): Accept 32bit addressing in 64bit mode.
3946 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3948 * config/tc-sh.c (dot): Removed unused function.
3950 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3952 * Makefile.am: "make dep-am".
3953 * Makefile.in: Regenerate.
3954 * aclocal.m4: Regenerate.
3955 * config.in: Regenerate.
3956 * configure: Regenerate.
3957 * doc/Makefile.in: Regenerate.
3959 2002-02-10 Richard Henderson <rth@redhat.com>
3961 * doc/c-alpha.texi: New file.
3962 * doc/Makefile.am (CPU_DOCS): Add it.
3963 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3965 2002-02-09 Richard Henderson <rth@redhat.com>
3967 * config/tc-alpha.c (O_samegp): New.
3968 (USER_RELOC_P): Include it.
3969 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3970 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3971 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3972 (alpha_validate_fix): New.
3973 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3975 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3977 * doc/c-cris.texi: New.
3978 * doc/all.texi: @set CRIS.
3979 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3980 Include c-cris.texi.
3981 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3982 * doc/Makefile.in: Regenerate.
3984 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3986 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3987 determine if a number is a sign-extended 32-bit number.
3988 (load_register): Use IS_SEXT_32BIT_NUM.
3989 (macro): Check if load/store macro handling is using a
3990 constant 32-bit address on 64-bit address systems, and if
3991 so optimize the generation of that address.
3993 2002-02-08 Richard Henderson <rth@redhat.com>
3995 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3996 we've eliminated all foreign relocation types yet.
3997 (alpha_fix_adjustable): Likewise.
3999 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4001 Contribute sh64-elf.
4002 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4003 Stephen Clarke <Stephen.Clarke@st.com>
4004 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4005 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4006 * config/tc-sh.c (md_relax_table): Added default sizes for
4007 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4008 MOVI_16, MOVI_32 and MOVI_48.
4009 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4010 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4012 (shmedia_md_estimate_size_before_relax): Remove redundant
4013 blocks. Set fragP->fr_var even if relaxation type unchanged.
4014 Retain UNDEF_MOVI until expression decays to number.
4015 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4016 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4017 relocation types. Take fixP->fx_addnumber into account too.
4018 (shmedia_md_apply_fix): Likewise.
4019 (shmedia_md_convert_frag): Likewise.
4020 (shmedia_build_Mytes): Likewise.
4021 (sh64_consume_datalabel): Complain about nested datalabel.
4022 Support PIC relocs. Call sh_parse_name.
4023 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4024 in tc-sh.h to SHmedia reloc types.
4025 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4026 MOVI_GOTPC): New relaxation constants.
4027 (md_relax_table): Introduce relaxation directives for PIC-related
4029 (sh_PIC_related_p): Handle datalabel.
4030 (sh_check_fixup): Choose SH5 PIC relocations.
4031 (sh_cons_fix_new): Added BDF_RELOC_64.
4032 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4033 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4034 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4035 current ISA is SHmedia, get 7 bytes.
4036 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4037 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4039 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4040 shmedia_apply_fix3 and make void.
4041 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4042 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4044 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4045 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4046 2001-03-14 DJ Delorie <dj@redhat.com>
4047 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4048 * doc/Makefile.in(CPU_DOCS): Ditto.
4049 * doc/c-sh64.texi: New file.
4050 * doc/as.texinfo: Add SH64 support.
4051 2001-03-13 DJ Delorie <dj@redhat.com>
4052 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4053 A_REUSE_PREV so that its purpose is more obvious.
4054 (shmedia_build_Mytes): Ditto.
4055 2001-03-07 DJ Delorie <dj@redhat.com>
4056 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4058 (sh64_vtable_inherit): Ditto.
4059 (strip_datalabels): New, strip "datalabel" from given line.
4060 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4062 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4063 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4065 (shmedia_build_Mytes): ... to here.
4066 2001-03-06 DJ Delorie <dj@redhat.com>
4067 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4069 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4070 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4071 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4072 address by one in call to dwarf2_emit_insn.
4073 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4074 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4075 alignment handling broken by imported changes.
4076 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4077 (sh64_handle_align): Declare.
4078 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4079 (sh64_max_mem_for_rs_align_code): Declare.
4080 (enum sh64_isa_values): Moved here from tc-sh64.c.
4081 (md_do_align): Define.
4082 (sh64_do_align): Declare.
4083 (struct sh64_tc_frag_data): New.
4084 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4086 (TC_FRAG_INIT): Change to set new datatype.
4087 (struct sh64_segment_info_type): Rename member
4088 last_flushed_location to last_contents_mark. All users changed.
4089 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4090 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4091 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4092 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4093 of unsetting seen_insn.
4094 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4095 call sh64_update_contents_mark.
4096 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4097 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4098 enum sh64_isa_values.
4099 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4100 (emitting_crange): Boolean guard moved to file scope from function
4101 scope in sh64_set_contents_type.
4103 (sh64_update_contents_mark): New; most split out from
4104 sh64_flush_pending_output.
4105 (shmedia_md_end): Call sh64_update_contents_mark. Set
4106 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4107 (sh64_do_align): New function.
4108 (sh64_max_mem_for_rs_align_code): New function.
4109 (sh64_handle_align): Rename from shmedia_do_align. Make
4110 non-static. Add head comment. Emit zero bytes for n bytes modulo
4111 four. Change return-type to void.
4112 (shmedia_elf_new_section): Remove.
4113 (shmedia_md_assemble): Call sh64_update_contents_mark.
4114 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4115 new frag. Call sh64_update_contents_mark after making the new
4117 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4118 and sh_flush_pending_output.
4119 (sh64_flag_output): Also call md_flush_pending_output, but add
4120 condition on not emitting_crange.
4121 (sh64_tc_cons_fix_new): Remove.
4122 2001-01-12 Nick Clifton <nickc@redhat.com>
4123 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4124 alignment handling scheme imported from sourceware.
4125 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4126 * config/tc-sh64.h (TARGET_FORMAT): Define.
4127 (sh64_target_format): Prototype.
4128 * config/tc-sh64.c (sh64_target_mach): New function.
4129 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4130 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4131 zero_address_frag instead of copying the frag of the symbol.
4132 (shmedia_frob_file_before_adjust): Ditto.
4133 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4134 to valueT to remove signedness.
4135 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4136 headers to output_bfd. Do not evaluate symbols if final is false;
4138 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4139 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4140 to the current frag, call shmedia_md_convert_frag to emit fixups
4141 and make frag_wane neutralize the frag. Update comments.
4142 * config/tc-sh.c (md_convert_frag): Change caller of
4143 shmedia_md_convert_frag.
4144 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4145 * config/tc-sh64.h: Tweak comments and correct formatting.
4146 * config/tc-sh64.c: Ditto.
4147 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4148 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4149 for the no-relocation case.
4150 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4151 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4153 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4155 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4156 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4158 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4160 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4161 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4162 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4163 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4164 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4165 if reloc is emitted.
4166 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4167 New options plus bugfixes.
4168 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4170 (md_parse_option): Handle new options.
4171 (md_show_usage): Add blurb for new options.
4172 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4173 (sh64_expand, sh64_pt32): New variables.
4174 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4175 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4176 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4177 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4178 <resolved previously-pc-relative relocs>: Handle
4179 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4180 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4181 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4182 points to SHcompact code.
4183 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4184 SH64PCREL16)>: Check that ISA of what operand points at and
4185 PTA/PTB matches, or emit error.
4186 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4187 SHMEDIA_BFD_RELOC_PT.
4188 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4190 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4191 condition for MOVI expansion.
4192 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4193 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4195 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4197 (sh64_target_format): Error-check setting of sh64_pt32 and
4198 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4199 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4200 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4201 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4202 * config/tc-sh64.c: Improve comments.
4203 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4204 not say the linker will check correctness of PTA/PTB expansion.
4205 (shmedia_md_end): Make non-static.
4206 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4208 * config/tc-sh.c (sh_finalize): Remove.
4209 * config/tc-sh.h (md_end): Do not define.
4210 Remove prototype for sh_finalize.
4211 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4212 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4213 sh64_section_data container when storing section type in tdata
4214 field in elf_section_data.
4215 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4217 * Makefile.am: Update dependencies.
4218 * Makefile.in: Regenerate.
4219 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4220 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4221 dwarf2_emit_insn call with test on debug_type.
4222 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4223 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4224 CRT_SH5_ISA32 sticky for 64-bit.
4225 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4226 Generate .crange sections when switching ISA mode or emitting
4227 constants in same section as code.
4228 * config/tc-sh64.c: Reformat structure definitions.
4229 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4231 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4232 to emit a .cranges descriptor when contents type changes. Only
4233 emit error if changing contents type and -no-mix is in effect.
4234 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4235 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4236 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4237 sh64_flush_last_crange over sections.
4238 When checking main symbol of datalabel symbol, check for
4239 STO_SH5_ISA32, not ISA type of section in definition.
4240 (shmedia_frob_file_before_adjust): Check main symbol for
4241 STO_SH5_ISA32; don't check ISA type of section in definition.
4242 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4243 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4244 .cranges entries have been output.
4245 (shmedia_elf_new_section): Just call md_flush_pending_output.
4246 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4247 fix. Do not set tc_segment_info_data.in_code for section. Call
4248 sh64_set_contents_type for SHmedia code.
4249 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4250 false. Call md_flush_pending_output.
4251 (sh64_target_format): Check that -no-mix and
4252 -shcompact-const-crange are used in sane combination with other
4254 (shmedia_md_pcrel_from_section): Check type of fix for how to
4256 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4257 not ISA type of section in definition.
4258 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4259 hold contents-type state.
4260 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4261 (sh64_flush_pending_output): Declare.
4262 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4263 (sh64_tc_cons_fix_new): Declare.
4264 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4265 call sh64_flag_output.
4266 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4267 call sh64_set_contents_type to mark SHcompact code and set
4269 (md_longopts): New options "-no-mix" and
4270 "-shcompact-const-crange".
4271 (md_parse_option): Handle new options.
4272 (md_show_usage): Add blurb for new options.
4273 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4274 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4275 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4276 (sh64_last_insn_frag): New.
4277 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4278 to get frag for insn opcode for generating fixups; do not assume it
4280 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4282 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4284 (TC_FRAG_TYPE): Define as fragS *.
4285 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4286 (sh64_last_insn_frag): Declare.
4287 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4288 not == NULL before dereferencing.
4289 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4290 Get rid of BFD section flag and EF_SH64_ABI64.
4291 * config/tc-sh64.c (shmedia_frob_section_type): Use
4292 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4293 communicate the section as containing SHmedia code. Describe why.
4294 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4295 EF_SH64 regardless of ABI.
4296 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4297 in error message. Handle resolved expressions for
4298 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4299 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4300 (shmedia_check_limits): Handle BFD_RELOC_64.
4301 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4302 a STO_SH5_ISA32 symbol, only the BFD value.
4303 2000-12-11 Ben Elliston <bje@redhat.com>
4304 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4305 dwarf2_generate_asm_lineno.
4306 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4307 Handle PC-relative MOVI expansions with assembler relaxation.
4308 Generate PC-relative relocs from 16-bit PC-relative expressions.
4309 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4310 (shmedia_md_pcrel_from_section): ...here.
4311 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4312 turned completely resolved. Adjust relocation type for 16-bit
4313 immediate operands that has turned PC-relative. Adjust back for
4314 MD_PCREL_FROM_SECTION being applied twice.
4315 (shmedia_md_convert_frag): Always emit reloc for expression with
4316 global or weak symbol. Handle relaxation result for PC-relative
4318 (shmedia_md_estimate_size_before_relax): An expression with a weak
4319 or global symbol can not be relaxed. Break out tests for
4320 relaxable symbol into variable sym_relaxable.
4321 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4322 UNDEF_MOVI)>: Break out any PC-relative expression and change
4324 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4326 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4327 MOVI expansion. If X_op_symbol of the immediate expression is
4328 set, make an expression symbol for the argument to frag_var.
4329 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4331 (END): Adjust for new relaxations.
4332 (md_relax_table): Add entries for new relaxations.
4333 2000-12-07 Ben Elliston <bje@redhat.com>
4334 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4335 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4336 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4337 SHORI operand offsets in PT/PTA/PTB expansions.
4338 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4339 Implement DataLabel semantics.
4340 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4341 shmedia_frob_file_before_adjust.
4342 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4343 (DATALABEL_SUFFIX): Define.
4344 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4345 symbol list to update "datalabel" symbols to their main symbol
4347 (shmedia_frob_file_before_adjust): New.
4348 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4349 undefined and set STT_DATALABEL.
4350 (sh64_frob_label): Initialize TC symbol field.
4351 (sh64_consume_datalabel): Actually implement semantics. New
4352 parameter operandf, call it instead of expression.
4353 (sh64_exclude_symbol): New.
4354 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4355 to sh64_consume_datalabel.
4356 (tc_symbol_new_hook): Define to tc_frob_symbol.
4357 (TC_SYMFIELD_TYPE): Define to symbolS *.
4358 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4359 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4360 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4362 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4363 generating dwarf2 debug information.
4364 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4365 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4366 elf64-sh64 for the 64-bit ABI.
4367 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4369 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4370 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4372 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4373 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4374 (enum sh64_abi_values): New type.
4375 (enum sh64_isa_values): New type.
4376 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4377 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4378 (sh64_abi): Replace shmedia_64.
4379 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4380 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4381 (s_sh64_mode): Check validity for this target.
4382 (sh64_target_format): Initialize defaults for ISA and ABI.
4383 Fallback to old object format if no SH64 ISA or ABI has been
4385 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4386 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4387 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4388 * config/tc-sh64.h: Fix typo in comment.
4389 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4390 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4391 <PT fixups for absolute values>: Size will be longest, not
4393 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4394 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4395 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4396 and l1 to hold lowercase of two first characters. Change all
4397 remaining TO_LOWER to tolower.
4398 * config/tc-sh64.c (TO_LOWER): Delete.
4399 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4400 (md_parse_name): Define.
4401 (sh64_consume_datalabel): Declare.
4402 (DOLLAR_DOT): Define.
4403 * config/tc-sh64.c (shmedia_parse_exp): New.
4404 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4405 (shmedia_parse_reg): Remove const from src
4407 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4408 (shmedia_md_assemble): Ditto for op_end variable.
4409 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4410 Use shmedia_parse_exp, not parse_exp.
4411 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4412 parameter. All callers changed.
4413 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4415 (shmedia_parse_reg): Put first two character in local variables.
4416 Use tolower, not TO_LOWER. If no register is found and argtype
4417 indicates a control register, scan shmedia_creg_table
4419 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4420 * Makefile.am (CPU_TYPES): Add sh64.
4421 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4422 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4423 Regenerate dependencies.
4424 * Makefile.in: Regenerate.
4425 * configure.in: Add support for sh64-*-elf*.
4426 * configure: Regenerate.
4427 * config/tc-sh64.h: New.
4428 * config/tc-sh64.c: New.
4429 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4430 .mode, .isa and .uaquad.
4431 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4432 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4433 [HAVE_SH64] (END): Define as 10.
4434 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4435 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4437 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4438 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4439 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4440 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4442 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4443 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4444 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4445 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4446 SHmedia instructions. Handle state-change after switching to
4448 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4449 (md_parse_option) [HAVE_SH64]: Parse new options.
4450 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4451 (md_convert_frag) [HAVE_SH64] <default>: Call
4452 shmedia_md_convert_frag instead of abort.
4453 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4454 BFD_RELOC_SH_SHMEDIA_CODE.
4455 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4456 SHcompact or SHmedia code.
4457 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4458 shmedia_md_apply_fix instead of abort.
4459 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4460 result from calling shmedia_md_estimate_size_before_relax instead
4462 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4464 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4465 shmedia_init_reloc and do nothing more if it returns non-zero.
4466 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4467 * po/POTFILES.in: Regenerate.
4468 * po/gas.pot: Regenerate.
4470 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4472 * config/tc-sh.c (parse_at): Install the correct version of
4475 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4476 assume fixP->fx_subsy is non-NULL.
4478 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4480 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4481 A_DISP_PC_ABS, and adjust it by -4.
4482 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4484 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4485 the operand type is not A_DISP_PC_ABS.
4487 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4489 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4490 common and weak symbols. Handle common and weak symbols as
4491 undefined symbols with regards to GREG handling and merging.
4492 (mmix_frob_file): Ditto.
4494 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4496 * configure.in (hppa-*-netbsd*): New target.
4497 * configure: Regenerate.
4498 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4500 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4502 * config/tc-v850.c: Add missing prototypes amd use old-style
4503 function definitions.
4504 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4505 (sdata_section tdata_section, zdata_section, sbss_section,
4506 tbss_section, zbss_section, rosdata_section, rozdata_section,
4507 scommon_section, tcommon_section, zcommon_section,
4508 call_table_data_section, call_table_text_section): Delete.
4509 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4510 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4511 v850_call_table_data, v850_call_table_text): Delete.
4512 (struct v850_seg_entry): New.
4513 (v850_seg_table): New.
4514 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4515 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4516 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4517 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4520 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4521 recording of alignment.
4522 (md_pseudo_table): Use v850_seg.
4523 (md_begin): Don't init .call_table_data and .call_table_text here.
4524 Set v850_seg_table bss entry.
4526 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4528 Support on-demand global register allocation by passing on
4529 base-plus-offset relocs to the linker.
4530 * config/tc-mmix.c: Tweak and fix typos in comments.
4531 (allocate_undefined_gregs_in_linker): New variable.
4532 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4533 (md_longopts): Add --linker-allocated-gregs.
4534 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4535 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4536 (md_show_usage): Update text for -x. Add text for
4537 --linker-allocated-gregs.
4538 (tc_gen_reloc): Derive default value for addend from val and
4539 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4540 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4541 GREG if allocate_undefined_gregs_in_linker.
4542 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4543 --linker-allocated-gregs.
4544 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4545 --linker-allocated-gregs. Mention that it's implied by -x.
4546 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4547 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4549 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4551 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4553 * Makefile.am: Run "make dep-am"
4554 * Makefile.in: Regenerate.
4556 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4558 * config/tc-or32.c: New file.
4559 * config/tc-or32.h: New file.
4560 * configure.in: Add support for or32 targets.
4561 * configure: Regenerate.
4562 * config/obj-coff.c: Add support for or32 targets.
4563 * config/obj-coff.h: Add support for or32 targets.
4564 * Makefile.am: Add support for or32 targets.
4565 * Makefile.in: Regenerate.
4566 * NEWS: Mention support for OpenRISC.
4567 * doc/Makefile.in: Regenerate.
4568 * po/POTFILES.in: Regenerate.
4569 * po/gas.pot: Regenerate.
4571 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4573 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4576 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4578 * config/tc-mips.c (tc_gen_reloc): Arrange for
4579 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4580 their LO16 parts, even for ELF.
4582 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4584 * config/tc-i386.c: Protect definitions of true and false
4587 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4589 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4590 made because of .weak, if they are neither defined nor used in any
4593 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4595 * configure: Regenerated.
4597 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4599 * doc/Makefile.am (install): Depend on install-info.
4600 * doc/Makefile.in: Regenerate.
4602 2002-01-26 Nick Clifton <nick@redhat.com>
4604 * po/fr.po: Updated version
4606 2002-01-24 Kazu Hirata <kazu@hxi.com>
4608 * config/tc-h8300.c (check_operand): Don't print a warning
4609 when a valid 24-bit address is given to a 16-bit address
4612 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4614 * config/tc-sh.c (sh_elf_suffix): Removed.
4615 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4616 sh_end_of_match, sh_parse_name): New functions.
4617 (sh_elf_cons): Simplify.
4618 (parse_exp): Reject misplaced PIC operands.
4619 (md_undefined_symbol): Simplify.
4620 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4621 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4622 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4623 Complain if subsy remains at the end.
4624 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4625 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4627 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4629 * config/tc-mn10300.c (xr_registers): Move `pc'...
4630 (other_registers): ... here.
4632 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4634 * Makefile.am: Run "make dep-am".
4635 * Makefile.in: Regenerate.
4636 * gas/po/POTFILES.in: Regenerate.
4638 2002-01-21 DJ Delorie <dj@redhat.com>
4640 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4641 stabstr_name allocation permanent, as it will be referenced from
4644 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4646 * configure.in (ia64-*-netbsd*): New target.
4647 * configure: Regenerate.
4649 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4651 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4653 <Detailed description, ARM options>: Ditto.
4654 * doc/c-arm.texi (ARM Options): Ditto.
4656 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4658 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4659 do_mia, do_mar and do_mra respectively.
4660 (do_mav_*): Renamed from do_c_*.
4661 (mav_reg_required_here, mav_parse_offset): Renamed from
4662 cirrus_reg_required_here and cirrus_parse_offset respectively.
4663 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4665 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4666 Keith Walker <keith.walker@arm.com>
4668 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4669 (insns): Add pattern for bxj instruction.
4670 (do_bxj): New function.
4671 (arm_cpus): Add arm926ej.
4672 (arm_archs): Add armv5tej.
4674 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4676 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4678 2002-01-19 Keith Walker <keith.walker@arm.com>
4680 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4682 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4684 * NEWS: Mention new ARM command-line options and VFP support.
4686 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4688 (ARM_CEXT_MAVERICK): Similarly.
4689 (ARM_ANY): Now means any core instruction.
4690 (CPU_DEFAULT): Default to ARM_ANY.
4691 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4692 (pic_code): Declare for all object types. Make type int.
4693 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4694 (march_fpu_opt, mfpu_opt): Declare.
4695 (md_longopts): Tidy up conditional definitions.
4696 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4697 (arm_long_opts): New tables.
4698 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4699 (arm_parse_extension): New function.
4700 (md_parse_option): Rewrite using new table-driven system.
4701 (md_show_usage): Use new table-driven system.
4702 (md_begin): Calculate cpu_variant from command line option data.
4703 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4704 command-line options.
4705 * doc/c-arm.texi: Likewise.
4707 2002-01-18 Andreas Jaeger <aj@suse.de>
4709 * as.c (parse_args): Update year.
4711 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4713 * config/tc-tic54x.c (encode_address): Add a more informative
4714 warning about incorrect syntax.
4716 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4718 * po/gas.pot: Regenerate.
4720 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4722 * macro.c (get_any_string): Add no-c-format comment to prevent
4723 confusion when translating string.
4724 * gasp.c (get_any_string): Add no-c-format comment to prevent
4725 confusion when translating string.
4727 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4728 Johannes Stezenbach <js@convergence.de>
4729 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4730 matched before the shorter ones.
4731 (my_getSmallParser): Fix handling of nested parentheses in
4732 percent_op's. Code cleanup.
4733 (my_getPercentOp): New function, code from my_getSmallParser.
4734 (my_getSmallExpression): Fix handling of closing parentheses.
4735 Code cleanup. Better comments.
4737 2002-01-16 Nick Clifton <nickc@redhat.com>
4739 po/tr.po: New file: Turkish translation.
4740 configure.in (LINGUAS): Add "tr".
4741 configure: Regenerate.
4743 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4745 Support for VFP instructions
4746 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4747 (cp_address_required_here): New argument wb_ok. When false, do not
4748 accept write-back forms of addressing. Change all callers.
4749 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4750 (FPU_VFP_EXT_V2): Define.
4751 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4752 Define in terms of above.
4753 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4754 (vfp_reg): New struct.
4755 (vfp_regs): New array of registers.
4756 (insns): Add VFP instructions.
4757 (sn_table): New array of VFP single-precision register names.
4758 (dn_table): New array of VFP double-precision register names.
4759 (all_reg_maps): Add the new register tables.
4760 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4761 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4762 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4763 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4764 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4765 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4766 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4767 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4768 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4769 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4770 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4771 (do_vfp_sp_dp_cvt): New functions.
4772 (md_begin): Set soft-float flag for appropriate VFP work.
4773 (md_atof): Handle VFP-format doubles.
4774 (md_parse_option): Handle VFP command-line options.
4775 (md_show_usage): Display VFP command-line options.
4777 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4779 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4780 various command line options.
4782 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4784 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4786 (xstormy16_md_apply_fix3): Do not return a value.
4788 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4790 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4791 the -EL/-EB option that matches the target's endianness.
4792 (md_parse_option): Likewise.
4794 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4796 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4797 is not dependent on ARM_BI_ENDIAN.
4799 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4801 * tc-arm.c (all error messages): Normalize capitalization of messages.
4803 * tc-arm.h (md_operand): Delete define.
4804 * tc-arm.c (in_my_get_expression): New static variable.
4805 (my_get_expression): Set and clear it.
4806 (md_operand): New function. If called from my_get_expression
4807 put the error in inst.error.
4808 (output_inst): Now takes argument of instruction being assembled.
4809 Print it out with any error message.
4810 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4812 (end_of_line): Don't update inst.error if it is already set.
4814 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4816 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4817 op that can be translated into a mvn instruction.
4819 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4821 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4822 setting default md.flags.
4823 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4824 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4825 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4826 for 32 bit unwind info blocks.
4827 (generate_unwind_image): Add support for different types
4828 of unwind images (32 bits and/or big-endian).
4829 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4830 (ia64_target_format): Add support for hpux target formats.
4831 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4832 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4833 SHT_FINI_ARRAY elf section types.
4835 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4837 * tc-arm.c (struct reg_entry): Move before prototypes.
4838 (int_register, cp_register, fp_register): Delete.
4839 (reg_table): Delete. Replaced with ...
4840 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4841 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4842 (mav_dspsc_table): ... one table per register set.
4843 (arm_reg_hsh): Delete.
4844 (struct reg_map): New structure.
4845 (all_reg_maps): New array.
4846 (enum arm_reg_type): New enums.
4847 (build_reg_hsh): New function.
4848 (insert_reg_alias): Use hash table passed by caller. Adjust all
4850 (create_register_alias): New function, split out from ...
4851 (md_assemble): ... here.
4852 (md_begin): Build new register hash tables.
4853 (arm_reg_parse): New argument for the hash table to search. Adjust all
4855 (arm_reg_parse_any): New function.
4856 (co_proc_number): Look up the processor number in the processor hash
4858 (cirrus_regtype): Delete.
4859 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4860 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4861 (ARM_EXT_MAVERICKsc_register): Delete.
4862 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4863 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4865 (do_c_triple_4, do_c_triple_5): Delete.
4866 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4867 (do_c_quad_6): Delete.
4868 (do_c_quad_6[ab]): New functions.
4869 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4870 arguments to use new register parsing methods.
4871 (cirrus_reg_required_here): Likewise.
4872 (insns): Reclassify cirrus maverick worker functions.
4873 (cirrus_valid_reg): Delete.
4875 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4877 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4878 (sh*-*-netbsdelf*): New target.
4879 * configure: Regenerate.
4880 * tc-sh.h: Update copyright years.
4881 (TARGET_FORMAT): Add version for TE_NetBSD.
4883 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4885 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4888 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4890 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4891 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4893 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4895 * tc-mips.c (mips_cprestore_valid): New flag.
4896 (mips_frame_reg_valid): New flag.
4897 (macro) [M_JAL_2]: Check both flags.
4898 [M_JAL_A]: Likewise.
4899 (s_cprestore): Set mips_cprestore_valid.
4900 (tc_get_register): If setting mips_frame_reg, set
4901 mips_frame_reg_valid and clear mips_cprestore_valid.
4902 (s_mips_ent): Clear both flags.
4903 (s_mips_end): Clear both flags.
4905 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4907 * write.c (write_object_file): Make use of bfd_section_list_remove.
4908 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4909 * config/tc-mmix.c (mmix_frob_file): Likewise.
4911 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4913 * configure.in (i386-*-netbsdelf*): Collapse target into...
4914 (i386-*-netbsd*): ...this. Add support for x86-64.
4915 * configure: Regenerated.
4917 2002-01-03 matthew green <mrg@redhat.com>
4919 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4921 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4923 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4926 For older changes see ChangeLog-0001
4932 version-control: never