1 2003-03-09 James E Wilson <wilson@tuliptree.org>
3 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
4 * read.c (get_line_sb): Return end of line character or '\n' if
5 it is zero or non-existent.
7 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
9 * config/tc-mips.c (mips_validate_fix): New function.
10 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
11 (mips_validate_fix): Declare.
13 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
15 * Reverted 2003-03-02's patch.
17 2003-03-11 Steve Ellcey <sje@cup.hp.com>
19 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
20 (TC_DWARF2_EMIT_OFFSET): Provide default.
21 (out_debug_aranges, out_debug_info): Use it.
22 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
23 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
24 (ia64_gen_real_reloc_type): ... here.
25 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
27 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
29 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
30 (s_mips_ent): Likewise.
32 2003-03-04 Dmitry Diky <diwil@mail.ru>
34 * config/tc-msp430.c (mcu_types): Add recently announced x1122
35 and x1123 devices, add missed x437.
36 (md_show_usage): Sort device list.
38 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
40 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
41 (md_begin): Use preset_target_arch.
42 (md_longopts): Make isa option unconditional.
43 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
44 set preset_target_arch.
45 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
46 by -S_GET_VALUE (fixP->fx_subsy).
47 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
49 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
50 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
52 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
54 * config/tc-mips.c (append_insn): Add handling of
55 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
56 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
57 misaligned address and reange overflow.
58 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
59 earlier warnings about misaligned address and reange overflow.
60 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
61 (md_apply_fix): Likewise. Fix warning output.
62 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
63 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
64 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
66 2003-02-21 Nick Clifton <nickc@redhat.com>
68 * NEWS: Mention availability of test generator program.
70 2003-02-21 Miles Bader <miles@gnu.org>
72 * config/tc-v850.c (system_registers): Add v850e debug registers.
73 (system_register_name): Accept up to 27 (the last v850e sys register).
75 2003-02-21 Bob Wilson <bob.wilson@acm.org>
77 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
78 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
79 Capitalize section headings consistently. Format index entries more
80 consistently. Unconditionalize text about whether text and data
81 sections are alterable. Use @ifnottex for alternatives to @tex output
82 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
83 .size and .type directives. Be more polite about bad bug reports.
84 Move FDL into a separate file.
85 * doc/fdl.texi: New file.
87 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
89 * config/tc-mips.c (prev_reloc_op_frag): New variable.
90 (macro): Check it to decide whether a new frag is needed.
91 (my_getSmallExpression): Set it.
93 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
95 * cgen.c: Fix typo: intial -> initial.
97 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
99 * app.c (do_scrub_chars): Handle '||' in two states.
101 2003-02-13 Alan Modra <amodra@bigpond.net.au>
103 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
104 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
106 2003-02-11 Uwe Stieber <uwe@wwws.de>
108 * configure.in: Add support for kaOS as cross build target system.
109 * configure: Regenerated.
111 2003-02-10 Nick Clifton <nickc@redhat.com>
113 * config/tc-arm.c (md_begin): If the Maverick co-processor is
114 selected, set the EF_ARM_MAVERICK_FLOAT flag and
115 bfd_mach_arm_ep9312 machine number.
117 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
119 * config/tc-mips.c (reloc_needs_lo_p): New function.
120 (fixup_has_matching_lo_p): New function.
121 (append_insn): Use reloc_needs_lo_p to check whether a relocation
122 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
123 if that fixup already has a matching %lo(). Don't call frag_wane here.
124 (macro): Call frag_wane here if the last unmatched hi was in the
126 (pic_need_relax): New function, split out from...
127 (md_estimate_size_before_relax): ...here.
128 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
129 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
131 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
133 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
135 2003-02-06 Alan Modra <amodra@bigpond.net.au>
137 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
140 2003-02-05 Alan Modra <amodra@bigpond.net.au>
142 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
143 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
144 accept x@got+off etc.
145 (md_assemble): Handle TLS relocs.
146 (ppc_force_relocation): Force for all TLS relocs.
147 (ppc_fix_adjustable): Likewise.
148 (md_apply_fix3): Handle TLS relocs.
150 2003-02-04 Alan Modra <amodra@bigpond.net.au>
152 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
153 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
155 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
157 * config/tc-mips.c (enum small_ex_type): Remove.
158 (imm_unmatched_hi): Remove.
159 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
160 argument from calls to append_insn.
161 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
163 (macro_build): Update append_insn calls.
164 (mips16_macro_build, macro_build_lui): Likewise.
165 (mips_ip): Rework handling of small expressions. Move explicit
166 relocation handling into my_getSmallExpression. Assume that the
167 value of 'o' operands is zero if there is only one bracketed
169 (percent_op): Make constant. Record the BFD relocation code
170 associated with each operator.
171 (my_getSmallParser, my_getPercentOp): Remove.
172 (parse_relocation): New function.
173 (my_getSamllExpression): Rework. Fill in relocations here
174 rather than in mips_ip.
176 2003-01-29 Nick Clifton <nickc@redhat.com>
178 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
179 assembler's handling of # <linenum> "<filename>" directives work.
181 2003-01-28 Jakub Jelinek <jakub@redhat.com>
183 * dwarf2dbg.c: Include filenames.h.
184 (struct file_entry): Make filename const char *.
185 (dirs, dirs_in_use, dirs_allocated): New variables.
186 (get_filenum): Add NUM argument. Build directory table.
187 (dwarf2_where): Adjust caller.
188 (dwarf2_directive_file): Use get_filenum to allocate
189 slot in file and directory tables.
190 (dwarf2_directive_loc): Recreate full filename from
191 directory and filename part if needed for listing.
192 (out_file_list): Output directory table.
193 Output main source file dirname before its filename.
195 2003-01-28 Dmitry Diky <diwil@mail.ru>
197 * config/tc-msp430.c: Replace occurences of 'tolower' with
200 2003-01-27 David Mosberger <davidm@hpl.hp.com>
202 * config/tc-ia64.c (dot_vframesp): Correct error message.
203 (dot_vframepsp): Ditto.
205 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
207 * configure.in (em): Set to irix on all Irix systems.
208 * configure: Rebuilt.
209 * config/te-irix.h: New file.
210 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
211 whether to use Irix-specific 64-bit format.
213 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
215 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
217 2003-01-25 Jakub Jelinek <jakub@redhat.com>
219 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
220 (tc_gen_reloc): Handle TLS relocs.
221 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
222 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
224 * config/obj-elf.c (obj_elf_section_word): Handle tls.
225 (obj_elf_type): Handle tls_object.
227 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
229 * config/tc-s390.c (s390_tls_suffix): New function.
230 (elf_suffix_type): Add suffix enums for TLS relocations.
231 (s390_elf_suffix): Add suffix strings for TLS relocations.
232 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
234 (md_gather_operands): Map new instruction operand/elf suffix
235 combinations for TLS to bfd relocations.
236 (tc_s390_fix_adjustable): Add new TLS relocations.
237 (tc_s390_force_relocation): Likewise.
238 (md_apply_fix3): Likewise.
240 2003-01-24 Alan Modra <amodra@bigpond.net.au>
242 * as.h: Update copyright date.
243 * symbols.c: Likewise.
244 * config/tc-d10v.h: Likewise.
245 * config/tc-fr30.h: Likewise.
246 * config/tc-i960.h: Likewise.
247 * config/tc-mips.h: Likewise.
249 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
250 (MD_APPLY_SYM_VALUE): Move.
252 2003-01-23 Nick Clifton <nickc@redhat.com>
254 NEWS: Announce sh2e support.
258 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
260 * config/tc-sh.c (md_show_usage): Added sh2e next to
262 (sh_elf_final_processing): Handle arch_sh2e.
264 2003-01-23 Alan Modra <amodra@bigpond.net.au>
266 * symbols.c (S_FORCE_RELOC): Add "strict" param.
267 * symbols.h (S_FORCE_RELOC): Likewise.
268 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
269 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
270 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
271 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
272 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
273 * write.c (generic_force_reloc): New function.
274 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
275 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
276 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
277 * as.h (generic_force_reloc): Declare.
278 * doc/internals.texi (S_FORCE_RELOC): Update.
279 (TC_FORCE_RELOCATION_SUB_SAME): Update.
281 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
283 (alpha_fix_adjustable): Likewise.
284 * config/tc-arm.c (arm_force_relocation): Likewise.
285 * config/tc-cris.c (md_cris_force_relocation): Likewise.
286 * config/tc-frv.c (frv_force_relocation): Likewise.
287 * config/tc-i386.c (md_apply_fix3): Likewise.
288 * config/tc-ia64.c (ia64_force_relocation): Likewise.
289 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
290 * config/tc-m32r.c (m32r_force_relocation): Likewise.
291 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
292 * config/tc-mcore.c (mcore_force_relocation): Likewise.
293 * config/tc-mips.c (mips_force_relocation): Likewise.
294 * config/tc-mmix.c (mmix_force_relocation): Likewise.
295 * config/tc-ppc.c (ppc_force_relocation): Likewise.
296 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
297 * config/tc-sh.c (sh_force_relocation): Likewise.
298 (md_pcrel_from_section): Likewise.
299 * config/tc-sparc.c (tc_gen_reloc): Likewise.
300 * config/tc-v850.c (v850_force_relocation): Likewise.
301 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
302 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
303 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
304 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
306 * config/tc-d10v.c (d10v_force_relocation): Delete.
307 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
308 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
309 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
310 * config/tc-fr30.c (fr30_force_relocation): Delete.
311 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
312 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
313 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
314 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
315 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
316 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
317 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
318 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
319 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
320 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
321 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
322 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
323 * config/tc-i386.c (i386_force_relocation): Delete.
324 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
326 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
327 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
328 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
329 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
331 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
332 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
334 2003-01-23 Alan Modra <amodra@bigpond.net.au>
336 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
337 sh64_elf_section_data.
338 * config/tc-sh64.h: Include elf32-sh64.h.
339 * config/tc-m68hc11.c: Don't include stdio.h.
340 (md_show_usage): Fix missing continuation.
341 * Makefile.am: Run "make dep-am".
342 * Makefile.in: Regenerate.
344 2003-01-22 Nick Clifton <nickc@redhat.com>
346 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
348 2003-01-21 Fabio Alemagna <falemagn@aros.org>
350 * configure.in: Handle *-*-aros*.
351 * configure: Regenerated from configure.in.
353 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
355 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
356 gotplt and pltoff relocations.
357 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
358 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
359 gotplt and pltoff to bfd relocations.
360 (md_gather_operands): Map new instruction operand/elf suffix
361 combinations to bfd relocations.
362 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
363 to the list of unadjustable relocations.
364 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
365 and pltoff relocations.
366 (md_apply_fix3): Add the new relocations.
368 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
370 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
373 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
375 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
376 of relocs for memory bank addressing.
378 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
380 * config/tc-m68hc11.c (md_show_usage): Update usage.
381 (md_parse_option): Recognize -m68hcs12.
382 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
384 * doc/as.texinfo (Overview): Document new option -m68hcs12.
386 2003-01-16 Jakub Jelinek <jakub@redhat.com>
388 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
390 2003-01-16 Alan Modra <amodra@bigpond.net.au>
392 * Makefile.am: Run "make dep-am".
393 * Makefile.in: Regenerate.
394 * po/POTFILES.in: Regenerate.
396 2003-01-11 Alan Modra <amodra@bigpond.net.au>
398 * read.c (get_absolute_expr): New, split out from..
399 (get_absolute_expression): ..here.
400 * read.h (get_absolute_expr): Declare.
401 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
402 Trim size to arch bits_per_address, and test for negative input
403 via get_absolute_expr.
405 2003-01-07 DJ Delorie <dj@redhat.com>
407 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
409 (xstormy16_md_apply_fix3): Use adjustment.
411 2003-01-02 Ben Elliston <bje@redhat.com>
413 * configure.in: Add iq2000-elf target.
414 * configure: Regenerate.
415 * config/tc-iq2000.c: New file.
416 * config/tc-iq2000.h: Likewise.
417 * po/gas.pot: Regenerate.
419 2003-01-02 Chris Demetriou <cgd@broadcom.com>
421 * config/tc-mips.c: Update copyright years to include 2003.
422 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
423 Additionally, clean up their code slightly and clean up their
426 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
428 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
430 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
432 * doc/Makefile.in: Regenerate.
434 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
436 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
437 of .init and .fini sections for array initializers and finalizers.
439 2002-12-31 Chris Demetriou <cgd@broadcom.com>
441 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
442 the "+D" operand, which will be used only by the disassembler.
444 2002-12-30 Chris Demetriou <cgd@broadcom.com>
446 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
448 * configure: Regenerate.
449 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
450 (macro_build): Handle "K" operand.
451 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
452 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
453 (mips_ip): New variable "lastpos", and implement "+A", "+B",
454 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
455 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
456 (validate_mips_insn): Implement "+" as a way to extend the
457 allowed operands, and implement "K", "+A", "+B", and "+C"
459 (OPTION_MIPS32R2): New define.
460 (md_longopts): Add entry for OPTION_MIPS32R2.
461 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
462 (md_parse_option): Handle OPTION_MIPS32R2.
463 (s_mipsset): Reimplement handling of ".set mipsN" options
464 and add support for ".set mips32r2".
465 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
466 (md_show_usage): Document "-mips32r2" option.
467 * doc/as.texinfo: Document "-mips32r2" option.
468 * doc/c-mips.texi: Likewise.
470 2002-12-30 Dmitry Diky <diwil@mail.ru>
472 * configure.in: Add msp430 target.
473 * configure: Regenerate.
474 * Makefile.am: Add msp430 target.
475 * Makefile.in: Regenerate.
476 * config/tc-msp430.c: New file: msp430 assembler.
477 * config/tc-msp430.h: New file: target macros for msp430.
478 * doc/Makefile.am: Add msp430 target.
479 * doc/Makefile.in: Regenerate.
480 * doc/as.texinfo: Include msp430 documenation.
481 * doc/all.texi: Enable msp430 documentation.
482 * doc/c-msp430.texi: New file: document msp430 specific features
485 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
487 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
488 (dwarf2_finish): Use it.
489 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
490 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
492 2002-12-20 DJ Delorie <dj@redhat.com>
494 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
495 BFD_RELOC_XSTORMY16_12.
497 2002-12-19 Alan Modra <amodra@bigpond.net.au>
499 * doc/as.texinfo (Invoking): Typo fix.
500 * config/tc-tic54x.c (encode_operand): Comment typo fix.
502 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
504 * doc/c-alpha.texi: Fix typos.
505 * doc/c-arm.texi: Likewise.
506 * doc/c-d10v.texi: Likewise.
507 * doc/c-i370.texi: Likewise.
508 * doc/c-i960.texi: Likewise.
509 * doc/c-ia64.texi: Likewise.
510 * doc/c-mmix.texi: Likewise.
511 * doc/c-ns32k.texi: Likewise.
512 * doc/c-pdp11.texi: Likewise.
513 * doc/c-pj.texi: Likewise.
514 * doc/c-sh64.texi: Likewise.
515 * doc/c-sparc.texi: Likewise.
516 * doc/c-tic54x.texi: Likewise.
517 * doc/c-v850.texi: Likewise.
518 * doc/c-vax.texi: Likewise.
519 * doc/internals.texi: Likewise.
521 2002-12-18 Chris Demetriou <cgd@broadcom.com>
523 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
524 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
525 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
526 arrange not to issue warnings about use of AT when AT is not
529 2002-12-17 Nick Clifton <nickc@redhat.com>
531 * as.c (std_longopts): Duplicate --keep-locals entry in order to
532 prevent it being confused with -k.
534 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
536 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
537 has already been set up, use it.
539 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
541 * ChangeLog-9295: Fix a typo.
543 * config/tc-d10v.c: Fix a comment typo.
544 * config/tc-dlx.c: Likewise.
545 * config/tc-h8300.h: Likewise.
546 * config/tc-h8500.h: Likewise.
547 * config/tc-mips.c: Likewise.
548 * config/tc-s390.c: Likewise.
549 * config/tc-sh.h: Likewise.
550 * config/tc-tic80.h: Likewise.
551 * config/tc-w65.h: Likewise.
552 * config/tc-z8k.c: Likewise.
553 * config/tc-z8k.h: Likewise.
554 * testsuite/gas/h8300/cmpsi2.s: Likewise.
556 2002-12-16 Alan Modra <amodra@bigpond.net.au>
558 * config/tc-d30v.c (check_range): Warning fixes, formatting.
559 Simplify sign extension. Remove redundant unsigned < 0 test.
560 * config/tc-i960.c (md_ri_to_chars): Prototype.
561 * config/tc-mcore.c (md_pseudo_table): Fix typo.
562 (dump_literals): Init brarsym, and test later instead of isforce.
564 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
565 (parse): Constify line and lineptr.
566 (md_begin): Calculate endop here.
568 2002-12-13 Alan Modra <amodra@bigpond.net.au>
570 * config/obj-vms.c: Formatting. Include fnctl.h.
571 (Create_VMS_Object_File): Fix creat call for sane unix systems.
572 (Object_Record_Offset): Make it a size_t.
573 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
574 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
575 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
576 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
577 (vms_fixup_data_section <data_size>): Add here instead.
578 * config/e-criself.c: Fix typo in last change.
580 2002-12-13 Alan Modra <amodra@bigpond.net.au>
582 * write.c (write_object_file): Fix signed/unsigned warning.
583 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
584 * config/e-criself.c (criself_bfd_name): Prototype.
585 * config/obj-aout.c (s_sect): Remove unused function.
586 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
587 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
588 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
589 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
590 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
591 (VMS_RSYM_Parse <Current_Routine>): Likewise.
592 (vms_fixup_text_section <text_siz>): Likewise.
593 (synthesize_data_segment <data_size>): Likewise.
594 (vms_fixup_xtors_section <sect_no>): Likewise.
595 (structure_count): Don't use implicit int type.
596 * config/tc-a29k.c (insert_sreg): Prototype.
597 (define_some_regs): Prototype, make static.
598 (parse_operand): Likewise.
599 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
600 (md_show_usage <stream>): Likewise.
601 (md_section_align <segment>): Likewise.
602 (md_convert_frag <all args>): Likewise.
603 (md_estimate_size_before_relax <all args>): Likewise.
604 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
605 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
606 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
607 (md_undefined_symbol <name>): Likewise.
608 (md_convert_frag <all args>): Likewise.
609 (write_long <opcode>): Likewise.
610 (tc_gen_reloc <seg>): Likewise.
611 (md_estimate_size_before_relax <all args>): Likewise.
612 (md_apply_fix3 <seg>): Likewise.
613 (s_d30v_align <ignore>): Likewise.
614 (build_insn): Correct format string.
615 (md_apply_fix3): Likewise.
616 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
617 (md_undefined_symbol <name>): Likewise.
618 (md_convert_frag <all args>): Likewise.
619 (md_cgen_lookup_reloc <insn>): Likewise.
620 (md_begin): Delete unused vars.
621 (md_assemble): Likewise.
622 (md_estimate_size_before_relax): Likewise.
623 (fr30_relax_frag): #if 0 out, seems unused.
624 (md_atof): Remove declaration of atof_ieee.
625 (restore_colon): Prototype.
626 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
627 (frv_find_in_vliw): Likewise.
628 (frv_debug_tomcat): Likewise.
629 (frv_adjust_vliw_count): Likewise.
630 (frv_tomcat_shuffle): Likewise.
631 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
632 frv_find_in_vliw call.
633 (md_atof): Remove declaration of atof_ieee.
634 * config/tc-h8500.c (cons): Delete declaration.
635 (md_begin <opcode>): Constify.
636 (displacement_size, immediate_size, absolute_size): Remove.
637 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
638 (tc_crawl_symbol_chain <headers>): Likewise.
639 (md_undefined_symbol <name>): Likewise.
640 (tc_headers_hook <headers>): Likewise.
641 (md_parse_option <c,arg>): Likewise.
642 (md_show_usage <stream>): Likewise.
643 (md_convert_frag <headers, seg>): Likewise.
644 (tc_coff_symbol_emit_hook <ignore>): Likewise.
645 (md_atof): Remove declaration of atof_ieee.
646 (tc_aout_fix_to_chars): Remove unused function.
647 (parse_reg): Prototype.
648 (parse_exp): Prototype.
649 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
650 (parse_reglist): Prototype.
651 (get_operand): Prototype.
652 (get_operands): Prototype.
653 (get_specific): Prototype. Make "this_index" signed.
654 (check): Prototype, make static.
656 (build_relaxable_instruction): Prototype, make static.
657 (build_bytes): Prototype.
658 (wordify_scb): Prototype.
659 * config/tc-h8500.h (start_label): Declare.
660 (tc_coff_sizemachdep): Declare.
661 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
662 (i370_rmode <unused>): Likewise.
663 (i370_csect <unused>): Likewise.
664 (i370_dc <unused>): Likewise.
665 (i370_ds <unused>): Likewise.
666 (i370_elf_lcomm <unused>): Likewise.
667 (i370_ltorg <ignore>): Likewise.
668 (i370_using <ignore>): Likewise.
669 (i370_drop <ignore>): Likewise.
670 (i370_byte <ignore>): Likewise.
671 (i370_tc <ignore>): Likewise.
672 (md_estimate_size_before_relax <fragp, seg>): Likewise.
673 (md_convert_frag <all args>): Likewise.
674 (md_undefined_symbol <name>): Likewise.
675 (md_pcrel_from_section <sec>): Likewise.
676 (tc_gen_reloc <seg>): Likewise.
677 (i370_section_letter): #if 0 unused functions.
678 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
679 (symbol_locate): Prototype.
680 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
681 (md_number_to_disp, md_number_to_field): Remove.
682 (md_apply_fix3): Correct format string and cast "fup".
683 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
684 (s_endian <ignore>): Likewise.
685 (md_undefined_symbol <name>): Likewise.
686 (tc_crawl_symbol_chain <headers>): Likewise.
687 (tc_set_bal_of_call): Likewise.
688 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
689 (i960_handle_align <fragp>): Likewise.
690 (i960_validate_fix <this_segment_type>): Likewise
691 (tc_gen_reloc <section>): Likewise.
692 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
693 (struct memS, struct regop): Forward declare.
694 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
695 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
696 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
697 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
698 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
699 (md_chars_to_number, md_number_to_imm): Make static, prototype.
700 (md_number_to_field): Likewise.
701 (md_number_to_disp): Remove unused function.
702 (md_atof): Remove declaration of atof_ieee.
703 (md_apply_fix3): Correct md_number_to_imm call.
704 * config/tc-ip2k.c (md_assemble): Warning fix.
705 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
706 (fill_insn <ignore>): Likewise.
707 (debug_sym <ignore>): Likewise.
708 (md_undefined_symbol <name>): Likewise.
709 (m32r_scomm <ignore>): Likewise.
710 (md_convert_frag <abfd>): Likewise.
711 (md_cgen_lookup_reloc <insn>): Likewise.
712 (m32r_record_hi16 <seg>): Likewise.
713 (md_estimate_size_before_relax): #if 0 old_fr_fix.
714 (allow_m32rx): Prototype.
715 (first_writes_to_seconds_operands): Prototype.
716 (writes_to_pc): Prototype.
717 (can_make_parallel): Prototype.
718 (make_parallel): Prototype.
719 (target_make_parallel): Prototype.
720 (assemble_two_insns): Prototype.
721 (m32r_record_hi16): Prototype.
722 (md_atof): Remove declaration of atof_ieee.
723 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
724 (m32r_force_relocation): Prototype.
725 (m32r_elf_section_change_hook): Prototype.
726 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
727 (md_show_usage): Fix signed/unsigned warning.
728 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
729 (calcop): Ditto for reg_prefix var.
730 (hexval): Add cast to fix signed/unsigned warning.
731 (md_number_to_disp): Delete unused function.
732 (md_number_to_field): Likewise.
733 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
734 (match_name): Prototype.
735 (get_bf2): Prototype.
736 (get_bf_offset_expression): Prototype.
737 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
738 (md_undefined_symbol <ignore>): Likewise.
739 (md_create_short_jump <all args>): Likewise.
740 (md_create_long_jump <all args>): Likewise.
741 (md_convert_frag <abfd, sec>): Likewise.
742 (md_apply_fix3 <segment>): Likewise.
743 (md_section_align <segment>): Likewise.
744 (md_pcrel_from_section <sec>): Likewise.
745 (tc_gen_reloc <section>): Likewise.
746 (reg_m, reg_n, immediate): Delete unused vars.
747 (dump_literals): Fix signed/unsigned warning.
748 (enter_literal): Likewise.
749 (parse_imm): Likewise. Also fix format string.
750 (parse_mem): Remove unused var.
751 (md_assemble <LS>): Abort on unexpected inst.
752 (md_atof): Remove declaration of atof_ieee.
753 (md_parse_option): Remove unused vars.
754 (md_apply_fix3): Fix format strings, cast args.
755 (tc_gen_reloc): Delete unused var.
756 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
757 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
758 (md_undefined_symbol <name>): Likewise.
759 (md_convert_frag <abfd>): Likewise.
760 (tc_gen_reloc <seg>): Likewise.
761 (check_operand <insn>): Likewise.
762 (md_convert_frag): Fix format strings.
763 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
764 * config/tc-openrisc.c (ignore_pseudo): Prototype.
765 (md_atof): Remove declaration of atof_ieee.
766 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
767 (md_apply_fix3): Fix bogus >>='s.
768 (md_undefined_symbol): Delete unused var.
769 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
770 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
771 (fake_opcode): Adjust for pj_opc_int_t change.
772 (md_begin): Likewise.
773 (md_assemble): Likewise.
774 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
775 instead of non-existent third arg of parse_exp_save_ilp.
776 (md_parse_option): Correct "little" and "big" calls.
777 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
778 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
779 (tc_gen_reloc <section>): Likewise.
780 * config/tc-tic30.c: #include stdarg.h or varargs.h.
781 (debug): Rewrite using VA_* macros.
782 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
783 (md_convert_frag): Likewise.
784 (md_parse_option): Likewise.
785 (md_show_usage): Likewise.
786 (md_undefined_symbol): Likewise.
787 (tc_gen_reloc): Likewise.
788 (md_operand): Likewise.
789 (tc_aout_pre_write_hook): Delete.
790 (struct tic30_insn): Make "operands" unsigned.
791 (struct tic30_par_insn): Likewise.
792 (md_assemble): Likewise for "count", "i" and "numops".
793 (tic30_parallel_insn): Likewise for vars here.
794 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
795 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
796 * config/tc-tic80.c (obj_coff_section): Delete declaration.
797 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
798 (md_undefined_symbol): Likewise.
799 (md_parse_option): Likewise.
800 (md_convert_frag): Likewise.
801 (tc_coff_symbol_emit_hook): Likewise.
802 (md_atof): Remove declaration of atof_ieee.
803 (const_overflow): Warning fixes, tidy.
804 (get_operands): Delete unused vars.
805 (internal_error_a): Adjust format string to expect a long for arg.
806 (find_opcode): Warning fixes, simplify.
807 (build_insn): Cast internal_error_a arg.
808 (md_begin): Likewise.
809 (md_apply_fix3): Likewise.
810 (md_assemble): Delete unused var.
811 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
812 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
813 (whatreg, parse_reg, parse_exp): Make static, prototype.
814 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
815 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
816 (get_operand, get_operands, get_specific, newfix): Likewise.
817 (apply_fix, build_bytes): Likewise.
818 (md_atof): Remove declaration of atof_ieee.
819 (tc_aout_fix_to_chars): Delete.
820 (md_begin): Constify "opcode". Don't try to init opcode->idx.
822 (md_parse_option): Fix s_segm and s_unseg calls.
824 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
826 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
828 (RELAX_BRANCH_RELOC_S2): Delete.
829 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
830 Do not handle BFD_RELOC_16_PCREL.
831 (macro_build, mips_ip): Likewise.
832 (md_pcrel_from): Return 4 for undefined symbols regardless of
834 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
835 Don't dereference howto if no such relocation is available.
836 Do not apply hack for in-place zero addend in NEWABI.
837 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
839 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
840 Alan Modra <amodra@bigpond.net.au>
842 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
843 (TC_LINKRELAX_FIXUP): Add comments.
845 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
847 * config/tc-mn10300.c (set_arch_mach): Change argument type to
849 (r_register_name, xr_register_name): Add prototype declarations.
851 2002-12-08 H.J. Lu <hjl@gnu.org>
853 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
854 copied from tc-i386.c.
856 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
858 Fix Bug savannah/1825:
859 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
860 (md_relax_table): Define specific relax for PC-rel offsets.
861 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
862 (m68hc11_relax_frag): Handle the new relax code.
863 (md_convert_frag): Likewise.
864 (md_estimate_size_before_relax): Likewise.
866 2002-12-08 Alan Modra <amodra@bigpond.net.au>
868 * subsegs.c (section_symbol): Use the symbol, not the section, name.
870 2002-12-05 Richard Henderson <rth@redhat.com>
872 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
873 (ia64_gen_real_reloc_type): Handle it.
874 (pseudo_func): Add @ltoffx.
875 (md_begin): Build .<ltoffx>.
876 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
878 2002-12-05 Alan Modra <amodra@bigpond.net.au>
880 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
881 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
882 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
883 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
884 COFF to call arm_force_relocation.
886 2002-12-04 David Mosberger <davidm@hpl.hp.com>
888 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
890 (emit_one_bundle): Handle "hint" instruction.
891 (operand_match): Match IA64_OPND_AR_CSD.
893 2002-12-04 Alan Modra <amodra@bigpond.net.au>
895 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
898 2002-12-03 Nick Clifton <nickc@redhat.com>
900 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
901 .PPC.EMB.apuinfo sections.
903 2002-12-03 Richard Henderson <rth@redhat.com>
905 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
907 2002-12-03 Alan Modra <amodra@bigpond.net.au>
909 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
910 (cons, s_align_bytes): Delete declaration.
912 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
914 (dot): Delete unused function.
915 (w65_expression): Remove unused arg.
916 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
918 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
920 (get_specific): Prototype. Constify "struct opinfo *" arg and return
922 (check): Remove unused function.
923 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
924 on unhandled switch case.
925 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
927 (tc_crawl_symbol_chain): Delete unused function.
928 (tc_headers_hook): Likewise.
929 (tc_Nout_fix_to_chars): Likewise.
930 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
931 (md_parse_option): Likewise.
932 (md_convert_frag): Likewise.
933 (tc_coff_symbol_emit_hook): Likewise.
934 (md_show_usage): Likewise.
935 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
936 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
937 (w65_expression): Declare.
939 * po/POTFILES.in: Regenerate.
941 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
942 and ARM_ADRL_IMMEDIATE.
944 2002-12-02 Nick Clifton <nickc@redhat.com>
946 * gasp.c: Delete. It has been deprecated.
947 * NEWS: Mention that gasp has been removed.
948 * Makefile.am: Remove references to gasp.
949 * makefile.vms: Likewise.
950 * mpw-make.sed: Likewise.
951 * Makeile.in: Regenerate.
952 * doc/gasp.texi: Delete.
953 * doc/Makefile.am: Remove references to gasp.texi.
954 * doc/Makefile.in: Regenerate.
955 * macro.c: Delete references to gasp.
956 Remove use of comment_char function parameter as it is no longer
958 * macro.h: Update prototypes to remove comment_char parameter.
960 * read.c (read_a_source_file, s_irp): Remove comment_char
961 parameter from invocation of functions in macro.c
963 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
965 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
967 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
969 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
970 (tc_gen_reloc): Mark section param as not used.
972 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
974 Fix Bug savannah/1825:
975 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
976 that are not pc-relative.
977 (m68hc11_relax_frag): Declare.
979 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
980 the offsetable indexed addressing modes (n,r).
981 (build_insn): Cleanup some locals.
982 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
983 relaxation of difference between two symbols of same section.
984 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
985 only when this is a PC-relative operand and the offset is not absolute.
986 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
987 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
988 be handled by m68hc11_relax_frag.
990 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
992 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
993 (32-bit int, 64-bit double).
994 (md_longopts): New options -mshort, -mlong, -mshort-double and
995 -mlong-double to control the ABI.
996 (md_show_usage): Update.
997 (md_parse_option): Handle new options.
998 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1000 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1002 * symbols.c (report_op_error): New function, broken out of ...
1003 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1006 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1008 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1009 for BFD_RELOC_32_PLT_PCREL.
1011 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1013 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1014 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1015 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1016 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1017 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1018 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1019 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1020 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1021 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1022 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1023 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1024 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1025 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1026 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1027 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1028 TRUE/FALSE. Formatting.
1030 2002-11-29 Nick Clifton <nickc@redhat.com>
1032 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1033 assume a value of zero.
1034 (do_bkpt): Likewise.
1036 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1038 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1039 for TLS relocations.
1041 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1043 * config/tc-ia64.c (md_apply_fix3): Add default case.
1045 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1047 * symbols.c (S_SET_THREAD_LOCAL): New function.
1048 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1049 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1050 for TLS relocations.
1051 * config/tc-ia64.c (md_apply_fix3): Likewise.
1052 * config/tc-alpha.c (md_apply_fix3): Likewise.
1054 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1056 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1059 2002-11-26 DJ Delorie <dj@redhat.com.
1061 * dwarf2dbg.c (scale_addr_delta): New.
1062 (size_inc_line_addr): Use it.
1063 (emit_inc_line_addr): Use it.
1065 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1067 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1068 (md_assemble): Don't pass on branches to constants as relaxable.
1071 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1073 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1075 2002-11-21 Randolph Chung <randolph@tausq.org>
1077 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1078 only if they have default visibility.
1080 2002-11-21 Richard Henderson <rth@redhat.com>
1082 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1085 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1087 * config/tc-mcore.c (mcore_pool_count): New function.
1088 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1090 2002-11-20 Klee Dienes <kdienes@apple.com>
1092 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1093 coalesce the name fields to use the same pointer.
1095 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1096 the name fields to use the same pointer.
1097 (get_specific): Check for opcodes with the same name using strcmp
1098 as well as comparing the pointer.
1100 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1102 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1105 2002-11-19 Richard Henderson <rth@redhat.com>
1107 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1108 visibility portion of st_other.
1110 2002-11-19 Klee Dienes <kdienes@apple.com>
1112 * config/tc-h8300.c (struct h8_instruction): New type, used to
1113 wrap h8_opcodes with length, noperands, idx, and size fields
1114 (computed at run-time).
1115 (h8_instructions): New variable.
1116 (md_begin): Allocate the storage for h8_instructions. Fill
1117 h8_instructions with pointers to the appropriate opcode and the
1118 correct value for the additional fields.
1119 (clever_message): Update to use h8_instructions instead of
1121 (build_bytes): Ditto.
1122 (get_specific): Ditto.
1123 (md_assemble): Ditto.
1125 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1127 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1128 adjustments to symbols in merge sections.
1130 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1132 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1134 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1136 * dwarf2dbg.h (dwarf2_format): New enum.
1137 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1138 (out_debug_line, out_debug_info): Add code for handling 64-bit
1140 * config/tc-mips.h (mips_dwarf2_format): Declare.
1141 * config/tc-mips.c (mips_dwarf2_format): New function.
1142 * doc/internals.texi (DWARF2_FORMAT): Document.
1144 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1146 * config/tc-mips.c (s_change_section): Make sure input buffer
1147 is not accessed past the end. Don't hand
1148 obj_elf_change_section a pointer into the input buffer.
1150 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1152 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1155 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1157 * config/tc-tic4x.c: Fixed proper commandline
1158 parameters. Added support for new opcode-list format. General
1159 error message fixups.
1160 (c4x_inst_add): Reject insn not for our CPU
1161 (md_begin): Added matrix for setting the proper opcode-level &
1162 device-flags according to cpu type and revision. Rewrite the
1164 (c4x_operand_parse): Fix opcode bug
1165 (c4x_operands_match): New function argument. Added dry-run
1166 mechanism, that is optional error generation. Added constraint 'i'
1168 (c4x_insn_check): Added new function for post-verification of the
1170 (md_assemble): Check all opcodes before croaking because of an
1171 argument mismatch. Need this to be able to fully support
1172 ortogonally arguments.
1173 (md_parse_options): Revised commandprompt swicthes and added new
1175 (md_show_usage): Complete rewrite of printout.
1177 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1179 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1180 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1181 warning when using constant direct bigger than 2^16. Add the new
1184 2002-11-11 Christopher Faylor <cgf@redhat.com>
1186 * configure.in: Use .gdbinit under Cygwin.
1187 * configure: Regenerate.
1189 2002-11-11 Christopher Faylor <cgf@redhat.com>
1191 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1194 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1196 * config/tc-tic4x.c: Declare as many functions as possible as
1197 static. Maintenance on the general indenting. Removed unnecessary
1198 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1199 function. Add support for new DSP, TMS320VC33. Fix bug for
1200 converting flonum constants.
1201 (c4x_do_align): Add proper align handling. Setup align to insert
1203 (c4x_gen_to_words): Support for extended TI type floats.
1204 (md_atof): Proper dumping of multiple-word littlenums.
1205 (c4x_atof): Added support for extended TI type floats.
1206 (c4x_stringer): Added new function to handle compact strings.
1207 (c4x_emit_char): Added new function argument to handle custom
1208 length inserts, like single-byte strings.
1209 * config/tc-tic4x.h: Add proper align handling with NOP's.
1210 * Makefile.am: Added tic4x dependecy
1211 * Makefile.in: Regenerate
1213 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1215 * macro.c (get_any_string): Correct logic for not going beyond end
1218 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1220 * config/tc-mmix.c (get_putget_operands): Mark both possible
1221 operands as invalid at beginning.
1223 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1224 Initialize target of fixup to zero.
1226 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1228 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1229 NEWABI, but we should still emit HI16_S for non-PIC n32.
1231 2002-11-06 Richard Henderson <rth@redhat.com>
1233 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1234 (alpha_fix_adjustable): ... here.
1235 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1237 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1239 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1242 2002-11-05 H.J. Lu <hjl@gnu.org>
1244 * config/tc-mips.c (support_64bit_objects): Check *l before it
1247 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1249 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1250 SEC_LOAD flags for sections marked as 's'.
1252 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1254 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1255 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1256 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1259 * dep-in.sed: Fix typo.
1261 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1263 * configure.in: Update ARM CPU patterns.
1264 * configure: Regenerated.
1266 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1268 * itbl-lex.l: Use #include <> for generated headers.
1269 * itbl-ops.c: Likewise.
1271 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1273 * doc/gasp.texi: Fix typo in deprecation note.
1275 2002-10-23 Nick Clifton <nickc@redhat.com>
1277 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1278 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1280 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1282 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1283 (tc_frob_file_before_adjust): Don't define.
1284 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1286 (mmix_frob_file_before_adjust): Remove ineffective function.
1288 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1290 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1291 (cris_relax_frag): New function.
1292 (md_estimate_size_before_relax) <case ENCODE_RELAX
1293 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1294 expressions that will become absolute expressions to relaxation.
1295 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1296 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1297 value, not distance to symbol.
1298 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1299 Ditto. Correct placement of fixup.
1300 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1302 * config/tc-cris.h (cris_relax_frag): Declare.
1303 (md_relax_frag): Define.
1305 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1307 * config/obj-elf.c (special_sections): Use correct types for init
1309 (obj_elf_change_section): Don't mess with init array section type.
1311 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1313 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1314 for relocs against symbols in a merged section.
1316 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1318 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1319 table as register names.
1321 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1323 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1326 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1328 * expr.c (operand): Add support for n.nn flonums.
1330 2002-10-17 Johannes Stezenbach <js@convergence.de>
1332 * itbl-parse.y (entry): Provide empty action.
1334 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1336 * configure.in (BFDVER_H): Set and subst.
1337 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1338 * Makefile.am: Run "make dep-am".
1340 * configure: Regenerate.
1341 * Makefile.in: Regenerate.
1342 * doc/Makefile.in: Regenerate.
1344 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1346 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1347 (MD_APPLY_SYM_VALUE): Define for PE too.
1349 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1351 * Makefile.am: Run "make dep-am".
1352 (CPU_OBJ_VALID): sh64 coff is invalid.
1353 * as.c: #include "bfdver.h".
1354 * Makefile.in: Regenerate.
1355 * config.in: Regenerate.
1357 2002-10-14 Momchil Velikov <velco@fadata.bg>
1359 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1361 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1363 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1364 * configure: Regenerate.
1366 2002-10-13 Eric Christopher <echristo@redhat.com>
1367 Alexandre Oliva <aoliva@redhat.com>
1369 * config/tc-mips.c (s_gpdword): New function.
1370 (mips_pseudo_table): Add .gpdword.
1371 (mips_need_elf_addend_fixup): never for NEWABI.
1372 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1374 (s_cpadd): Generate .cpadd on NEWABI.
1376 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1378 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1380 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1382 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1383 (md_relax_frag): Adjust macro.
1384 * config/tc-mips.c (mips_relax_branch): New variable.
1385 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1386 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1387 (RELAX_MIPS16_P): Adjust.
1388 (append_insn): Emit branch to non-constant in a frag_var if
1389 branch-relaxation is desirable and possible.
1390 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1391 (OPTION_ELF_BASE): Adjust.
1392 (md_parse_option): Handle new options.
1393 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1395 (relaxed_branch_length): New function.
1396 (md_estimate_size_before_relax): Handle branch frags.
1397 (mips_relax_frag): Likewise.
1398 (md_convert_frag): Handle branch frags. Warn if branch is
1401 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1403 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1405 (md_apply_fix3): Add TLS relocs.
1406 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1409 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1410 Alan Modra <amodra@bigpond.net.au>
1412 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1413 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1415 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1417 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1420 2002-10-09 Richard Shann <richard.shann@superh.com>
1421 Stephen Clarke <stephen.clarke@superh.com>
1423 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1426 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1428 * contig/tc-sh.c (sh_local_pcrel): New.
1429 (sh_force_relocation): Use sh_local_pcrel.
1430 (md_pcrel_from_section): Check the relocation type whether it
1431 should be resolved locally. Use S_FORCE_RELOC.
1433 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1435 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1436 (TC_FORCE_RELOCATION): Tidy arg.
1438 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1439 Ken Raeburn <raeburn@cygnus.com>
1440 Aldy Hernandez <aldyh@redhat.com>
1441 DJ Delorie <dj@redhat.com>
1442 Michael Meissner <meissner@redhat.com>
1443 Eric Christopher <echristo@redhat.com>
1444 Richard Sandiford <rsandifo@redhat.com>
1446 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1447 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1448 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1449 (hilo_interlocks): True for CPU_VR5500.
1450 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1451 (mips_fix_vr4122_bugs): New.
1452 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1453 (mips_emit_delays): Likewise.
1454 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1455 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1456 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1457 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1458 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1459 (OPTION_ELF_BASE): Bump.
1460 (md_parse_option): Handle the new options.
1461 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1464 2002-09-29 H.J. Lu <hjl@gnu.org>
1466 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1467 twice if howto->pcrel_offset is true.
1469 2002-09-28 Matt Thomas <matt@3am-software.com>
1470 Jason Thorpe <thorpej@wasabisystems.com>
1472 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1473 convert undefined references to GOT32/PLT32 if PIC code is
1474 requested. Fix comment.
1476 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1478 * config/tc-sh.c (sh_force_relocation): Return 0 for
1479 some PC relative relocations when not relaxing.
1481 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1483 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1484 Define them if not BFD_ASSEMBLER.
1485 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1487 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1488 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1489 (tc_gen_reloc): Handle x86-64 TLS relocs.
1491 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1493 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1494 fixups to current or absolute section.
1496 2002-09-26 Jim Wilson <wilson@redhat.com>
1498 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1501 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1503 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1504 capable configuration.
1505 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1507 (mips_ip): Likewise.
1509 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1511 * config/tc-mips.c (append_insn): Fix jump overflow check.
1513 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1515 * config/tc-i386.c (process_operands): Warn about "lea" segment
1518 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1520 * write.c: Delete set_segment_vma and prototype. Update all callers.
1522 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1524 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1525 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1526 Rename "fseg" to "sym_seg".
1527 * Makefile.am: Run "make dep-am".
1528 * Makefile.in: Regenerate.
1529 * doc/Makefile.in: Regenerate.
1531 2002-09-20 Nick Clifton <nickc@redhat.com>
1533 * symbols.c (colon): Do not allow symbols to be created in the
1534 absolute section if WORKING_DOT_WORD is not defined and
1535 new_broken_words would require a new frag to be created.
1537 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1539 * expr.c (expr): Simplify foo-foo here.
1540 (clean_up_expression): Remove O_subtract code.
1542 * write.h (struct fix): Add fx_dot_value.
1543 (dot_value): Declare.
1544 * write.c (dot_value): New var.
1545 (fix_new_internal): Save dot_value as fx_dot_value.
1546 (fixup_segment): Adjust fx_offset using fx_dot_value.
1547 * expr.c (expr): Update dot_value.
1549 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1551 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1552 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1553 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1555 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1556 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1557 BFD_RELOC_386_TLS_GOTIE.
1559 2002-09-19 Richard Henderson <rth@redhat.com>
1561 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1563 (alpha_force_relocation): Don't special-case branch type relocs.
1565 2002-09-19 Nick Clifton <nickc@redhat.com>
1567 * config/tc-m68k.c (select_control_regs): Handle situation where
1568 architecture has not yet been selected.
1570 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1572 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1573 (IS_SEXT_16BIT_NUM): New macro.
1574 (macro_build_ldst_constoffset): New function, to build a set of
1575 instructions to do a load or store from a constant offset relative
1576 to a given register.
1577 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1578 .cprestore pseudo-op.
1580 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1582 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1584 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1586 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1588 2002-09-17 Stan Cox <scox@redhat.com>
1590 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1591 (macro): Likewise for la. Likewise for ld.
1592 (mips_after_parse_args): Make -xgot optional, not the default.
1593 (md_apply_fix3): Allow composite relocation to set up gp.
1594 (tc_gen_reloc): Allow relaxing for newabi.
1595 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1596 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1598 2002-09-17 Nick Clifton <nickc@redhat.com>
1600 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1601 BFD_RELOC_ARM_IMMEDIATE has been done.
1602 (tc_gen_reloc): Do not issue reloc number of unimplemented
1603 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1604 their name is already in the error message - plus remove them
1605 from the default case.
1607 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1608 behavior of instructions.
1610 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1612 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1613 Convert functions to K&R format.
1615 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1617 * config/tc-mips.c (pdr_seg): Define only for ELF.
1618 (s_change_section): Remove unused variable. Don't use for nonELF.
1620 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1622 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1624 * config/obj-elf.h (obj_elf_change_section): Likewise.
1626 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1628 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1629 (out_debug_info): Likewise.
1631 2002-09-16 Bruno Haible <bruno@clisp.org>
1633 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1634 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1635 * config/tc-i386.c (i386_target_format): Likewise.
1636 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1637 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1639 2002-09-13 Nick Clifton <nickc@redhat.com>
1641 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1642 when deciding if any operands have been skipped.
1644 2002-09-11 Nick Clifton <nickc@redhat.com>
1646 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1648 * po/tr.po: Updated Turkish translation.
1650 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1652 * config/tc-i386.c (md_apply_fix3): Allow addend for
1653 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1654 BFD_RELOC_386_TLS_LE_32.
1656 2002-09-05 Jeff Law <law@redhat.com>
1658 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1659 marker relocations such as ENTRY/EXIT.
1660 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1661 to both OBJ_ELF and OBJ_SOM.
1663 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1665 * doc/internals.texi (md_apply_fix3): Expand.
1666 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1667 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1668 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1669 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1670 EXTERN_FORCE_RELOC): Document.
1671 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1672 * as.h: Don't include struc-symbol.h for arc.
1674 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1675 subtract absolute symbol.
1676 * obj.h (struct format_ops): Add frob_file_before_fix.
1677 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1678 * symbols.c (S_FORCE_RELOC): New function.
1679 * symbols.h (S_FORCE_RELOC): Declare.
1680 * write.c (TC_FORCE_RELOCATION): Change default.
1681 (TC_FORCE_RELOCATION_ABS): Define.
1682 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1683 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1684 (TC_FORCE_RELOCATION_SECTION): Don't define.
1685 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1686 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1687 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1688 (TC_VALIDATE_FIX_SUB): Define.
1689 (TC_FIX_ADJUSTABLE): Don't define.
1690 (MD_APPLY_SYM_VALUE): Define this instead.
1691 (abs_section_sym): New variable.
1692 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1693 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1694 Don't put the absolute section sym on fixups here.
1695 (fix_segment): New function.
1696 (write_relocs): Don't call fixup_segment from here.
1697 (write_object_file): Instead call tc_frob_file_before_fix,
1698 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1699 Don't output the absolute section symbol.
1700 (fixup_segment): Rewrite.
1701 * write.h (abs_section_sym): Declare.
1702 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1704 (aout_format_ops): Adjust to suit.
1705 * config/obj-aout.h (obj_frob_file): Don't define.
1706 (obj_frob_file_before_fix): Define.
1707 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1708 (S_FORCE_RELOC): Define.
1709 * config/obj-bout.h (S_FORCE_RELOC): Define.
1710 * config/obj-coff.c (coff_format_ops): Init new field.
1711 * config/obj-coff.h: Formatting fixes.
1712 (obj_sec_sym_ok_for_reloc): Define.
1713 (S_FORCE_RELOC): Define.
1714 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1715 (ecoff_frob_file): .. from here.
1716 (ecoff_format_ops): Add new function.
1717 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1718 (obj_frob_file_before_fix): Define.
1719 * config/obj-elf.c (elf_format_ops): Init new field.
1720 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1721 * config/obj-ieee.h: Formatting fixes.
1722 (S_FORCE_RELOC): Define.
1723 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1724 * config/obj-vms.h (S_FORCE_RELOC): Define.
1725 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1726 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1727 for BFD_RELOC_32 and BFD_RELOC_64.
1728 (alpha_fix_adjustable): Remove extern and weak tests.
1729 (alpha_before_fix): Rename from alpha_adjust_symtab.
1730 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1731 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1732 (TC_VALIDATE_FIX): Tweak param name.
1733 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1734 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1735 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1736 (MD_APPLY_SYM_VALUE): Define.
1737 (tc_adjust_symtab): Don't define.
1738 (alpha_adjust_symtab): Don't declare.
1739 (tc_frob_file_before_fix): Define.
1740 (alpha_before_fix): Declare.
1741 (TC_INIT_FIX_DATA): Tweak param names.
1742 * config/tc-arc.c: Include "struc-symbol.h".
1743 (md_pcrel_from): Remove undefined sym fudge.
1744 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1745 Don't set fx_addnumber.
1746 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1747 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1748 (EXTERN_FORCE_RELOC): Define.
1749 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1750 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1751 (arm_validate_fix): Return void.
1752 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1753 Add plt and got reloc tests.
1754 (arm_force_relocation): Call S_FORCE_RELOC.
1755 * config/tc-arm.h (struct fix): Forward declare.
1756 (TC_VALIDATE_FIX): No longer set add_symbolP.
1757 (arm_validate_fix): Adjust declaration.
1758 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1759 (TC_FORCE_RELOCATION): Tweak param name.
1760 (TC_INIT_FIX_DATA): Likewise.
1761 (obj_fix_adjustable): Don't define.
1762 (tc_fix_adjustable): Call arm_fix_adjustable.
1763 (TC_FIX_ADJUSTABLE): Don't define.
1764 (MD_APPLY_SYM_VALUE): Define.
1765 (EXTERN_FORCE_RELOC): Define.
1766 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1767 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1768 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1769 Remove *valP fudges and code to subtract abs sym. Don't set
1771 * config/tc-avr.h: Formatting.
1772 (EXTERN_FORCE_RELOC): Define.
1773 (MD_APPLY_SYM_VALUE): Define.
1774 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1775 (md_apply_fix3): Remove code to subtract abs sym.
1776 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1777 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1778 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1779 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1780 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1781 (tc_fix_adjustable): Remove extern, weak tests.
1782 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1783 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1784 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1785 and code to subtract abs sym.
1786 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1787 (d10v_force_relocation): Call S_FORCE_RELOC.
1788 * config/tc-d10v.h: Don't include write.h.
1789 (struct fix): Instead, forward declare.
1790 (MD_PCREL_FROM_SECTION): Tweak param names.
1791 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1792 (d10v_fix_adjustable): Likewise.
1793 (obj_fix_adjustable): Don't define.
1794 (tc_fix_adjustable): Define.
1795 (TC_FORCE_RELOCATION): Tweak param name.
1796 (MD_APPLY_SYM_VALUE): Define.
1797 (EXTERN_FORCE_RELOC): Define.
1798 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1799 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1800 and code to subtract abs sym.
1801 * config/tc-d30v.h: Don't include write.h.
1802 (struct fix): Instead, forward declare.
1803 (MD_PCREL_FROM_SECTION): Tweak param names.
1804 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1805 (MD_APPLY_SYM_VALUE): Define.
1806 (EXTERN_FORCE_RELOC): Define.
1807 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1808 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1809 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1810 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1811 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1812 Don't use fx_addnumber.
1813 * config/tc-dlx.h: Don't include write.h.
1814 (md_convert_frag): We're not alpha twice over.
1815 (EXTERN_FORCE_RELOC): Define.
1816 (obj_fix_adjustable): Don't define.
1817 (tc_fix_adjustable): Define.
1818 (TC_FIX_ADJUSTABLE): Don't define.
1819 (MD_APPLY_SYM_VALUE): Define.
1820 (LOCAL_LABELS_DOLLAR): Undef always.
1821 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1822 (fr30_fix_adjustable): Remove extern, weak tests.
1823 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1824 (obj_fix_adjustable): Don't define.
1825 (tc_fix_adjustable): Define.
1826 (struct fix): Forward declare.
1827 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1828 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1829 (frv_fix_adjustable): Don't do extern, weak tests.
1830 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1831 (TC_FIX_ADJUSTABLE): Don't define.
1832 (obj_fix_adjustable): Don't define.
1833 (tc_fix_adjustable): Define.
1834 (struct fix): Forward declare.
1835 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1836 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1837 * config/tc-h8300.h (struct fix): Forward declare.
1838 (EXTERN_FORCE_RELOC): Define.
1839 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1840 (hppa_fix_adjustable): Don't test extern or weak. Don't
1841 symbol_mark_used_in_reloc.
1842 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1844 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1845 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1846 (TC_FORCE_RELOCATION_SECTION): Don't define.
1847 (MD_APPLY_SYM_VALUE): Define.
1848 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1849 to subtract abs sym.
1850 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1851 (MD_APPLY_SYM_VALUE): Define.
1852 (MD_PCREL_FROM_SECTION): Tweak param name.
1853 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1854 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1855 (i386_force_relocation): New function.
1856 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1857 (TC_VALIDATE_FIX): Likewise.
1858 (TC_FIX_ADJUSTABLE): Don't define.
1859 (MD_APPLY_SYM_VALUE): Define.
1860 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1861 (i386_force_relocation): Declare.
1862 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1863 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1864 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1865 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1866 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1867 (EXTERN_FORCE_RELOC): Define.
1868 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1869 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1870 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1871 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1872 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1873 Remove #if 0 code. Invert return boolean.
1874 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1875 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1876 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1877 (tc_coff_sizemachdep): Prototype.
1878 (i960_handle_align): Likewise.
1879 (i960_validate_fix): Adjust declaration.
1880 (reloc_callj): Likewise.
1881 (EXTERN_FORCE_RELOC): Define.
1882 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1883 (TC_FORCE_RELOCATION_ABS): Define.
1884 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1885 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1886 (TC_FIX_ADJUSTABLE): Don't define.
1887 (MD_APPLY_SYM_VALUE): Define.
1888 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1889 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1890 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1891 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1892 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1893 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1894 (MD_APPLY_SYM_VALUE): Define.
1895 (EXTERN_FORCE_RELOC): Define.
1896 (TC_FORCE_RELOCATION): Tweak param name.
1897 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1898 (m32r_fix_adjustable): Don't test extern, weak.
1899 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1900 (MD_APPLY_SYM_VALUE): Define.
1901 (obj_fix_adjustable): Don't define.
1902 (tc_fix_adjustable): Define.
1903 (tc_frob_file): Don't define.
1904 (tc_frob_file_before_fix): Define.
1905 (EXTERN_FORCE_RELOC): Define.
1906 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1907 BFD_RELOC_VTABLE_ENTRY address.
1908 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1909 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1910 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1911 Remove duplicated fx_done code.
1912 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1913 (EXTERN_FORCE_RELOC): Define.
1914 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1916 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1917 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1918 (TC_FIX_ADJUSTABLE): Don't define.
1919 (EXTERN_FORCE_RELOC): Define.
1920 (MD_APPLY_SYM_VALUE): Define.
1921 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1922 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1923 Remove fx_addsy tests.
1924 (mcore_force_relocation): Call S_FORCE_RELOC.
1925 (mcore_fix_adjustable): Don't test fx_addsy.
1926 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1927 (EXTERN_FORCE_RELOC): Define.
1928 (obj_fix_adjustable): Don't define.
1929 (tc_fix_adjustable): Define.
1930 (MD_APPLY_SYM_VALUE): Define.
1931 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1932 (mips_pic): No longer static.
1933 (mips_force_relocation): Call S_FORCE_RELOC.
1934 (mips_fix_adjustable): Remove extern, weak tests.
1935 * config/tc-mips.h (enum mips_pic_level): Declare.
1936 (mips_pic): Declare.
1937 (tc_frob_file): Don't define.
1938 (tc_frob_file_before_fix): Define this instead.
1939 (EXTERN_FORCE_RELOC): Define.
1940 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1941 with reg_section tests. Set fx_done instead of calling
1942 symbol_clear_used_in_reloc on bad relocs.
1943 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1944 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1945 (mmix_adjust_symtab): Simplify list handling. Abort on any
1947 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1948 BFD_RELOC_MMIX_LOCAL.
1949 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1950 (EXTERN_FORCE_RELOC): Define.
1951 (MD_PCREL_FROM_SECTION): Tweak param name.
1952 (tc_frob_file): Don't define.
1953 (tc_frob_file_before_fix): Define this instead.
1954 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1955 Remove SEC_CODE checks.
1956 (mn10300_fix_adjustable): Remove extern and weak tests.
1957 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1958 (TC_FORCE_RELOCATION): Tweak param name.
1959 (obj_fix_adjustable): Don't define.
1960 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1961 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1962 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1963 (openrisc_fix_adjustable): Don't test fx_addsy.
1964 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1965 (obj_fix_adjustable): Don't define.
1966 (tc_fix_adjustable): Define this instead.
1967 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1968 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1969 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1970 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1971 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1972 (MD_APPLY_SYM_VALUE): Define.
1973 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1974 Don't subtract symbol value.
1975 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1976 (EXTERN_FORCE_RELOC): Define.
1977 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1978 (MD_APPLY_SYM_VALUE): Define.
1979 (obj_fix_adjustable): Don't define.
1980 (tc_fix_adjustable): Define this instead.
1981 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1983 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1984 (ppc_force_relocation <elf version>): New.
1985 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1986 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1987 comments. Don't subtract fx_subsy as that is already done.
1988 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1989 (MD_PCREL_FROM_SECTION): Likewise.
1990 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1991 ppc_force_relocation.
1992 (TC_FORCE_RELOCATION_SECTION): Delete.
1993 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1994 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1995 (MD_APPLY_SYM_VALUE): Define.
1996 * config/tc-s390.c: #include "dwarf2dbg.h".
1997 (s390_insn): Remove excess parens.
1998 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1999 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2000 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2001 non-NULL. Don't subtract off fx_addsy value.
2002 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2003 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2004 (TC_FIX_ADJUSTABLE): Don't define.
2005 (MD_APPLY_SYM_VALUE): Define.
2006 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2007 (SWITCH_TABLE): Likewise.
2008 (sh_force_relocation): Call S_FORCE_RELOC.
2009 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2010 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2011 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2012 fx_addnumber is zero on entry. Save val in fx_addnumber.
2013 (tc_gen_reloc): Don't subtract fx_subsy.
2014 * config/tc-sh.h (struct fix): Move.
2015 (obj_fix_adjustable): Don't define.
2016 (tc_fix_adjustable): Define this instead.
2017 (TC_FIX_ADJUSTABLE): Don't define.
2018 (MD_APPLY_SYM_VALUE): Define.
2019 (SWITCH_TABLE_CONS): Define.
2020 (SWITCH_TABLE): Define.
2021 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2022 (TC_VALIDATE_FIX_SUB): Define.
2023 (MD_PCREL_FROM_SECTION): Tweak param name.
2024 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2025 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2026 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2027 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2028 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2029 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2030 (TC_VALIDATE_FIX_SUB): Define.
2031 (MD_PCREL_FROM_SECTION): Tweak param name.
2032 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2033 (tc_gen_reloc): Use S_FORCE_RELOC.
2034 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2035 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2036 (TC_FORCE_RELOCATION_ABS): Define this instead.
2037 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2038 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2039 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2040 (MD_APPLY_SYM_VALUE): Define.
2041 (TC_FIX_DATA_PRINT): Tweak param name.
2042 * config/tc-tic30.c (USE_STDOUT): Don't define.
2043 (md_parse_option): Remove stupid debug code.
2044 (tc_gen_reloc): Don't use fx_addnumber.
2045 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2046 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2047 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2048 (tc_fix_adjustable): Define this instead.
2049 (TC_FIX_ADJUSTABLE): Don't define.
2050 (MD_APPLY_SYM_VALUE): Define this instead.
2051 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2052 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2053 (TC_FIX_ADJUSTABLE): Don't define.
2054 (MD_APPLY_SYM_VALUE): Define this instead.
2055 (tc_fix_adjustable): Remove extern and weak tests.
2056 * config/tc-w65.h (struct fix): Forward declare.
2057 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2059 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2060 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2061 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2063 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2064 (MD_APPLY_SYM_VALUE): Define.
2065 (obj_fix_adjustable): Don't define.
2066 (tc_fix_adjustable): Define this instead.
2067 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2069 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2071 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2072 (ppc_fix_adjustable <coff version>): Cleanup.
2074 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2075 (md_parse_option): No -a64 without BFD64.
2076 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2077 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2079 2002-09-04 Nick Clifton <nickc@redhat.com>
2081 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2082 instructions into the hash table if the target cpu is the BookE32.
2084 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2086 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2089 2000-08-28 Catherine Moore <clm@redhat.com>
2091 * tc-v850.c (v850_relax): Declare.
2092 (v850_longcode): New routine.
2093 (v850_handle_align): New routine.
2094 (md_pseudo_table): Add longcall and longjump.
2095 (md_parse_option): Check for relax option.
2096 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2097 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2098 (md_apply_fix3): Likewise.
2099 (v850_force_relocation): Likewise.
2100 (v850_comm): Change the current section.
2101 (md_assemble): Ensure that the correct value is put in the
2103 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2104 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2105 Remove redundant v850ea support.
2106 * tc-v850.h (HANDLE_ALIGN): Define.
2107 (v850_handle_align): Declare.
2108 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2110 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2112 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2113 * configure: Regenerate.
2114 * NEWS: Mention new port.
2116 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2118 * config/obj-coff.c: Add sdef definition.
2119 * config/obj-coff.h: Add tic4x include file and set
2121 * config/tc-tic4x.c: New file.
2122 * config/tc-tic4x.h: New file.
2124 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2126 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2127 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2128 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2129 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2130 (RELOC_ENUM): Define.
2131 (fix_new_internal): Use RELOC_ENUM.
2132 (fix_new, fix_new_exp): Likewise.
2133 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2134 Replace gotos with continue.
2135 (write_relocs): Formatting. Avoid symbol loops in
2136 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2137 errors, and error number in other cases.
2138 (fixup_segment): Remove param names from prototype. Rename
2139 "this_segment_type" to "this_segment". Update linkrelax comment.
2140 Remove "size, "place" and "where" local vars. Formatting. Update
2141 "no symbol" comment. Remove #if 0 and #if 1.
2143 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2145 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2147 * dwarf2dbg.c: Always include dwarf2dbg.h.
2148 (dwarf2_directive_file): Adjust dummy version args.
2149 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2150 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2151 when symbol values differ.
2152 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2153 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2154 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2156 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2158 * config/tc-w65.c (md_section_align): Fix typo.
2159 (md_parse_option): Return 0, not 1.
2161 2002-08-22 Nick Clifton <nickc@redhat.com>
2163 * doc/as.texinfo (Section): Note that if '@' is a comment
2164 character then another symbol is used to prefix the section's
2167 2002-08-22 Christian Groessler <chris@groessler.org>
2169 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2172 2002-08-12 Graeme Peterson <gp@qnx.com>
2174 * configure.in: Add support for sh-**-nto* target.
2175 * configure: Regenerate.
2177 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2179 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2181 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2183 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2185 (ppc_apuinfo_section_add): Define only if format is ELF.
2186 (md_assemble): Emit APUinfo section only if format is ELF.
2189 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2191 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2192 * config/tc-frv.c: Likewise.
2193 * config/tc-hppa.c: Likewise.
2194 * config/tc-ia64.c: Likewise.
2195 * config/tc-ip2k.c: Likewise.
2196 * config/tc-m68hc11.c: Likewise.
2197 * config/tc-m68k.c: Likewise.
2198 * config/tc-mmix.c: Likewise.
2199 * config/tc-mn10300.c: Likewise.
2200 * config/tc-sh.c: Likewise.
2201 * config/tc-sparc.c: Likewise.
2202 * config/tc-v850.c: Likewise.
2204 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2206 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2209 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2211 From matthew green <mrg@redhat.com>
2213 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2214 PPC_OPCODE_PPC is, except for BookE architectures.
2215 (md_parse_option): Add support for -mspe.
2216 (md_show_usage): Add -mspe.
2217 (md_parse_option): Add support for -me500 and
2218 -me500x2 to generate code for Motorola e500 core complex.
2219 (md_show_usage): Add -me500 and -me500x2.
2221 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2222 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2223 PPC_APUINFO_BRLOCK): New macros.
2225 (ppc_cleanup): New function.
2226 (ppc_apuinfo_section_add): New function.
2228 (md_assemble): Collect info and write the APUinfo section.
2230 * config/tc-ppc.h (md_cleanup): Define.
2231 (ppc_cleanup): Export.
2232 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2234 2002-08-17 Stan Cox <scox@redhat.com>
2236 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2237 config/tc-mips.c (s_change_section): New function to support
2238 IRIX .section pseudo-op.
2240 2002-08-16 Nick Clifton <nickc@redhat.com>
2242 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2244 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2246 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2247 the fix-up against on the right frag.
2248 (s_cpsetup): Likewise. Parse third argument as expression, to
2249 handle global symbols and forward/backward labels correctly.
2251 2002-08-14 Nick Clifton <nickc@redhat.com>
2253 * read.c (stringer): Catch attempts to create strings in the abs
2256 * config/tc-alpha.c: Fix compiling for COFF targets.
2257 Some minor formatting tidyups.
2259 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2261 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2262 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2263 according to the reloc.
2264 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2265 (TC_FORCE_RELOCATION): Define.
2266 (tc_m68hc11_force_relocation): Declare.
2268 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2269 (s_m68hc11_relax): New function for relax group.
2270 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2271 beginning of jump instruction.
2272 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2273 address computation.
2274 (tc-gen_reloc): Update.
2275 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2277 (tc_m68hc11_force_relocation): New function, handle new relocs.
2278 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2279 reloc for the linker relax pass.
2280 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2283 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2285 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2286 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2287 (s_m68hc11_mode): New function for .mode pseudo op.
2288 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2290 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2291 (m68hc11_elf_final_processing): Declare.
2293 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2295 * config/tc-m68hc11.c (md_begin): Take into account additional
2296 page operand for call instruction.
2297 (print_opcode_format): Likewise.
2298 (check_range): Likewise for page range checking.
2299 (get_operand): Don't skip a possible comma in operands.
2300 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2301 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2302 (fixup24): New to handle call reloc.
2303 (build_insn): Handle missing page operand for call instruction.
2305 (md_apply_fix3): Take into account new relocs.
2306 (get_operand): Fix the mode for indexed indirect addressing.
2307 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2309 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2311 * config/tc-mips.c (mips_ip): Don't work out the value of
2312 constant %hi()s here.
2314 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2316 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2317 for ELF, and don't bother checking ELF relocs when non-ELF.
2318 (i386_immediate): Allow absolute_section expressions for aout.
2319 (i386_displacement): Likewise. Also test bfd_is_com_section.
2320 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2321 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2322 not when fx_addsy. Remove dead code.
2324 2002-08-09 Graeme Peterson <gp@qnx.com>
2326 * configure.in: Add support for ppc-*-nto* target.
2327 * configure: Regenerate.
2329 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2331 * config/tc-i386.h: Reorganize.
2333 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2335 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2336 immediate offset in "dla" and "la" expansions.
2338 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2340 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2341 Remove "bfd_gas=yes" from target table when covered later.
2342 Consolidate some entries.
2343 * configure: Regenerate
2345 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2347 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2348 at start of insn, pass it to output_disp and output_imm.
2349 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2350 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2352 (output_imm): Added arguments. Compute properly addend for
2354 (md_apply_fix3): Remove R_386_GOTPC handling.
2356 2002-08-06 George France <france@handhelds.org>
2358 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2359 and m21264b processor names and cpu types.
2360 * doc/c-alpha.texi: Documented new types.
2362 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2364 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2366 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2368 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2369 handling to BFD_RELOC_MIPS16_GPREL.
2371 2002-08-01 Nick Clifton <nickc@redhat.com>
2373 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2374 pool is computed using signed arithmetic so that proper sign
2375 extension is performed if X_add_number is a 64-bit integer.
2377 2002-08-01 H.J. Lu <hjl@gnu.org>
2378 Daniel Jacobowitz <drow@mvista.com>
2380 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2381 .debug_line section unless it has line information.
2383 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2385 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2386 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2387 Allow default displacement size to be an option "--disp-size-default".
2388 (md_number_to_disp): Make error messages include value. Use %d to
2389 print integers, not %s.
2390 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2391 get duplicate messages sometimes.
2392 (convert_iif): Grow frag to max possible instruction size. Avoid
2393 creating unnecessary fixes.
2394 (md_number_to_field) Add prototype.
2395 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2396 prototypes and make static.
2397 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2398 (evaluate_expr): Use resultP argument instead of exprP global.
2399 (get_addr_mode): Quiten compiler warnings.
2400 (encode_operand): eliminate unused variables. Quiten compiler
2401 warnings. Eliminate nul character in format strings.
2402 (parse): argc is unsigned.
2403 (reloc): Type cast index to quieten compiler.
2404 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2405 (md_convert_frag): Note unused parameters. Remove unused
2407 (md_create_long_jump, md_create_short_jump,
2408 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2411 2002-07-31 Nick Clifton <nickc@redhat.com>
2413 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2414 of the PDP-11 and 2.11BSD a.out support.
2416 2002-07-31 Momchil Velikov <velco@fadata.bg>
2418 * config/tc-v850.c (md_assemble): Fix range check for immediate
2421 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2423 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2424 to Broadcom SB-1 core support.
2426 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2428 * config/tc-mips.c (mips_target_format): Fix formatting.
2429 Add recognition of n32 ABI formats.
2431 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2433 * tc-mips.c (load_address): Don't clobber $at when loading a
2434 64-bit address in non-PIC code if noat is in effect.
2437 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2439 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2440 used in division/multiply macro expansions similarly to how they
2441 are used in the variants with break instructions.
2444 2002-07-30 Graeme Peterson <gp@qnx.com>
2446 * configure.in: Add support for arm-*-nto target.
2447 * configure: Regenerate.
2449 2002-07-30 Nick Clifton <nickc@redhat.com>
2451 * config/tc-arm.c (struct literal_pool): Add fields to allow
2452 multiple literal pools to be maintained.
2453 (find_literal_pool): New function.
2454 (find_or_make_literal_pool): New function.
2455 (add_to_literal_pool): Use find_or_make_literal_pool.
2456 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2458 (s_ltorg): Use find_literal_pool.
2459 (arm_cleanup): Dump all literal pools.
2460 * doc/c-arm.texi: Document new behaviour of only dumping literal
2463 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2465 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2466 rather than PPC_OPCODE_32 for powerpc64*.
2468 2002-07-25 Nick Clifton <nickc@redhat.com>
2470 * po/es.po: Updated Spanish translation.
2471 * po/fr.po: Updated French translation.
2473 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2475 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2476 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2477 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2478 * configure, config.in: Regenerate.
2479 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2480 (mips_set_options): Remove "abi" field.
2481 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2484 (mips_arch_string, mips_arch_info): New vars.
2485 (mips_tune_string, mips_tune_info): New vars.
2486 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2487 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2488 (mips_isa_to_str, mips_cpu_to_str): Remove.
2489 (mips_ip): If the selected architecture is a generic ISA rather
2490 than a processor, only mention the ISA level in error messages.
2491 (OPTION_MCPU): Remove.
2493 (md_longopts): Add -mfp64, remove -mcpu.
2494 (mips_set_option_string): New fn.
2495 (md_parse_option): Make -mipsN update file_mips_isa rather than
2496 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2497 Don't let -mgp32 and -mfp32 change the ABI.
2498 (show): Move to end of file. Constify string argument.
2499 (md_show_usage): Move to the end of the file. Read available
2500 architectures from mips_cpu_info_table.
2501 (mips_set_architecture): New fn.
2502 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2503 is an alias for -march=mipsN. Don't change the ABI based on other
2504 flags. Infer the register size from the ABI as well as the
2505 architecture. Complain about more conflicting arguments.
2506 Unify logic with GCC.
2507 (s_mipsset): Don't change the ABI.
2508 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2509 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2510 "mipsN"-type entries. Remove entries that vary only in the
2511 manufacturer's prefix, or that have "000" replaced by "k".
2512 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2513 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2514 (mips_parse_cpu): New fn.
2515 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2516 (mips_cpu_info_from_isa): Minor formatting tweak.
2518 2002-07-24 Nick Clifton <nickc@redhat.com>
2520 * po/sv.po: Updated Swedish translation.
2521 * po/es.po: Updated Spanish translation.
2523 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2525 * Makefile.am: Run "make dep-am".
2526 * Makefile.in: Regenerate.
2527 * doc/Makefile.in: Regenerate.
2528 * config.in: Regenerate.
2529 * po/POTFILES.in: Regenerate.
2531 2002-07-23 Nick Clifton <nickc@redhat.com>
2533 * po/fr.po: Updated French translation.
2535 2002-07-23 Nick Clifton <nickc@redhat.com>
2537 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2540 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2542 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2543 instead of S_IS_EXTERN.
2544 (md_estimate_size_before_relax): Likewise.
2545 (mips_fix_adjustable): Likewise.
2547 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2549 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2551 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2552 Nick Clifton <nickc@redhat.com>
2554 * cond.c (s_ifdef): Treat a referenced but not yet defined
2555 symbol as if it were undefined, in exactly the same way as
2558 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2559 consider referenced bug not yet defined symbols to be
2562 2002-07-18 Denis Chertykov <denisc@overta.ru>
2563 Frank Ch. Eigler <fche@redhat.com>
2564 Alan Lehotsky <alehotsky@cygnus.com>
2565 John Healy <jhealy@redhat.com>
2566 Jeff Johnston <jjohnstn@redhat.com>
2568 * configure.in: Add ip2k configuraton.
2569 * configure: Regenerate.
2570 * Makefile.am: Add ip2k configuraton.
2571 * Makefile.in: Regenerate.
2572 * configure: Regenerate.
2573 * Makefile.in: Regenerate.
2574 * config/tc-ip2k.c: New file.
2575 * config/tc-ip2k.h: New files.
2576 * NEWS: Mention new support.
2577 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2578 * doc/Makefile.in: Regenerate.
2579 * doc/all.texi: Set IP2K
2580 * doc/as.texinfo: Add IP2K description.
2581 * doc/c-ip2k.texi: New file.
2583 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2585 * NEWS: Reformat to match style of other NEWS files.
2587 2002-07-17 Jan Hubicka <jh@suse.cz>
2589 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2591 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2593 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2595 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2597 * NEWS: Add 'Changes in 2.13'.
2599 2002-07-15 Matt Fredette <fredette@netbsd.org>
2601 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2603 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2605 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2606 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2609 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2611 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2612 (ppc_frob_file_before_adjust): New function.
2613 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2614 (ppc_elf_frob_symbol): Don't declare.
2615 (tc_frob_file_before_adjust): Define.
2616 (ppc_frob_file_before_adjust): Declare.
2618 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2619 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2622 (ppc_xcoff64): Rename to ppc_obj64.
2623 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2624 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2625 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2627 (ppc_target_format): Use ppc_obj64 to select format.
2628 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2629 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2630 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2631 (tc_frob_symbol): Likewise.
2632 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2633 BFD_DEFAULT_TARGET_SIZE.
2635 (ppc_is_toc_sym): Likewise.
2636 (md_apply_fix3): Likewise.
2637 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2638 BFD_DEFAULT_TARGET_SIZE.
2639 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2640 (tc_frob_symbol): Likewise.
2642 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2644 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2645 (mips_ip): Likewise.
2647 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2649 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2650 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2651 (md_apply_fix3): Formatting. Remove redundant test.
2652 (tc_gen_reloc): Remove redundant code.
2653 (tc_i386_force_relocation): Delete. Movy body of function to..
2654 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2656 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2658 * configure.in: Add hppa-*-openbsd* target, change
2659 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2661 * configure: Regenerate.
2663 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2665 * config/tc-mips.c (macro): Shift the 32-bit address range
2666 accessible with a lone "lui" down by 32768.
2668 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2670 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2671 instead of "dadd" in address calculations.
2674 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2676 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2678 (md_assemble): Instead, zap the suffix here.
2680 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2682 * NEWS: Remove next release number until the release is actually
2685 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2687 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2689 * Makefile.in: Regenerate.
2691 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2693 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2694 to symbols in merge sections, even non pc-relative ones.
2696 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2698 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2700 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2702 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2703 .softregs and .eeprom.
2705 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2707 * NEWS: Note the next release is 2.13.
2709 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2711 * po/tr.po: New translation imported.
2713 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2715 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2716 (ecoff_directive_def): Likewise.
2717 (ecoff_directive_tag): Likewise.
2718 * listing.c (file_info): Likewise.
2719 * hash.c (what): Likewise.
2721 2002-06-25 H.J. Lu <hjl@gnu.org>
2723 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2724 * Makefile.in: Regenerated.
2726 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2728 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2729 (assemble_ppi): Generate warning if the same register is used
2730 twice as destination in the same padd / pmuls instruction.
2732 2002-06-18 Dave Brolley <brolley@redhat.com>
2734 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2735 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2736 * configure.in: Support frv-*-*.
2737 * Makefile.am (CPU_TYPES): Add frv.
2738 (TARGET_CPU_CFILES): Add tc-frv.c.
2739 (TARGET_CPU_HFILES): Add tc-frv.h.
2740 (DEPTC_frv_coff): New variable.
2741 (DEPTC_frv_elf): New variable.
2742 (DEPOBJ_frv_coff): New variable.
2743 (DEPOBJ_frv_elf): New variable.
2744 (DEP_frv_coff): New variable.
2745 (DEP_frv_elf): New variable.
2746 * tc-frv.c: New file.
2747 * tc-frv.h: New file.
2749 2002-06-17 Catherine Moore <clm@redhat.com>
2751 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2753 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2755 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2757 2002-06-17 Tom Rix <trix@redhat.com>
2759 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2761 2002-06-14 H.J. Lu <hjl@gnu.org>
2762 Daniel Jacobowitz <drow@mvista.com>
2764 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2765 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2766 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2767 and new_logical_line for the first .file directive.
2768 * read.c (s_app_file_string): New function.
2769 (s_app_file): Call it.
2770 * read.h (s_app_file_string): Add declaration.
2772 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2774 * configure.in: Remove MIPS_STABS_ELF.
2775 * configure: Regenerated.
2776 * config.in: Regenerated.
2777 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2779 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2781 (pdr_seg): Declare unconditionally.
2782 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2783 (s_mips_end): Likewise. Generate stabs function markers.
2784 (s_mips_ent): Generate stabs function markers.
2785 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2787 (s_mips_mask): Likewise.
2788 (mips_flag_mdebug): New.
2789 (md_longopts): Add "mdebug" and "no-mdebug".
2790 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2791 (mips_after_parse_args): Set mips_flag_mdebug.
2792 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2794 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2796 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2797 value twice for RELA relocations.
2799 2002-06-12 Ben Elliston <bje@redhat.com>
2801 * symbols.c (resolve_symbol_value): Initialise final_val.
2803 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2805 2002-06-11 Tom Rix <trix@redhat.com>
2807 * config/tc-ppc.c (ppc_subseg_align): Delete.
2808 (ppc_change_csect): Default csect align is 2.
2809 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2811 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2813 * config/tc-avr.c (mcu_types): Update.
2815 2002-06-08 Matt Thomas <matt@3am-software.com>
2817 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2818 (vax-*-netbsd*): New targets.
2819 * configure: Regenerate.
2820 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2821 * config/tc-vax.c: Add support for ELF and PIC.
2822 (flag_want_pic): New flag.
2823 (float_cons): Fix prototype.
2824 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2825 (md_assemble): Introduce a new is_absolute local, and use it
2826 rather than repeating the test. Make fatal errors actually
2827 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2828 Add support for ELF. Add support for PIC.
2829 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2830 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2832 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2833 optional for a.out, and not allowed for VMS. Adjust all callers.
2834 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2835 (md_create_long_jump): Likewise.
2836 (md_undefined_symbol): Likewise.
2837 (md_section_align): Likewise.
2838 (md_shortopts): Allow -k and -K for ELF.
2839 (md_parse_option): Set flag_want_pic if -k or -K.
2840 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2841 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2842 * config/tc-vax.h (tc_headers_hook): Remove.
2843 (TARGET_FORMAT): Set according to object format and target
2845 (BFD_ARCH, TARGET_ARCH): Define.
2846 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2847 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2848 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2849 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2851 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2853 * Makefile.am: Run "make dep-am".
2854 * Makefile.in: Regenerate.
2856 * as.c: Replace CONST with const.
2857 * write.c: Likewise.
2858 * config/obj-coff.c: Likewise.
2859 * config/tc-a29k.c: Likewise.
2860 * config/tc-arm.c: Likewise.
2861 * config/tc-dlx.c: Likewise.
2862 * config/tc-h8300.c: Likewise.
2863 * config/tc-h8500.c: Likewise.
2864 * config/tc-i370.c: Likewise.
2865 * config/tc-i860.c: Likewise.
2866 * config/tc-i960.c: Likewise.
2867 * config/tc-m68hc11.c: Likewise.
2868 * config/tc-m68k.c: Likewise.
2869 * config/tc-m88k.c: Likewise.
2870 * config/tc-mcore.c: Likewise.
2871 * config/tc-mips.c: Likewise.
2872 * config/tc-ns32k.c: Likewise.
2873 * config/tc-pdp11.c: Likewise.
2874 * config/tc-pj.c: Likewise.
2875 * config/tc-s390.c: Likewise.
2876 * config/tc-sh.c: Likewise.
2877 * config/tc-sparc.c: Likewise.
2878 * config/tc-tahoe.c: Likewise.
2879 * config/tc-tic80.c: Likewise.
2880 * config/tc-v850.c: Likewise.
2881 * config/tc-vax.c: Likewise.
2882 * config/tc-w65.c: Likewise.
2883 * config/tc-z8k.c: Likewise.
2885 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2887 Based on patch from Matt Green:
2888 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2889 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2890 (s_mips_loc): New function.
2891 (mips_nonecoff_pseudo_table): Call them.
2892 (append_insn): Call dwarf2_emit_insn.
2894 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2896 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2898 (file_ase_mips16): New veriable.
2899 (mips_eabi64): Remove.
2900 (CPU_HAS_MIPS16): New define.
2901 (CPU_HAS_MDMX): Fix data type.
2902 (md_begin): Code cleanup. Use file_ase_mips16.
2903 (mips_elf_final_processing): Handle mips16 header flag.
2904 Handle EABI flag without intermediate variable.
2906 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2908 * doc/as.texinfo: Update MIPS documentation.
2910 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2912 * config/tc-mips.c: Add define for $zero register.
2913 (md_begin): Add $zero as alias name for $0.
2914 (insn_uses_reg): Use ZERO define.
2915 (mips_ip): Add $zero as alias name for $0.
2916 (mips16_ip): Likewise.
2917 (s_cplocal): Demand empty rest of input line.
2918 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2919 names. Use ZERO define. Fix input_line_pointer progress.
2921 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2923 * symbols.c: Replace CONST by const throughout.
2924 (symbol_find_exact): Split out from..
2925 (symbol_find_base): ..here.
2926 * symbols.h: Replace CONST by const throughout.
2927 (symbol_find_exact): Declare.
2928 * config/obj-elf.c: #include "struc-symbol.h".
2929 (elf_frob_file): If group name matches an exported symbol, use that
2930 symbol for the signature and ".group" as the section name.
2932 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2934 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2937 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2939 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2940 and mips_opts.ase_mdmx if they are uninitialized.
2942 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2944 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2945 (hppa_force_relocation): Check if a stub just before the start symbol
2946 of the last call_info is reachable before forcing relocation. Fix
2949 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2951 * config/tc-mips.c (mips_after_parse_args): New function.
2952 (md_begin): Move processing of defaults to mips_after_parse_args.
2953 config/tc-mips.h (md_after_parse_args): Define.
2955 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2957 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2958 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2959 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2960 * configure: Regenerate.
2961 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2964 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2966 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2968 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2970 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2971 linkonce flag. Print all warnings.
2972 (obj_elf_section): Parse ",comdat" for groups.
2973 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2974 consistency of comdat flag.
2976 2002-06-02 Richard Henderson <rth@redhat.com>
2978 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2979 with LITERALs without sequence numbers.
2981 2002-06-01 Richard Henderson <rth@redhat.com>
2983 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2984 Rename them LITUSE_ALPHA_*.
2986 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2988 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2989 accept parentheses enclosed register lists.
2991 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2993 * Makefile.am: Run "make dep-am".
2994 * Makefile.in: Regenerate.
2995 * po/POTFILES.in: Regenerate.
2997 2002-05-31 Graeme Peterson <gp@qnx.com>
2999 * configure.in: Add i386-*-nto-qnx*.
3000 * configure: Regenerate.
3002 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3004 * config/tc-mips.c (mips_ip): Use unsigned long values for
3007 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3009 * config/tc-mips.c (s_cpsetup): Fix initialization of
3010 mips_cpreturn_register and mips_cpreturn_offset.
3012 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3014 * config/tc-mips.c (s_cpsetup): Fix comment.
3016 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3018 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3019 (mips_ip): Likewise.
3020 (mips16_ip): Likewise.
3021 (tc_get_register): Likewise.
3023 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3024 Ed Satterthwaite <ehs@broadcom.com>
3026 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3027 (mips_opts): Initialize "ase_mdmx" member.
3028 (file_ase_mdmx): New variable.
3029 (CPU_HAS_MDMX): New macro.
3030 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3031 based on command line options and configuration defaults.
3032 (macro_build): Note in comment that use of MDMX in macros is
3033 not currently allowed.
3034 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3035 "Z" MDMX operand types.
3036 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3037 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3039 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3040 Add support for "-mdmx" and "-no-mdmx" options.
3041 (OPTION_ELF_BASE): Move to accomodate new options.
3042 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3043 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3044 file_ase_mdmx was set.
3045 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3046 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3049 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3051 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3052 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3053 command line switch conforming to gcc conventions.
3054 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3056 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3058 * config/tc-mips.c (macro_build_jalr): New Function.
3059 (md_begin): NewABI uses big GOTs.
3060 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3061 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3062 (load_address): Add some NewABI PIC support.
3064 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3065 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3067 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3069 * config/tc-mips.c (load_address): Use mips_gp_register instead
3070 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3072 (macro): Use mips_gp_register instead of hardcoded value.
3074 2002-05-30 Richard Henderson <rth@redhat.com>
3076 * expr.h (operatorT): Add O_md17..O_md32.
3077 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3078 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3079 O_tprelhi, O_tprello, O_tprel): New.
3080 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3081 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3082 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3083 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3084 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3085 (md_apply_fix3): Handle TLS relocations.
3086 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3087 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3088 associated TLS reloc. Check lituse_tls relocs match up.
3089 (emit_insn): Handle TLS relocations.
3092 * doc/c-alpha.texi: Add docs for tls relocations.
3094 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3096 * config/tc-mips.c (mips_gprel_offset): New variable.
3097 (s_gpvalue): Use it.
3099 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3101 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3102 write-write conflicts.
3103 (md_assemble): Reformat introductory comment.
3104 (parallel_ok): Prevent packing only if the first
3105 instruction cannot be packed.
3107 2002-05-30 Jason Eckhardt <jle@redhat.com>
3108 Tom Rix <trix@redhat.com>
3110 * config/tc-d10v.c (build_insn): Check for immediates.
3112 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3114 * config/tc-mips.c: Replace GP in comments by $gp.
3115 (mips_big_got): Initialize.
3116 (mips_trap): Initialize.
3117 (load_address): Use mips_gp_register instead of hardcoded value.
3118 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3119 (macro): Use mips_gp_register instead of hardcoded value.
3120 (macro2): Change load_address calls.
3121 (md_pcrel_from): Comment formatting.
3122 (s_cpload): Use mips_gp_register instead of hardcoded value.
3123 (s_cprestore): Likewise. Comment formatting.
3124 (s_gpword): Fix data type.
3125 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3126 (nopic_need_relax): Replace GP in comments by $gp.
3127 (mips_elf_final_processing): Better comment.
3129 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3131 * configure.in: Add DLX configuraton
3132 * Makefile.am: Add DLX configuraton
3133 * configure: Regenerate.
3134 * Makefile.in: Regenerate.
3135 * config/tc-dlx.c: New file.
3136 * config/tc-dlx.h: New files.
3137 * NEWS: Mention new support.
3139 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3141 * config/obj-coff.c (write_object_file): Add missing semicolon.
3143 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3145 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3146 by the define. Remove superfluous check of mips_opts.mips16.
3147 (append_insn): Likewise. Canonicalize variable increments.
3148 (macro_build): Canonicalize variable increments.
3149 (macro_build_lui): Likewise.
3150 (load_register): Likewise.
3151 (load_address): Move pointer initialization.
3152 (macro): Move pointer to a more local scope. Canonicalize variable
3153 increments. Better comments. Replace magic constant for RA by the
3155 (macro2): Replace magic constant for RA by the define. Canonicalize
3156 variable increments.
3157 (mips_ip): Canonicalize variable increments.
3158 (mips16_ip): Replace magic constant for RA by the define.
3159 (my_getSmallParser): Canonicalize variable increments/decrements.
3160 (my_getPercentOp): Likewise.
3161 (my_getSmallExpression): Likewise.
3162 (s_align): Likewise.
3163 (s_mipsset): Likewise.
3164 (s_cpsetup): Likewise.
3165 (s_insn): Remove superfluous check of mips_opts.mips16.
3166 (s_mips_stab): Likewise.
3167 (mips_handle_align): Canonicalize variable increments.
3168 (s_mips_ent): Likewise.
3169 (s_mips_end): Add comment.
3171 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3173 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3174 * configure: Regenerate.
3176 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3178 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3179 * Makefile.in: Regenerate.
3180 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3181 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3182 * configure: Regenerate.
3183 * as.h: Use #include "" instead of <> for local header files.
3184 * flonum-konst.c: Likewise.
3185 * flonum-mult.c: Likewise.
3187 * listing.c: Likewise.
3188 * config/tc-ia64.h: Likewise.
3189 * config/tc-v850.h: Likewise.
3191 2002-05-24 TAMURA Kent <kent@netbsd.org>
3193 * configure.in: Add a target for i386-netbsdpe.
3194 * configure: Regenerate.
3196 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3198 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3199 (obj_elf_common): Call elf_common.
3200 (obj_elf_tls_common): New function.
3201 (elf_pseudo_tab): Support .tls_common.
3202 (special_sections): Add .tdata and .tbss.
3203 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3205 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3206 (obj_elf_parse_section_letters): Include T in error message.
3207 * config/tc-ppc.c (ppc_section_letter): Likewise.
3208 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3209 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3211 * config/tc-sparc.c (md_apply_fix3): Likewise.
3212 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3213 Define them if not BFD_ASSEMBLER.
3214 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3216 (md_apply_fix3): Add TLS relocs.
3217 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3218 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3219 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3220 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3221 (ia64_elf_section_letter): Include T in error message.
3222 (md_begin): Support TLS operators.
3223 (md_operand): Likewise.
3224 (ia64_gen_real_reloc_type): Support TLS relocs.
3225 * write.c (adjust_reloc_syms): Don't change symbols in
3226 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3228 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3230 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3231 round the relocation up rather than down.
3233 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3235 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3237 * doc/as.texinfo: Document that the COFF version of .section
3238 ignores the 'a' flag.
3240 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3242 * config/tc-alpha.c (assemble_tokens): Protect use of
3243 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3245 * write.c (size_seg): Check adjustment to last frag.
3246 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3248 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3249 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3250 (write_object_file): Invoke md_do_align if available, and use
3251 frag_align_code on text sections.
3252 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3253 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3254 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3255 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3256 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3259 2002-05-22 H.J. Lu <hjl@gnu.org>
3261 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3264 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3266 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3269 2002-05-22 H.J. Lu <hjl@gnu.org>
3271 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3272 for one .loc for compiler.
3274 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3276 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3279 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3281 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3282 Optimize the rotate by zero case.
3284 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3286 * configure.in: Remove accidental enabling of bfd_gas=yes for
3288 * configure: Regenerate.
3290 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3292 * app.c: Fix formatting.
3294 * ehopt.c: Likewise.
3296 * input-file.c: Likewise.
3297 * listing.c: Likewise.
3298 * macro.h: Likewise.
3299 * stabs.c: Likewise.
3300 * symbols.c: Likewise.
3302 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3304 * config/obj-generic.c: Delete file.
3305 * config/obj-generic.h: Likewise.
3307 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3309 * config/tc-avr.c (mcu_types): Update for new devices.
3311 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3313 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3315 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3317 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3318 worked sometimes by accident. Fix copy&paste comment.
3320 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3322 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3323 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3324 (mips_elf_final_processing): Let n32 use .reginfo.
3326 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3328 * config/tc-mips.c (append_insn): Fix too small range of variable.
3330 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3332 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3333 listing_prev_line().
3335 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3337 * config/tc-arm.c (md_assemble): Remove redundant call to
3340 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3343 * stabs.c (s_stab_generic): Fix grammatical error in warning
3346 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3348 * write.c (subsegs_finish): Don't specially align last subseg.
3350 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3352 * stabs.c (s_stab_generic): Warn about a description field that is
3355 * config/obj-coff.c: Fix compile time warnings when compiling
3356 without BFD_ASSEMBLER defined.
3359 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3361 (md_pcrel_from_section): Use md_pcrel_from().
3363 2002-05-11 Bruno Haible <bruno@clisp.org>
3365 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3366 by dwarf2_directive_loc, instead of calling dwarf2_where.
3368 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3370 * config/obj-coff.h: Fix formatting.
3371 * config/tc-mcore.c: Likewise.
3372 * config/tc-mn10300.c: Likewise.
3373 * config/tc-openrisc.c: Likewise.
3374 * config/tc-or32.c: Likewise.
3375 * config/tc-pdp11.c: Likewise.
3376 * config/tc-ppc.c: Likewise.
3377 * config/tc-ppc.h: Likewise.
3378 * config/tc-sh64.c: Likewise.
3379 * config/tc-sh.c: Likewise.
3380 * config/tc-tic54x.c: Likewise.
3381 * config/tc-xstormy16.c: Likewise.
3382 * config/tc-xstormy16.h: Likewise.
3384 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3386 * config/obj-coff.c: Fix formatting.
3387 * config/obj-elf.c: Likewise.
3388 * config/tc-alpha.c: Likewise.
3389 * config/tc-arm.c: Likewise.
3390 * config/tc-d10v.c: Likewise.
3391 * config/tc-d30v.c: Likewise.
3392 * config/tc-h8300.c: Likewise.
3393 * config/tc-hppa.c: Likewise.
3395 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3397 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3398 reloc when no_cond_jump_promotion.
3400 2002-05-08 Jim Wilson <wilson@redhat.com>
3402 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3403 current variable part of frag.
3405 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3407 * config/tc-mmix.c: Fix formatting.
3408 * config/tc-mmix.h: Likewise.
3410 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3412 * configure: Regenerate.
3414 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3416 * config/tc-m68k.c: Fix formatting.
3418 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3420 * Makefile.am: Honour DESTDIR.
3421 * Makefile.in: Regenerate.
3423 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3425 * config/tc-ia64.c: Fix formatting.
3426 * config/tc-ia64.h: Likewise.
3428 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3430 * config/tc-mips.c: Fix formatting.
3431 * config/tc-s390.c: Likewise.
3432 * config/tc-s390.h: Likewise.
3434 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3436 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3437 information for instructions.
3439 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3441 * as.h: Fix formatting.
3444 * dwarf2dbg.c: Likewise.
3445 * frags.h: Likewise.
3447 * macro.c: Likewise.
3449 * stabs.c: Likewise.
3450 * symbols.c: Likewise.
3452 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3454 * app.c (mri_pseudo): Only declare for TC_M68K.
3456 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3457 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3458 BFD_RELOC_16_BASEREL.
3459 (md_assemble): Likewise.
3460 (md_apply_fix3): Likewise.
3462 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3464 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3465 zero into an add of zero - it is not the same.
3467 2002-05-01 Arati Dikey <aratid@kpit.com>
3469 * tc-sh.c (get_specific): Generate warning if the same
3470 destination register is used in parallel instructions.
3472 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3474 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3476 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3478 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3479 backwards to prevent cascading errors.
3481 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3483 * configure.in: Add support for powerpc-*-windiss.
3484 * configure: Regenerated.
3486 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3488 * config/tc-s390.c (md_parse_option): Formatting.
3490 * config/tc-i386.c: Formatting fixes, add missing space in error
3493 2002-04-24 Christian Groessler <chris@groessler.org>
3495 * config/tc-z8k.c (build_bytes): Add support for new cases:
3496 CLASS_IGNORE and ARG_NIM4.
3497 (md_assemble): Prevent destruction of input_line_pointer if
3498 get_operands returns failure.
3500 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3502 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3503 instructions to be generated by macros.
3505 2002-04-24 Andreas Schwab <schwab@suse.de>
3507 * config/tc-i386.c (output_jump, output_disp)
3508 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3510 (md_apply_fix3): Remember addend value for rela relocations.
3511 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3513 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3515 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3516 from previous change.
3518 2002-04-22 Eric Christopher <echristo@redhat.com>
3520 * config/tc-mips.c (macro_build): Add warning if macro instructions
3521 are expanded into a branch delay slot.
3523 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3525 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3526 numbers, gdb relies on them to detect the start of the prologue.
3528 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3530 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3531 symbols in merge sections.
3533 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3535 * as.c (main): Don't reference _bfd_chunksize.
3537 2002-04-15 Tom Rix <trix@redhat.com>
3539 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3540 symbols in merge sections.
3542 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3544 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3545 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3546 argument for the precision.
3547 (gen_to_words): Update accordingly.
3549 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3551 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3552 BFD_VERSION_STRING unavailable.
3553 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3555 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3557 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3558 symbol_used_in_reloc_p is true.
3560 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3563 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3565 * dep-in.sed: Cope with absolute paths.
3566 * Makefile.am (dep.sed): Subst TOPDIR.
3568 * Makefile.in: Regenerate.
3570 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3572 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3573 (mips_ip): Remove unused variable.
3574 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3575 unsigned char with bfd_byte.
3576 (s_file): Remove unused variable.
3577 (s_mips_ent): Likewise.
3579 2002-04-03 Tom Rix <trix@redhat.com>
3581 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3583 (find_opcode): Fix warning in as_warn.
3584 * config/tc-d10v.h: Update Copyright.
3586 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3587 Tom Rix <trix@redhat.com>
3589 From Jeff Knaggs <jknaggs@redhat.com>
3590 * config/tc-d10v.c (check_resource_conflict): New function to
3591 check for resource conflicts.
3593 From Jason Eckhardt <jle@redhat.com>
3594 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3596 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3597 reserved control registers is used.
3598 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3601 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3602 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3603 instruction cannot be packed.
3605 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3606 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3607 write-write conflicts.
3608 (md_assemble): Reformat introductory comment.
3609 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3612 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3614 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3615 O_logical_not>): Derive final_seg from add_symbol.
3616 <O_multiply..O_logical_or>: More final_seg twiddles.
3618 2002-04-01 Jessica Han <jessica@cup.hp.com>
3620 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3623 2002-03-27 Andreas Schwab <schwab@suse.de>
3625 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3626 field for pc-relative fixups.
3627 (output_disp): Likewise.
3628 (md_estimate_size_before_relax): Likewise.
3629 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3630 pc-relative fixups in 64bit mode.
3632 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3634 * config/te-aix5.h: Typo fix.
3636 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3638 * Makefile.am: Run "make dep-am".
3639 * Makefile.in: Regenerate.
3640 * doc/Makefile.in: Regenerate.
3642 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3644 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3645 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3647 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3649 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3650 the EXTENDED bit here; report the estimate according to the
3653 2002-03-18 Tom Rix <trix@redhat.com>
3655 * configure.in: Add AIX 5 support.
3656 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3657 * config/te-aix5.h: New file. AIX 5 support.
3658 * configure: Regenerate.
3660 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3662 * po/fr.po: Updated version.
3664 2002-03-16 Andreas Jaeger <aj@suse.de>
3666 * doc/c-mips.texi (Machine Dependencies): Add new node.
3668 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3670 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3671 (mips_opts): Initialize "ase_mips3d" member.
3672 (file_ase_mips3d): New variable.
3673 (CPU_HAS_MIPS3D): New macro.
3674 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3675 based on command line options and configuration defaults.
3676 (macro_build, mips_ip): Accept MIPS-3D instructions if
3677 mips_opts.ase_mips3d is set.
3678 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3679 Add support for "-mips3d" and "-no-mips3d" options.
3680 (OPTION_ELF_BASE): Move to accomodate new options.
3681 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3682 (mips_elf_final_processing): Add a comment indicating that a
3683 MIPS-3D ASE ELF header flag should be set, when one exists.
3684 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3685 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3686 nomips3d" directives.
3688 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3690 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3691 a weak symbol in same section to be within reach.
3693 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3695 * po/fr.po: Updated version.
3697 2002-03-12 Andreas Schwab <schwab@suse.de>
3699 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3700 body record so that an error is given for misplaced .save
3703 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3705 * config/tc-i386.h (REX_OPCODE): Define.
3706 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3707 (rex_byte): typedef to int.
3708 * config/tc-i386.c: Group prototypes and vars together.
3709 Formatting fixes. Remove occurrences of "register" keyword.
3712 (mode_from_disp_size): Add INLINE keyword to prototype.
3713 (fits_in_signed_byte): Likewise.
3714 (fits_in_unsigned_byte): Likewise.
3715 (fits_in_unsigned_word): Likewise.
3716 (fits_in_signed_word): Likewise.
3717 (fits_in_unsigned_long): Likewise.
3718 (fits_in_signed_long): Likewise.
3719 (type_names): Constify.
3720 (intel_float_operand): Constify param.
3721 (add_prefix): Use REX_OPCODE.
3722 (md_assemble): Likewise. Modify for changed rex_byte.
3723 (parse_insn): Split out of md_assemble.
3724 (parse_operands): Likewise.
3725 (swap_operands): Likewise.
3726 (optimize_imm): Likewise.
3727 (optimize_disp): Likewise.
3728 (match_template): Likewise.
3729 (check_string): Likewise.
3730 (process_suffix): Likewise.
3731 (check_byte_reg): Likewise.
3732 (check_long_reg): Likewise.
3733 (check_qword_reg): Likewise.
3734 (check_word_reg): Likewise.
3735 (finalize_imm): Likewise.
3736 (process_operands): Likewise.
3737 (build_modrm_byte): Likewise.
3738 (output_insn): Likewise.
3739 (output_branch): Likewise.
3740 (output_jump): Likewise.
3741 (output_interseg_jump): Likewise.
3742 (output_disp): Likewise.
3743 (output_imm): Likewise.
3745 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3747 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3749 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3751 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3752 relocs except when BFD64.
3754 * write.c (number_to_chars_bigendian): Don't abort when N is
3755 larger than sizeof (VAL).
3756 (number_to_chars_littleendian): Likewise.
3758 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3760 * config/tc-hppa.c (md_apply_fix3): Add cast.
3761 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3764 2002-03-05 Paul Koning <pkoning@equallogic.com>
3766 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3767 (parse_ac5): New function for parsing float regs in float operand.
3768 (parse_expression): Remove attempt to make literals be octal.
3769 (parse_op_no_deferred): Support float literals.
3770 (parse_op): Reject attempts to refer to float regs.
3771 (parse_fop): New function, like parse_op but for float operand.
3772 (md_assemble): Add cases to parse float operands. Also fix
3773 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3775 2002-03-04 H.J. Lu <hjl@gnu.org>
3777 * config/obj-elf.c (special_section): Add .init_array,
3778 .fini_array and .preinit_array.
3780 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3781 .init_array and .fini_array.
3783 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3785 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3787 (obj_frob_symbol): Copy visibility.
3789 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3791 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3793 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3795 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3797 * po/es.po: Updated.
3799 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3801 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3802 only, undo the changes made on 2001-06-08, with the
3803 effect being that common or extern symbols are
3804 adjusted for embedded-PIC, but weak symbols are not.
3805 (md_estimate_size_before_relax: Likewise, with the effect
3806 that extern symbols are treated the same as weak symbols
3807 only if not embedded-PIC.
3808 (mips_fix_adjustable) Likewise, with the effect that
3809 weak or extern symbols are not adjusted for embedded-PIC.
3810 (md_apply_fix3): Tweak so that the case where value is zero
3811 is handled more correctly for embedded-PIC code.
3813 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3815 * doc/as.texinfo (Overview): Add missing @ifset IA64
3817 * configure.in (LINGUAS): Add es.po.
3818 * configure: Regenerate.
3819 * po/es.po: New file.
3821 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3823 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3824 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3825 and NO_PIC cases. Code cleanup.
3826 (macro2): Fix handling of 64bit register loads.
3828 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3830 * doc/as.texinfo: Add entry for IA64.
3831 * doc/c-ia64.texi: New file.
3833 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3835 * config/tc-hppa.c: Update copyright date.
3837 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3838 Remove references to chip manufacturers.
3839 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3841 (md_show_usage): Remove references to chip manufacturers. Mention
3843 (md_begin): Test power4 opcode flag bits.
3845 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3847 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3848 count exceeds prologue count.
3849 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3850 (unwind.label_prologue_count): New member.
3852 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3854 (get_saved_prologue_count): New function.
3855 (save_prologue_count): New function.
3856 (free_saved_prologue_count): New function.
3857 (dot_label_state): Record state label by calling save_prologue_count().
3858 (dot_copy_state): Restore prologue count by calling
3859 get_saved_prologue_count().
3860 (generate_unwind_image): Free up list of saved prologue
3861 counts by calling free_saved_prologue_counts().
3863 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3865 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3866 function declarations.
3868 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3870 * NEWS: Note that GASP is now deprecated.
3871 * Makefile.am: Do not build gasp-new by default.
3872 * Makefile.in: Regenerate.
3873 * doc/Makefile.am: Do not install gasp.info.
3874 * doc/Makefile.in: Regenerate.
3875 * gas/gasp.texi: Note that gasp is now deprecated.
3877 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3879 * NEWS: Mark 2.12 branch.
3881 2002-02-19 Tom Tromey <tromey@redhat.com>
3883 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3885 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3887 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3890 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3892 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3893 Make bit size independent of architecture switch.
3894 (md_begin): Add warning for -m64 with -Aesa.
3895 (s390_md_end): Use renamed architecture defines.
3897 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3899 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3901 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3903 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3906 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3908 * config/tc-mips.c (md_estimate_size_before_relax): Really
3909 make sure we treat weak like extern only for ELF. (Fixes
3910 patch from 2001-07-25.)
3912 2002-02-15 Ben Elliston <bje@redhat.com>
3914 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3917 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3919 * NEWS: Mention support for MMIX.
3921 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3923 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3924 a sequence of indpendent 'if' statements for easier debugging
3925 and future modification.
3927 2002-02-13 Matt Fredette <fredette@netbsd.org>
3929 * config/tc-m68k.c (md_show_usage): No longer display a
3930 hard-coded "68020" for the default CPU, instead display the
3931 canonical name of the true, configured default CPU.
3932 (m68k_elf_final_processing): Mark objects for sub-68020
3933 CPUs with the new EF_M68000 flag.
3935 2002-02-13 Andreas Schwab <schwab@suse.de>
3937 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3938 pc-relative relocations to merge sections in 64-bit mode.
3940 2002-02-13 Ben Elliston <bje@redhat.com>
3942 * NEWS: Document floating point number handling in gasp.
3943 * gasp.c: Include <assert.h> and "xregex.h".
3944 (is_flonum): New function.
3945 (chew_flownum): Likewise.
3946 (change_base): Consume flonums from the input, where possible.
3947 * doc/gasp.texi (Constants): Document floating point numbers.
3949 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3951 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3952 that implicitly use LR and RR selectors.
3954 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3956 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3957 and `epsw' as available on AM33 and above only.
3958 (other_register_name): Add logic to handle machine type encoded in
3961 2002-02-11 Tom Rix <trix@redhat.com>
3963 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3966 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3968 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3971 2002-02-11 Jan Hubicka <jh@suse.cz>
3973 * i386.c (md_assemble): Support 32bit address prefix.
3974 (i386_displacement): Likewise.
3975 (i386_index_check): Accept 32bit addressing in 64bit mode.
3977 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3979 * config/tc-sh.c (dot): Removed unused function.
3981 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3983 * Makefile.am: "make dep-am".
3984 * Makefile.in: Regenerate.
3985 * aclocal.m4: Regenerate.
3986 * config.in: Regenerate.
3987 * configure: Regenerate.
3988 * doc/Makefile.in: Regenerate.
3990 2002-02-10 Richard Henderson <rth@redhat.com>
3992 * doc/c-alpha.texi: New file.
3993 * doc/Makefile.am (CPU_DOCS): Add it.
3994 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3996 2002-02-09 Richard Henderson <rth@redhat.com>
3998 * config/tc-alpha.c (O_samegp): New.
3999 (USER_RELOC_P): Include it.
4000 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4001 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4002 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4003 (alpha_validate_fix): New.
4004 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4006 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4008 * doc/c-cris.texi: New.
4009 * doc/all.texi: @set CRIS.
4010 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4011 Include c-cris.texi.
4012 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4013 * doc/Makefile.in: Regenerate.
4015 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4017 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4018 determine if a number is a sign-extended 32-bit number.
4019 (load_register): Use IS_SEXT_32BIT_NUM.
4020 (macro): Check if load/store macro handling is using a
4021 constant 32-bit address on 64-bit address systems, and if
4022 so optimize the generation of that address.
4024 2002-02-08 Richard Henderson <rth@redhat.com>
4026 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4027 we've eliminated all foreign relocation types yet.
4028 (alpha_fix_adjustable): Likewise.
4030 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4032 Contribute sh64-elf.
4033 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4034 Stephen Clarke <Stephen.Clarke@st.com>
4035 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4036 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4037 * config/tc-sh.c (md_relax_table): Added default sizes for
4038 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4039 MOVI_16, MOVI_32 and MOVI_48.
4040 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4041 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4043 (shmedia_md_estimate_size_before_relax): Remove redundant
4044 blocks. Set fragP->fr_var even if relaxation type unchanged.
4045 Retain UNDEF_MOVI until expression decays to number.
4046 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4047 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4048 relocation types. Take fixP->fx_addnumber into account too.
4049 (shmedia_md_apply_fix): Likewise.
4050 (shmedia_md_convert_frag): Likewise.
4051 (shmedia_build_Mytes): Likewise.
4052 (sh64_consume_datalabel): Complain about nested datalabel.
4053 Support PIC relocs. Call sh_parse_name.
4054 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4055 in tc-sh.h to SHmedia reloc types.
4056 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4057 MOVI_GOTPC): New relaxation constants.
4058 (md_relax_table): Introduce relaxation directives for PIC-related
4060 (sh_PIC_related_p): Handle datalabel.
4061 (sh_check_fixup): Choose SH5 PIC relocations.
4062 (sh_cons_fix_new): Added BDF_RELOC_64.
4063 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4064 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4065 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4066 current ISA is SHmedia, get 7 bytes.
4067 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4068 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4070 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4071 shmedia_apply_fix3 and make void.
4072 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4073 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4075 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4076 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4077 2001-03-14 DJ Delorie <dj@redhat.com>
4078 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4079 * doc/Makefile.in(CPU_DOCS): Ditto.
4080 * doc/c-sh64.texi: New file.
4081 * doc/as.texinfo: Add SH64 support.
4082 2001-03-13 DJ Delorie <dj@redhat.com>
4083 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4084 A_REUSE_PREV so that its purpose is more obvious.
4085 (shmedia_build_Mytes): Ditto.
4086 2001-03-07 DJ Delorie <dj@redhat.com>
4087 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4089 (sh64_vtable_inherit): Ditto.
4090 (strip_datalabels): New, strip "datalabel" from given line.
4091 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4093 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4094 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4096 (shmedia_build_Mytes): ... to here.
4097 2001-03-06 DJ Delorie <dj@redhat.com>
4098 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4100 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4101 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4102 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4103 address by one in call to dwarf2_emit_insn.
4104 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4105 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4106 alignment handling broken by imported changes.
4107 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4108 (sh64_handle_align): Declare.
4109 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4110 (sh64_max_mem_for_rs_align_code): Declare.
4111 (enum sh64_isa_values): Moved here from tc-sh64.c.
4112 (md_do_align): Define.
4113 (sh64_do_align): Declare.
4114 (struct sh64_tc_frag_data): New.
4115 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4117 (TC_FRAG_INIT): Change to set new datatype.
4118 (struct sh64_segment_info_type): Rename member
4119 last_flushed_location to last_contents_mark. All users changed.
4120 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4121 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4122 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4123 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4124 of unsetting seen_insn.
4125 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4126 call sh64_update_contents_mark.
4127 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4128 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4129 enum sh64_isa_values.
4130 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4131 (emitting_crange): Boolean guard moved to file scope from function
4132 scope in sh64_set_contents_type.
4134 (sh64_update_contents_mark): New; most split out from
4135 sh64_flush_pending_output.
4136 (shmedia_md_end): Call sh64_update_contents_mark. Set
4137 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4138 (sh64_do_align): New function.
4139 (sh64_max_mem_for_rs_align_code): New function.
4140 (sh64_handle_align): Rename from shmedia_do_align. Make
4141 non-static. Add head comment. Emit zero bytes for n bytes modulo
4142 four. Change return-type to void.
4143 (shmedia_elf_new_section): Remove.
4144 (shmedia_md_assemble): Call sh64_update_contents_mark.
4145 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4146 new frag. Call sh64_update_contents_mark after making the new
4148 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4149 and sh_flush_pending_output.
4150 (sh64_flag_output): Also call md_flush_pending_output, but add
4151 condition on not emitting_crange.
4152 (sh64_tc_cons_fix_new): Remove.
4153 2001-01-12 Nick Clifton <nickc@redhat.com>
4154 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4155 alignment handling scheme imported from sourceware.
4156 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4157 * config/tc-sh64.h (TARGET_FORMAT): Define.
4158 (sh64_target_format): Prototype.
4159 * config/tc-sh64.c (sh64_target_mach): New function.
4160 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4161 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4162 zero_address_frag instead of copying the frag of the symbol.
4163 (shmedia_frob_file_before_adjust): Ditto.
4164 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4165 to valueT to remove signedness.
4166 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4167 headers to output_bfd. Do not evaluate symbols if final is false;
4169 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4170 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4171 to the current frag, call shmedia_md_convert_frag to emit fixups
4172 and make frag_wane neutralize the frag. Update comments.
4173 * config/tc-sh.c (md_convert_frag): Change caller of
4174 shmedia_md_convert_frag.
4175 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4176 * config/tc-sh64.h: Tweak comments and correct formatting.
4177 * config/tc-sh64.c: Ditto.
4178 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4179 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4180 for the no-relocation case.
4181 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4182 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4184 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4186 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4187 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4189 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4191 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4192 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4193 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4194 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4195 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4196 if reloc is emitted.
4197 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4198 New options plus bugfixes.
4199 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4201 (md_parse_option): Handle new options.
4202 (md_show_usage): Add blurb for new options.
4203 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4204 (sh64_expand, sh64_pt32): New variables.
4205 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4206 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4207 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4208 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4209 <resolved previously-pc-relative relocs>: Handle
4210 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4211 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4212 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4213 points to SHcompact code.
4214 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4215 SH64PCREL16)>: Check that ISA of what operand points at and
4216 PTA/PTB matches, or emit error.
4217 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4218 SHMEDIA_BFD_RELOC_PT.
4219 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4221 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4222 condition for MOVI expansion.
4223 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4224 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4226 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4228 (sh64_target_format): Error-check setting of sh64_pt32 and
4229 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4230 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4231 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4232 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4233 * config/tc-sh64.c: Improve comments.
4234 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4235 not say the linker will check correctness of PTA/PTB expansion.
4236 (shmedia_md_end): Make non-static.
4237 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4239 * config/tc-sh.c (sh_finalize): Remove.
4240 * config/tc-sh.h (md_end): Do not define.
4241 Remove prototype for sh_finalize.
4242 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4243 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4244 sh64_section_data container when storing section type in tdata
4245 field in elf_section_data.
4246 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4248 * Makefile.am: Update dependencies.
4249 * Makefile.in: Regenerate.
4250 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4251 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4252 dwarf2_emit_insn call with test on debug_type.
4253 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4254 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4255 CRT_SH5_ISA32 sticky for 64-bit.
4256 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4257 Generate .crange sections when switching ISA mode or emitting
4258 constants in same section as code.
4259 * config/tc-sh64.c: Reformat structure definitions.
4260 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4262 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4263 to emit a .cranges descriptor when contents type changes. Only
4264 emit error if changing contents type and -no-mix is in effect.
4265 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4266 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4267 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4268 sh64_flush_last_crange over sections.
4269 When checking main symbol of datalabel symbol, check for
4270 STO_SH5_ISA32, not ISA type of section in definition.
4271 (shmedia_frob_file_before_adjust): Check main symbol for
4272 STO_SH5_ISA32; don't check ISA type of section in definition.
4273 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4274 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4275 .cranges entries have been output.
4276 (shmedia_elf_new_section): Just call md_flush_pending_output.
4277 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4278 fix. Do not set tc_segment_info_data.in_code for section. Call
4279 sh64_set_contents_type for SHmedia code.
4280 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4281 false. Call md_flush_pending_output.
4282 (sh64_target_format): Check that -no-mix and
4283 -shcompact-const-crange are used in sane combination with other
4285 (shmedia_md_pcrel_from_section): Check type of fix for how to
4287 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4288 not ISA type of section in definition.
4289 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4290 hold contents-type state.
4291 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4292 (sh64_flush_pending_output): Declare.
4293 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4294 (sh64_tc_cons_fix_new): Declare.
4295 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4296 call sh64_flag_output.
4297 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4298 call sh64_set_contents_type to mark SHcompact code and set
4300 (md_longopts): New options "-no-mix" and
4301 "-shcompact-const-crange".
4302 (md_parse_option): Handle new options.
4303 (md_show_usage): Add blurb for new options.
4304 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4305 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4306 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4307 (sh64_last_insn_frag): New.
4308 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4309 to get frag for insn opcode for generating fixups; do not assume it
4311 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4313 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4315 (TC_FRAG_TYPE): Define as fragS *.
4316 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4317 (sh64_last_insn_frag): Declare.
4318 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4319 not == NULL before dereferencing.
4320 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4321 Get rid of BFD section flag and EF_SH64_ABI64.
4322 * config/tc-sh64.c (shmedia_frob_section_type): Use
4323 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4324 communicate the section as containing SHmedia code. Describe why.
4325 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4326 EF_SH64 regardless of ABI.
4327 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4328 in error message. Handle resolved expressions for
4329 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4330 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4331 (shmedia_check_limits): Handle BFD_RELOC_64.
4332 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4333 a STO_SH5_ISA32 symbol, only the BFD value.
4334 2000-12-11 Ben Elliston <bje@redhat.com>
4335 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4336 dwarf2_generate_asm_lineno.
4337 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4338 Handle PC-relative MOVI expansions with assembler relaxation.
4339 Generate PC-relative relocs from 16-bit PC-relative expressions.
4340 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4341 (shmedia_md_pcrel_from_section): ...here.
4342 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4343 turned completely resolved. Adjust relocation type for 16-bit
4344 immediate operands that has turned PC-relative. Adjust back for
4345 MD_PCREL_FROM_SECTION being applied twice.
4346 (shmedia_md_convert_frag): Always emit reloc for expression with
4347 global or weak symbol. Handle relaxation result for PC-relative
4349 (shmedia_md_estimate_size_before_relax): An expression with a weak
4350 or global symbol can not be relaxed. Break out tests for
4351 relaxable symbol into variable sym_relaxable.
4352 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4353 UNDEF_MOVI)>: Break out any PC-relative expression and change
4355 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4357 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4358 MOVI expansion. If X_op_symbol of the immediate expression is
4359 set, make an expression symbol for the argument to frag_var.
4360 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4362 (END): Adjust for new relaxations.
4363 (md_relax_table): Add entries for new relaxations.
4364 2000-12-07 Ben Elliston <bje@redhat.com>
4365 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4366 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4367 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4368 SHORI operand offsets in PT/PTA/PTB expansions.
4369 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4370 Implement DataLabel semantics.
4371 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4372 shmedia_frob_file_before_adjust.
4373 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4374 (DATALABEL_SUFFIX): Define.
4375 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4376 symbol list to update "datalabel" symbols to their main symbol
4378 (shmedia_frob_file_before_adjust): New.
4379 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4380 undefined and set STT_DATALABEL.
4381 (sh64_frob_label): Initialize TC symbol field.
4382 (sh64_consume_datalabel): Actually implement semantics. New
4383 parameter operandf, call it instead of expression.
4384 (sh64_exclude_symbol): New.
4385 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4386 to sh64_consume_datalabel.
4387 (tc_symbol_new_hook): Define to tc_frob_symbol.
4388 (TC_SYMFIELD_TYPE): Define to symbolS *.
4389 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4390 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4391 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4393 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4394 generating dwarf2 debug information.
4395 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4396 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4397 elf64-sh64 for the 64-bit ABI.
4398 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4400 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4401 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4403 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4404 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4405 (enum sh64_abi_values): New type.
4406 (enum sh64_isa_values): New type.
4407 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4408 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4409 (sh64_abi): Replace shmedia_64.
4410 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4411 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4412 (s_sh64_mode): Check validity for this target.
4413 (sh64_target_format): Initialize defaults for ISA and ABI.
4414 Fallback to old object format if no SH64 ISA or ABI has been
4416 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4417 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4418 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4419 * config/tc-sh64.h: Fix typo in comment.
4420 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4421 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4422 <PT fixups for absolute values>: Size will be longest, not
4424 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4425 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4426 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4427 and l1 to hold lowercase of two first characters. Change all
4428 remaining TO_LOWER to tolower.
4429 * config/tc-sh64.c (TO_LOWER): Delete.
4430 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4431 (md_parse_name): Define.
4432 (sh64_consume_datalabel): Declare.
4433 (DOLLAR_DOT): Define.
4434 * config/tc-sh64.c (shmedia_parse_exp): New.
4435 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4436 (shmedia_parse_reg): Remove const from src
4438 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4439 (shmedia_md_assemble): Ditto for op_end variable.
4440 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4441 Use shmedia_parse_exp, not parse_exp.
4442 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4443 parameter. All callers changed.
4444 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4446 (shmedia_parse_reg): Put first two character in local variables.
4447 Use tolower, not TO_LOWER. If no register is found and argtype
4448 indicates a control register, scan shmedia_creg_table
4450 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4451 * Makefile.am (CPU_TYPES): Add sh64.
4452 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4453 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4454 Regenerate dependencies.
4455 * Makefile.in: Regenerate.
4456 * configure.in: Add support for sh64-*-elf*.
4457 * configure: Regenerate.
4458 * config/tc-sh64.h: New.
4459 * config/tc-sh64.c: New.
4460 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4461 .mode, .isa and .uaquad.
4462 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4463 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4464 [HAVE_SH64] (END): Define as 10.
4465 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4466 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4468 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4469 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4470 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4471 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4473 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4474 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4475 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4476 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4477 SHmedia instructions. Handle state-change after switching to
4479 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4480 (md_parse_option) [HAVE_SH64]: Parse new options.
4481 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4482 (md_convert_frag) [HAVE_SH64] <default>: Call
4483 shmedia_md_convert_frag instead of abort.
4484 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4485 BFD_RELOC_SH_SHMEDIA_CODE.
4486 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4487 SHcompact or SHmedia code.
4488 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4489 shmedia_md_apply_fix instead of abort.
4490 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4491 result from calling shmedia_md_estimate_size_before_relax instead
4493 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4495 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4496 shmedia_init_reloc and do nothing more if it returns non-zero.
4497 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4498 * po/POTFILES.in: Regenerate.
4499 * po/gas.pot: Regenerate.
4501 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4503 * config/tc-sh.c (parse_at): Install the correct version of
4506 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4507 assume fixP->fx_subsy is non-NULL.
4509 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4511 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4512 A_DISP_PC_ABS, and adjust it by -4.
4513 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4515 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4516 the operand type is not A_DISP_PC_ABS.
4518 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4520 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4521 common and weak symbols. Handle common and weak symbols as
4522 undefined symbols with regards to GREG handling and merging.
4523 (mmix_frob_file): Ditto.
4525 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4527 * configure.in (hppa-*-netbsd*): New target.
4528 * configure: Regenerate.
4529 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4531 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4533 * config/tc-v850.c: Add missing prototypes amd use old-style
4534 function definitions.
4535 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4536 (sdata_section tdata_section, zdata_section, sbss_section,
4537 tbss_section, zbss_section, rosdata_section, rozdata_section,
4538 scommon_section, tcommon_section, zcommon_section,
4539 call_table_data_section, call_table_text_section): Delete.
4540 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4541 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4542 v850_call_table_data, v850_call_table_text): Delete.
4543 (struct v850_seg_entry): New.
4544 (v850_seg_table): New.
4545 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4546 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4547 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4548 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4551 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4552 recording of alignment.
4553 (md_pseudo_table): Use v850_seg.
4554 (md_begin): Don't init .call_table_data and .call_table_text here.
4555 Set v850_seg_table bss entry.
4557 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4559 Support on-demand global register allocation by passing on
4560 base-plus-offset relocs to the linker.
4561 * config/tc-mmix.c: Tweak and fix typos in comments.
4562 (allocate_undefined_gregs_in_linker): New variable.
4563 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4564 (md_longopts): Add --linker-allocated-gregs.
4565 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4566 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4567 (md_show_usage): Update text for -x. Add text for
4568 --linker-allocated-gregs.
4569 (tc_gen_reloc): Derive default value for addend from val and
4570 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4571 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4572 GREG if allocate_undefined_gregs_in_linker.
4573 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4574 --linker-allocated-gregs.
4575 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4576 --linker-allocated-gregs. Mention that it's implied by -x.
4577 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4578 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4580 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4582 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4584 * Makefile.am: Run "make dep-am"
4585 * Makefile.in: Regenerate.
4587 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4589 * config/tc-or32.c: New file.
4590 * config/tc-or32.h: New file.
4591 * configure.in: Add support for or32 targets.
4592 * configure: Regenerate.
4593 * config/obj-coff.c: Add support for or32 targets.
4594 * config/obj-coff.h: Add support for or32 targets.
4595 * Makefile.am: Add support for or32 targets.
4596 * Makefile.in: Regenerate.
4597 * NEWS: Mention support for OpenRISC.
4598 * doc/Makefile.in: Regenerate.
4599 * po/POTFILES.in: Regenerate.
4600 * po/gas.pot: Regenerate.
4602 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4604 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4607 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4609 * config/tc-mips.c (tc_gen_reloc): Arrange for
4610 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4611 their LO16 parts, even for ELF.
4613 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4615 * config/tc-i386.c: Protect definitions of true and false
4618 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4620 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4621 made because of .weak, if they are neither defined nor used in any
4624 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4626 * configure: Regenerated.
4628 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4630 * doc/Makefile.am (install): Depend on install-info.
4631 * doc/Makefile.in: Regenerate.
4633 2002-01-26 Nick Clifton <nick@redhat.com>
4635 * po/fr.po: Updated version
4637 2002-01-24 Kazu Hirata <kazu@hxi.com>
4639 * config/tc-h8300.c (check_operand): Don't print a warning
4640 when a valid 24-bit address is given to a 16-bit address
4643 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4645 * config/tc-sh.c (sh_elf_suffix): Removed.
4646 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4647 sh_end_of_match, sh_parse_name): New functions.
4648 (sh_elf_cons): Simplify.
4649 (parse_exp): Reject misplaced PIC operands.
4650 (md_undefined_symbol): Simplify.
4651 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4652 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4653 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4654 Complain if subsy remains at the end.
4655 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4656 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4658 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4660 * config/tc-mn10300.c (xr_registers): Move `pc'...
4661 (other_registers): ... here.
4663 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4665 * Makefile.am: Run "make dep-am".
4666 * Makefile.in: Regenerate.
4667 * gas/po/POTFILES.in: Regenerate.
4669 2002-01-21 DJ Delorie <dj@redhat.com>
4671 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4672 stabstr_name allocation permanent, as it will be referenced from
4675 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4677 * configure.in (ia64-*-netbsd*): New target.
4678 * configure: Regenerate.
4680 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4682 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4684 <Detailed description, ARM options>: Ditto.
4685 * doc/c-arm.texi (ARM Options): Ditto.
4687 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4689 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4690 do_mia, do_mar and do_mra respectively.
4691 (do_mav_*): Renamed from do_c_*.
4692 (mav_reg_required_here, mav_parse_offset): Renamed from
4693 cirrus_reg_required_here and cirrus_parse_offset respectively.
4694 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4696 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4697 Keith Walker <keith.walker@arm.com>
4699 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4700 (insns): Add pattern for bxj instruction.
4701 (do_bxj): New function.
4702 (arm_cpus): Add arm926ej.
4703 (arm_archs): Add armv5tej.
4705 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4707 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4709 2002-01-19 Keith Walker <keith.walker@arm.com>
4711 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4713 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4715 * NEWS: Mention new ARM command-line options and VFP support.
4717 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4719 (ARM_CEXT_MAVERICK): Similarly.
4720 (ARM_ANY): Now means any core instruction.
4721 (CPU_DEFAULT): Default to ARM_ANY.
4722 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4723 (pic_code): Declare for all object types. Make type int.
4724 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4725 (march_fpu_opt, mfpu_opt): Declare.
4726 (md_longopts): Tidy up conditional definitions.
4727 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4728 (arm_long_opts): New tables.
4729 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4730 (arm_parse_extension): New function.
4731 (md_parse_option): Rewrite using new table-driven system.
4732 (md_show_usage): Use new table-driven system.
4733 (md_begin): Calculate cpu_variant from command line option data.
4734 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4735 command-line options.
4736 * doc/c-arm.texi: Likewise.
4738 2002-01-18 Andreas Jaeger <aj@suse.de>
4740 * as.c (parse_args): Update year.
4742 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4744 * config/tc-tic54x.c (encode_address): Add a more informative
4745 warning about incorrect syntax.
4747 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4749 * po/gas.pot: Regenerate.
4751 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4753 * macro.c (get_any_string): Add no-c-format comment to prevent
4754 confusion when translating string.
4755 * gasp.c (get_any_string): Add no-c-format comment to prevent
4756 confusion when translating string.
4758 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4759 Johannes Stezenbach <js@convergence.de>
4760 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4761 matched before the shorter ones.
4762 (my_getSmallParser): Fix handling of nested parentheses in
4763 percent_op's. Code cleanup.
4764 (my_getPercentOp): New function, code from my_getSmallParser.
4765 (my_getSmallExpression): Fix handling of closing parentheses.
4766 Code cleanup. Better comments.
4768 2002-01-16 Nick Clifton <nickc@redhat.com>
4770 po/tr.po: New file: Turkish translation.
4771 configure.in (LINGUAS): Add "tr".
4772 configure: Regenerate.
4774 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4776 Support for VFP instructions
4777 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4778 (cp_address_required_here): New argument wb_ok. When false, do not
4779 accept write-back forms of addressing. Change all callers.
4780 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4781 (FPU_VFP_EXT_V2): Define.
4782 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4783 Define in terms of above.
4784 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4785 (vfp_reg): New struct.
4786 (vfp_regs): New array of registers.
4787 (insns): Add VFP instructions.
4788 (sn_table): New array of VFP single-precision register names.
4789 (dn_table): New array of VFP double-precision register names.
4790 (all_reg_maps): Add the new register tables.
4791 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4792 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4793 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4794 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4795 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4796 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4797 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4798 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4799 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4800 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4801 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4802 (do_vfp_sp_dp_cvt): New functions.
4803 (md_begin): Set soft-float flag for appropriate VFP work.
4804 (md_atof): Handle VFP-format doubles.
4805 (md_parse_option): Handle VFP command-line options.
4806 (md_show_usage): Display VFP command-line options.
4808 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4810 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4811 various command line options.
4813 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4815 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4817 (xstormy16_md_apply_fix3): Do not return a value.
4819 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4821 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4822 the -EL/-EB option that matches the target's endianness.
4823 (md_parse_option): Likewise.
4825 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4827 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4828 is not dependent on ARM_BI_ENDIAN.
4830 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4832 * tc-arm.c (all error messages): Normalize capitalization of messages.
4834 * tc-arm.h (md_operand): Delete define.
4835 * tc-arm.c (in_my_get_expression): New static variable.
4836 (my_get_expression): Set and clear it.
4837 (md_operand): New function. If called from my_get_expression
4838 put the error in inst.error.
4839 (output_inst): Now takes argument of instruction being assembled.
4840 Print it out with any error message.
4841 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4843 (end_of_line): Don't update inst.error if it is already set.
4845 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4847 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4848 op that can be translated into a mvn instruction.
4850 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4852 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4853 setting default md.flags.
4854 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4855 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4856 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4857 for 32 bit unwind info blocks.
4858 (generate_unwind_image): Add support for different types
4859 of unwind images (32 bits and/or big-endian).
4860 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4861 (ia64_target_format): Add support for hpux target formats.
4862 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4863 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4864 SHT_FINI_ARRAY elf section types.
4866 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4868 * tc-arm.c (struct reg_entry): Move before prototypes.
4869 (int_register, cp_register, fp_register): Delete.
4870 (reg_table): Delete. Replaced with ...
4871 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4872 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4873 (mav_dspsc_table): ... one table per register set.
4874 (arm_reg_hsh): Delete.
4875 (struct reg_map): New structure.
4876 (all_reg_maps): New array.
4877 (enum arm_reg_type): New enums.
4878 (build_reg_hsh): New function.
4879 (insert_reg_alias): Use hash table passed by caller. Adjust all
4881 (create_register_alias): New function, split out from ...
4882 (md_assemble): ... here.
4883 (md_begin): Build new register hash tables.
4884 (arm_reg_parse): New argument for the hash table to search. Adjust all
4886 (arm_reg_parse_any): New function.
4887 (co_proc_number): Look up the processor number in the processor hash
4889 (cirrus_regtype): Delete.
4890 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4891 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4892 (ARM_EXT_MAVERICKsc_register): Delete.
4893 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4894 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4896 (do_c_triple_4, do_c_triple_5): Delete.
4897 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4898 (do_c_quad_6): Delete.
4899 (do_c_quad_6[ab]): New functions.
4900 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4901 arguments to use new register parsing methods.
4902 (cirrus_reg_required_here): Likewise.
4903 (insns): Reclassify cirrus maverick worker functions.
4904 (cirrus_valid_reg): Delete.
4906 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4908 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4909 (sh*-*-netbsdelf*): New target.
4910 * configure: Regenerate.
4911 * tc-sh.h: Update copyright years.
4912 (TARGET_FORMAT): Add version for TE_NetBSD.
4914 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4916 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4919 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4921 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4922 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4924 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4926 * tc-mips.c (mips_cprestore_valid): New flag.
4927 (mips_frame_reg_valid): New flag.
4928 (macro) [M_JAL_2]: Check both flags.
4929 [M_JAL_A]: Likewise.
4930 (s_cprestore): Set mips_cprestore_valid.
4931 (tc_get_register): If setting mips_frame_reg, set
4932 mips_frame_reg_valid and clear mips_cprestore_valid.
4933 (s_mips_ent): Clear both flags.
4934 (s_mips_end): Clear both flags.
4936 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4938 * write.c (write_object_file): Make use of bfd_section_list_remove.
4939 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4940 * config/tc-mmix.c (mmix_frob_file): Likewise.
4942 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4944 * configure.in (i386-*-netbsdelf*): Collapse target into...
4945 (i386-*-netbsd*): ...this. Add support for x86-64.
4946 * configure: Regenerated.
4948 2002-01-03 matthew green <mrg@redhat.com>
4950 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4952 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4954 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4957 For older changes see ChangeLog-0001
4963 version-control: never