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