1 2003-02-21 Miles Bader <miles@gnu.org>
3 * config/tc-v850.c (system_registers): Add v850e debug registers.
4 (system_register_name): Accept up to 27 (the last v850e sys register).
6 2003-02-21 Bob Wilson <bob.wilson@acm.org>
8 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
9 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
10 Capitalize section headings consistently. Format index entries more
11 consistently. Unconditionalize text about whether text and data
12 sections are alterable. Use @ifnottex for alternatives to @tex output
13 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
14 .size and .type directives. Be more polite about bad bug reports.
15 Move FDL into a separate file.
16 * doc/fdl.texi: New file.
18 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
20 * config/tc-mips.c (prev_reloc_op_frag): New variable.
21 (macro): Check it to decide whether a new frag is needed.
22 (my_getSmallExpression): Set it.
24 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
26 * cgen.c: Fix typo: intial -> initial.
28 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
30 * app.c (do_scrub_chars): Handle '||' in two states.
32 2003-02-13 Alan Modra <amodra@bigpond.net.au>
34 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
35 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
37 2003-02-11 Uwe Stieber <uwe@wwws.de>
39 * configure.in: Add support for kaOS as cross build target system.
40 * configure: Regenerated.
42 2003-02-10 Nick Clifton <nickc@redhat.com>
44 * config/tc-arm.c (md_begin): If the Maverick co-processor is
45 selected, set the EF_ARM_MAVERICK_FLOAT flag and
46 bfd_mach_arm_ep9312 machine number.
48 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
50 * config/tc-mips.c (reloc_needs_lo_p): New function.
51 (fixup_has_matching_lo_p): New function.
52 (append_insn): Use reloc_needs_lo_p to check whether a relocation
53 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
54 if that fixup already has a matching %lo(). Don't call frag_wane here.
55 (macro): Call frag_wane here if the last unmatched hi was in the
57 (pic_need_relax): New function, split out from...
58 (md_estimate_size_before_relax): ...here.
59 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
60 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
62 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
64 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
66 2003-02-06 Alan Modra <amodra@bigpond.net.au>
68 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
71 2003-02-05 Alan Modra <amodra@bigpond.net.au>
73 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
74 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
76 (md_assemble): Handle TLS relocs.
77 (ppc_force_relocation): Force for all TLS relocs.
78 (ppc_fix_adjustable): Likewise.
79 (md_apply_fix3): Handle TLS relocs.
81 2003-02-04 Alan Modra <amodra@bigpond.net.au>
83 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
84 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
86 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
88 * config/tc-mips.c (enum small_ex_type): Remove.
89 (imm_unmatched_hi): Remove.
90 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
91 argument from calls to append_insn.
92 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
94 (macro_build): Update append_insn calls.
95 (mips16_macro_build, macro_build_lui): Likewise.
96 (mips_ip): Rework handling of small expressions. Move explicit
97 relocation handling into my_getSmallExpression. Assume that the
98 value of 'o' operands is zero if there is only one bracketed
100 (percent_op): Make constant. Record the BFD relocation code
101 associated with each operator.
102 (my_getSmallParser, my_getPercentOp): Remove.
103 (parse_relocation): New function.
104 (my_getSamllExpression): Rework. Fill in relocations here
105 rather than in mips_ip.
107 2003-01-29 Nick Clifton <nickc@redhat.com>
109 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
110 assembler's handling of # <linenum> "<filename>" directives work.
112 2003-01-28 Jakub Jelinek <jakub@redhat.com>
114 * dwarf2dbg.c: Include filenames.h.
115 (struct file_entry): Make filename const char *.
116 (dirs, dirs_in_use, dirs_allocated): New variables.
117 (get_filenum): Add NUM argument. Build directory table.
118 (dwarf2_where): Adjust caller.
119 (dwarf2_directive_file): Use get_filenum to allocate
120 slot in file and directory tables.
121 (dwarf2_directive_loc): Recreate full filename from
122 directory and filename part if needed for listing.
123 (out_file_list): Output directory table.
124 Output main source file dirname before its filename.
126 2003-01-28 Dmitry Diky <diwil@mail.ru>
128 * config/tc-msp430.c: Replace occurences of 'tolower' with
131 2003-01-27 David Mosberger <davidm@hpl.hp.com>
133 * config/tc-ia64.c (dot_vframesp): Correct error message.
134 (dot_vframepsp): Ditto.
136 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
138 * configure.in (em): Set to irix on all Irix systems.
139 * configure: Rebuilt.
140 * config/te-irix.h: New file.
141 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
142 whether to use Irix-specific 64-bit format.
144 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
146 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
148 2003-01-25 Jakub Jelinek <jakub@redhat.com>
150 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
151 (tc_gen_reloc): Handle TLS relocs.
152 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
153 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
155 * config/obj-elf.c (obj_elf_section_word): Handle tls.
156 (obj_elf_type): Handle tls_object.
158 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
160 * config/tc-s390.c (s390_tls_suffix): New function.
161 (elf_suffix_type): Add suffix enums for TLS relocations.
162 (s390_elf_suffix): Add suffix strings for TLS relocations.
163 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
165 (md_gather_operands): Map new instruction operand/elf suffix
166 combinations for TLS to bfd relocations.
167 (tc_s390_fix_adjustable): Add new TLS relocations.
168 (tc_s390_force_relocation): Likewise.
169 (md_apply_fix3): Likewise.
171 2003-01-24 Alan Modra <amodra@bigpond.net.au>
173 * as.h: Update copyright date.
174 * symbols.c: Likewise.
175 * config/tc-d10v.h: Likewise.
176 * config/tc-fr30.h: Likewise.
177 * config/tc-i960.h: Likewise.
178 * config/tc-mips.h: Likewise.
180 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
181 (MD_APPLY_SYM_VALUE): Move.
183 2003-01-23 Nick Clifton <nickc@redhat.com>
185 NEWS: Announce sh2e support.
189 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
191 * config/tc-sh.c (md_show_usage): Added sh2e next to
193 (sh_elf_final_processing): Handle arch_sh2e.
195 2003-01-23 Alan Modra <amodra@bigpond.net.au>
197 * symbols.c (S_FORCE_RELOC): Add "strict" param.
198 * symbols.h (S_FORCE_RELOC): Likewise.
199 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
200 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
201 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
202 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
203 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
204 * write.c (generic_force_reloc): New function.
205 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
206 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
207 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
208 * as.h (generic_force_reloc): Declare.
209 * doc/internals.texi (S_FORCE_RELOC): Update.
210 (TC_FORCE_RELOCATION_SUB_SAME): Update.
212 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
214 (alpha_fix_adjustable): Likewise.
215 * config/tc-arm.c (arm_force_relocation): Likewise.
216 * config/tc-cris.c (md_cris_force_relocation): Likewise.
217 * config/tc-frv.c (frv_force_relocation): Likewise.
218 * config/tc-i386.c (md_apply_fix3): Likewise.
219 * config/tc-ia64.c (ia64_force_relocation): Likewise.
220 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
221 * config/tc-m32r.c (m32r_force_relocation): Likewise.
222 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
223 * config/tc-mcore.c (mcore_force_relocation): Likewise.
224 * config/tc-mips.c (mips_force_relocation): Likewise.
225 * config/tc-mmix.c (mmix_force_relocation): Likewise.
226 * config/tc-ppc.c (ppc_force_relocation): Likewise.
227 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
228 * config/tc-sh.c (sh_force_relocation): Likewise.
229 (md_pcrel_from_section): Likewise.
230 * config/tc-sparc.c (tc_gen_reloc): Likewise.
231 * config/tc-v850.c (v850_force_relocation): Likewise.
232 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
233 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
234 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
235 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
237 * config/tc-d10v.c (d10v_force_relocation): Delete.
238 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
239 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
240 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
241 * config/tc-fr30.c (fr30_force_relocation): Delete.
242 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
243 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
244 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
245 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
246 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
247 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
248 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
249 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
250 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
251 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
252 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
253 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
254 * config/tc-i386.c (i386_force_relocation): Delete.
255 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
257 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
258 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
259 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
260 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
262 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
263 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
265 2003-01-23 Alan Modra <amodra@bigpond.net.au>
267 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
268 sh64_elf_section_data.
269 * config/tc-sh64.h: Include elf32-sh64.h.
270 * config/tc-m68hc11.c: Don't include stdio.h.
271 (md_show_usage): Fix missing continuation.
272 * Makefile.am: Run "make dep-am".
273 * Makefile.in: Regenerate.
275 2003-01-22 Nick Clifton <nickc@redhat.com>
277 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
279 2003-01-21 Fabio Alemagna <falemagn@aros.org>
281 * configure.in: Handle *-*-aros*.
282 * configure: Regenerated from configure.in.
284 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
286 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
287 gotplt and pltoff relocations.
288 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
289 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
290 gotplt and pltoff to bfd relocations.
291 (md_gather_operands): Map new instruction operand/elf suffix
292 combinations to bfd relocations.
293 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
294 to the list of unadjustable relocations.
295 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
296 and pltoff relocations.
297 (md_apply_fix3): Add the new relocations.
299 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
301 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
304 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
306 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
307 of relocs for memory bank addressing.
309 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
311 * config/tc-m68hc11.c (md_show_usage): Update usage.
312 (md_parse_option): Recognize -m68hcs12.
313 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
315 * doc/as.texinfo (Overview): Document new option -m68hcs12.
317 2003-01-16 Jakub Jelinek <jakub@redhat.com>
319 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
321 2003-01-16 Alan Modra <amodra@bigpond.net.au>
323 * Makefile.am: Run "make dep-am".
324 * Makefile.in: Regenerate.
325 * po/POTFILES.in: Regenerate.
327 2003-01-11 Alan Modra <amodra@bigpond.net.au>
329 * read.c (get_absolute_expr): New, split out from..
330 (get_absolute_expression): ..here.
331 * read.h (get_absolute_expr): Declare.
332 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
333 Trim size to arch bits_per_address, and test for negative input
334 via get_absolute_expr.
336 2003-01-07 DJ Delorie <dj@redhat.com>
338 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
340 (xstormy16_md_apply_fix3): Use adjustment.
342 2003-01-02 Ben Elliston <bje@redhat.com>
344 * configure.in: Add iq2000-elf target.
345 * configure: Regenerate.
346 * config/tc-iq2000.c: New file.
347 * config/tc-iq2000.h: Likewise.
348 * po/gas.pot: Regenerate.
350 2003-01-02 Chris Demetriou <cgd@broadcom.com>
352 * config/tc-mips.c: Update copyright years to include 2003.
353 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
354 Additionally, clean up their code slightly and clean up their
357 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
359 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
361 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
363 * doc/Makefile.in: Regenerate.
365 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
367 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
368 of .init and .fini sections for array initializers and finalizers.
370 2002-12-31 Chris Demetriou <cgd@broadcom.com>
372 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
373 the "+D" operand, which will be used only by the disassembler.
375 2002-12-30 Chris Demetriou <cgd@broadcom.com>
377 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
379 * configure: Regenerate.
380 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
381 (macro_build): Handle "K" operand.
382 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
383 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
384 (mips_ip): New variable "lastpos", and implement "+A", "+B",
385 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
386 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
387 (validate_mips_insn): Implement "+" as a way to extend the
388 allowed operands, and implement "K", "+A", "+B", and "+C"
390 (OPTION_MIPS32R2): New define.
391 (md_longopts): Add entry for OPTION_MIPS32R2.
392 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
393 (md_parse_option): Handle OPTION_MIPS32R2.
394 (s_mipsset): Reimplement handling of ".set mipsN" options
395 and add support for ".set mips32r2".
396 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
397 (md_show_usage): Document "-mips32r2" option.
398 * doc/as.texinfo: Document "-mips32r2" option.
399 * doc/c-mips.texi: Likewise.
401 2002-12-30 Dmitry Diky <diwil@mail.ru>
403 * configure.in: Add msp430 target.
404 * configure: Regenerate.
405 * Makefile.am: Add msp430 target.
406 * Makefile.in: Regenerate.
407 * config/tc-msp430.c: New file: msp430 assembler.
408 * config/tc-msp430.h: New file: target macros for msp430.
409 * doc/Makefile.am: Add msp430 target.
410 * doc/Makefile.in: Regenerate.
411 * doc/as.texinfo: Include msp430 documenation.
412 * doc/all.texi: Enable msp430 documentation.
413 * doc/c-msp430.texi: New file: document msp430 specific features
416 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
418 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
419 (dwarf2_finish): Use it.
420 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
421 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
423 2002-12-20 DJ Delorie <dj@redhat.com>
425 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
426 BFD_RELOC_XSTORMY16_12.
428 2002-12-19 Alan Modra <amodra@bigpond.net.au>
430 * doc/as.texinfo (Invoking): Typo fix.
431 * config/tc-tic54x.c (encode_operand): Comment typo fix.
433 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
435 * doc/c-alpha.texi: Fix typos.
436 * doc/c-arm.texi: Likewise.
437 * doc/c-d10v.texi: Likewise.
438 * doc/c-i370.texi: Likewise.
439 * doc/c-i960.texi: Likewise.
440 * doc/c-ia64.texi: Likewise.
441 * doc/c-mmix.texi: Likewise.
442 * doc/c-ns32k.texi: Likewise.
443 * doc/c-pdp11.texi: Likewise.
444 * doc/c-pj.texi: Likewise.
445 * doc/c-sh64.texi: Likewise.
446 * doc/c-sparc.texi: Likewise.
447 * doc/c-tic54x.texi: Likewise.
448 * doc/c-v850.texi: Likewise.
449 * doc/c-vax.texi: Likewise.
450 * doc/internals.texi: Likewise.
452 2002-12-18 Chris Demetriou <cgd@broadcom.com>
454 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
455 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
456 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
457 arrange not to issue warnings about use of AT when AT is not
460 2002-12-17 Nick Clifton <nickc@redhat.com>
462 * as.c (std_longopts): Duplicate --keep-locals entry in order to
463 prevent it being confused with -k.
465 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
467 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
468 has already been set up, use it.
470 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
472 * ChangeLog-9295: Fix a typo.
474 * config/tc-d10v.c: Fix a comment typo.
475 * config/tc-dlx.c: Likewise.
476 * config/tc-h8300.h: Likewise.
477 * config/tc-h8500.h: Likewise.
478 * config/tc-mips.c: Likewise.
479 * config/tc-s390.c: Likewise.
480 * config/tc-sh.h: Likewise.
481 * config/tc-tic80.h: Likewise.
482 * config/tc-w65.h: Likewise.
483 * config/tc-z8k.c: Likewise.
484 * config/tc-z8k.h: Likewise.
485 * testsuite/gas/h8300/cmpsi2.s: Likewise.
487 2002-12-16 Alan Modra <amodra@bigpond.net.au>
489 * config/tc-d30v.c (check_range): Warning fixes, formatting.
490 Simplify sign extension. Remove redundant unsigned < 0 test.
491 * config/tc-i960.c (md_ri_to_chars): Prototype.
492 * config/tc-mcore.c (md_pseudo_table): Fix typo.
493 (dump_literals): Init brarsym, and test later instead of isforce.
495 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
496 (parse): Constify line and lineptr.
497 (md_begin): Calculate endop here.
499 2002-12-13 Alan Modra <amodra@bigpond.net.au>
501 * config/obj-vms.c: Formatting. Include fnctl.h.
502 (Create_VMS_Object_File): Fix creat call for sane unix systems.
503 (Object_Record_Offset): Make it a size_t.
504 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
505 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
506 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
507 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
508 (vms_fixup_data_section <data_size>): Add here instead.
509 * config/e-criself.c: Fix typo in last change.
511 2002-12-13 Alan Modra <amodra@bigpond.net.au>
513 * write.c (write_object_file): Fix signed/unsigned warning.
514 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
515 * config/e-criself.c (criself_bfd_name): Prototype.
516 * config/obj-aout.c (s_sect): Remove unused function.
517 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
518 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
519 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
520 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
521 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
522 (VMS_RSYM_Parse <Current_Routine>): Likewise.
523 (vms_fixup_text_section <text_siz>): Likewise.
524 (synthesize_data_segment <data_size>): Likewise.
525 (vms_fixup_xtors_section <sect_no>): Likewise.
526 (structure_count): Don't use implicit int type.
527 * config/tc-a29k.c (insert_sreg): Prototype.
528 (define_some_regs): Prototype, make static.
529 (parse_operand): Likewise.
530 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
531 (md_show_usage <stream>): Likewise.
532 (md_section_align <segment>): Likewise.
533 (md_convert_frag <all args>): Likewise.
534 (md_estimate_size_before_relax <all args>): Likewise.
535 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
536 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
537 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
538 (md_undefined_symbol <name>): Likewise.
539 (md_convert_frag <all args>): Likewise.
540 (write_long <opcode>): Likewise.
541 (tc_gen_reloc <seg>): Likewise.
542 (md_estimate_size_before_relax <all args>): Likewise.
543 (md_apply_fix3 <seg>): Likewise.
544 (s_d30v_align <ignore>): Likewise.
545 (build_insn): Correct format string.
546 (md_apply_fix3): Likewise.
547 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
548 (md_undefined_symbol <name>): Likewise.
549 (md_convert_frag <all args>): Likewise.
550 (md_cgen_lookup_reloc <insn>): Likewise.
551 (md_begin): Delete unused vars.
552 (md_assemble): Likewise.
553 (md_estimate_size_before_relax): Likewise.
554 (fr30_relax_frag): #if 0 out, seems unused.
555 (md_atof): Remove declaration of atof_ieee.
556 (restore_colon): Prototype.
557 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
558 (frv_find_in_vliw): Likewise.
559 (frv_debug_tomcat): Likewise.
560 (frv_adjust_vliw_count): Likewise.
561 (frv_tomcat_shuffle): Likewise.
562 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
563 frv_find_in_vliw call.
564 (md_atof): Remove declaration of atof_ieee.
565 * config/tc-h8500.c (cons): Delete declaration.
566 (md_begin <opcode>): Constify.
567 (displacement_size, immediate_size, absolute_size): Remove.
568 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
569 (tc_crawl_symbol_chain <headers>): Likewise.
570 (md_undefined_symbol <name>): Likewise.
571 (tc_headers_hook <headers>): Likewise.
572 (md_parse_option <c,arg>): Likewise.
573 (md_show_usage <stream>): Likewise.
574 (md_convert_frag <headers, seg>): Likewise.
575 (tc_coff_symbol_emit_hook <ignore>): Likewise.
576 (md_atof): Remove declaration of atof_ieee.
577 (tc_aout_fix_to_chars): Remove unused function.
578 (parse_reg): Prototype.
579 (parse_exp): Prototype.
580 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
581 (parse_reglist): Prototype.
582 (get_operand): Prototype.
583 (get_operands): Prototype.
584 (get_specific): Prototype. Make "this_index" signed.
585 (check): Prototype, make static.
587 (build_relaxable_instruction): Prototype, make static.
588 (build_bytes): Prototype.
589 (wordify_scb): Prototype.
590 * config/tc-h8500.h (start_label): Declare.
591 (tc_coff_sizemachdep): Declare.
592 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
593 (i370_rmode <unused>): Likewise.
594 (i370_csect <unused>): Likewise.
595 (i370_dc <unused>): Likewise.
596 (i370_ds <unused>): Likewise.
597 (i370_elf_lcomm <unused>): Likewise.
598 (i370_ltorg <ignore>): Likewise.
599 (i370_using <ignore>): Likewise.
600 (i370_drop <ignore>): Likewise.
601 (i370_byte <ignore>): Likewise.
602 (i370_tc <ignore>): Likewise.
603 (md_estimate_size_before_relax <fragp, seg>): Likewise.
604 (md_convert_frag <all args>): Likewise.
605 (md_undefined_symbol <name>): Likewise.
606 (md_pcrel_from_section <sec>): Likewise.
607 (tc_gen_reloc <seg>): Likewise.
608 (i370_section_letter): #if 0 unused functions.
609 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
610 (symbol_locate): Prototype.
611 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
612 (md_number_to_disp, md_number_to_field): Remove.
613 (md_apply_fix3): Correct format string and cast "fup".
614 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
615 (s_endian <ignore>): Likewise.
616 (md_undefined_symbol <name>): Likewise.
617 (tc_crawl_symbol_chain <headers>): Likewise.
618 (tc_set_bal_of_call): Likewise.
619 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
620 (i960_handle_align <fragp>): Likewise.
621 (i960_validate_fix <this_segment_type>): Likewise
622 (tc_gen_reloc <section>): Likewise.
623 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
624 (struct memS, struct regop): Forward declare.
625 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
626 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
627 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
628 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
629 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
630 (md_chars_to_number, md_number_to_imm): Make static, prototype.
631 (md_number_to_field): Likewise.
632 (md_number_to_disp): Remove unused function.
633 (md_atof): Remove declaration of atof_ieee.
634 (md_apply_fix3): Correct md_number_to_imm call.
635 * config/tc-ip2k.c (md_assemble): Warning fix.
636 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
637 (fill_insn <ignore>): Likewise.
638 (debug_sym <ignore>): Likewise.
639 (md_undefined_symbol <name>): Likewise.
640 (m32r_scomm <ignore>): Likewise.
641 (md_convert_frag <abfd>): Likewise.
642 (md_cgen_lookup_reloc <insn>): Likewise.
643 (m32r_record_hi16 <seg>): Likewise.
644 (md_estimate_size_before_relax): #if 0 old_fr_fix.
645 (allow_m32rx): Prototype.
646 (first_writes_to_seconds_operands): Prototype.
647 (writes_to_pc): Prototype.
648 (can_make_parallel): Prototype.
649 (make_parallel): Prototype.
650 (target_make_parallel): Prototype.
651 (assemble_two_insns): Prototype.
652 (m32r_record_hi16): Prototype.
653 (md_atof): Remove declaration of atof_ieee.
654 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
655 (m32r_force_relocation): Prototype.
656 (m32r_elf_section_change_hook): Prototype.
657 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
658 (md_show_usage): Fix signed/unsigned warning.
659 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
660 (calcop): Ditto for reg_prefix var.
661 (hexval): Add cast to fix signed/unsigned warning.
662 (md_number_to_disp): Delete unused function.
663 (md_number_to_field): Likewise.
664 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
665 (match_name): Prototype.
666 (get_bf2): Prototype.
667 (get_bf_offset_expression): Prototype.
668 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
669 (md_undefined_symbol <ignore>): Likewise.
670 (md_create_short_jump <all args>): Likewise.
671 (md_create_long_jump <all args>): Likewise.
672 (md_convert_frag <abfd, sec>): Likewise.
673 (md_apply_fix3 <segment>): Likewise.
674 (md_section_align <segment>): Likewise.
675 (md_pcrel_from_section <sec>): Likewise.
676 (tc_gen_reloc <section>): Likewise.
677 (reg_m, reg_n, immediate): Delete unused vars.
678 (dump_literals): Fix signed/unsigned warning.
679 (enter_literal): Likewise.
680 (parse_imm): Likewise. Also fix format string.
681 (parse_mem): Remove unused var.
682 (md_assemble <LS>): Abort on unexpected inst.
683 (md_atof): Remove declaration of atof_ieee.
684 (md_parse_option): Remove unused vars.
685 (md_apply_fix3): Fix format strings, cast args.
686 (tc_gen_reloc): Delete unused var.
687 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
688 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
689 (md_undefined_symbol <name>): Likewise.
690 (md_convert_frag <abfd>): Likewise.
691 (tc_gen_reloc <seg>): Likewise.
692 (check_operand <insn>): Likewise.
693 (md_convert_frag): Fix format strings.
694 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
695 * config/tc-openrisc.c (ignore_pseudo): Prototype.
696 (md_atof): Remove declaration of atof_ieee.
697 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
698 (md_apply_fix3): Fix bogus >>='s.
699 (md_undefined_symbol): Delete unused var.
700 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
701 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
702 (fake_opcode): Adjust for pj_opc_int_t change.
703 (md_begin): Likewise.
704 (md_assemble): Likewise.
705 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
706 instead of non-existent third arg of parse_exp_save_ilp.
707 (md_parse_option): Correct "little" and "big" calls.
708 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
709 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
710 (tc_gen_reloc <section>): Likewise.
711 * config/tc-tic30.c: #include stdarg.h or varargs.h.
712 (debug): Rewrite using VA_* macros.
713 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
714 (md_convert_frag): Likewise.
715 (md_parse_option): Likewise.
716 (md_show_usage): Likewise.
717 (md_undefined_symbol): Likewise.
718 (tc_gen_reloc): Likewise.
719 (md_operand): Likewise.
720 (tc_aout_pre_write_hook): Delete.
721 (struct tic30_insn): Make "operands" unsigned.
722 (struct tic30_par_insn): Likewise.
723 (md_assemble): Likewise for "count", "i" and "numops".
724 (tic30_parallel_insn): Likewise for vars here.
725 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
726 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
727 * config/tc-tic80.c (obj_coff_section): Delete declaration.
728 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
729 (md_undefined_symbol): Likewise.
730 (md_parse_option): Likewise.
731 (md_convert_frag): Likewise.
732 (tc_coff_symbol_emit_hook): Likewise.
733 (md_atof): Remove declaration of atof_ieee.
734 (const_overflow): Warning fixes, tidy.
735 (get_operands): Delete unused vars.
736 (internal_error_a): Adjust format string to expect a long for arg.
737 (find_opcode): Warning fixes, simplify.
738 (build_insn): Cast internal_error_a arg.
739 (md_begin): Likewise.
740 (md_apply_fix3): Likewise.
741 (md_assemble): Delete unused var.
742 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
743 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
744 (whatreg, parse_reg, parse_exp): Make static, prototype.
745 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
746 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
747 (get_operand, get_operands, get_specific, newfix): Likewise.
748 (apply_fix, build_bytes): Likewise.
749 (md_atof): Remove declaration of atof_ieee.
750 (tc_aout_fix_to_chars): Delete.
751 (md_begin): Constify "opcode". Don't try to init opcode->idx.
753 (md_parse_option): Fix s_segm and s_unseg calls.
755 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
757 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
759 (RELAX_BRANCH_RELOC_S2): Delete.
760 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
761 Do not handle BFD_RELOC_16_PCREL.
762 (macro_build, mips_ip): Likewise.
763 (md_pcrel_from): Return 4 for undefined symbols regardless of
765 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
766 Don't dereference howto if no such relocation is available.
767 Do not apply hack for in-place zero addend in NEWABI.
768 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
770 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
771 Alan Modra <amodra@bigpond.net.au>
773 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
774 (TC_LINKRELAX_FIXUP): Add comments.
776 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
778 * config/tc-mn10300.c (set_arch_mach): Change argument type to
780 (r_register_name, xr_register_name): Add prototype declarations.
782 2002-12-08 H.J. Lu <hjl@gnu.org>
784 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
785 copied from tc-i386.c.
787 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
789 Fix Bug savannah/1825:
790 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
791 (md_relax_table): Define specific relax for PC-rel offsets.
792 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
793 (m68hc11_relax_frag): Handle the new relax code.
794 (md_convert_frag): Likewise.
795 (md_estimate_size_before_relax): Likewise.
797 2002-12-08 Alan Modra <amodra@bigpond.net.au>
799 * subsegs.c (section_symbol): Use the symbol, not the section, name.
801 2002-12-05 Richard Henderson <rth@redhat.com>
803 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
804 (ia64_gen_real_reloc_type): Handle it.
805 (pseudo_func): Add @ltoffx.
806 (md_begin): Build .<ltoffx>.
807 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
809 2002-12-05 Alan Modra <amodra@bigpond.net.au>
811 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
812 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
813 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
814 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
815 COFF to call arm_force_relocation.
817 2002-12-04 David Mosberger <davidm@hpl.hp.com>
819 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
821 (emit_one_bundle): Handle "hint" instruction.
822 (operand_match): Match IA64_OPND_AR_CSD.
824 2002-12-04 Alan Modra <amodra@bigpond.net.au>
826 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
829 2002-12-03 Nick Clifton <nickc@redhat.com>
831 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
832 .PPC.EMB.apuinfo sections.
834 2002-12-03 Richard Henderson <rth@redhat.com>
836 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
838 2002-12-03 Alan Modra <amodra@bigpond.net.au>
840 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
841 (cons, s_align_bytes): Delete declaration.
843 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
845 (dot): Delete unused function.
846 (w65_expression): Remove unused arg.
847 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
849 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
851 (get_specific): Prototype. Constify "struct opinfo *" arg and return
853 (check): Remove unused function.
854 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
855 on unhandled switch case.
856 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
858 (tc_crawl_symbol_chain): Delete unused function.
859 (tc_headers_hook): Likewise.
860 (tc_Nout_fix_to_chars): Likewise.
861 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
862 (md_parse_option): Likewise.
863 (md_convert_frag): Likewise.
864 (tc_coff_symbol_emit_hook): Likewise.
865 (md_show_usage): Likewise.
866 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
867 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
868 (w65_expression): Declare.
870 * po/POTFILES.in: Regenerate.
872 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
873 and ARM_ADRL_IMMEDIATE.
875 2002-12-02 Nick Clifton <nickc@redhat.com>
877 * gasp.c: Delete. It has been deprecated.
878 * NEWS: Mention that gasp has been removed.
879 * Makefile.am: Remove references to gasp.
880 * makefile.vms: Likewise.
881 * mpw-make.sed: Likewise.
882 * Makeile.in: Regenerate.
883 * doc/gasp.texi: Delete.
884 * doc/Makefile.am: Remove references to gasp.texi.
885 * doc/Makefile.in: Regenerate.
886 * macro.c: Delete references to gasp.
887 Remove use of comment_char function parameter as it is no longer
889 * macro.h: Update prototypes to remove comment_char parameter.
891 * read.c (read_a_source_file, s_irp): Remove comment_char
892 parameter from invocation of functions in macro.c
894 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
896 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
898 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
900 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
901 (tc_gen_reloc): Mark section param as not used.
903 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
905 Fix Bug savannah/1825:
906 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
907 that are not pc-relative.
908 (m68hc11_relax_frag): Declare.
910 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
911 the offsetable indexed addressing modes (n,r).
912 (build_insn): Cleanup some locals.
913 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
914 relaxation of difference between two symbols of same section.
915 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
916 only when this is a PC-relative operand and the offset is not absolute.
917 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
918 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
919 be handled by m68hc11_relax_frag.
921 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
923 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
924 (32-bit int, 64-bit double).
925 (md_longopts): New options -mshort, -mlong, -mshort-double and
926 -mlong-double to control the ABI.
927 (md_show_usage): Update.
928 (md_parse_option): Handle new options.
929 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
931 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
933 * symbols.c (report_op_error): New function, broken out of ...
934 (resolve_symbol_value): ... here. Use for both monadic and dyadic
937 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
939 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
940 for BFD_RELOC_32_PLT_PCREL.
942 2002-11-30 Alan Modra <amodra@bigpond.net.au>
944 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
945 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
946 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
947 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
948 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
949 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
950 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
951 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
952 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
953 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
954 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
955 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
956 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
957 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
958 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
959 TRUE/FALSE. Formatting.
961 2002-11-29 Nick Clifton <nickc@redhat.com>
963 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
964 assume a value of zero.
967 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
969 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
972 2002-11-29 Jakub Jelinek <jakub@redhat.com>
974 * config/tc-ia64.c (md_apply_fix3): Add default case.
976 2002-11-28 Jakub Jelinek <jakub@redhat.com>
978 * symbols.c (S_SET_THREAD_LOCAL): New function.
979 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
980 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
982 * config/tc-ia64.c (md_apply_fix3): Likewise.
983 * config/tc-alpha.c (md_apply_fix3): Likewise.
985 2002-11-28 Jakub Jelinek <jakub@redhat.com>
987 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
990 2002-11-26 DJ Delorie <dj@redhat.com.
992 * dwarf2dbg.c (scale_addr_delta): New.
993 (size_inc_line_addr): Use it.
994 (emit_inc_line_addr): Use it.
996 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
998 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
999 (md_assemble): Don't pass on branches to constants as relaxable.
1002 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1004 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1006 2002-11-21 Randolph Chung <randolph@tausq.org>
1008 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1009 only if they have default visibility.
1011 2002-11-21 Richard Henderson <rth@redhat.com>
1013 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1016 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1018 * config/tc-mcore.c (mcore_pool_count): New function.
1019 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1021 2002-11-20 Klee Dienes <kdienes@apple.com>
1023 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1024 coalesce the name fields to use the same pointer.
1026 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1027 the name fields to use the same pointer.
1028 (get_specific): Check for opcodes with the same name using strcmp
1029 as well as comparing the pointer.
1031 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1033 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1036 2002-11-19 Richard Henderson <rth@redhat.com>
1038 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1039 visibility portion of st_other.
1041 2002-11-19 Klee Dienes <kdienes@apple.com>
1043 * config/tc-h8300.c (struct h8_instruction): New type, used to
1044 wrap h8_opcodes with length, noperands, idx, and size fields
1045 (computed at run-time).
1046 (h8_instructions): New variable.
1047 (md_begin): Allocate the storage for h8_instructions. Fill
1048 h8_instructions with pointers to the appropriate opcode and the
1049 correct value for the additional fields.
1050 (clever_message): Update to use h8_instructions instead of
1052 (build_bytes): Ditto.
1053 (get_specific): Ditto.
1054 (md_assemble): Ditto.
1056 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1058 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1059 adjustments to symbols in merge sections.
1061 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1063 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1065 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1067 * dwarf2dbg.h (dwarf2_format): New enum.
1068 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1069 (out_debug_line, out_debug_info): Add code for handling 64-bit
1071 * config/tc-mips.h (mips_dwarf2_format): Declare.
1072 * config/tc-mips.c (mips_dwarf2_format): New function.
1073 * doc/internals.texi (DWARF2_FORMAT): Document.
1075 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1077 * config/tc-mips.c (s_change_section): Make sure input buffer
1078 is not accessed past the end. Don't hand
1079 obj_elf_change_section a pointer into the input buffer.
1081 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1083 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1086 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1088 * config/tc-tic4x.c: Fixed proper commandline
1089 parameters. Added support for new opcode-list format. General
1090 error message fixups.
1091 (c4x_inst_add): Reject insn not for our CPU
1092 (md_begin): Added matrix for setting the proper opcode-level &
1093 device-flags according to cpu type and revision. Rewrite the
1095 (c4x_operand_parse): Fix opcode bug
1096 (c4x_operands_match): New function argument. Added dry-run
1097 mechanism, that is optional error generation. Added constraint 'i'
1099 (c4x_insn_check): Added new function for post-verification of the
1101 (md_assemble): Check all opcodes before croaking because of an
1102 argument mismatch. Need this to be able to fully support
1103 ortogonally arguments.
1104 (md_parse_options): Revised commandprompt swicthes and added new
1106 (md_show_usage): Complete rewrite of printout.
1108 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1110 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1111 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1112 warning when using constant direct bigger than 2^16. Add the new
1115 2002-11-11 Christopher Faylor <cgf@redhat.com>
1117 * configure.in: Use .gdbinit under Cygwin.
1118 * configure: Regenerate.
1120 2002-11-11 Christopher Faylor <cgf@redhat.com>
1122 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1125 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1127 * config/tc-tic4x.c: Declare as many functions as possible as
1128 static. Maintenance on the general indenting. Removed unnecessary
1129 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1130 function. Add support for new DSP, TMS320VC33. Fix bug for
1131 converting flonum constants.
1132 (c4x_do_align): Add proper align handling. Setup align to insert
1134 (c4x_gen_to_words): Support for extended TI type floats.
1135 (md_atof): Proper dumping of multiple-word littlenums.
1136 (c4x_atof): Added support for extended TI type floats.
1137 (c4x_stringer): Added new function to handle compact strings.
1138 (c4x_emit_char): Added new function argument to handle custom
1139 length inserts, like single-byte strings.
1140 * config/tc-tic4x.h: Add proper align handling with NOP's.
1141 * Makefile.am: Added tic4x dependecy
1142 * Makefile.in: Regenerate
1144 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1146 * macro.c (get_any_string): Correct logic for not going beyond end
1149 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1151 * config/tc-mmix.c (get_putget_operands): Mark both possible
1152 operands as invalid at beginning.
1154 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1155 Initialize target of fixup to zero.
1157 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1159 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1160 NEWABI, but we should still emit HI16_S for non-PIC n32.
1162 2002-11-06 Richard Henderson <rth@redhat.com>
1164 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1165 (alpha_fix_adjustable): ... here.
1166 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1168 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1170 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1173 2002-11-05 H.J. Lu <hjl@gnu.org>
1175 * config/tc-mips.c (support_64bit_objects): Check *l before it
1178 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1180 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1181 SEC_LOAD flags for sections marked as 's'.
1183 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1185 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1186 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1187 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1190 * dep-in.sed: Fix typo.
1192 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1194 * configure.in: Update ARM CPU patterns.
1195 * configure: Regenerated.
1197 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1199 * itbl-lex.l: Use #include <> for generated headers.
1200 * itbl-ops.c: Likewise.
1202 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1204 * doc/gasp.texi: Fix typo in deprecation note.
1206 2002-10-23 Nick Clifton <nickc@redhat.com>
1208 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1209 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1211 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1213 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1214 (tc_frob_file_before_adjust): Don't define.
1215 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1217 (mmix_frob_file_before_adjust): Remove ineffective function.
1219 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1221 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1222 (cris_relax_frag): New function.
1223 (md_estimate_size_before_relax) <case ENCODE_RELAX
1224 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1225 expressions that will become absolute expressions to relaxation.
1226 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1227 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1228 value, not distance to symbol.
1229 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1230 Ditto. Correct placement of fixup.
1231 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1233 * config/tc-cris.h (cris_relax_frag): Declare.
1234 (md_relax_frag): Define.
1236 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1238 * config/obj-elf.c (special_sections): Use correct types for init
1240 (obj_elf_change_section): Don't mess with init array section type.
1242 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1244 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1245 for relocs against symbols in a merged section.
1247 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1249 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1250 table as register names.
1252 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1254 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1257 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1259 * expr.c (operand): Add support for n.nn flonums.
1261 2002-10-17 Johannes Stezenbach <js@convergence.de>
1263 * itbl-parse.y (entry): Provide empty action.
1265 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1267 * configure.in (BFDVER_H): Set and subst.
1268 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1269 * Makefile.am: Run "make dep-am".
1271 * configure: Regenerate.
1272 * Makefile.in: Regenerate.
1273 * doc/Makefile.in: Regenerate.
1275 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1277 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1278 (MD_APPLY_SYM_VALUE): Define for PE too.
1280 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1282 * Makefile.am: Run "make dep-am".
1283 (CPU_OBJ_VALID): sh64 coff is invalid.
1284 * as.c: #include "bfdver.h".
1285 * Makefile.in: Regenerate.
1286 * config.in: Regenerate.
1288 2002-10-14 Momchil Velikov <velco@fadata.bg>
1290 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1292 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1294 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1295 * configure: Regenerate.
1297 2002-10-13 Eric Christopher <echristo@redhat.com>
1298 Alexandre Oliva <aoliva@redhat.com>
1300 * config/tc-mips.c (s_gpdword): New function.
1301 (mips_pseudo_table): Add .gpdword.
1302 (mips_need_elf_addend_fixup): never for NEWABI.
1303 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1305 (s_cpadd): Generate .cpadd on NEWABI.
1307 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1309 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1311 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1313 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1314 (md_relax_frag): Adjust macro.
1315 * config/tc-mips.c (mips_relax_branch): New variable.
1316 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1317 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1318 (RELAX_MIPS16_P): Adjust.
1319 (append_insn): Emit branch to non-constant in a frag_var if
1320 branch-relaxation is desirable and possible.
1321 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1322 (OPTION_ELF_BASE): Adjust.
1323 (md_parse_option): Handle new options.
1324 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1326 (relaxed_branch_length): New function.
1327 (md_estimate_size_before_relax): Handle branch frags.
1328 (mips_relax_frag): Likewise.
1329 (md_convert_frag): Handle branch frags. Warn if branch is
1332 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1334 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1336 (md_apply_fix3): Add TLS relocs.
1337 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1340 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1341 Alan Modra <amodra@bigpond.net.au>
1343 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1344 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1346 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1348 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1351 2002-10-09 Richard Shann <richard.shann@superh.com>
1352 Stephen Clarke <stephen.clarke@superh.com>
1354 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1357 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1359 * contig/tc-sh.c (sh_local_pcrel): New.
1360 (sh_force_relocation): Use sh_local_pcrel.
1361 (md_pcrel_from_section): Check the relocation type whether it
1362 should be resolved locally. Use S_FORCE_RELOC.
1364 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1366 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1367 (TC_FORCE_RELOCATION): Tidy arg.
1369 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1370 Ken Raeburn <raeburn@cygnus.com>
1371 Aldy Hernandez <aldyh@redhat.com>
1372 DJ Delorie <dj@redhat.com>
1373 Michael Meissner <meissner@redhat.com>
1374 Eric Christopher <echristo@redhat.com>
1375 Richard Sandiford <rsandifo@redhat.com>
1377 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1378 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1379 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1380 (hilo_interlocks): True for CPU_VR5500.
1381 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1382 (mips_fix_vr4122_bugs): New.
1383 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1384 (mips_emit_delays): Likewise.
1385 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1386 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1387 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1388 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1389 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1390 (OPTION_ELF_BASE): Bump.
1391 (md_parse_option): Handle the new options.
1392 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1395 2002-09-29 H.J. Lu <hjl@gnu.org>
1397 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1398 twice if howto->pcrel_offset is true.
1400 2002-09-28 Matt Thomas <matt@3am-software.com>
1401 Jason Thorpe <thorpej@wasabisystems.com>
1403 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1404 convert undefined references to GOT32/PLT32 if PIC code is
1405 requested. Fix comment.
1407 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1409 * config/tc-sh.c (sh_force_relocation): Return 0 for
1410 some PC relative relocations when not relaxing.
1412 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1414 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1415 Define them if not BFD_ASSEMBLER.
1416 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1418 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1419 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1420 (tc_gen_reloc): Handle x86-64 TLS relocs.
1422 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1424 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1425 fixups to current or absolute section.
1427 2002-09-26 Jim Wilson <wilson@redhat.com>
1429 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1432 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1434 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1435 capable configuration.
1436 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1438 (mips_ip): Likewise.
1440 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1442 * config/tc-mips.c (append_insn): Fix jump overflow check.
1444 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1446 * config/tc-i386.c (process_operands): Warn about "lea" segment
1449 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1451 * write.c: Delete set_segment_vma and prototype. Update all callers.
1453 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1455 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1456 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1457 Rename "fseg" to "sym_seg".
1458 * Makefile.am: Run "make dep-am".
1459 * Makefile.in: Regenerate.
1460 * doc/Makefile.in: Regenerate.
1462 2002-09-20 Nick Clifton <nickc@redhat.com>
1464 * symbols.c (colon): Do not allow symbols to be created in the
1465 absolute section if WORKING_DOT_WORD is not defined and
1466 new_broken_words would require a new frag to be created.
1468 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1470 * expr.c (expr): Simplify foo-foo here.
1471 (clean_up_expression): Remove O_subtract code.
1473 * write.h (struct fix): Add fx_dot_value.
1474 (dot_value): Declare.
1475 * write.c (dot_value): New var.
1476 (fix_new_internal): Save dot_value as fx_dot_value.
1477 (fixup_segment): Adjust fx_offset using fx_dot_value.
1478 * expr.c (expr): Update dot_value.
1480 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1482 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1483 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1484 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1486 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1487 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1488 BFD_RELOC_386_TLS_GOTIE.
1490 2002-09-19 Richard Henderson <rth@redhat.com>
1492 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1494 (alpha_force_relocation): Don't special-case branch type relocs.
1496 2002-09-19 Nick Clifton <nickc@redhat.com>
1498 * config/tc-m68k.c (select_control_regs): Handle situation where
1499 architecture has not yet been selected.
1501 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1503 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1504 (IS_SEXT_16BIT_NUM): New macro.
1505 (macro_build_ldst_constoffset): New function, to build a set of
1506 instructions to do a load or store from a constant offset relative
1507 to a given register.
1508 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1509 .cprestore pseudo-op.
1511 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1513 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1515 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1517 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1519 2002-09-17 Stan Cox <scox@redhat.com>
1521 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1522 (macro): Likewise for la. Likewise for ld.
1523 (mips_after_parse_args): Make -xgot optional, not the default.
1524 (md_apply_fix3): Allow composite relocation to set up gp.
1525 (tc_gen_reloc): Allow relaxing for newabi.
1526 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1527 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1529 2002-09-17 Nick Clifton <nickc@redhat.com>
1531 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1532 BFD_RELOC_ARM_IMMEDIATE has been done.
1533 (tc_gen_reloc): Do not issue reloc number of unimplemented
1534 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1535 their name is already in the error message - plus remove them
1536 from the default case.
1538 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1539 behavior of instructions.
1541 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1543 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1544 Convert functions to K&R format.
1546 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1548 * config/tc-mips.c (pdr_seg): Define only for ELF.
1549 (s_change_section): Remove unused variable. Don't use for nonELF.
1551 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1553 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1555 * config/obj-elf.h (obj_elf_change_section): Likewise.
1557 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1559 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1560 (out_debug_info): Likewise.
1562 2002-09-16 Bruno Haible <bruno@clisp.org>
1564 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1565 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1566 * config/tc-i386.c (i386_target_format): Likewise.
1567 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1568 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1570 2002-09-13 Nick Clifton <nickc@redhat.com>
1572 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1573 when deciding if any operands have been skipped.
1575 2002-09-11 Nick Clifton <nickc@redhat.com>
1577 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1579 * po/tr.po: Updated Turkish translation.
1581 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1583 * config/tc-i386.c (md_apply_fix3): Allow addend for
1584 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1585 BFD_RELOC_386_TLS_LE_32.
1587 2002-09-05 Jeff Law <law@redhat.com>
1589 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1590 marker relocations such as ENTRY/EXIT.
1591 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1592 to both OBJ_ELF and OBJ_SOM.
1594 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1596 * doc/internals.texi (md_apply_fix3): Expand.
1597 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1598 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1599 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1600 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1601 EXTERN_FORCE_RELOC): Document.
1602 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1603 * as.h: Don't include struc-symbol.h for arc.
1605 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1606 subtract absolute symbol.
1607 * obj.h (struct format_ops): Add frob_file_before_fix.
1608 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1609 * symbols.c (S_FORCE_RELOC): New function.
1610 * symbols.h (S_FORCE_RELOC): Declare.
1611 * write.c (TC_FORCE_RELOCATION): Change default.
1612 (TC_FORCE_RELOCATION_ABS): Define.
1613 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1614 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1615 (TC_FORCE_RELOCATION_SECTION): Don't define.
1616 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1617 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1618 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1619 (TC_VALIDATE_FIX_SUB): Define.
1620 (TC_FIX_ADJUSTABLE): Don't define.
1621 (MD_APPLY_SYM_VALUE): Define this instead.
1622 (abs_section_sym): New variable.
1623 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1624 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1625 Don't put the absolute section sym on fixups here.
1626 (fix_segment): New function.
1627 (write_relocs): Don't call fixup_segment from here.
1628 (write_object_file): Instead call tc_frob_file_before_fix,
1629 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1630 Don't output the absolute section symbol.
1631 (fixup_segment): Rewrite.
1632 * write.h (abs_section_sym): Declare.
1633 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1635 (aout_format_ops): Adjust to suit.
1636 * config/obj-aout.h (obj_frob_file): Don't define.
1637 (obj_frob_file_before_fix): Define.
1638 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1639 (S_FORCE_RELOC): Define.
1640 * config/obj-bout.h (S_FORCE_RELOC): Define.
1641 * config/obj-coff.c (coff_format_ops): Init new field.
1642 * config/obj-coff.h: Formatting fixes.
1643 (obj_sec_sym_ok_for_reloc): Define.
1644 (S_FORCE_RELOC): Define.
1645 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1646 (ecoff_frob_file): .. from here.
1647 (ecoff_format_ops): Add new function.
1648 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1649 (obj_frob_file_before_fix): Define.
1650 * config/obj-elf.c (elf_format_ops): Init new field.
1651 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1652 * config/obj-ieee.h: Formatting fixes.
1653 (S_FORCE_RELOC): Define.
1654 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1655 * config/obj-vms.h (S_FORCE_RELOC): Define.
1656 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1657 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1658 for BFD_RELOC_32 and BFD_RELOC_64.
1659 (alpha_fix_adjustable): Remove extern and weak tests.
1660 (alpha_before_fix): Rename from alpha_adjust_symtab.
1661 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1662 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1663 (TC_VALIDATE_FIX): Tweak param name.
1664 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1665 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1666 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1667 (MD_APPLY_SYM_VALUE): Define.
1668 (tc_adjust_symtab): Don't define.
1669 (alpha_adjust_symtab): Don't declare.
1670 (tc_frob_file_before_fix): Define.
1671 (alpha_before_fix): Declare.
1672 (TC_INIT_FIX_DATA): Tweak param names.
1673 * config/tc-arc.c: Include "struc-symbol.h".
1674 (md_pcrel_from): Remove undefined sym fudge.
1675 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1676 Don't set fx_addnumber.
1677 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1678 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1679 (EXTERN_FORCE_RELOC): Define.
1680 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1681 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1682 (arm_validate_fix): Return void.
1683 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1684 Add plt and got reloc tests.
1685 (arm_force_relocation): Call S_FORCE_RELOC.
1686 * config/tc-arm.h (struct fix): Forward declare.
1687 (TC_VALIDATE_FIX): No longer set add_symbolP.
1688 (arm_validate_fix): Adjust declaration.
1689 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1690 (TC_FORCE_RELOCATION): Tweak param name.
1691 (TC_INIT_FIX_DATA): Likewise.
1692 (obj_fix_adjustable): Don't define.
1693 (tc_fix_adjustable): Call arm_fix_adjustable.
1694 (TC_FIX_ADJUSTABLE): Don't define.
1695 (MD_APPLY_SYM_VALUE): Define.
1696 (EXTERN_FORCE_RELOC): Define.
1697 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1698 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1699 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1700 Remove *valP fudges and code to subtract abs sym. Don't set
1702 * config/tc-avr.h: Formatting.
1703 (EXTERN_FORCE_RELOC): Define.
1704 (MD_APPLY_SYM_VALUE): Define.
1705 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1706 (md_apply_fix3): Remove code to subtract abs sym.
1707 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1708 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1709 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1710 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1711 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1712 (tc_fix_adjustable): Remove extern, weak tests.
1713 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1714 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1715 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1716 and code to subtract abs sym.
1717 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1718 (d10v_force_relocation): Call S_FORCE_RELOC.
1719 * config/tc-d10v.h: Don't include write.h.
1720 (struct fix): Instead, forward declare.
1721 (MD_PCREL_FROM_SECTION): Tweak param names.
1722 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1723 (d10v_fix_adjustable): Likewise.
1724 (obj_fix_adjustable): Don't define.
1725 (tc_fix_adjustable): Define.
1726 (TC_FORCE_RELOCATION): Tweak param name.
1727 (MD_APPLY_SYM_VALUE): Define.
1728 (EXTERN_FORCE_RELOC): Define.
1729 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1730 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1731 and code to subtract abs sym.
1732 * config/tc-d30v.h: Don't include write.h.
1733 (struct fix): Instead, forward declare.
1734 (MD_PCREL_FROM_SECTION): Tweak param names.
1735 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1736 (MD_APPLY_SYM_VALUE): Define.
1737 (EXTERN_FORCE_RELOC): Define.
1738 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1739 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1740 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1741 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1742 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1743 Don't use fx_addnumber.
1744 * config/tc-dlx.h: Don't include write.h.
1745 (md_convert_frag): We're not alpha twice over.
1746 (EXTERN_FORCE_RELOC): Define.
1747 (obj_fix_adjustable): Don't define.
1748 (tc_fix_adjustable): Define.
1749 (TC_FIX_ADJUSTABLE): Don't define.
1750 (MD_APPLY_SYM_VALUE): Define.
1751 (LOCAL_LABELS_DOLLAR): Undef always.
1752 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1753 (fr30_fix_adjustable): Remove extern, weak tests.
1754 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1755 (obj_fix_adjustable): Don't define.
1756 (tc_fix_adjustable): Define.
1757 (struct fix): Forward declare.
1758 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1759 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1760 (frv_fix_adjustable): Don't do extern, weak tests.
1761 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1762 (TC_FIX_ADJUSTABLE): Don't define.
1763 (obj_fix_adjustable): Don't define.
1764 (tc_fix_adjustable): Define.
1765 (struct fix): Forward declare.
1766 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1767 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1768 * config/tc-h8300.h (struct fix): Forward declare.
1769 (EXTERN_FORCE_RELOC): Define.
1770 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1771 (hppa_fix_adjustable): Don't test extern or weak. Don't
1772 symbol_mark_used_in_reloc.
1773 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1775 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1776 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1777 (TC_FORCE_RELOCATION_SECTION): Don't define.
1778 (MD_APPLY_SYM_VALUE): Define.
1779 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1780 to subtract abs sym.
1781 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1782 (MD_APPLY_SYM_VALUE): Define.
1783 (MD_PCREL_FROM_SECTION): Tweak param name.
1784 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1785 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1786 (i386_force_relocation): New function.
1787 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1788 (TC_VALIDATE_FIX): Likewise.
1789 (TC_FIX_ADJUSTABLE): Don't define.
1790 (MD_APPLY_SYM_VALUE): Define.
1791 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1792 (i386_force_relocation): Declare.
1793 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1794 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1795 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1796 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1797 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1798 (EXTERN_FORCE_RELOC): Define.
1799 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1800 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1801 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1802 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1803 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1804 Remove #if 0 code. Invert return boolean.
1805 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1806 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1807 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1808 (tc_coff_sizemachdep): Prototype.
1809 (i960_handle_align): Likewise.
1810 (i960_validate_fix): Adjust declaration.
1811 (reloc_callj): Likewise.
1812 (EXTERN_FORCE_RELOC): Define.
1813 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1814 (TC_FORCE_RELOCATION_ABS): Define.
1815 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1816 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1817 (TC_FIX_ADJUSTABLE): Don't define.
1818 (MD_APPLY_SYM_VALUE): Define.
1819 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1820 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1821 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1822 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1823 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1824 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1825 (MD_APPLY_SYM_VALUE): Define.
1826 (EXTERN_FORCE_RELOC): Define.
1827 (TC_FORCE_RELOCATION): Tweak param name.
1828 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1829 (m32r_fix_adjustable): Don't test extern, weak.
1830 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1831 (MD_APPLY_SYM_VALUE): Define.
1832 (obj_fix_adjustable): Don't define.
1833 (tc_fix_adjustable): Define.
1834 (tc_frob_file): Don't define.
1835 (tc_frob_file_before_fix): Define.
1836 (EXTERN_FORCE_RELOC): Define.
1837 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1838 BFD_RELOC_VTABLE_ENTRY address.
1839 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1840 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1841 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1842 Remove duplicated fx_done code.
1843 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1844 (EXTERN_FORCE_RELOC): Define.
1845 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1847 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1848 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1849 (TC_FIX_ADJUSTABLE): Don't define.
1850 (EXTERN_FORCE_RELOC): Define.
1851 (MD_APPLY_SYM_VALUE): Define.
1852 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1853 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1854 Remove fx_addsy tests.
1855 (mcore_force_relocation): Call S_FORCE_RELOC.
1856 (mcore_fix_adjustable): Don't test fx_addsy.
1857 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1858 (EXTERN_FORCE_RELOC): Define.
1859 (obj_fix_adjustable): Don't define.
1860 (tc_fix_adjustable): Define.
1861 (MD_APPLY_SYM_VALUE): Define.
1862 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1863 (mips_pic): No longer static.
1864 (mips_force_relocation): Call S_FORCE_RELOC.
1865 (mips_fix_adjustable): Remove extern, weak tests.
1866 * config/tc-mips.h (enum mips_pic_level): Declare.
1867 (mips_pic): Declare.
1868 (tc_frob_file): Don't define.
1869 (tc_frob_file_before_fix): Define this instead.
1870 (EXTERN_FORCE_RELOC): Define.
1871 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1872 with reg_section tests. Set fx_done instead of calling
1873 symbol_clear_used_in_reloc on bad relocs.
1874 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1875 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1876 (mmix_adjust_symtab): Simplify list handling. Abort on any
1878 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1879 BFD_RELOC_MMIX_LOCAL.
1880 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1881 (EXTERN_FORCE_RELOC): Define.
1882 (MD_PCREL_FROM_SECTION): Tweak param name.
1883 (tc_frob_file): Don't define.
1884 (tc_frob_file_before_fix): Define this instead.
1885 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1886 Remove SEC_CODE checks.
1887 (mn10300_fix_adjustable): Remove extern and weak tests.
1888 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1889 (TC_FORCE_RELOCATION): Tweak param name.
1890 (obj_fix_adjustable): Don't define.
1891 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1892 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1893 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1894 (openrisc_fix_adjustable): Don't test fx_addsy.
1895 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1896 (obj_fix_adjustable): Don't define.
1897 (tc_fix_adjustable): Define this instead.
1898 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1899 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1900 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1901 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1902 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1903 (MD_APPLY_SYM_VALUE): Define.
1904 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1905 Don't subtract symbol value.
1906 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1907 (EXTERN_FORCE_RELOC): Define.
1908 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1909 (MD_APPLY_SYM_VALUE): Define.
1910 (obj_fix_adjustable): Don't define.
1911 (tc_fix_adjustable): Define this instead.
1912 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1914 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1915 (ppc_force_relocation <elf version>): New.
1916 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1917 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1918 comments. Don't subtract fx_subsy as that is already done.
1919 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1920 (MD_PCREL_FROM_SECTION): Likewise.
1921 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1922 ppc_force_relocation.
1923 (TC_FORCE_RELOCATION_SECTION): Delete.
1924 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1925 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1926 (MD_APPLY_SYM_VALUE): Define.
1927 * config/tc-s390.c: #include "dwarf2dbg.h".
1928 (s390_insn): Remove excess parens.
1929 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1930 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1931 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1932 non-NULL. Don't subtract off fx_addsy value.
1933 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1934 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1935 (TC_FIX_ADJUSTABLE): Don't define.
1936 (MD_APPLY_SYM_VALUE): Define.
1937 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1938 (SWITCH_TABLE): Likewise.
1939 (sh_force_relocation): Call S_FORCE_RELOC.
1940 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1941 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1942 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1943 fx_addnumber is zero on entry. Save val in fx_addnumber.
1944 (tc_gen_reloc): Don't subtract fx_subsy.
1945 * config/tc-sh.h (struct fix): Move.
1946 (obj_fix_adjustable): Don't define.
1947 (tc_fix_adjustable): Define this instead.
1948 (TC_FIX_ADJUSTABLE): Don't define.
1949 (MD_APPLY_SYM_VALUE): Define.
1950 (SWITCH_TABLE_CONS): Define.
1951 (SWITCH_TABLE): Define.
1952 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1953 (TC_VALIDATE_FIX_SUB): Define.
1954 (MD_PCREL_FROM_SECTION): Tweak param name.
1955 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1956 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1957 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1958 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1959 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1960 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1961 (TC_VALIDATE_FIX_SUB): Define.
1962 (MD_PCREL_FROM_SECTION): Tweak param name.
1963 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1964 (tc_gen_reloc): Use S_FORCE_RELOC.
1965 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1966 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1967 (TC_FORCE_RELOCATION_ABS): Define this instead.
1968 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1969 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1970 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1971 (MD_APPLY_SYM_VALUE): Define.
1972 (TC_FIX_DATA_PRINT): Tweak param name.
1973 * config/tc-tic30.c (USE_STDOUT): Don't define.
1974 (md_parse_option): Remove stupid debug code.
1975 (tc_gen_reloc): Don't use fx_addnumber.
1976 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1977 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1978 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1979 (tc_fix_adjustable): Define this instead.
1980 (TC_FIX_ADJUSTABLE): Don't define.
1981 (MD_APPLY_SYM_VALUE): Define this instead.
1982 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1983 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1984 (TC_FIX_ADJUSTABLE): Don't define.
1985 (MD_APPLY_SYM_VALUE): Define this instead.
1986 (tc_fix_adjustable): Remove extern and weak tests.
1987 * config/tc-w65.h (struct fix): Forward declare.
1988 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1990 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1991 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1992 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1994 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1995 (MD_APPLY_SYM_VALUE): Define.
1996 (obj_fix_adjustable): Don't define.
1997 (tc_fix_adjustable): Define this instead.
1998 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2000 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2002 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2003 (ppc_fix_adjustable <coff version>): Cleanup.
2005 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2006 (md_parse_option): No -a64 without BFD64.
2007 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2008 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2010 2002-09-04 Nick Clifton <nickc@redhat.com>
2012 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2013 instructions into the hash table if the target cpu is the BookE32.
2015 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2017 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2020 2000-08-28 Catherine Moore <clm@redhat.com>
2022 * tc-v850.c (v850_relax): Declare.
2023 (v850_longcode): New routine.
2024 (v850_handle_align): New routine.
2025 (md_pseudo_table): Add longcall and longjump.
2026 (md_parse_option): Check for relax option.
2027 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2028 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2029 (md_apply_fix3): Likewise.
2030 (v850_force_relocation): Likewise.
2031 (v850_comm): Change the current section.
2032 (md_assemble): Ensure that the correct value is put in the
2034 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2035 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2036 Remove redundant v850ea support.
2037 * tc-v850.h (HANDLE_ALIGN): Define.
2038 (v850_handle_align): Declare.
2039 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2041 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2043 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2044 * configure: Regenerate.
2045 * NEWS: Mention new port.
2047 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2049 * config/obj-coff.c: Add sdef definition.
2050 * config/obj-coff.h: Add tic4x include file and set
2052 * config/tc-tic4x.c: New file.
2053 * config/tc-tic4x.h: New file.
2055 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2057 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2058 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2059 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2060 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2061 (RELOC_ENUM): Define.
2062 (fix_new_internal): Use RELOC_ENUM.
2063 (fix_new, fix_new_exp): Likewise.
2064 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2065 Replace gotos with continue.
2066 (write_relocs): Formatting. Avoid symbol loops in
2067 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2068 errors, and error number in other cases.
2069 (fixup_segment): Remove param names from prototype. Rename
2070 "this_segment_type" to "this_segment". Update linkrelax comment.
2071 Remove "size, "place" and "where" local vars. Formatting. Update
2072 "no symbol" comment. Remove #if 0 and #if 1.
2074 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2076 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2078 * dwarf2dbg.c: Always include dwarf2dbg.h.
2079 (dwarf2_directive_file): Adjust dummy version args.
2080 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2081 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2082 when symbol values differ.
2083 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2084 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2085 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2087 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2089 * config/tc-w65.c (md_section_align): Fix typo.
2090 (md_parse_option): Return 0, not 1.
2092 2002-08-22 Nick Clifton <nickc@redhat.com>
2094 * doc/as.texinfo (Section): Note that if '@' is a comment
2095 character then another symbol is used to prefix the section's
2098 2002-08-22 Christian Groessler <chris@groessler.org>
2100 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2103 2002-08-12 Graeme Peterson <gp@qnx.com>
2105 * configure.in: Add support for sh-**-nto* target.
2106 * configure: Regenerate.
2108 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2110 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2112 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2114 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2116 (ppc_apuinfo_section_add): Define only if format is ELF.
2117 (md_assemble): Emit APUinfo section only if format is ELF.
2120 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2122 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2123 * config/tc-frv.c: Likewise.
2124 * config/tc-hppa.c: Likewise.
2125 * config/tc-ia64.c: Likewise.
2126 * config/tc-ip2k.c: Likewise.
2127 * config/tc-m68hc11.c: Likewise.
2128 * config/tc-m68k.c: Likewise.
2129 * config/tc-mmix.c: Likewise.
2130 * config/tc-mn10300.c: Likewise.
2131 * config/tc-sh.c: Likewise.
2132 * config/tc-sparc.c: Likewise.
2133 * config/tc-v850.c: Likewise.
2135 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2137 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2140 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2142 From matthew green <mrg@redhat.com>
2144 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2145 PPC_OPCODE_PPC is, except for BookE architectures.
2146 (md_parse_option): Add support for -mspe.
2147 (md_show_usage): Add -mspe.
2148 (md_parse_option): Add support for -me500 and
2149 -me500x2 to generate code for Motorola e500 core complex.
2150 (md_show_usage): Add -me500 and -me500x2.
2152 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2153 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2154 PPC_APUINFO_BRLOCK): New macros.
2156 (ppc_cleanup): New function.
2157 (ppc_apuinfo_section_add): New function.
2159 (md_assemble): Collect info and write the APUinfo section.
2161 * config/tc-ppc.h (md_cleanup): Define.
2162 (ppc_cleanup): Export.
2163 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2165 2002-08-17 Stan Cox <scox@redhat.com>
2167 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2168 config/tc-mips.c (s_change_section): New function to support
2169 IRIX .section pseudo-op.
2171 2002-08-16 Nick Clifton <nickc@redhat.com>
2173 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2175 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2177 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2178 the fix-up against on the right frag.
2179 (s_cpsetup): Likewise. Parse third argument as expression, to
2180 handle global symbols and forward/backward labels correctly.
2182 2002-08-14 Nick Clifton <nickc@redhat.com>
2184 * read.c (stringer): Catch attempts to create strings in the abs
2187 * config/tc-alpha.c: Fix compiling for COFF targets.
2188 Some minor formatting tidyups.
2190 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2192 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2193 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2194 according to the reloc.
2195 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2196 (TC_FORCE_RELOCATION): Define.
2197 (tc_m68hc11_force_relocation): Declare.
2199 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2200 (s_m68hc11_relax): New function for relax group.
2201 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2202 beginning of jump instruction.
2203 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2204 address computation.
2205 (tc-gen_reloc): Update.
2206 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2208 (tc_m68hc11_force_relocation): New function, handle new relocs.
2209 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2210 reloc for the linker relax pass.
2211 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2214 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2216 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2217 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2218 (s_m68hc11_mode): New function for .mode pseudo op.
2219 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2221 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2222 (m68hc11_elf_final_processing): Declare.
2224 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2226 * config/tc-m68hc11.c (md_begin): Take into account additional
2227 page operand for call instruction.
2228 (print_opcode_format): Likewise.
2229 (check_range): Likewise for page range checking.
2230 (get_operand): Don't skip a possible comma in operands.
2231 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2232 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2233 (fixup24): New to handle call reloc.
2234 (build_insn): Handle missing page operand for call instruction.
2236 (md_apply_fix3): Take into account new relocs.
2237 (get_operand): Fix the mode for indexed indirect addressing.
2238 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2240 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2242 * config/tc-mips.c (mips_ip): Don't work out the value of
2243 constant %hi()s here.
2245 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2247 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2248 for ELF, and don't bother checking ELF relocs when non-ELF.
2249 (i386_immediate): Allow absolute_section expressions for aout.
2250 (i386_displacement): Likewise. Also test bfd_is_com_section.
2251 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2252 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2253 not when fx_addsy. Remove dead code.
2255 2002-08-09 Graeme Peterson <gp@qnx.com>
2257 * configure.in: Add support for ppc-*-nto* target.
2258 * configure: Regenerate.
2260 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2262 * config/tc-i386.h: Reorganize.
2264 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2266 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2267 immediate offset in "dla" and "la" expansions.
2269 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2271 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2272 Remove "bfd_gas=yes" from target table when covered later.
2273 Consolidate some entries.
2274 * configure: Regenerate
2276 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2278 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2279 at start of insn, pass it to output_disp and output_imm.
2280 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2281 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2283 (output_imm): Added arguments. Compute properly addend for
2285 (md_apply_fix3): Remove R_386_GOTPC handling.
2287 2002-08-06 George France <france@handhelds.org>
2289 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2290 and m21264b processor names and cpu types.
2291 * doc/c-alpha.texi: Documented new types.
2293 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2295 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2297 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2299 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2300 handling to BFD_RELOC_MIPS16_GPREL.
2302 2002-08-01 Nick Clifton <nickc@redhat.com>
2304 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2305 pool is computed using signed arithmetic so that proper sign
2306 extension is performed if X_add_number is a 64-bit integer.
2308 2002-08-01 H.J. Lu <hjl@gnu.org>
2309 Daniel Jacobowitz <drow@mvista.com>
2311 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2312 .debug_line section unless it has line information.
2314 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2316 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2317 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2318 Allow default displacement size to be an option "--disp-size-default".
2319 (md_number_to_disp): Make error messages include value. Use %d to
2320 print integers, not %s.
2321 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2322 get duplicate messages sometimes.
2323 (convert_iif): Grow frag to max possible instruction size. Avoid
2324 creating unnecessary fixes.
2325 (md_number_to_field) Add prototype.
2326 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2327 prototypes and make static.
2328 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2329 (evaluate_expr): Use resultP argument instead of exprP global.
2330 (get_addr_mode): Quiten compiler warnings.
2331 (encode_operand): eliminate unused variables. Quiten compiler
2332 warnings. Eliminate nul character in format strings.
2333 (parse): argc is unsigned.
2334 (reloc): Type cast index to quieten compiler.
2335 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2336 (md_convert_frag): Note unused parameters. Remove unused
2338 (md_create_long_jump, md_create_short_jump,
2339 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2342 2002-07-31 Nick Clifton <nickc@redhat.com>
2344 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2345 of the PDP-11 and 2.11BSD a.out support.
2347 2002-07-31 Momchil Velikov <velco@fadata.bg>
2349 * config/tc-v850.c (md_assemble): Fix range check for immediate
2352 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2354 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2355 to Broadcom SB-1 core support.
2357 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2359 * config/tc-mips.c (mips_target_format): Fix formatting.
2360 Add recognition of n32 ABI formats.
2362 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2364 * tc-mips.c (load_address): Don't clobber $at when loading a
2365 64-bit address in non-PIC code if noat is in effect.
2368 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2370 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2371 used in division/multiply macro expansions similarly to how they
2372 are used in the variants with break instructions.
2375 2002-07-30 Graeme Peterson <gp@qnx.com>
2377 * configure.in: Add support for arm-*-nto target.
2378 * configure: Regenerate.
2380 2002-07-30 Nick Clifton <nickc@redhat.com>
2382 * config/tc-arm.c (struct literal_pool): Add fields to allow
2383 multiple literal pools to be maintained.
2384 (find_literal_pool): New function.
2385 (find_or_make_literal_pool): New function.
2386 (add_to_literal_pool): Use find_or_make_literal_pool.
2387 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2389 (s_ltorg): Use find_literal_pool.
2390 (arm_cleanup): Dump all literal pools.
2391 * doc/c-arm.texi: Document new behaviour of only dumping literal
2394 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2396 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2397 rather than PPC_OPCODE_32 for powerpc64*.
2399 2002-07-25 Nick Clifton <nickc@redhat.com>
2401 * po/es.po: Updated Spanish translation.
2402 * po/fr.po: Updated French translation.
2404 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2406 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2407 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2408 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2409 * configure, config.in: Regenerate.
2410 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2411 (mips_set_options): Remove "abi" field.
2412 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2415 (mips_arch_string, mips_arch_info): New vars.
2416 (mips_tune_string, mips_tune_info): New vars.
2417 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2418 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2419 (mips_isa_to_str, mips_cpu_to_str): Remove.
2420 (mips_ip): If the selected architecture is a generic ISA rather
2421 than a processor, only mention the ISA level in error messages.
2422 (OPTION_MCPU): Remove.
2424 (md_longopts): Add -mfp64, remove -mcpu.
2425 (mips_set_option_string): New fn.
2426 (md_parse_option): Make -mipsN update file_mips_isa rather than
2427 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2428 Don't let -mgp32 and -mfp32 change the ABI.
2429 (show): Move to end of file. Constify string argument.
2430 (md_show_usage): Move to the end of the file. Read available
2431 architectures from mips_cpu_info_table.
2432 (mips_set_architecture): New fn.
2433 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2434 is an alias for -march=mipsN. Don't change the ABI based on other
2435 flags. Infer the register size from the ABI as well as the
2436 architecture. Complain about more conflicting arguments.
2437 Unify logic with GCC.
2438 (s_mipsset): Don't change the ABI.
2439 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2440 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2441 "mipsN"-type entries. Remove entries that vary only in the
2442 manufacturer's prefix, or that have "000" replaced by "k".
2443 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2444 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2445 (mips_parse_cpu): New fn.
2446 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2447 (mips_cpu_info_from_isa): Minor formatting tweak.
2449 2002-07-24 Nick Clifton <nickc@redhat.com>
2451 * po/sv.po: Updated Swedish translation.
2452 * po/es.po: Updated Spanish translation.
2454 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2456 * Makefile.am: Run "make dep-am".
2457 * Makefile.in: Regenerate.
2458 * doc/Makefile.in: Regenerate.
2459 * config.in: Regenerate.
2460 * po/POTFILES.in: Regenerate.
2462 2002-07-23 Nick Clifton <nickc@redhat.com>
2464 * po/fr.po: Updated French translation.
2466 2002-07-23 Nick Clifton <nickc@redhat.com>
2468 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2471 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2473 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2474 instead of S_IS_EXTERN.
2475 (md_estimate_size_before_relax): Likewise.
2476 (mips_fix_adjustable): Likewise.
2478 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2480 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2482 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2483 Nick Clifton <nickc@redhat.com>
2485 * cond.c (s_ifdef): Treat a referenced but not yet defined
2486 symbol as if it were undefined, in exactly the same way as
2489 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2490 consider referenced bug not yet defined symbols to be
2493 2002-07-18 Denis Chertykov <denisc@overta.ru>
2494 Frank Ch. Eigler <fche@redhat.com>
2495 Alan Lehotsky <alehotsky@cygnus.com>
2496 John Healy <jhealy@redhat.com>
2497 Jeff Johnston <jjohnstn@redhat.com>
2499 * configure.in: Add ip2k configuraton.
2500 * configure: Regenerate.
2501 * Makefile.am: Add ip2k configuraton.
2502 * Makefile.in: Regenerate.
2503 * configure: Regenerate.
2504 * Makefile.in: Regenerate.
2505 * config/tc-ip2k.c: New file.
2506 * config/tc-ip2k.h: New files.
2507 * NEWS: Mention new support.
2508 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2509 * doc/Makefile.in: Regenerate.
2510 * doc/all.texi: Set IP2K
2511 * doc/as.texinfo: Add IP2K description.
2512 * doc/c-ip2k.texi: New file.
2514 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2516 * NEWS: Reformat to match style of other NEWS files.
2518 2002-07-17 Jan Hubicka <jh@suse.cz>
2520 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2522 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2524 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2526 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2528 * NEWS: Add 'Changes in 2.13'.
2530 2002-07-15 Matt Fredette <fredette@netbsd.org>
2532 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2534 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2536 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2537 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2540 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2542 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2543 (ppc_frob_file_before_adjust): New function.
2544 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2545 (ppc_elf_frob_symbol): Don't declare.
2546 (tc_frob_file_before_adjust): Define.
2547 (ppc_frob_file_before_adjust): Declare.
2549 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2550 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2553 (ppc_xcoff64): Rename to ppc_obj64.
2554 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2555 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2556 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2558 (ppc_target_format): Use ppc_obj64 to select format.
2559 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2560 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2561 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2562 (tc_frob_symbol): Likewise.
2563 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2564 BFD_DEFAULT_TARGET_SIZE.
2566 (ppc_is_toc_sym): Likewise.
2567 (md_apply_fix3): Likewise.
2568 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2569 BFD_DEFAULT_TARGET_SIZE.
2570 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2571 (tc_frob_symbol): Likewise.
2573 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2575 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2576 (mips_ip): Likewise.
2578 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2580 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2581 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2582 (md_apply_fix3): Formatting. Remove redundant test.
2583 (tc_gen_reloc): Remove redundant code.
2584 (tc_i386_force_relocation): Delete. Movy body of function to..
2585 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2587 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2589 * configure.in: Add hppa-*-openbsd* target, change
2590 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2592 * configure: Regenerate.
2594 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2596 * config/tc-mips.c (macro): Shift the 32-bit address range
2597 accessible with a lone "lui" down by 32768.
2599 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2601 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2602 instead of "dadd" in address calculations.
2605 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2607 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2609 (md_assemble): Instead, zap the suffix here.
2611 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2613 * NEWS: Remove next release number until the release is actually
2616 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2618 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2620 * Makefile.in: Regenerate.
2622 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2624 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2625 to symbols in merge sections, even non pc-relative ones.
2627 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2629 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2631 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2633 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2634 .softregs and .eeprom.
2636 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2638 * NEWS: Note the next release is 2.13.
2640 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2642 * po/tr.po: New translation imported.
2644 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2646 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2647 (ecoff_directive_def): Likewise.
2648 (ecoff_directive_tag): Likewise.
2649 * listing.c (file_info): Likewise.
2650 * hash.c (what): Likewise.
2652 2002-06-25 H.J. Lu <hjl@gnu.org>
2654 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2655 * Makefile.in: Regenerated.
2657 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2659 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2660 (assemble_ppi): Generate warning if the same register is used
2661 twice as destination in the same padd / pmuls instruction.
2663 2002-06-18 Dave Brolley <brolley@redhat.com>
2665 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2666 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2667 * configure.in: Support frv-*-*.
2668 * Makefile.am (CPU_TYPES): Add frv.
2669 (TARGET_CPU_CFILES): Add tc-frv.c.
2670 (TARGET_CPU_HFILES): Add tc-frv.h.
2671 (DEPTC_frv_coff): New variable.
2672 (DEPTC_frv_elf): New variable.
2673 (DEPOBJ_frv_coff): New variable.
2674 (DEPOBJ_frv_elf): New variable.
2675 (DEP_frv_coff): New variable.
2676 (DEP_frv_elf): New variable.
2677 * tc-frv.c: New file.
2678 * tc-frv.h: New file.
2680 2002-06-17 Catherine Moore <clm@redhat.com>
2682 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2684 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2686 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2688 2002-06-17 Tom Rix <trix@redhat.com>
2690 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2692 2002-06-14 H.J. Lu <hjl@gnu.org>
2693 Daniel Jacobowitz <drow@mvista.com>
2695 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2696 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2697 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2698 and new_logical_line for the first .file directive.
2699 * read.c (s_app_file_string): New function.
2700 (s_app_file): Call it.
2701 * read.h (s_app_file_string): Add declaration.
2703 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2705 * configure.in: Remove MIPS_STABS_ELF.
2706 * configure: Regenerated.
2707 * config.in: Regenerated.
2708 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2710 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2712 (pdr_seg): Declare unconditionally.
2713 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2714 (s_mips_end): Likewise. Generate stabs function markers.
2715 (s_mips_ent): Generate stabs function markers.
2716 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2718 (s_mips_mask): Likewise.
2719 (mips_flag_mdebug): New.
2720 (md_longopts): Add "mdebug" and "no-mdebug".
2721 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2722 (mips_after_parse_args): Set mips_flag_mdebug.
2723 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2725 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2727 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2728 value twice for RELA relocations.
2730 2002-06-12 Ben Elliston <bje@redhat.com>
2732 * symbols.c (resolve_symbol_value): Initialise final_val.
2734 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2736 2002-06-11 Tom Rix <trix@redhat.com>
2738 * config/tc-ppc.c (ppc_subseg_align): Delete.
2739 (ppc_change_csect): Default csect align is 2.
2740 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2742 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2744 * config/tc-avr.c (mcu_types): Update.
2746 2002-06-08 Matt Thomas <matt@3am-software.com>
2748 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2749 (vax-*-netbsd*): New targets.
2750 * configure: Regenerate.
2751 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2752 * config/tc-vax.c: Add support for ELF and PIC.
2753 (flag_want_pic): New flag.
2754 (float_cons): Fix prototype.
2755 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2756 (md_assemble): Introduce a new is_absolute local, and use it
2757 rather than repeating the test. Make fatal errors actually
2758 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2759 Add support for ELF. Add support for PIC.
2760 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2761 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2763 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2764 optional for a.out, and not allowed for VMS. Adjust all callers.
2765 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2766 (md_create_long_jump): Likewise.
2767 (md_undefined_symbol): Likewise.
2768 (md_section_align): Likewise.
2769 (md_shortopts): Allow -k and -K for ELF.
2770 (md_parse_option): Set flag_want_pic if -k or -K.
2771 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2772 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2773 * config/tc-vax.h (tc_headers_hook): Remove.
2774 (TARGET_FORMAT): Set according to object format and target
2776 (BFD_ARCH, TARGET_ARCH): Define.
2777 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2778 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2779 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2780 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2782 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2784 * Makefile.am: Run "make dep-am".
2785 * Makefile.in: Regenerate.
2787 * as.c: Replace CONST with const.
2788 * write.c: Likewise.
2789 * config/obj-coff.c: Likewise.
2790 * config/tc-a29k.c: Likewise.
2791 * config/tc-arm.c: Likewise.
2792 * config/tc-dlx.c: Likewise.
2793 * config/tc-h8300.c: Likewise.
2794 * config/tc-h8500.c: Likewise.
2795 * config/tc-i370.c: Likewise.
2796 * config/tc-i860.c: Likewise.
2797 * config/tc-i960.c: Likewise.
2798 * config/tc-m68hc11.c: Likewise.
2799 * config/tc-m68k.c: Likewise.
2800 * config/tc-m88k.c: Likewise.
2801 * config/tc-mcore.c: Likewise.
2802 * config/tc-mips.c: Likewise.
2803 * config/tc-ns32k.c: Likewise.
2804 * config/tc-pdp11.c: Likewise.
2805 * config/tc-pj.c: Likewise.
2806 * config/tc-s390.c: Likewise.
2807 * config/tc-sh.c: Likewise.
2808 * config/tc-sparc.c: Likewise.
2809 * config/tc-tahoe.c: Likewise.
2810 * config/tc-tic80.c: Likewise.
2811 * config/tc-v850.c: Likewise.
2812 * config/tc-vax.c: Likewise.
2813 * config/tc-w65.c: Likewise.
2814 * config/tc-z8k.c: Likewise.
2816 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2818 Based on patch from Matt Green:
2819 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2820 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2821 (s_mips_loc): New function.
2822 (mips_nonecoff_pseudo_table): Call them.
2823 (append_insn): Call dwarf2_emit_insn.
2825 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2827 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2829 (file_ase_mips16): New veriable.
2830 (mips_eabi64): Remove.
2831 (CPU_HAS_MIPS16): New define.
2832 (CPU_HAS_MDMX): Fix data type.
2833 (md_begin): Code cleanup. Use file_ase_mips16.
2834 (mips_elf_final_processing): Handle mips16 header flag.
2835 Handle EABI flag without intermediate variable.
2837 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2839 * doc/as.texinfo: Update MIPS documentation.
2841 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2843 * config/tc-mips.c: Add define for $zero register.
2844 (md_begin): Add $zero as alias name for $0.
2845 (insn_uses_reg): Use ZERO define.
2846 (mips_ip): Add $zero as alias name for $0.
2847 (mips16_ip): Likewise.
2848 (s_cplocal): Demand empty rest of input line.
2849 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2850 names. Use ZERO define. Fix input_line_pointer progress.
2852 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2854 * symbols.c: Replace CONST by const throughout.
2855 (symbol_find_exact): Split out from..
2856 (symbol_find_base): ..here.
2857 * symbols.h: Replace CONST by const throughout.
2858 (symbol_find_exact): Declare.
2859 * config/obj-elf.c: #include "struc-symbol.h".
2860 (elf_frob_file): If group name matches an exported symbol, use that
2861 symbol for the signature and ".group" as the section name.
2863 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2865 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2868 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2870 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2871 and mips_opts.ase_mdmx if they are uninitialized.
2873 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2875 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2876 (hppa_force_relocation): Check if a stub just before the start symbol
2877 of the last call_info is reachable before forcing relocation. Fix
2880 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2882 * config/tc-mips.c (mips_after_parse_args): New function.
2883 (md_begin): Move processing of defaults to mips_after_parse_args.
2884 config/tc-mips.h (md_after_parse_args): Define.
2886 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2888 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2889 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2890 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2891 * configure: Regenerate.
2892 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2895 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2897 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2899 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2901 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2902 linkonce flag. Print all warnings.
2903 (obj_elf_section): Parse ",comdat" for groups.
2904 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2905 consistency of comdat flag.
2907 2002-06-02 Richard Henderson <rth@redhat.com>
2909 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2910 with LITERALs without sequence numbers.
2912 2002-06-01 Richard Henderson <rth@redhat.com>
2914 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2915 Rename them LITUSE_ALPHA_*.
2917 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2919 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2920 accept parentheses enclosed register lists.
2922 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2924 * Makefile.am: Run "make dep-am".
2925 * Makefile.in: Regenerate.
2926 * po/POTFILES.in: Regenerate.
2928 2002-05-31 Graeme Peterson <gp@qnx.com>
2930 * configure.in: Add i386-*-nto-qnx*.
2931 * configure: Regenerate.
2933 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2935 * config/tc-mips.c (mips_ip): Use unsigned long values for
2938 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2940 * config/tc-mips.c (s_cpsetup): Fix initialization of
2941 mips_cpreturn_register and mips_cpreturn_offset.
2943 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2945 * config/tc-mips.c (s_cpsetup): Fix comment.
2947 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2949 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2950 (mips_ip): Likewise.
2951 (mips16_ip): Likewise.
2952 (tc_get_register): Likewise.
2954 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2955 Ed Satterthwaite <ehs@broadcom.com>
2957 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2958 (mips_opts): Initialize "ase_mdmx" member.
2959 (file_ase_mdmx): New variable.
2960 (CPU_HAS_MDMX): New macro.
2961 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2962 based on command line options and configuration defaults.
2963 (macro_build): Note in comment that use of MDMX in macros is
2964 not currently allowed.
2965 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2966 "Z" MDMX operand types.
2967 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2968 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2970 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2971 Add support for "-mdmx" and "-no-mdmx" options.
2972 (OPTION_ELF_BASE): Move to accomodate new options.
2973 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2974 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2975 file_ase_mdmx was set.
2976 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2977 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2980 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2982 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2983 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2984 command line switch conforming to gcc conventions.
2985 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2987 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2989 * config/tc-mips.c (macro_build_jalr): New Function.
2990 (md_begin): NewABI uses big GOTs.
2991 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2992 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2993 (load_address): Add some NewABI PIC support.
2995 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2996 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2998 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3000 * config/tc-mips.c (load_address): Use mips_gp_register instead
3001 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3003 (macro): Use mips_gp_register instead of hardcoded value.
3005 2002-05-30 Richard Henderson <rth@redhat.com>
3007 * expr.h (operatorT): Add O_md17..O_md32.
3008 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3009 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3010 O_tprelhi, O_tprello, O_tprel): New.
3011 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3012 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3013 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3014 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3015 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3016 (md_apply_fix3): Handle TLS relocations.
3017 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3018 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3019 associated TLS reloc. Check lituse_tls relocs match up.
3020 (emit_insn): Handle TLS relocations.
3023 * doc/c-alpha.texi: Add docs for tls relocations.
3025 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3027 * config/tc-mips.c (mips_gprel_offset): New variable.
3028 (s_gpvalue): Use it.
3030 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3032 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3033 write-write conflicts.
3034 (md_assemble): Reformat introductory comment.
3035 (parallel_ok): Prevent packing only if the first
3036 instruction cannot be packed.
3038 2002-05-30 Jason Eckhardt <jle@redhat.com>
3039 Tom Rix <trix@redhat.com>
3041 * config/tc-d10v.c (build_insn): Check for immediates.
3043 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3045 * config/tc-mips.c: Replace GP in comments by $gp.
3046 (mips_big_got): Initialize.
3047 (mips_trap): Initialize.
3048 (load_address): Use mips_gp_register instead of hardcoded value.
3049 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3050 (macro): Use mips_gp_register instead of hardcoded value.
3051 (macro2): Change load_address calls.
3052 (md_pcrel_from): Comment formatting.
3053 (s_cpload): Use mips_gp_register instead of hardcoded value.
3054 (s_cprestore): Likewise. Comment formatting.
3055 (s_gpword): Fix data type.
3056 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3057 (nopic_need_relax): Replace GP in comments by $gp.
3058 (mips_elf_final_processing): Better comment.
3060 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3062 * configure.in: Add DLX configuraton
3063 * Makefile.am: Add DLX configuraton
3064 * configure: Regenerate.
3065 * Makefile.in: Regenerate.
3066 * config/tc-dlx.c: New file.
3067 * config/tc-dlx.h: New files.
3068 * NEWS: Mention new support.
3070 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3072 * config/obj-coff.c (write_object_file): Add missing semicolon.
3074 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3076 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3077 by the define. Remove superfluous check of mips_opts.mips16.
3078 (append_insn): Likewise. Canonicalize variable increments.
3079 (macro_build): Canonicalize variable increments.
3080 (macro_build_lui): Likewise.
3081 (load_register): Likewise.
3082 (load_address): Move pointer initialization.
3083 (macro): Move pointer to a more local scope. Canonicalize variable
3084 increments. Better comments. Replace magic constant for RA by the
3086 (macro2): Replace magic constant for RA by the define. Canonicalize
3087 variable increments.
3088 (mips_ip): Canonicalize variable increments.
3089 (mips16_ip): Replace magic constant for RA by the define.
3090 (my_getSmallParser): Canonicalize variable increments/decrements.
3091 (my_getPercentOp): Likewise.
3092 (my_getSmallExpression): Likewise.
3093 (s_align): Likewise.
3094 (s_mipsset): Likewise.
3095 (s_cpsetup): Likewise.
3096 (s_insn): Remove superfluous check of mips_opts.mips16.
3097 (s_mips_stab): Likewise.
3098 (mips_handle_align): Canonicalize variable increments.
3099 (s_mips_ent): Likewise.
3100 (s_mips_end): Add comment.
3102 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3104 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3105 * configure: Regenerate.
3107 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3109 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3110 * Makefile.in: Regenerate.
3111 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3112 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3113 * configure: Regenerate.
3114 * as.h: Use #include "" instead of <> for local header files.
3115 * flonum-konst.c: Likewise.
3116 * flonum-mult.c: Likewise.
3118 * listing.c: Likewise.
3119 * config/tc-ia64.h: Likewise.
3120 * config/tc-v850.h: Likewise.
3122 2002-05-24 TAMURA Kent <kent@netbsd.org>
3124 * configure.in: Add a target for i386-netbsdpe.
3125 * configure: Regenerate.
3127 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3129 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3130 (obj_elf_common): Call elf_common.
3131 (obj_elf_tls_common): New function.
3132 (elf_pseudo_tab): Support .tls_common.
3133 (special_sections): Add .tdata and .tbss.
3134 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3136 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3137 (obj_elf_parse_section_letters): Include T in error message.
3138 * config/tc-ppc.c (ppc_section_letter): Likewise.
3139 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3140 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3142 * config/tc-sparc.c (md_apply_fix3): Likewise.
3143 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3144 Define them if not BFD_ASSEMBLER.
3145 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3147 (md_apply_fix3): Add TLS relocs.
3148 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3149 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3150 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3151 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3152 (ia64_elf_section_letter): Include T in error message.
3153 (md_begin): Support TLS operators.
3154 (md_operand): Likewise.
3155 (ia64_gen_real_reloc_type): Support TLS relocs.
3156 * write.c (adjust_reloc_syms): Don't change symbols in
3157 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3159 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3161 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3162 round the relocation up rather than down.
3164 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3166 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3168 * doc/as.texinfo: Document that the COFF version of .section
3169 ignores the 'a' flag.
3171 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3173 * config/tc-alpha.c (assemble_tokens): Protect use of
3174 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3176 * write.c (size_seg): Check adjustment to last frag.
3177 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3179 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3180 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3181 (write_object_file): Invoke md_do_align if available, and use
3182 frag_align_code on text sections.
3183 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3184 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3185 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3186 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3187 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3190 2002-05-22 H.J. Lu <hjl@gnu.org>
3192 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3195 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3197 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3200 2002-05-22 H.J. Lu <hjl@gnu.org>
3202 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3203 for one .loc for compiler.
3205 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3207 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3210 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3212 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3213 Optimize the rotate by zero case.
3215 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3217 * configure.in: Remove accidental enabling of bfd_gas=yes for
3219 * configure: Regenerate.
3221 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3223 * app.c: Fix formatting.
3225 * ehopt.c: Likewise.
3227 * input-file.c: Likewise.
3228 * listing.c: Likewise.
3229 * macro.h: Likewise.
3230 * stabs.c: Likewise.
3231 * symbols.c: Likewise.
3233 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3235 * config/obj-generic.c: Delete file.
3236 * config/obj-generic.h: Likewise.
3238 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3240 * config/tc-avr.c (mcu_types): Update for new devices.
3242 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3244 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3246 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3248 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3249 worked sometimes by accident. Fix copy&paste comment.
3251 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3253 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3254 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3255 (mips_elf_final_processing): Let n32 use .reginfo.
3257 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3259 * config/tc-mips.c (append_insn): Fix too small range of variable.
3261 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3263 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3264 listing_prev_line().
3266 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3268 * config/tc-arm.c (md_assemble): Remove redundant call to
3271 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3274 * stabs.c (s_stab_generic): Fix grammatical error in warning
3277 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3279 * write.c (subsegs_finish): Don't specially align last subseg.
3281 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3283 * stabs.c (s_stab_generic): Warn about a description field that is
3286 * config/obj-coff.c: Fix compile time warnings when compiling
3287 without BFD_ASSEMBLER defined.
3290 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3292 (md_pcrel_from_section): Use md_pcrel_from().
3294 2002-05-11 Bruno Haible <bruno@clisp.org>
3296 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3297 by dwarf2_directive_loc, instead of calling dwarf2_where.
3299 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3301 * config/obj-coff.h: Fix formatting.
3302 * config/tc-mcore.c: Likewise.
3303 * config/tc-mn10300.c: Likewise.
3304 * config/tc-openrisc.c: Likewise.
3305 * config/tc-or32.c: Likewise.
3306 * config/tc-pdp11.c: Likewise.
3307 * config/tc-ppc.c: Likewise.
3308 * config/tc-ppc.h: Likewise.
3309 * config/tc-sh64.c: Likewise.
3310 * config/tc-sh.c: Likewise.
3311 * config/tc-tic54x.c: Likewise.
3312 * config/tc-xstormy16.c: Likewise.
3313 * config/tc-xstormy16.h: Likewise.
3315 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3317 * config/obj-coff.c: Fix formatting.
3318 * config/obj-elf.c: Likewise.
3319 * config/tc-alpha.c: Likewise.
3320 * config/tc-arm.c: Likewise.
3321 * config/tc-d10v.c: Likewise.
3322 * config/tc-d30v.c: Likewise.
3323 * config/tc-h8300.c: Likewise.
3324 * config/tc-hppa.c: Likewise.
3326 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3328 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3329 reloc when no_cond_jump_promotion.
3331 2002-05-08 Jim Wilson <wilson@redhat.com>
3333 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3334 current variable part of frag.
3336 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3338 * config/tc-mmix.c: Fix formatting.
3339 * config/tc-mmix.h: Likewise.
3341 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3343 * configure: Regenerate.
3345 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3347 * config/tc-m68k.c: Fix formatting.
3349 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3351 * Makefile.am: Honour DESTDIR.
3352 * Makefile.in: Regenerate.
3354 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3356 * config/tc-ia64.c: Fix formatting.
3357 * config/tc-ia64.h: Likewise.
3359 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3361 * config/tc-mips.c: Fix formatting.
3362 * config/tc-s390.c: Likewise.
3363 * config/tc-s390.h: Likewise.
3365 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3367 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3368 information for instructions.
3370 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3372 * as.h: Fix formatting.
3375 * dwarf2dbg.c: Likewise.
3376 * frags.h: Likewise.
3378 * macro.c: Likewise.
3380 * stabs.c: Likewise.
3381 * symbols.c: Likewise.
3383 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3385 * app.c (mri_pseudo): Only declare for TC_M68K.
3387 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3388 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3389 BFD_RELOC_16_BASEREL.
3390 (md_assemble): Likewise.
3391 (md_apply_fix3): Likewise.
3393 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3395 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3396 zero into an add of zero - it is not the same.
3398 2002-05-01 Arati Dikey <aratid@kpit.com>
3400 * tc-sh.c (get_specific): Generate warning if the same
3401 destination register is used in parallel instructions.
3403 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3405 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3407 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3409 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3410 backwards to prevent cascading errors.
3412 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3414 * configure.in: Add support for powerpc-*-windiss.
3415 * configure: Regenerated.
3417 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3419 * config/tc-s390.c (md_parse_option): Formatting.
3421 * config/tc-i386.c: Formatting fixes, add missing space in error
3424 2002-04-24 Christian Groessler <chris@groessler.org>
3426 * config/tc-z8k.c (build_bytes): Add support for new cases:
3427 CLASS_IGNORE and ARG_NIM4.
3428 (md_assemble): Prevent destruction of input_line_pointer if
3429 get_operands returns failure.
3431 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3433 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3434 instructions to be generated by macros.
3436 2002-04-24 Andreas Schwab <schwab@suse.de>
3438 * config/tc-i386.c (output_jump, output_disp)
3439 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3441 (md_apply_fix3): Remember addend value for rela relocations.
3442 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3444 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3446 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3447 from previous change.
3449 2002-04-22 Eric Christopher <echristo@redhat.com>
3451 * config/tc-mips.c (macro_build): Add warning if macro instructions
3452 are expanded into a branch delay slot.
3454 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3456 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3457 numbers, gdb relies on them to detect the start of the prologue.
3459 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3461 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3462 symbols in merge sections.
3464 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3466 * as.c (main): Don't reference _bfd_chunksize.
3468 2002-04-15 Tom Rix <trix@redhat.com>
3470 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3471 symbols in merge sections.
3473 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3475 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3476 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3477 argument for the precision.
3478 (gen_to_words): Update accordingly.
3480 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3482 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3483 BFD_VERSION_STRING unavailable.
3484 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3486 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3488 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3489 symbol_used_in_reloc_p is true.
3491 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3494 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3496 * dep-in.sed: Cope with absolute paths.
3497 * Makefile.am (dep.sed): Subst TOPDIR.
3499 * Makefile.in: Regenerate.
3501 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3503 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3504 (mips_ip): Remove unused variable.
3505 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3506 unsigned char with bfd_byte.
3507 (s_file): Remove unused variable.
3508 (s_mips_ent): Likewise.
3510 2002-04-03 Tom Rix <trix@redhat.com>
3512 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3514 (find_opcode): Fix warning in as_warn.
3515 * config/tc-d10v.h: Update Copyright.
3517 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3518 Tom Rix <trix@redhat.com>
3520 From Jeff Knaggs <jknaggs@redhat.com>
3521 * config/tc-d10v.c (check_resource_conflict): New function to
3522 check for resource conflicts.
3524 From Jason Eckhardt <jle@redhat.com>
3525 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3527 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3528 reserved control registers is used.
3529 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3532 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3533 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3534 instruction cannot be packed.
3536 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3537 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3538 write-write conflicts.
3539 (md_assemble): Reformat introductory comment.
3540 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3543 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3545 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3546 O_logical_not>): Derive final_seg from add_symbol.
3547 <O_multiply..O_logical_or>: More final_seg twiddles.
3549 2002-04-01 Jessica Han <jessica@cup.hp.com>
3551 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3554 2002-03-27 Andreas Schwab <schwab@suse.de>
3556 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3557 field for pc-relative fixups.
3558 (output_disp): Likewise.
3559 (md_estimate_size_before_relax): Likewise.
3560 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3561 pc-relative fixups in 64bit mode.
3563 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3565 * config/te-aix5.h: Typo fix.
3567 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3569 * Makefile.am: Run "make dep-am".
3570 * Makefile.in: Regenerate.
3571 * doc/Makefile.in: Regenerate.
3573 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3575 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3576 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3578 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3580 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3581 the EXTENDED bit here; report the estimate according to the
3584 2002-03-18 Tom Rix <trix@redhat.com>
3586 * configure.in: Add AIX 5 support.
3587 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3588 * config/te-aix5.h: New file. AIX 5 support.
3589 * configure: Regenerate.
3591 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3593 * po/fr.po: Updated version.
3595 2002-03-16 Andreas Jaeger <aj@suse.de>
3597 * doc/c-mips.texi (Machine Dependencies): Add new node.
3599 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3601 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3602 (mips_opts): Initialize "ase_mips3d" member.
3603 (file_ase_mips3d): New variable.
3604 (CPU_HAS_MIPS3D): New macro.
3605 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3606 based on command line options and configuration defaults.
3607 (macro_build, mips_ip): Accept MIPS-3D instructions if
3608 mips_opts.ase_mips3d is set.
3609 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3610 Add support for "-mips3d" and "-no-mips3d" options.
3611 (OPTION_ELF_BASE): Move to accomodate new options.
3612 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3613 (mips_elf_final_processing): Add a comment indicating that a
3614 MIPS-3D ASE ELF header flag should be set, when one exists.
3615 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3616 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3617 nomips3d" directives.
3619 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3621 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3622 a weak symbol in same section to be within reach.
3624 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3626 * po/fr.po: Updated version.
3628 2002-03-12 Andreas Schwab <schwab@suse.de>
3630 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3631 body record so that an error is given for misplaced .save
3634 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3636 * config/tc-i386.h (REX_OPCODE): Define.
3637 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3638 (rex_byte): typedef to int.
3639 * config/tc-i386.c: Group prototypes and vars together.
3640 Formatting fixes. Remove occurrences of "register" keyword.
3643 (mode_from_disp_size): Add INLINE keyword to prototype.
3644 (fits_in_signed_byte): Likewise.
3645 (fits_in_unsigned_byte): Likewise.
3646 (fits_in_unsigned_word): Likewise.
3647 (fits_in_signed_word): Likewise.
3648 (fits_in_unsigned_long): Likewise.
3649 (fits_in_signed_long): Likewise.
3650 (type_names): Constify.
3651 (intel_float_operand): Constify param.
3652 (add_prefix): Use REX_OPCODE.
3653 (md_assemble): Likewise. Modify for changed rex_byte.
3654 (parse_insn): Split out of md_assemble.
3655 (parse_operands): Likewise.
3656 (swap_operands): Likewise.
3657 (optimize_imm): Likewise.
3658 (optimize_disp): Likewise.
3659 (match_template): Likewise.
3660 (check_string): Likewise.
3661 (process_suffix): Likewise.
3662 (check_byte_reg): Likewise.
3663 (check_long_reg): Likewise.
3664 (check_qword_reg): Likewise.
3665 (check_word_reg): Likewise.
3666 (finalize_imm): Likewise.
3667 (process_operands): Likewise.
3668 (build_modrm_byte): Likewise.
3669 (output_insn): Likewise.
3670 (output_branch): Likewise.
3671 (output_jump): Likewise.
3672 (output_interseg_jump): Likewise.
3673 (output_disp): Likewise.
3674 (output_imm): Likewise.
3676 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3678 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3680 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3682 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3683 relocs except when BFD64.
3685 * write.c (number_to_chars_bigendian): Don't abort when N is
3686 larger than sizeof (VAL).
3687 (number_to_chars_littleendian): Likewise.
3689 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3691 * config/tc-hppa.c (md_apply_fix3): Add cast.
3692 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3695 2002-03-05 Paul Koning <pkoning@equallogic.com>
3697 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3698 (parse_ac5): New function for parsing float regs in float operand.
3699 (parse_expression): Remove attempt to make literals be octal.
3700 (parse_op_no_deferred): Support float literals.
3701 (parse_op): Reject attempts to refer to float regs.
3702 (parse_fop): New function, like parse_op but for float operand.
3703 (md_assemble): Add cases to parse float operands. Also fix
3704 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3706 2002-03-04 H.J. Lu <hjl@gnu.org>
3708 * config/obj-elf.c (special_section): Add .init_array,
3709 .fini_array and .preinit_array.
3711 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3712 .init_array and .fini_array.
3714 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3716 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3718 (obj_frob_symbol): Copy visibility.
3720 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3722 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3724 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3726 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3728 * po/es.po: Updated.
3730 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3732 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3733 only, undo the changes made on 2001-06-08, with the
3734 effect being that common or extern symbols are
3735 adjusted for embedded-PIC, but weak symbols are not.
3736 (md_estimate_size_before_relax: Likewise, with the effect
3737 that extern symbols are treated the same as weak symbols
3738 only if not embedded-PIC.
3739 (mips_fix_adjustable) Likewise, with the effect that
3740 weak or extern symbols are not adjusted for embedded-PIC.
3741 (md_apply_fix3): Tweak so that the case where value is zero
3742 is handled more correctly for embedded-PIC code.
3744 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3746 * doc/as.texinfo (Overview): Add missing @ifset IA64
3748 * configure.in (LINGUAS): Add es.po.
3749 * configure: Regenerate.
3750 * po/es.po: New file.
3752 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3754 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3755 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3756 and NO_PIC cases. Code cleanup.
3757 (macro2): Fix handling of 64bit register loads.
3759 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3761 * doc/as.texinfo: Add entry for IA64.
3762 * doc/c-ia64.texi: New file.
3764 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3766 * config/tc-hppa.c: Update copyright date.
3768 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3769 Remove references to chip manufacturers.
3770 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3772 (md_show_usage): Remove references to chip manufacturers. Mention
3774 (md_begin): Test power4 opcode flag bits.
3776 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3778 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3779 count exceeds prologue count.
3780 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3781 (unwind.label_prologue_count): New member.
3783 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3785 (get_saved_prologue_count): New function.
3786 (save_prologue_count): New function.
3787 (free_saved_prologue_count): New function.
3788 (dot_label_state): Record state label by calling save_prologue_count().
3789 (dot_copy_state): Restore prologue count by calling
3790 get_saved_prologue_count().
3791 (generate_unwind_image): Free up list of saved prologue
3792 counts by calling free_saved_prologue_counts().
3794 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3796 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3797 function declarations.
3799 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3801 * NEWS: Note that GASP is now deprecated.
3802 * Makefile.am: Do not build gasp-new by default.
3803 * Makefile.in: Regenerate.
3804 * doc/Makefile.am: Do not install gasp.info.
3805 * doc/Makefile.in: Regenerate.
3806 * gas/gasp.texi: Note that gasp is now deprecated.
3808 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3810 * NEWS: Mark 2.12 branch.
3812 2002-02-19 Tom Tromey <tromey@redhat.com>
3814 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3816 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3818 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3821 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3823 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3824 Make bit size independent of architecture switch.
3825 (md_begin): Add warning for -m64 with -Aesa.
3826 (s390_md_end): Use renamed architecture defines.
3828 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3830 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3832 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3834 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3837 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3839 * config/tc-mips.c (md_estimate_size_before_relax): Really
3840 make sure we treat weak like extern only for ELF. (Fixes
3841 patch from 2001-07-25.)
3843 2002-02-15 Ben Elliston <bje@redhat.com>
3845 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3848 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3850 * NEWS: Mention support for MMIX.
3852 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3854 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3855 a sequence of indpendent 'if' statements for easier debugging
3856 and future modification.
3858 2002-02-13 Matt Fredette <fredette@netbsd.org>
3860 * config/tc-m68k.c (md_show_usage): No longer display a
3861 hard-coded "68020" for the default CPU, instead display the
3862 canonical name of the true, configured default CPU.
3863 (m68k_elf_final_processing): Mark objects for sub-68020
3864 CPUs with the new EF_M68000 flag.
3866 2002-02-13 Andreas Schwab <schwab@suse.de>
3868 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3869 pc-relative relocations to merge sections in 64-bit mode.
3871 2002-02-13 Ben Elliston <bje@redhat.com>
3873 * NEWS: Document floating point number handling in gasp.
3874 * gasp.c: Include <assert.h> and "xregex.h".
3875 (is_flonum): New function.
3876 (chew_flownum): Likewise.
3877 (change_base): Consume flonums from the input, where possible.
3878 * doc/gasp.texi (Constants): Document floating point numbers.
3880 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3882 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3883 that implicitly use LR and RR selectors.
3885 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3887 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3888 and `epsw' as available on AM33 and above only.
3889 (other_register_name): Add logic to handle machine type encoded in
3892 2002-02-11 Tom Rix <trix@redhat.com>
3894 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3897 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3899 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3902 2002-02-11 Jan Hubicka <jh@suse.cz>
3904 * i386.c (md_assemble): Support 32bit address prefix.
3905 (i386_displacement): Likewise.
3906 (i386_index_check): Accept 32bit addressing in 64bit mode.
3908 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3910 * config/tc-sh.c (dot): Removed unused function.
3912 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3914 * Makefile.am: "make dep-am".
3915 * Makefile.in: Regenerate.
3916 * aclocal.m4: Regenerate.
3917 * config.in: Regenerate.
3918 * configure: Regenerate.
3919 * doc/Makefile.in: Regenerate.
3921 2002-02-10 Richard Henderson <rth@redhat.com>
3923 * doc/c-alpha.texi: New file.
3924 * doc/Makefile.am (CPU_DOCS): Add it.
3925 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3927 2002-02-09 Richard Henderson <rth@redhat.com>
3929 * config/tc-alpha.c (O_samegp): New.
3930 (USER_RELOC_P): Include it.
3931 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3932 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3933 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3934 (alpha_validate_fix): New.
3935 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3937 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3939 * doc/c-cris.texi: New.
3940 * doc/all.texi: @set CRIS.
3941 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3942 Include c-cris.texi.
3943 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3944 * doc/Makefile.in: Regenerate.
3946 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3948 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3949 determine if a number is a sign-extended 32-bit number.
3950 (load_register): Use IS_SEXT_32BIT_NUM.
3951 (macro): Check if load/store macro handling is using a
3952 constant 32-bit address on 64-bit address systems, and if
3953 so optimize the generation of that address.
3955 2002-02-08 Richard Henderson <rth@redhat.com>
3957 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3958 we've eliminated all foreign relocation types yet.
3959 (alpha_fix_adjustable): Likewise.
3961 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3963 Contribute sh64-elf.
3964 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3965 Stephen Clarke <Stephen.Clarke@st.com>
3966 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3967 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3968 * config/tc-sh.c (md_relax_table): Added default sizes for
3969 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3970 MOVI_16, MOVI_32 and MOVI_48.
3971 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3972 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3974 (shmedia_md_estimate_size_before_relax): Remove redundant
3975 blocks. Set fragP->fr_var even if relaxation type unchanged.
3976 Retain UNDEF_MOVI until expression decays to number.
3977 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3978 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3979 relocation types. Take fixP->fx_addnumber into account too.
3980 (shmedia_md_apply_fix): Likewise.
3981 (shmedia_md_convert_frag): Likewise.
3982 (shmedia_build_Mytes): Likewise.
3983 (sh64_consume_datalabel): Complain about nested datalabel.
3984 Support PIC relocs. Call sh_parse_name.
3985 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3986 in tc-sh.h to SHmedia reloc types.
3987 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3988 MOVI_GOTPC): New relaxation constants.
3989 (md_relax_table): Introduce relaxation directives for PIC-related
3991 (sh_PIC_related_p): Handle datalabel.
3992 (sh_check_fixup): Choose SH5 PIC relocations.
3993 (sh_cons_fix_new): Added BDF_RELOC_64.
3994 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3995 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3996 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3997 current ISA is SHmedia, get 7 bytes.
3998 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3999 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4001 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4002 shmedia_apply_fix3 and make void.
4003 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4004 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4006 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4007 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4008 2001-03-14 DJ Delorie <dj@redhat.com>
4009 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4010 * doc/Makefile.in(CPU_DOCS): Ditto.
4011 * doc/c-sh64.texi: New file.
4012 * doc/as.texinfo: Add SH64 support.
4013 2001-03-13 DJ Delorie <dj@redhat.com>
4014 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4015 A_REUSE_PREV so that its purpose is more obvious.
4016 (shmedia_build_Mytes): Ditto.
4017 2001-03-07 DJ Delorie <dj@redhat.com>
4018 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4020 (sh64_vtable_inherit): Ditto.
4021 (strip_datalabels): New, strip "datalabel" from given line.
4022 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4024 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4025 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4027 (shmedia_build_Mytes): ... to here.
4028 2001-03-06 DJ Delorie <dj@redhat.com>
4029 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4031 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4032 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4033 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4034 address by one in call to dwarf2_emit_insn.
4035 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4036 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4037 alignment handling broken by imported changes.
4038 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4039 (sh64_handle_align): Declare.
4040 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4041 (sh64_max_mem_for_rs_align_code): Declare.
4042 (enum sh64_isa_values): Moved here from tc-sh64.c.
4043 (md_do_align): Define.
4044 (sh64_do_align): Declare.
4045 (struct sh64_tc_frag_data): New.
4046 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4048 (TC_FRAG_INIT): Change to set new datatype.
4049 (struct sh64_segment_info_type): Rename member
4050 last_flushed_location to last_contents_mark. All users changed.
4051 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4052 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4053 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4054 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4055 of unsetting seen_insn.
4056 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4057 call sh64_update_contents_mark.
4058 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4059 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4060 enum sh64_isa_values.
4061 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4062 (emitting_crange): Boolean guard moved to file scope from function
4063 scope in sh64_set_contents_type.
4065 (sh64_update_contents_mark): New; most split out from
4066 sh64_flush_pending_output.
4067 (shmedia_md_end): Call sh64_update_contents_mark. Set
4068 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4069 (sh64_do_align): New function.
4070 (sh64_max_mem_for_rs_align_code): New function.
4071 (sh64_handle_align): Rename from shmedia_do_align. Make
4072 non-static. Add head comment. Emit zero bytes for n bytes modulo
4073 four. Change return-type to void.
4074 (shmedia_elf_new_section): Remove.
4075 (shmedia_md_assemble): Call sh64_update_contents_mark.
4076 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4077 new frag. Call sh64_update_contents_mark after making the new
4079 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4080 and sh_flush_pending_output.
4081 (sh64_flag_output): Also call md_flush_pending_output, but add
4082 condition on not emitting_crange.
4083 (sh64_tc_cons_fix_new): Remove.
4084 2001-01-12 Nick Clifton <nickc@redhat.com>
4085 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4086 alignment handling scheme imported from sourceware.
4087 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4088 * config/tc-sh64.h (TARGET_FORMAT): Define.
4089 (sh64_target_format): Prototype.
4090 * config/tc-sh64.c (sh64_target_mach): New function.
4091 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4092 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4093 zero_address_frag instead of copying the frag of the symbol.
4094 (shmedia_frob_file_before_adjust): Ditto.
4095 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4096 to valueT to remove signedness.
4097 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4098 headers to output_bfd. Do not evaluate symbols if final is false;
4100 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4101 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4102 to the current frag, call shmedia_md_convert_frag to emit fixups
4103 and make frag_wane neutralize the frag. Update comments.
4104 * config/tc-sh.c (md_convert_frag): Change caller of
4105 shmedia_md_convert_frag.
4106 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4107 * config/tc-sh64.h: Tweak comments and correct formatting.
4108 * config/tc-sh64.c: Ditto.
4109 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4110 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4111 for the no-relocation case.
4112 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4113 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4115 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4117 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4118 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4120 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4122 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4123 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4124 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4125 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4126 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4127 if reloc is emitted.
4128 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4129 New options plus bugfixes.
4130 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4132 (md_parse_option): Handle new options.
4133 (md_show_usage): Add blurb for new options.
4134 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4135 (sh64_expand, sh64_pt32): New variables.
4136 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4137 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4138 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4139 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4140 <resolved previously-pc-relative relocs>: Handle
4141 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4142 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4143 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4144 points to SHcompact code.
4145 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4146 SH64PCREL16)>: Check that ISA of what operand points at and
4147 PTA/PTB matches, or emit error.
4148 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4149 SHMEDIA_BFD_RELOC_PT.
4150 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4152 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4153 condition for MOVI expansion.
4154 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4155 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4157 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4159 (sh64_target_format): Error-check setting of sh64_pt32 and
4160 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4161 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4162 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4163 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4164 * config/tc-sh64.c: Improve comments.
4165 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4166 not say the linker will check correctness of PTA/PTB expansion.
4167 (shmedia_md_end): Make non-static.
4168 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4170 * config/tc-sh.c (sh_finalize): Remove.
4171 * config/tc-sh.h (md_end): Do not define.
4172 Remove prototype for sh_finalize.
4173 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4174 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4175 sh64_section_data container when storing section type in tdata
4176 field in elf_section_data.
4177 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4179 * Makefile.am: Update dependencies.
4180 * Makefile.in: Regenerate.
4181 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4182 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4183 dwarf2_emit_insn call with test on debug_type.
4184 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4185 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4186 CRT_SH5_ISA32 sticky for 64-bit.
4187 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4188 Generate .crange sections when switching ISA mode or emitting
4189 constants in same section as code.
4190 * config/tc-sh64.c: Reformat structure definitions.
4191 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4193 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4194 to emit a .cranges descriptor when contents type changes. Only
4195 emit error if changing contents type and -no-mix is in effect.
4196 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4197 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4198 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4199 sh64_flush_last_crange over sections.
4200 When checking main symbol of datalabel symbol, check for
4201 STO_SH5_ISA32, not ISA type of section in definition.
4202 (shmedia_frob_file_before_adjust): Check main symbol for
4203 STO_SH5_ISA32; don't check ISA type of section in definition.
4204 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4205 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4206 .cranges entries have been output.
4207 (shmedia_elf_new_section): Just call md_flush_pending_output.
4208 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4209 fix. Do not set tc_segment_info_data.in_code for section. Call
4210 sh64_set_contents_type for SHmedia code.
4211 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4212 false. Call md_flush_pending_output.
4213 (sh64_target_format): Check that -no-mix and
4214 -shcompact-const-crange are used in sane combination with other
4216 (shmedia_md_pcrel_from_section): Check type of fix for how to
4218 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4219 not ISA type of section in definition.
4220 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4221 hold contents-type state.
4222 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4223 (sh64_flush_pending_output): Declare.
4224 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4225 (sh64_tc_cons_fix_new): Declare.
4226 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4227 call sh64_flag_output.
4228 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4229 call sh64_set_contents_type to mark SHcompact code and set
4231 (md_longopts): New options "-no-mix" and
4232 "-shcompact-const-crange".
4233 (md_parse_option): Handle new options.
4234 (md_show_usage): Add blurb for new options.
4235 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4236 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4237 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4238 (sh64_last_insn_frag): New.
4239 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4240 to get frag for insn opcode for generating fixups; do not assume it
4242 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4244 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4246 (TC_FRAG_TYPE): Define as fragS *.
4247 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4248 (sh64_last_insn_frag): Declare.
4249 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4250 not == NULL before dereferencing.
4251 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4252 Get rid of BFD section flag and EF_SH64_ABI64.
4253 * config/tc-sh64.c (shmedia_frob_section_type): Use
4254 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4255 communicate the section as containing SHmedia code. Describe why.
4256 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4257 EF_SH64 regardless of ABI.
4258 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4259 in error message. Handle resolved expressions for
4260 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4261 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4262 (shmedia_check_limits): Handle BFD_RELOC_64.
4263 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4264 a STO_SH5_ISA32 symbol, only the BFD value.
4265 2000-12-11 Ben Elliston <bje@redhat.com>
4266 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4267 dwarf2_generate_asm_lineno.
4268 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4269 Handle PC-relative MOVI expansions with assembler relaxation.
4270 Generate PC-relative relocs from 16-bit PC-relative expressions.
4271 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4272 (shmedia_md_pcrel_from_section): ...here.
4273 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4274 turned completely resolved. Adjust relocation type for 16-bit
4275 immediate operands that has turned PC-relative. Adjust back for
4276 MD_PCREL_FROM_SECTION being applied twice.
4277 (shmedia_md_convert_frag): Always emit reloc for expression with
4278 global or weak symbol. Handle relaxation result for PC-relative
4280 (shmedia_md_estimate_size_before_relax): An expression with a weak
4281 or global symbol can not be relaxed. Break out tests for
4282 relaxable symbol into variable sym_relaxable.
4283 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4284 UNDEF_MOVI)>: Break out any PC-relative expression and change
4286 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4288 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4289 MOVI expansion. If X_op_symbol of the immediate expression is
4290 set, make an expression symbol for the argument to frag_var.
4291 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4293 (END): Adjust for new relaxations.
4294 (md_relax_table): Add entries for new relaxations.
4295 2000-12-07 Ben Elliston <bje@redhat.com>
4296 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4297 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4298 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4299 SHORI operand offsets in PT/PTA/PTB expansions.
4300 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4301 Implement DataLabel semantics.
4302 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4303 shmedia_frob_file_before_adjust.
4304 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4305 (DATALABEL_SUFFIX): Define.
4306 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4307 symbol list to update "datalabel" symbols to their main symbol
4309 (shmedia_frob_file_before_adjust): New.
4310 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4311 undefined and set STT_DATALABEL.
4312 (sh64_frob_label): Initialize TC symbol field.
4313 (sh64_consume_datalabel): Actually implement semantics. New
4314 parameter operandf, call it instead of expression.
4315 (sh64_exclude_symbol): New.
4316 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4317 to sh64_consume_datalabel.
4318 (tc_symbol_new_hook): Define to tc_frob_symbol.
4319 (TC_SYMFIELD_TYPE): Define to symbolS *.
4320 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4321 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4322 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4324 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4325 generating dwarf2 debug information.
4326 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4327 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4328 elf64-sh64 for the 64-bit ABI.
4329 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4331 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4332 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4334 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4335 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4336 (enum sh64_abi_values): New type.
4337 (enum sh64_isa_values): New type.
4338 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4339 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4340 (sh64_abi): Replace shmedia_64.
4341 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4342 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4343 (s_sh64_mode): Check validity for this target.
4344 (sh64_target_format): Initialize defaults for ISA and ABI.
4345 Fallback to old object format if no SH64 ISA or ABI has been
4347 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4348 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4349 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4350 * config/tc-sh64.h: Fix typo in comment.
4351 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4352 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4353 <PT fixups for absolute values>: Size will be longest, not
4355 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4356 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4357 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4358 and l1 to hold lowercase of two first characters. Change all
4359 remaining TO_LOWER to tolower.
4360 * config/tc-sh64.c (TO_LOWER): Delete.
4361 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4362 (md_parse_name): Define.
4363 (sh64_consume_datalabel): Declare.
4364 (DOLLAR_DOT): Define.
4365 * config/tc-sh64.c (shmedia_parse_exp): New.
4366 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4367 (shmedia_parse_reg): Remove const from src
4369 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4370 (shmedia_md_assemble): Ditto for op_end variable.
4371 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4372 Use shmedia_parse_exp, not parse_exp.
4373 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4374 parameter. All callers changed.
4375 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4377 (shmedia_parse_reg): Put first two character in local variables.
4378 Use tolower, not TO_LOWER. If no register is found and argtype
4379 indicates a control register, scan shmedia_creg_table
4381 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4382 * Makefile.am (CPU_TYPES): Add sh64.
4383 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4384 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4385 Regenerate dependencies.
4386 * Makefile.in: Regenerate.
4387 * configure.in: Add support for sh64-*-elf*.
4388 * configure: Regenerate.
4389 * config/tc-sh64.h: New.
4390 * config/tc-sh64.c: New.
4391 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4392 .mode, .isa and .uaquad.
4393 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4394 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4395 [HAVE_SH64] (END): Define as 10.
4396 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4397 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4399 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4400 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4401 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4402 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4404 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4405 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4406 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4407 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4408 SHmedia instructions. Handle state-change after switching to
4410 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4411 (md_parse_option) [HAVE_SH64]: Parse new options.
4412 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4413 (md_convert_frag) [HAVE_SH64] <default>: Call
4414 shmedia_md_convert_frag instead of abort.
4415 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4416 BFD_RELOC_SH_SHMEDIA_CODE.
4417 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4418 SHcompact or SHmedia code.
4419 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4420 shmedia_md_apply_fix instead of abort.
4421 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4422 result from calling shmedia_md_estimate_size_before_relax instead
4424 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4426 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4427 shmedia_init_reloc and do nothing more if it returns non-zero.
4428 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4429 * po/POTFILES.in: Regenerate.
4430 * po/gas.pot: Regenerate.
4432 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4434 * config/tc-sh.c (parse_at): Install the correct version of
4437 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4438 assume fixP->fx_subsy is non-NULL.
4440 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4442 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4443 A_DISP_PC_ABS, and adjust it by -4.
4444 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4446 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4447 the operand type is not A_DISP_PC_ABS.
4449 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4451 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4452 common and weak symbols. Handle common and weak symbols as
4453 undefined symbols with regards to GREG handling and merging.
4454 (mmix_frob_file): Ditto.
4456 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4458 * configure.in (hppa-*-netbsd*): New target.
4459 * configure: Regenerate.
4460 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4462 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4464 * config/tc-v850.c: Add missing prototypes amd use old-style
4465 function definitions.
4466 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4467 (sdata_section tdata_section, zdata_section, sbss_section,
4468 tbss_section, zbss_section, rosdata_section, rozdata_section,
4469 scommon_section, tcommon_section, zcommon_section,
4470 call_table_data_section, call_table_text_section): Delete.
4471 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4472 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4473 v850_call_table_data, v850_call_table_text): Delete.
4474 (struct v850_seg_entry): New.
4475 (v850_seg_table): New.
4476 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4477 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4478 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4479 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4482 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4483 recording of alignment.
4484 (md_pseudo_table): Use v850_seg.
4485 (md_begin): Don't init .call_table_data and .call_table_text here.
4486 Set v850_seg_table bss entry.
4488 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4490 Support on-demand global register allocation by passing on
4491 base-plus-offset relocs to the linker.
4492 * config/tc-mmix.c: Tweak and fix typos in comments.
4493 (allocate_undefined_gregs_in_linker): New variable.
4494 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4495 (md_longopts): Add --linker-allocated-gregs.
4496 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4497 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4498 (md_show_usage): Update text for -x. Add text for
4499 --linker-allocated-gregs.
4500 (tc_gen_reloc): Derive default value for addend from val and
4501 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4502 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4503 GREG if allocate_undefined_gregs_in_linker.
4504 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4505 --linker-allocated-gregs.
4506 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4507 --linker-allocated-gregs. Mention that it's implied by -x.
4508 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4509 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4511 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4513 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4515 * Makefile.am: Run "make dep-am"
4516 * Makefile.in: Regenerate.
4518 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4520 * config/tc-or32.c: New file.
4521 * config/tc-or32.h: New file.
4522 * configure.in: Add support for or32 targets.
4523 * configure: Regenerate.
4524 * config/obj-coff.c: Add support for or32 targets.
4525 * config/obj-coff.h: Add support for or32 targets.
4526 * Makefile.am: Add support for or32 targets.
4527 * Makefile.in: Regenerate.
4528 * NEWS: Mention support for OpenRISC.
4529 * doc/Makefile.in: Regenerate.
4530 * po/POTFILES.in: Regenerate.
4531 * po/gas.pot: Regenerate.
4533 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4535 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4538 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4540 * config/tc-mips.c (tc_gen_reloc): Arrange for
4541 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4542 their LO16 parts, even for ELF.
4544 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4546 * config/tc-i386.c: Protect definitions of true and false
4549 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4551 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4552 made because of .weak, if they are neither defined nor used in any
4555 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4557 * configure: Regenerated.
4559 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4561 * doc/Makefile.am (install): Depend on install-info.
4562 * doc/Makefile.in: Regenerate.
4564 2002-01-26 Nick Clifton <nick@redhat.com>
4566 * po/fr.po: Updated version
4568 2002-01-24 Kazu Hirata <kazu@hxi.com>
4570 * config/tc-h8300.c (check_operand): Don't print a warning
4571 when a valid 24-bit address is given to a 16-bit address
4574 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4576 * config/tc-sh.c (sh_elf_suffix): Removed.
4577 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4578 sh_end_of_match, sh_parse_name): New functions.
4579 (sh_elf_cons): Simplify.
4580 (parse_exp): Reject misplaced PIC operands.
4581 (md_undefined_symbol): Simplify.
4582 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4583 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4584 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4585 Complain if subsy remains at the end.
4586 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4587 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4589 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4591 * config/tc-mn10300.c (xr_registers): Move `pc'...
4592 (other_registers): ... here.
4594 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4596 * Makefile.am: Run "make dep-am".
4597 * Makefile.in: Regenerate.
4598 * gas/po/POTFILES.in: Regenerate.
4600 2002-01-21 DJ Delorie <dj@redhat.com>
4602 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4603 stabstr_name allocation permanent, as it will be referenced from
4606 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4608 * configure.in (ia64-*-netbsd*): New target.
4609 * configure: Regenerate.
4611 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4613 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4615 <Detailed description, ARM options>: Ditto.
4616 * doc/c-arm.texi (ARM Options): Ditto.
4618 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4620 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4621 do_mia, do_mar and do_mra respectively.
4622 (do_mav_*): Renamed from do_c_*.
4623 (mav_reg_required_here, mav_parse_offset): Renamed from
4624 cirrus_reg_required_here and cirrus_parse_offset respectively.
4625 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4627 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4628 Keith Walker <keith.walker@arm.com>
4630 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4631 (insns): Add pattern for bxj instruction.
4632 (do_bxj): New function.
4633 (arm_cpus): Add arm926ej.
4634 (arm_archs): Add armv5tej.
4636 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4638 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4640 2002-01-19 Keith Walker <keith.walker@arm.com>
4642 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4644 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4646 * NEWS: Mention new ARM command-line options and VFP support.
4648 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4650 (ARM_CEXT_MAVERICK): Similarly.
4651 (ARM_ANY): Now means any core instruction.
4652 (CPU_DEFAULT): Default to ARM_ANY.
4653 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4654 (pic_code): Declare for all object types. Make type int.
4655 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4656 (march_fpu_opt, mfpu_opt): Declare.
4657 (md_longopts): Tidy up conditional definitions.
4658 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4659 (arm_long_opts): New tables.
4660 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4661 (arm_parse_extension): New function.
4662 (md_parse_option): Rewrite using new table-driven system.
4663 (md_show_usage): Use new table-driven system.
4664 (md_begin): Calculate cpu_variant from command line option data.
4665 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4666 command-line options.
4667 * doc/c-arm.texi: Likewise.
4669 2002-01-18 Andreas Jaeger <aj@suse.de>
4671 * as.c (parse_args): Update year.
4673 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4675 * config/tc-tic54x.c (encode_address): Add a more informative
4676 warning about incorrect syntax.
4678 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4680 * po/gas.pot: Regenerate.
4682 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4684 * macro.c (get_any_string): Add no-c-format comment to prevent
4685 confusion when translating string.
4686 * gasp.c (get_any_string): Add no-c-format comment to prevent
4687 confusion when translating string.
4689 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4690 Johannes Stezenbach <js@convergence.de>
4691 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4692 matched before the shorter ones.
4693 (my_getSmallParser): Fix handling of nested parentheses in
4694 percent_op's. Code cleanup.
4695 (my_getPercentOp): New function, code from my_getSmallParser.
4696 (my_getSmallExpression): Fix handling of closing parentheses.
4697 Code cleanup. Better comments.
4699 2002-01-16 Nick Clifton <nickc@redhat.com>
4701 po/tr.po: New file: Turkish translation.
4702 configure.in (LINGUAS): Add "tr".
4703 configure: Regenerate.
4705 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4707 Support for VFP instructions
4708 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4709 (cp_address_required_here): New argument wb_ok. When false, do not
4710 accept write-back forms of addressing. Change all callers.
4711 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4712 (FPU_VFP_EXT_V2): Define.
4713 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4714 Define in terms of above.
4715 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4716 (vfp_reg): New struct.
4717 (vfp_regs): New array of registers.
4718 (insns): Add VFP instructions.
4719 (sn_table): New array of VFP single-precision register names.
4720 (dn_table): New array of VFP double-precision register names.
4721 (all_reg_maps): Add the new register tables.
4722 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4723 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4724 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4725 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4726 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4727 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4728 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4729 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4730 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4731 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4732 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4733 (do_vfp_sp_dp_cvt): New functions.
4734 (md_begin): Set soft-float flag for appropriate VFP work.
4735 (md_atof): Handle VFP-format doubles.
4736 (md_parse_option): Handle VFP command-line options.
4737 (md_show_usage): Display VFP command-line options.
4739 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4741 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4742 various command line options.
4744 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4746 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4748 (xstormy16_md_apply_fix3): Do not return a value.
4750 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4752 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4753 the -EL/-EB option that matches the target's endianness.
4754 (md_parse_option): Likewise.
4756 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4758 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4759 is not dependent on ARM_BI_ENDIAN.
4761 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4763 * tc-arm.c (all error messages): Normalize capitalization of messages.
4765 * tc-arm.h (md_operand): Delete define.
4766 * tc-arm.c (in_my_get_expression): New static variable.
4767 (my_get_expression): Set and clear it.
4768 (md_operand): New function. If called from my_get_expression
4769 put the error in inst.error.
4770 (output_inst): Now takes argument of instruction being assembled.
4771 Print it out with any error message.
4772 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4774 (end_of_line): Don't update inst.error if it is already set.
4776 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4778 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4779 op that can be translated into a mvn instruction.
4781 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4783 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4784 setting default md.flags.
4785 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4786 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4787 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4788 for 32 bit unwind info blocks.
4789 (generate_unwind_image): Add support for different types
4790 of unwind images (32 bits and/or big-endian).
4791 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4792 (ia64_target_format): Add support for hpux target formats.
4793 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4794 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4795 SHT_FINI_ARRAY elf section types.
4797 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4799 * tc-arm.c (struct reg_entry): Move before prototypes.
4800 (int_register, cp_register, fp_register): Delete.
4801 (reg_table): Delete. Replaced with ...
4802 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4803 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4804 (mav_dspsc_table): ... one table per register set.
4805 (arm_reg_hsh): Delete.
4806 (struct reg_map): New structure.
4807 (all_reg_maps): New array.
4808 (enum arm_reg_type): New enums.
4809 (build_reg_hsh): New function.
4810 (insert_reg_alias): Use hash table passed by caller. Adjust all
4812 (create_register_alias): New function, split out from ...
4813 (md_assemble): ... here.
4814 (md_begin): Build new register hash tables.
4815 (arm_reg_parse): New argument for the hash table to search. Adjust all
4817 (arm_reg_parse_any): New function.
4818 (co_proc_number): Look up the processor number in the processor hash
4820 (cirrus_regtype): Delete.
4821 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4822 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4823 (ARM_EXT_MAVERICKsc_register): Delete.
4824 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4825 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4827 (do_c_triple_4, do_c_triple_5): Delete.
4828 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4829 (do_c_quad_6): Delete.
4830 (do_c_quad_6[ab]): New functions.
4831 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4832 arguments to use new register parsing methods.
4833 (cirrus_reg_required_here): Likewise.
4834 (insns): Reclassify cirrus maverick worker functions.
4835 (cirrus_valid_reg): Delete.
4837 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4839 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4840 (sh*-*-netbsdelf*): New target.
4841 * configure: Regenerate.
4842 * tc-sh.h: Update copyright years.
4843 (TARGET_FORMAT): Add version for TE_NetBSD.
4845 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4847 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4850 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4852 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4853 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4855 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4857 * tc-mips.c (mips_cprestore_valid): New flag.
4858 (mips_frame_reg_valid): New flag.
4859 (macro) [M_JAL_2]: Check both flags.
4860 [M_JAL_A]: Likewise.
4861 (s_cprestore): Set mips_cprestore_valid.
4862 (tc_get_register): If setting mips_frame_reg, set
4863 mips_frame_reg_valid and clear mips_cprestore_valid.
4864 (s_mips_ent): Clear both flags.
4865 (s_mips_end): Clear both flags.
4867 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4869 * write.c (write_object_file): Make use of bfd_section_list_remove.
4870 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4871 * config/tc-mmix.c (mmix_frob_file): Likewise.
4873 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4875 * configure.in (i386-*-netbsdelf*): Collapse target into...
4876 (i386-*-netbsd*): ...this. Add support for x86-64.
4877 * configure: Regenerated.
4879 2002-01-03 matthew green <mrg@redhat.com>
4881 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4883 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4885 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4888 For older changes see ChangeLog-0001
4894 version-control: never