1 2003-01-28 Jakub Jelinek <jakub@redhat.com>
3 * dwarf2dbg.c: Include filenames.h.
4 (struct file_entry): Make filename const char *.
5 (dirs, dirs_in_use, dirs_allocated): New variables.
6 (get_filenum): Add NUM argument. Build directory table.
7 (dwarf2_where): Adjust caller.
8 (dwarf2_directive_file): Use get_filenum to allocate
9 slot in file and directory tables.
10 (dwarf2_directive_loc): Recreate full filename from
11 directory and filename part if needed for listing.
12 (out_file_list): Output directory table.
13 Output main source file dirname before its filename.
15 2003-01-28 Dmitry Diky <diwil@mail.ru>
17 * config/tc-msp430.c: Replace occurences of 'tolower' with
20 2003-01-27 David Mosberger <davidm@hpl.hp.com>
22 * config/tc-ia64.c (dot_vframesp): Correct error message.
23 (dot_vframepsp): Ditto.
25 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
27 * configure.in (em): Set to irix on all Irix systems.
29 * config/te-irix.h: New file.
30 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
31 whether to use Irix-specific 64-bit format.
33 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
35 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
37 2003-01-25 Jakub Jelinek <jakub@redhat.com>
39 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
40 (tc_gen_reloc): Handle TLS relocs.
41 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
42 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
44 * config/obj-elf.c (obj_elf_section_word): Handle tls.
45 (obj_elf_type): Handle tls_object.
47 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
49 * config/tc-s390.c (s390_tls_suffix): New function.
50 (elf_suffix_type): Add suffix enums for TLS relocations.
51 (s390_elf_suffix): Add suffix strings for TLS relocations.
52 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
54 (md_gather_operands): Map new instruction operand/elf suffix
55 combinations for TLS to bfd relocations.
56 (tc_s390_fix_adjustable): Add new TLS relocations.
57 (tc_s390_force_relocation): Likewise.
58 (md_apply_fix3): Likewise.
60 2003-01-24 Alan Modra <amodra@bigpond.net.au>
62 * as.h: Update copyright date.
63 * symbols.c: Likewise.
64 * config/tc-d10v.h: Likewise.
65 * config/tc-fr30.h: Likewise.
66 * config/tc-i960.h: Likewise.
67 * config/tc-mips.h: Likewise.
69 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
70 (MD_APPLY_SYM_VALUE): Move.
72 2003-01-23 Nick Clifton <nickc@redhat.com>
74 NEWS: Announce sh2e support.
78 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
80 * config/tc-sh.c (md_show_usage): Added sh2e next to
82 (sh_elf_final_processing): Handle arch_sh2e.
84 2003-01-23 Alan Modra <amodra@bigpond.net.au>
86 * symbols.c (S_FORCE_RELOC): Add "strict" param.
87 * symbols.h (S_FORCE_RELOC): Likewise.
88 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
89 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
90 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
91 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
92 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
93 * write.c (generic_force_reloc): New function.
94 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
95 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
96 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
97 * as.h (generic_force_reloc): Declare.
98 * doc/internals.texi (S_FORCE_RELOC): Update.
99 (TC_FORCE_RELOCATION_SUB_SAME): Update.
101 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
103 (alpha_fix_adjustable): Likewise.
104 * config/tc-arm.c (arm_force_relocation): Likewise.
105 * config/tc-cris.c (md_cris_force_relocation): Likewise.
106 * config/tc-frv.c (frv_force_relocation): Likewise.
107 * config/tc-i386.c (md_apply_fix3): Likewise.
108 * config/tc-ia64.c (ia64_force_relocation): Likewise.
109 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
110 * config/tc-m32r.c (m32r_force_relocation): Likewise.
111 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
112 * config/tc-mcore.c (mcore_force_relocation): Likewise.
113 * config/tc-mips.c (mips_force_relocation): Likewise.
114 * config/tc-mmix.c (mmix_force_relocation): Likewise.
115 * config/tc-ppc.c (ppc_force_relocation): Likewise.
116 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
117 * config/tc-sh.c (sh_force_relocation): Likewise.
118 (md_pcrel_from_section): Likewise.
119 * config/tc-sparc.c (tc_gen_reloc): Likewise.
120 * config/tc-v850.c (v850_force_relocation): Likewise.
121 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
122 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
123 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
124 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
126 * config/tc-d10v.c (d10v_force_relocation): Delete.
127 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
128 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
129 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
130 * config/tc-fr30.c (fr30_force_relocation): Delete.
131 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
132 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
133 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
134 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
135 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
136 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
137 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
138 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
139 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
140 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
141 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
142 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
143 * config/tc-i386.c (i386_force_relocation): Delete.
144 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
146 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
147 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
148 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
149 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
151 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
152 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
154 2003-01-23 Alan Modra <amodra@bigpond.net.au>
156 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
157 sh64_elf_section_data.
158 * config/tc-sh64.h: Include elf32-sh64.h.
159 * config/tc-m68hc11.c: Don't include stdio.h.
160 (md_show_usage): Fix missing continuation.
161 * Makefile.am: Run "make dep-am".
162 * Makefile.in: Regenerate.
164 2003-01-22 Nick Clifton <nickc@redhat.com>
166 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
168 2003-01-21 Fabio Alemagna <falemagn@aros.org>
170 * configure.in: Handle *-*-aros*.
171 * configure: Regenerated from configure.in.
173 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
175 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
176 gotplt and pltoff relocations.
177 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
178 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
179 gotplt and pltoff to bfd relocations.
180 (md_gather_operands): Map new instruction operand/elf suffix
181 combinations to bfd relocations.
182 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
183 to the list of unadjustable relocations.
184 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
185 and pltoff relocations.
186 (md_apply_fix3): Add the new relocations.
188 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
190 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
193 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
195 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
196 of relocs for memory bank addressing.
198 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
200 * config/tc-m68hc11.c (md_show_usage): Update usage.
201 (md_parse_option): Recognize -m68hcs12.
202 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
204 * doc/as.texinfo (Overview): Document new option -m68hcs12.
206 2003-01-16 Jakub Jelinek <jakub@redhat.com>
208 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
210 2003-01-16 Alan Modra <amodra@bigpond.net.au>
212 * Makefile.am: Run "make dep-am".
213 * Makefile.in: Regenerate.
214 * po/POTFILES.in: Regenerate.
216 2003-01-11 Alan Modra <amodra@bigpond.net.au>
218 * read.c (get_absolute_expr): New, split out from..
219 (get_absolute_expression): ..here.
220 * read.h (get_absolute_expr): Declare.
221 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
222 Trim size to arch bits_per_address, and test for negative input
223 via get_absolute_expr.
225 2003-01-07 DJ Delorie <dj@redhat.com>
227 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
229 (xstormy16_md_apply_fix3): Use adjustment.
231 2003-01-02 Ben Elliston <bje@redhat.com>
233 * configure.in: Add iq2000-elf target.
234 * configure: Regenerate.
235 * config/tc-iq2000.c: New file.
236 * config/tc-iq2000.h: Likewise.
237 * po/gas.pot: Regenerate.
239 2003-01-02 Chris Demetriou <cgd@broadcom.com>
241 * config/tc-mips.c: Update copyright years to include 2003.
242 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
243 Additionally, clean up their code slightly and clean up their
246 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
248 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
250 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
252 * doc/Makefile.in: Regenerate.
254 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
256 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
257 of .init and .fini sections for array initializers and finalizers.
259 2002-12-31 Chris Demetriou <cgd@broadcom.com>
261 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
262 the "+D" operand, which will be used only by the disassembler.
264 2002-12-30 Chris Demetriou <cgd@broadcom.com>
266 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
268 * configure: Regenerate.
269 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
270 (macro_build): Handle "K" operand.
271 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
272 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
273 (mips_ip): New variable "lastpos", and implement "+A", "+B",
274 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
275 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
276 (validate_mips_insn): Implement "+" as a way to extend the
277 allowed operands, and implement "K", "+A", "+B", and "+C"
279 (OPTION_MIPS32R2): New define.
280 (md_longopts): Add entry for OPTION_MIPS32R2.
281 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
282 (md_parse_option): Handle OPTION_MIPS32R2.
283 (s_mipsset): Reimplement handling of ".set mipsN" options
284 and add support for ".set mips32r2".
285 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
286 (md_show_usage): Document "-mips32r2" option.
287 * doc/as.texinfo: Document "-mips32r2" option.
288 * doc/c-mips.texi: Likewise.
290 2002-12-30 Dmitry Diky <diwil@mail.ru>
292 * configure.in: Add msp430 target.
293 * configure: Regenerate.
294 * Makefile.am: Add msp430 target.
295 * Makefile.in: Regenerate.
296 * config/tc-msp430.c: New file: msp430 assembler.
297 * config/tc-msp430.h: New file: target macros for msp430.
298 * doc/Makefile.am: Add msp430 target.
299 * doc/Makefile.in: Regenerate.
300 * doc/as.texinfo: Include msp430 documenation.
301 * doc/all.texi: Enable msp430 documentation.
302 * doc/c-msp430.texi: New file: document msp430 specific features
305 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
307 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
308 (dwarf2_finish): Use it.
309 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
310 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
312 2002-12-20 DJ Delorie <dj@redhat.com>
314 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
315 BFD_RELOC_XSTORMY16_12.
317 2002-12-19 Alan Modra <amodra@bigpond.net.au>
319 * doc/as.texinfo (Invoking): Typo fix.
320 * config/tc-tic54x.c (encode_operand): Comment typo fix.
322 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
324 * doc/c-alpha.texi: Fix typos.
325 * doc/c-arm.texi: Likewise.
326 * doc/c-d10v.texi: Likewise.
327 * doc/c-i370.texi: Likewise.
328 * doc/c-i960.texi: Likewise.
329 * doc/c-ia64.texi: Likewise.
330 * doc/c-mmix.texi: Likewise.
331 * doc/c-ns32k.texi: Likewise.
332 * doc/c-pdp11.texi: Likewise.
333 * doc/c-pj.texi: Likewise.
334 * doc/c-sh64.texi: Likewise.
335 * doc/c-sparc.texi: Likewise.
336 * doc/c-tic54x.texi: Likewise.
337 * doc/c-v850.texi: Likewise.
338 * doc/c-vax.texi: Likewise.
339 * doc/internals.texi: Likewise.
341 2002-12-18 Chris Demetriou <cgd@broadcom.com>
343 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
344 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
345 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
346 arrange not to issue warnings about use of AT when AT is not
349 2002-12-17 Nick Clifton <nickc@redhat.com>
351 * as.c (std_longopts): Duplicate --keep-locals entry in order to
352 prevent it being confused with -k.
354 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
356 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
357 has already been set up, use it.
359 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
361 * ChangeLog-9295: Fix a typo.
363 * config/tc-d10v.c: Fix a comment typo.
364 * config/tc-dlx.c: Likewise.
365 * config/tc-h8300.h: Likewise.
366 * config/tc-h8500.h: Likewise.
367 * config/tc-mips.c: Likewise.
368 * config/tc-s390.c: Likewise.
369 * config/tc-sh.h: Likewise.
370 * config/tc-tic80.h: Likewise.
371 * config/tc-w65.h: Likewise.
372 * config/tc-z8k.c: Likewise.
373 * config/tc-z8k.h: Likewise.
374 * testsuite/gas/h8300/cmpsi2.s: Likewise.
376 2002-12-16 Alan Modra <amodra@bigpond.net.au>
378 * config/tc-d30v.c (check_range): Warning fixes, formatting.
379 Simplify sign extension. Remove redundant unsigned < 0 test.
380 * config/tc-i960.c (md_ri_to_chars): Prototype.
381 * config/tc-mcore.c (md_pseudo_table): Fix typo.
382 (dump_literals): Init brarsym, and test later instead of isforce.
384 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
385 (parse): Constify line and lineptr.
386 (md_begin): Calculate endop here.
388 2002-12-13 Alan Modra <amodra@bigpond.net.au>
390 * config/obj-vms.c: Formatting. Include fnctl.h.
391 (Create_VMS_Object_File): Fix creat call for sane unix systems.
392 (Object_Record_Offset): Make it a size_t.
393 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
394 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
395 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
396 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
397 (vms_fixup_data_section <data_size>): Add here instead.
398 * config/e-criself.c: Fix typo in last change.
400 2002-12-13 Alan Modra <amodra@bigpond.net.au>
402 * write.c (write_object_file): Fix signed/unsigned warning.
403 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
404 * config/e-criself.c (criself_bfd_name): Prototype.
405 * config/obj-aout.c (s_sect): Remove unused function.
406 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
407 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
408 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
409 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
410 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
411 (VMS_RSYM_Parse <Current_Routine>): Likewise.
412 (vms_fixup_text_section <text_siz>): Likewise.
413 (synthesize_data_segment <data_size>): Likewise.
414 (vms_fixup_xtors_section <sect_no>): Likewise.
415 (structure_count): Don't use implicit int type.
416 * config/tc-a29k.c (insert_sreg): Prototype.
417 (define_some_regs): Prototype, make static.
418 (parse_operand): Likewise.
419 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
420 (md_show_usage <stream>): Likewise.
421 (md_section_align <segment>): Likewise.
422 (md_convert_frag <all args>): Likewise.
423 (md_estimate_size_before_relax <all args>): Likewise.
424 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
425 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
426 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
427 (md_undefined_symbol <name>): Likewise.
428 (md_convert_frag <all args>): Likewise.
429 (write_long <opcode>): Likewise.
430 (tc_gen_reloc <seg>): Likewise.
431 (md_estimate_size_before_relax <all args>): Likewise.
432 (md_apply_fix3 <seg>): Likewise.
433 (s_d30v_align <ignore>): Likewise.
434 (build_insn): Correct format string.
435 (md_apply_fix3): Likewise.
436 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
437 (md_undefined_symbol <name>): Likewise.
438 (md_convert_frag <all args>): Likewise.
439 (md_cgen_lookup_reloc <insn>): Likewise.
440 (md_begin): Delete unused vars.
441 (md_assemble): Likewise.
442 (md_estimate_size_before_relax): Likewise.
443 (fr30_relax_frag): #if 0 out, seems unused.
444 (md_atof): Remove declaration of atof_ieee.
445 (restore_colon): Prototype.
446 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
447 (frv_find_in_vliw): Likewise.
448 (frv_debug_tomcat): Likewise.
449 (frv_adjust_vliw_count): Likewise.
450 (frv_tomcat_shuffle): Likewise.
451 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
452 frv_find_in_vliw call.
453 (md_atof): Remove declaration of atof_ieee.
454 * config/tc-h8500.c (cons): Delete declaration.
455 (md_begin <opcode>): Constify.
456 (displacement_size, immediate_size, absolute_size): Remove.
457 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
458 (tc_crawl_symbol_chain <headers>): Likewise.
459 (md_undefined_symbol <name>): Likewise.
460 (tc_headers_hook <headers>): Likewise.
461 (md_parse_option <c,arg>): Likewise.
462 (md_show_usage <stream>): Likewise.
463 (md_convert_frag <headers, seg>): Likewise.
464 (tc_coff_symbol_emit_hook <ignore>): Likewise.
465 (md_atof): Remove declaration of atof_ieee.
466 (tc_aout_fix_to_chars): Remove unused function.
467 (parse_reg): Prototype.
468 (parse_exp): Prototype.
469 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
470 (parse_reglist): Prototype.
471 (get_operand): Prototype.
472 (get_operands): Prototype.
473 (get_specific): Prototype. Make "this_index" signed.
474 (check): Prototype, make static.
476 (build_relaxable_instruction): Prototype, make static.
477 (build_bytes): Prototype.
478 (wordify_scb): Prototype.
479 * config/tc-h8500.h (start_label): Declare.
480 (tc_coff_sizemachdep): Declare.
481 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
482 (i370_rmode <unused>): Likewise.
483 (i370_csect <unused>): Likewise.
484 (i370_dc <unused>): Likewise.
485 (i370_ds <unused>): Likewise.
486 (i370_elf_lcomm <unused>): Likewise.
487 (i370_ltorg <ignore>): Likewise.
488 (i370_using <ignore>): Likewise.
489 (i370_drop <ignore>): Likewise.
490 (i370_byte <ignore>): Likewise.
491 (i370_tc <ignore>): Likewise.
492 (md_estimate_size_before_relax <fragp, seg>): Likewise.
493 (md_convert_frag <all args>): Likewise.
494 (md_undefined_symbol <name>): Likewise.
495 (md_pcrel_from_section <sec>): Likewise.
496 (tc_gen_reloc <seg>): Likewise.
497 (i370_section_letter): #if 0 unused functions.
498 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
499 (symbol_locate): Prototype.
500 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
501 (md_number_to_disp, md_number_to_field): Remove.
502 (md_apply_fix3): Correct format string and cast "fup".
503 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
504 (s_endian <ignore>): Likewise.
505 (md_undefined_symbol <name>): Likewise.
506 (tc_crawl_symbol_chain <headers>): Likewise.
507 (tc_set_bal_of_call): Likewise.
508 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
509 (i960_handle_align <fragp>): Likewise.
510 (i960_validate_fix <this_segment_type>): Likewise
511 (tc_gen_reloc <section>): Likewise.
512 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
513 (struct memS, struct regop): Forward declare.
514 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
515 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
516 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
517 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
518 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
519 (md_chars_to_number, md_number_to_imm): Make static, prototype.
520 (md_number_to_field): Likewise.
521 (md_number_to_disp): Remove unused function.
522 (md_atof): Remove declaration of atof_ieee.
523 (md_apply_fix3): Correct md_number_to_imm call.
524 * config/tc-ip2k.c (md_assemble): Warning fix.
525 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
526 (fill_insn <ignore>): Likewise.
527 (debug_sym <ignore>): Likewise.
528 (md_undefined_symbol <name>): Likewise.
529 (m32r_scomm <ignore>): Likewise.
530 (md_convert_frag <abfd>): Likewise.
531 (md_cgen_lookup_reloc <insn>): Likewise.
532 (m32r_record_hi16 <seg>): Likewise.
533 (md_estimate_size_before_relax): #if 0 old_fr_fix.
534 (allow_m32rx): Prototype.
535 (first_writes_to_seconds_operands): Prototype.
536 (writes_to_pc): Prototype.
537 (can_make_parallel): Prototype.
538 (make_parallel): Prototype.
539 (target_make_parallel): Prototype.
540 (assemble_two_insns): Prototype.
541 (m32r_record_hi16): Prototype.
542 (md_atof): Remove declaration of atof_ieee.
543 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
544 (m32r_force_relocation): Prototype.
545 (m32r_elf_section_change_hook): Prototype.
546 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
547 (md_show_usage): Fix signed/unsigned warning.
548 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
549 (calcop): Ditto for reg_prefix var.
550 (hexval): Add cast to fix signed/unsigned warning.
551 (md_number_to_disp): Delete unused function.
552 (md_number_to_field): Likewise.
553 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
554 (match_name): Prototype.
555 (get_bf2): Prototype.
556 (get_bf_offset_expression): Prototype.
557 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
558 (md_undefined_symbol <ignore>): Likewise.
559 (md_create_short_jump <all args>): Likewise.
560 (md_create_long_jump <all args>): Likewise.
561 (md_convert_frag <abfd, sec>): Likewise.
562 (md_apply_fix3 <segment>): Likewise.
563 (md_section_align <segment>): Likewise.
564 (md_pcrel_from_section <sec>): Likewise.
565 (tc_gen_reloc <section>): Likewise.
566 (reg_m, reg_n, immediate): Delete unused vars.
567 (dump_literals): Fix signed/unsigned warning.
568 (enter_literal): Likewise.
569 (parse_imm): Likewise. Also fix format string.
570 (parse_mem): Remove unused var.
571 (md_assemble <LS>): Abort on unexpected inst.
572 (md_atof): Remove declaration of atof_ieee.
573 (md_parse_option): Remove unused vars.
574 (md_apply_fix3): Fix format strings, cast args.
575 (tc_gen_reloc): Delete unused var.
576 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
577 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
578 (md_undefined_symbol <name>): Likewise.
579 (md_convert_frag <abfd>): Likewise.
580 (tc_gen_reloc <seg>): Likewise.
581 (check_operand <insn>): Likewise.
582 (md_convert_frag): Fix format strings.
583 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
584 * config/tc-openrisc.c (ignore_pseudo): Prototype.
585 (md_atof): Remove declaration of atof_ieee.
586 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
587 (md_apply_fix3): Fix bogus >>='s.
588 (md_undefined_symbol): Delete unused var.
589 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
590 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
591 (fake_opcode): Adjust for pj_opc_int_t change.
592 (md_begin): Likewise.
593 (md_assemble): Likewise.
594 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
595 instead of non-existent third arg of parse_exp_save_ilp.
596 (md_parse_option): Correct "little" and "big" calls.
597 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
598 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
599 (tc_gen_reloc <section>): Likewise.
600 * config/tc-tic30.c: #include stdarg.h or varargs.h.
601 (debug): Rewrite using VA_* macros.
602 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
603 (md_convert_frag): Likewise.
604 (md_parse_option): Likewise.
605 (md_show_usage): Likewise.
606 (md_undefined_symbol): Likewise.
607 (tc_gen_reloc): Likewise.
608 (md_operand): Likewise.
609 (tc_aout_pre_write_hook): Delete.
610 (struct tic30_insn): Make "operands" unsigned.
611 (struct tic30_par_insn): Likewise.
612 (md_assemble): Likewise for "count", "i" and "numops".
613 (tic30_parallel_insn): Likewise for vars here.
614 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
615 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
616 * config/tc-tic80.c (obj_coff_section): Delete declaration.
617 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
618 (md_undefined_symbol): Likewise.
619 (md_parse_option): Likewise.
620 (md_convert_frag): Likewise.
621 (tc_coff_symbol_emit_hook): Likewise.
622 (md_atof): Remove declaration of atof_ieee.
623 (const_overflow): Warning fixes, tidy.
624 (get_operands): Delete unused vars.
625 (internal_error_a): Adjust format string to expect a long for arg.
626 (find_opcode): Warning fixes, simplify.
627 (build_insn): Cast internal_error_a arg.
628 (md_begin): Likewise.
629 (md_apply_fix3): Likewise.
630 (md_assemble): Delete unused var.
631 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
632 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
633 (whatreg, parse_reg, parse_exp): Make static, prototype.
634 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
635 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
636 (get_operand, get_operands, get_specific, newfix): Likewise.
637 (apply_fix, build_bytes): Likewise.
638 (md_atof): Remove declaration of atof_ieee.
639 (tc_aout_fix_to_chars): Delete.
640 (md_begin): Constify "opcode". Don't try to init opcode->idx.
642 (md_parse_option): Fix s_segm and s_unseg calls.
644 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
646 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
648 (RELAX_BRANCH_RELOC_S2): Delete.
649 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
650 Do not handle BFD_RELOC_16_PCREL.
651 (macro_build, mips_ip): Likewise.
652 (md_pcrel_from): Return 4 for undefined symbols regardless of
654 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
655 Don't dereference howto if no such relocation is available.
656 Do not apply hack for in-place zero addend in NEWABI.
657 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
659 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
660 Alan Modra <amodra@bigpond.net.au>
662 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
663 (TC_LINKRELAX_FIXUP): Add comments.
665 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
667 * config/tc-mn10300.c (set_arch_mach): Change argument type to
669 (r_register_name, xr_register_name): Add prototype declarations.
671 2002-12-08 H.J. Lu <hjl@gnu.org>
673 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
674 copied from tc-i386.c.
676 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
678 Fix Bug savannah/1825:
679 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
680 (md_relax_table): Define specific relax for PC-rel offsets.
681 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
682 (m68hc11_relax_frag): Handle the new relax code.
683 (md_convert_frag): Likewise.
684 (md_estimate_size_before_relax): Likewise.
686 2002-12-08 Alan Modra <amodra@bigpond.net.au>
688 * subsegs.c (section_symbol): Use the symbol, not the section, name.
690 2002-12-05 Richard Henderson <rth@redhat.com>
692 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
693 (ia64_gen_real_reloc_type): Handle it.
694 (pseudo_func): Add @ltoffx.
695 (md_begin): Build .<ltoffx>.
696 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
698 2002-12-05 Alan Modra <amodra@bigpond.net.au>
700 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
701 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
702 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
703 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
704 COFF to call arm_force_relocation.
706 2002-12-04 David Mosberger <davidm@hpl.hp.com>
708 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
710 (emit_one_bundle): Handle "hint" instruction.
711 (operand_match): Match IA64_OPND_AR_CSD.
713 2002-12-04 Alan Modra <amodra@bigpond.net.au>
715 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
718 2002-12-03 Nick Clifton <nickc@redhat.com>
720 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
721 .PPC.EMB.apuinfo sections.
723 2002-12-03 Richard Henderson <rth@redhat.com>
725 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
727 2002-12-03 Alan Modra <amodra@bigpond.net.au>
729 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
730 (cons, s_align_bytes): Delete declaration.
732 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
734 (dot): Delete unused function.
735 (w65_expression): Remove unused arg.
736 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
738 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
740 (get_specific): Prototype. Constify "struct opinfo *" arg and return
742 (check): Remove unused function.
743 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
744 on unhandled switch case.
745 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
747 (tc_crawl_symbol_chain): Delete unused function.
748 (tc_headers_hook): Likewise.
749 (tc_Nout_fix_to_chars): Likewise.
750 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
751 (md_parse_option): Likewise.
752 (md_convert_frag): Likewise.
753 (tc_coff_symbol_emit_hook): Likewise.
754 (md_show_usage): Likewise.
755 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
756 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
757 (w65_expression): Declare.
759 * po/POTFILES.in: Regenerate.
761 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
762 and ARM_ADRL_IMMEDIATE.
764 2002-12-02 Nick Clifton <nickc@redhat.com>
766 * gasp.c: Delete. It has been deprecated.
767 * NEWS: Mention that gasp has been removed.
768 * Makefile.am: Remove references to gasp.
769 * makefile.vms: Likewise.
770 * mpw-make.sed: Likewise.
771 * Makeile.in: Regenerate.
772 * doc/gasp.texi: Delete.
773 * doc/Makefile.am: Remove references to gasp.texi.
774 * doc/Makefile.in: Regenerate.
775 * macro.c: Delete references to gasp.
776 Remove use of comment_char function parameter as it is no longer
778 * macro.h: Update prototypes to remove comment_char parameter.
780 * read.c (read_a_source_file, s_irp): Remove comment_char
781 parameter from invocation of functions in macro.c
783 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
785 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
787 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
789 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
790 (tc_gen_reloc): Mark section param as not used.
792 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
794 Fix Bug savannah/1825:
795 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
796 that are not pc-relative.
797 (m68hc11_relax_frag): Declare.
799 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
800 the offsetable indexed addressing modes (n,r).
801 (build_insn): Cleanup some locals.
802 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
803 relaxation of difference between two symbols of same section.
804 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
805 only when this is a PC-relative operand and the offset is not absolute.
806 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
807 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
808 be handled by m68hc11_relax_frag.
810 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
812 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
813 (32-bit int, 64-bit double).
814 (md_longopts): New options -mshort, -mlong, -mshort-double and
815 -mlong-double to control the ABI.
816 (md_show_usage): Update.
817 (md_parse_option): Handle new options.
818 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
820 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
822 * symbols.c (report_op_error): New function, broken out of ...
823 (resolve_symbol_value): ... here. Use for both monadic and dyadic
826 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
828 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
829 for BFD_RELOC_32_PLT_PCREL.
831 2002-11-30 Alan Modra <amodra@bigpond.net.au>
833 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
834 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
835 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
836 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
837 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
838 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
839 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
840 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
841 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
842 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
843 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
844 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
845 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
846 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
847 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
848 TRUE/FALSE. Formatting.
850 2002-11-29 Nick Clifton <nickc@redhat.com>
852 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
853 assume a value of zero.
856 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
858 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
861 2002-11-29 Jakub Jelinek <jakub@redhat.com>
863 * config/tc-ia64.c (md_apply_fix3): Add default case.
865 2002-11-28 Jakub Jelinek <jakub@redhat.com>
867 * symbols.c (S_SET_THREAD_LOCAL): New function.
868 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
869 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
871 * config/tc-ia64.c (md_apply_fix3): Likewise.
872 * config/tc-alpha.c (md_apply_fix3): Likewise.
874 2002-11-28 Jakub Jelinek <jakub@redhat.com>
876 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
879 2002-11-26 DJ Delorie <dj@redhat.com.
881 * dwarf2dbg.c (scale_addr_delta): New.
882 (size_inc_line_addr): Use it.
883 (emit_inc_line_addr): Use it.
885 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
887 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
888 (md_assemble): Don't pass on branches to constants as relaxable.
891 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
893 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
895 2002-11-21 Randolph Chung <randolph@tausq.org>
897 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
898 only if they have default visibility.
900 2002-11-21 Richard Henderson <rth@redhat.com>
902 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
905 2002-11-21 Alan Modra <amodra@bigpond.net.au>
907 * config/tc-mcore.c (mcore_pool_count): New function.
908 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
910 2002-11-20 Klee Dienes <kdienes@apple.com>
912 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
913 coalesce the name fields to use the same pointer.
915 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
916 the name fields to use the same pointer.
917 (get_specific): Check for opcodes with the same name using strcmp
918 as well as comparing the pointer.
920 2002-11-20 Alan Modra <amodra@bigpond.net.au>
922 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
925 2002-11-19 Richard Henderson <rth@redhat.com>
927 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
928 visibility portion of st_other.
930 2002-11-19 Klee Dienes <kdienes@apple.com>
932 * config/tc-h8300.c (struct h8_instruction): New type, used to
933 wrap h8_opcodes with length, noperands, idx, and size fields
934 (computed at run-time).
935 (h8_instructions): New variable.
936 (md_begin): Allocate the storage for h8_instructions. Fill
937 h8_instructions with pointers to the appropriate opcode and the
938 correct value for the additional fields.
939 (clever_message): Update to use h8_instructions instead of
941 (build_bytes): Ditto.
942 (get_specific): Ditto.
943 (md_assemble): Ditto.
945 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
947 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
948 adjustments to symbols in merge sections.
950 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
952 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
954 2002-11-18 Kevin Buettner <kevinb@redhat.com>
956 * dwarf2dbg.h (dwarf2_format): New enum.
957 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
958 (out_debug_line, out_debug_info): Add code for handling 64-bit
960 * config/tc-mips.h (mips_dwarf2_format): Declare.
961 * config/tc-mips.c (mips_dwarf2_format): New function.
962 * doc/internals.texi (DWARF2_FORMAT): Document.
964 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
966 * config/tc-mips.c (s_change_section): Make sure input buffer
967 is not accessed past the end. Don't hand
968 obj_elf_change_section a pointer into the input buffer.
970 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
972 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
975 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
977 * config/tc-tic4x.c: Fixed proper commandline
978 parameters. Added support for new opcode-list format. General
979 error message fixups.
980 (c4x_inst_add): Reject insn not for our CPU
981 (md_begin): Added matrix for setting the proper opcode-level &
982 device-flags according to cpu type and revision. Rewrite the
984 (c4x_operand_parse): Fix opcode bug
985 (c4x_operands_match): New function argument. Added dry-run
986 mechanism, that is optional error generation. Added constraint 'i'
988 (c4x_insn_check): Added new function for post-verification of the
990 (md_assemble): Check all opcodes before croaking because of an
991 argument mismatch. Need this to be able to fully support
992 ortogonally arguments.
993 (md_parse_options): Revised commandprompt swicthes and added new
995 (md_show_usage): Complete rewrite of printout.
997 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
999 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1000 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1001 warning when using constant direct bigger than 2^16. Add the new
1004 2002-11-11 Christopher Faylor <cgf@redhat.com>
1006 * configure.in: Use .gdbinit under Cygwin.
1007 * configure: Regenerate.
1009 2002-11-11 Christopher Faylor <cgf@redhat.com>
1011 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1014 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1016 * config/tc-tic4x.c: Declare as many functions as possible as
1017 static. Maintenance on the general indenting. Removed unnecessary
1018 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1019 function. Add support for new DSP, TMS320VC33. Fix bug for
1020 converting flonum constants.
1021 (c4x_do_align): Add proper align handling. Setup align to insert
1023 (c4x_gen_to_words): Support for extended TI type floats.
1024 (md_atof): Proper dumping of multiple-word littlenums.
1025 (c4x_atof): Added support for extended TI type floats.
1026 (c4x_stringer): Added new function to handle compact strings.
1027 (c4x_emit_char): Added new function argument to handle custom
1028 length inserts, like single-byte strings.
1029 * config/tc-tic4x.h: Add proper align handling with NOP's.
1030 * Makefile.am: Added tic4x dependecy
1031 * Makefile.in: Regenerate
1033 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1035 * macro.c (get_any_string): Correct logic for not going beyond end
1038 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1040 * config/tc-mmix.c (get_putget_operands): Mark both possible
1041 operands as invalid at beginning.
1043 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1044 Initialize target of fixup to zero.
1046 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1048 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1049 NEWABI, but we should still emit HI16_S for non-PIC n32.
1051 2002-11-06 Richard Henderson <rth@redhat.com>
1053 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1054 (alpha_fix_adjustable): ... here.
1055 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1057 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1059 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1062 2002-11-05 H.J. Lu <hjl@gnu.org>
1064 * config/tc-mips.c (support_64bit_objects): Check *l before it
1067 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1069 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1070 SEC_LOAD flags for sections marked as 's'.
1072 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1074 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1075 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1076 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1079 * dep-in.sed: Fix typo.
1081 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1083 * configure.in: Update ARM CPU patterns.
1084 * configure: Regenerated.
1086 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1088 * itbl-lex.l: Use #include <> for generated headers.
1089 * itbl-ops.c: Likewise.
1091 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1093 * doc/gasp.texi: Fix typo in deprecation note.
1095 2002-10-23 Nick Clifton <nickc@redhat.com>
1097 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1098 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1100 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1102 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1103 (tc_frob_file_before_adjust): Don't define.
1104 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1106 (mmix_frob_file_before_adjust): Remove ineffective function.
1108 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1110 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1111 (cris_relax_frag): New function.
1112 (md_estimate_size_before_relax) <case ENCODE_RELAX
1113 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1114 expressions that will become absolute expressions to relaxation.
1115 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1116 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1117 value, not distance to symbol.
1118 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1119 Ditto. Correct placement of fixup.
1120 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1122 * config/tc-cris.h (cris_relax_frag): Declare.
1123 (md_relax_frag): Define.
1125 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1127 * config/obj-elf.c (special_sections): Use correct types for init
1129 (obj_elf_change_section): Don't mess with init array section type.
1131 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1133 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1134 for relocs against symbols in a merged section.
1136 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1138 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1139 table as register names.
1141 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1143 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1146 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1148 * expr.c (operand): Add support for n.nn flonums.
1150 2002-10-17 Johannes Stezenbach <js@convergence.de>
1152 * itbl-parse.y (entry): Provide empty action.
1154 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1156 * configure.in (BFDVER_H): Set and subst.
1157 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1158 * Makefile.am: Run "make dep-am".
1160 * configure: Regenerate.
1161 * Makefile.in: Regenerate.
1162 * doc/Makefile.in: Regenerate.
1164 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1166 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1167 (MD_APPLY_SYM_VALUE): Define for PE too.
1169 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1171 * Makefile.am: Run "make dep-am".
1172 (CPU_OBJ_VALID): sh64 coff is invalid.
1173 * as.c: #include "bfdver.h".
1174 * Makefile.in: Regenerate.
1175 * config.in: Regenerate.
1177 2002-10-14 Momchil Velikov <velco@fadata.bg>
1179 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1181 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1183 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1184 * configure: Regenerate.
1186 2002-10-13 Eric Christopher <echristo@redhat.com>
1187 Alexandre Oliva <aoliva@redhat.com>
1189 * config/tc-mips.c (s_gpdword): New function.
1190 (mips_pseudo_table): Add .gpdword.
1191 (mips_need_elf_addend_fixup): never for NEWABI.
1192 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1194 (s_cpadd): Generate .cpadd on NEWABI.
1196 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1198 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1200 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1202 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1203 (md_relax_frag): Adjust macro.
1204 * config/tc-mips.c (mips_relax_branch): New variable.
1205 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1206 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1207 (RELAX_MIPS16_P): Adjust.
1208 (append_insn): Emit branch to non-constant in a frag_var if
1209 branch-relaxation is desirable and possible.
1210 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1211 (OPTION_ELF_BASE): Adjust.
1212 (md_parse_option): Handle new options.
1213 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1215 (relaxed_branch_length): New function.
1216 (md_estimate_size_before_relax): Handle branch frags.
1217 (mips_relax_frag): Likewise.
1218 (md_convert_frag): Handle branch frags. Warn if branch is
1221 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1223 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1225 (md_apply_fix3): Add TLS relocs.
1226 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1229 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1230 Alan Modra <amodra@bigpond.net.au>
1232 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1233 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1235 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1237 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1240 2002-10-09 Richard Shann <richard.shann@superh.com>
1241 Stephen Clarke <stephen.clarke@superh.com>
1243 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1246 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1248 * contig/tc-sh.c (sh_local_pcrel): New.
1249 (sh_force_relocation): Use sh_local_pcrel.
1250 (md_pcrel_from_section): Check the relocation type whether it
1251 should be resolved locally. Use S_FORCE_RELOC.
1253 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1255 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1256 (TC_FORCE_RELOCATION): Tidy arg.
1258 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1259 Ken Raeburn <raeburn@cygnus.com>
1260 Aldy Hernandez <aldyh@redhat.com>
1261 DJ Delorie <dj@redhat.com>
1262 Michael Meissner <meissner@redhat.com>
1263 Eric Christopher <echristo@redhat.com>
1264 Richard Sandiford <rsandifo@redhat.com>
1266 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1267 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1268 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1269 (hilo_interlocks): True for CPU_VR5500.
1270 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1271 (mips_fix_vr4122_bugs): New.
1272 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1273 (mips_emit_delays): Likewise.
1274 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1275 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1276 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1277 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1278 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1279 (OPTION_ELF_BASE): Bump.
1280 (md_parse_option): Handle the new options.
1281 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1284 2002-09-29 H.J. Lu <hjl@gnu.org>
1286 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1287 twice if howto->pcrel_offset is true.
1289 2002-09-28 Matt Thomas <matt@3am-software.com>
1290 Jason Thorpe <thorpej@wasabisystems.com>
1292 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1293 convert undefined references to GOT32/PLT32 if PIC code is
1294 requested. Fix comment.
1296 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1298 * config/tc-sh.c (sh_force_relocation): Return 0 for
1299 some PC relative relocations when not relaxing.
1301 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1303 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1304 Define them if not BFD_ASSEMBLER.
1305 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1307 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1308 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1309 (tc_gen_reloc): Handle x86-64 TLS relocs.
1311 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1313 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1314 fixups to current or absolute section.
1316 2002-09-26 Jim Wilson <wilson@redhat.com>
1318 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1321 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1323 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1324 capable configuration.
1325 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1327 (mips_ip): Likewise.
1329 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1331 * config/tc-mips.c (append_insn): Fix jump overflow check.
1333 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1335 * config/tc-i386.c (process_operands): Warn about "lea" segment
1338 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1340 * write.c: Delete set_segment_vma and prototype. Update all callers.
1342 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1344 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1345 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1346 Rename "fseg" to "sym_seg".
1347 * Makefile.am: Run "make dep-am".
1348 * Makefile.in: Regenerate.
1349 * doc/Makefile.in: Regenerate.
1351 2002-09-20 Nick Clifton <nickc@redhat.com>
1353 * symbols.c (colon): Do not allow symbols to be created in the
1354 absolute section if WORKING_DOT_WORD is not defined and
1355 new_broken_words would require a new frag to be created.
1357 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1359 * expr.c (expr): Simplify foo-foo here.
1360 (clean_up_expression): Remove O_subtract code.
1362 * write.h (struct fix): Add fx_dot_value.
1363 (dot_value): Declare.
1364 * write.c (dot_value): New var.
1365 (fix_new_internal): Save dot_value as fx_dot_value.
1366 (fixup_segment): Adjust fx_offset using fx_dot_value.
1367 * expr.c (expr): Update dot_value.
1369 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1371 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1372 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1373 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1375 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1376 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1377 BFD_RELOC_386_TLS_GOTIE.
1379 2002-09-19 Richard Henderson <rth@redhat.com>
1381 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1383 (alpha_force_relocation): Don't special-case branch type relocs.
1385 2002-09-19 Nick Clifton <nickc@redhat.com>
1387 * config/tc-m68k.c (select_control_regs): Handle situation where
1388 architecture has not yet been selected.
1390 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1392 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1393 (IS_SEXT_16BIT_NUM): New macro.
1394 (macro_build_ldst_constoffset): New function, to build a set of
1395 instructions to do a load or store from a constant offset relative
1396 to a given register.
1397 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1398 .cprestore pseudo-op.
1400 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1402 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1404 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1406 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1408 2002-09-17 Stan Cox <scox@redhat.com>
1410 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1411 (macro): Likewise for la. Likewise for ld.
1412 (mips_after_parse_args): Make -xgot optional, not the default.
1413 (md_apply_fix3): Allow composite relocation to set up gp.
1414 (tc_gen_reloc): Allow relaxing for newabi.
1415 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1416 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1418 2002-09-17 Nick Clifton <nickc@redhat.com>
1420 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1421 BFD_RELOC_ARM_IMMEDIATE has been done.
1422 (tc_gen_reloc): Do not issue reloc number of unimplemented
1423 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1424 their name is already in the error message - plus remove them
1425 from the default case.
1427 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1428 behavior of instructions.
1430 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1432 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1433 Convert functions to K&R format.
1435 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1437 * config/tc-mips.c (pdr_seg): Define only for ELF.
1438 (s_change_section): Remove unused variable. Don't use for nonELF.
1440 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1442 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1444 * config/obj-elf.h (obj_elf_change_section): Likewise.
1446 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1448 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1449 (out_debug_info): Likewise.
1451 2002-09-16 Bruno Haible <bruno@clisp.org>
1453 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1454 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1455 * config/tc-i386.c (i386_target_format): Likewise.
1456 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1457 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1459 2002-09-13 Nick Clifton <nickc@redhat.com>
1461 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1462 when deciding if any operands have been skipped.
1464 2002-09-11 Nick Clifton <nickc@redhat.com>
1466 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1468 * po/tr.po: Updated Turkish translation.
1470 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1472 * config/tc-i386.c (md_apply_fix3): Allow addend for
1473 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1474 BFD_RELOC_386_TLS_LE_32.
1476 2002-09-05 Jeff Law <law@redhat.com>
1478 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1479 marker relocations such as ENTRY/EXIT.
1480 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1481 to both OBJ_ELF and OBJ_SOM.
1483 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1485 * doc/internals.texi (md_apply_fix3): Expand.
1486 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1487 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1488 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1489 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1490 EXTERN_FORCE_RELOC): Document.
1491 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1492 * as.h: Don't include struc-symbol.h for arc.
1494 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1495 subtract absolute symbol.
1496 * obj.h (struct format_ops): Add frob_file_before_fix.
1497 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1498 * symbols.c (S_FORCE_RELOC): New function.
1499 * symbols.h (S_FORCE_RELOC): Declare.
1500 * write.c (TC_FORCE_RELOCATION): Change default.
1501 (TC_FORCE_RELOCATION_ABS): Define.
1502 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1503 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1504 (TC_FORCE_RELOCATION_SECTION): Don't define.
1505 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1506 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1507 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1508 (TC_VALIDATE_FIX_SUB): Define.
1509 (TC_FIX_ADJUSTABLE): Don't define.
1510 (MD_APPLY_SYM_VALUE): Define this instead.
1511 (abs_section_sym): New variable.
1512 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1513 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1514 Don't put the absolute section sym on fixups here.
1515 (fix_segment): New function.
1516 (write_relocs): Don't call fixup_segment from here.
1517 (write_object_file): Instead call tc_frob_file_before_fix,
1518 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1519 Don't output the absolute section symbol.
1520 (fixup_segment): Rewrite.
1521 * write.h (abs_section_sym): Declare.
1522 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1524 (aout_format_ops): Adjust to suit.
1525 * config/obj-aout.h (obj_frob_file): Don't define.
1526 (obj_frob_file_before_fix): Define.
1527 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1528 (S_FORCE_RELOC): Define.
1529 * config/obj-bout.h (S_FORCE_RELOC): Define.
1530 * config/obj-coff.c (coff_format_ops): Init new field.
1531 * config/obj-coff.h: Formatting fixes.
1532 (obj_sec_sym_ok_for_reloc): Define.
1533 (S_FORCE_RELOC): Define.
1534 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1535 (ecoff_frob_file): .. from here.
1536 (ecoff_format_ops): Add new function.
1537 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1538 (obj_frob_file_before_fix): Define.
1539 * config/obj-elf.c (elf_format_ops): Init new field.
1540 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1541 * config/obj-ieee.h: Formatting fixes.
1542 (S_FORCE_RELOC): Define.
1543 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1544 * config/obj-vms.h (S_FORCE_RELOC): Define.
1545 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1546 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1547 for BFD_RELOC_32 and BFD_RELOC_64.
1548 (alpha_fix_adjustable): Remove extern and weak tests.
1549 (alpha_before_fix): Rename from alpha_adjust_symtab.
1550 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1551 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1552 (TC_VALIDATE_FIX): Tweak param name.
1553 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1554 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1555 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1556 (MD_APPLY_SYM_VALUE): Define.
1557 (tc_adjust_symtab): Don't define.
1558 (alpha_adjust_symtab): Don't declare.
1559 (tc_frob_file_before_fix): Define.
1560 (alpha_before_fix): Declare.
1561 (TC_INIT_FIX_DATA): Tweak param names.
1562 * config/tc-arc.c: Include "struc-symbol.h".
1563 (md_pcrel_from): Remove undefined sym fudge.
1564 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1565 Don't set fx_addnumber.
1566 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1567 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1568 (EXTERN_FORCE_RELOC): Define.
1569 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1570 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1571 (arm_validate_fix): Return void.
1572 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1573 Add plt and got reloc tests.
1574 (arm_force_relocation): Call S_FORCE_RELOC.
1575 * config/tc-arm.h (struct fix): Forward declare.
1576 (TC_VALIDATE_FIX): No longer set add_symbolP.
1577 (arm_validate_fix): Adjust declaration.
1578 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1579 (TC_FORCE_RELOCATION): Tweak param name.
1580 (TC_INIT_FIX_DATA): Likewise.
1581 (obj_fix_adjustable): Don't define.
1582 (tc_fix_adjustable): Call arm_fix_adjustable.
1583 (TC_FIX_ADJUSTABLE): Don't define.
1584 (MD_APPLY_SYM_VALUE): Define.
1585 (EXTERN_FORCE_RELOC): Define.
1586 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1587 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1588 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1589 Remove *valP fudges and code to subtract abs sym. Don't set
1591 * config/tc-avr.h: Formatting.
1592 (EXTERN_FORCE_RELOC): Define.
1593 (MD_APPLY_SYM_VALUE): Define.
1594 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1595 (md_apply_fix3): Remove code to subtract abs sym.
1596 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1597 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1598 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1599 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1600 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1601 (tc_fix_adjustable): Remove extern, weak tests.
1602 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1603 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1604 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1605 and code to subtract abs sym.
1606 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1607 (d10v_force_relocation): Call S_FORCE_RELOC.
1608 * config/tc-d10v.h: Don't include write.h.
1609 (struct fix): Instead, forward declare.
1610 (MD_PCREL_FROM_SECTION): Tweak param names.
1611 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1612 (d10v_fix_adjustable): Likewise.
1613 (obj_fix_adjustable): Don't define.
1614 (tc_fix_adjustable): Define.
1615 (TC_FORCE_RELOCATION): Tweak param name.
1616 (MD_APPLY_SYM_VALUE): Define.
1617 (EXTERN_FORCE_RELOC): Define.
1618 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1619 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1620 and code to subtract abs sym.
1621 * config/tc-d30v.h: Don't include write.h.
1622 (struct fix): Instead, forward declare.
1623 (MD_PCREL_FROM_SECTION): Tweak param names.
1624 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1625 (MD_APPLY_SYM_VALUE): Define.
1626 (EXTERN_FORCE_RELOC): Define.
1627 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1628 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1629 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1630 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1631 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1632 Don't use fx_addnumber.
1633 * config/tc-dlx.h: Don't include write.h.
1634 (md_convert_frag): We're not alpha twice over.
1635 (EXTERN_FORCE_RELOC): Define.
1636 (obj_fix_adjustable): Don't define.
1637 (tc_fix_adjustable): Define.
1638 (TC_FIX_ADJUSTABLE): Don't define.
1639 (MD_APPLY_SYM_VALUE): Define.
1640 (LOCAL_LABELS_DOLLAR): Undef always.
1641 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1642 (fr30_fix_adjustable): Remove extern, weak tests.
1643 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1644 (obj_fix_adjustable): Don't define.
1645 (tc_fix_adjustable): Define.
1646 (struct fix): Forward declare.
1647 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1648 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1649 (frv_fix_adjustable): Don't do extern, weak tests.
1650 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1651 (TC_FIX_ADJUSTABLE): Don't define.
1652 (obj_fix_adjustable): Don't define.
1653 (tc_fix_adjustable): Define.
1654 (struct fix): Forward declare.
1655 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1656 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1657 * config/tc-h8300.h (struct fix): Forward declare.
1658 (EXTERN_FORCE_RELOC): Define.
1659 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1660 (hppa_fix_adjustable): Don't test extern or weak. Don't
1661 symbol_mark_used_in_reloc.
1662 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1664 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1665 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1666 (TC_FORCE_RELOCATION_SECTION): Don't define.
1667 (MD_APPLY_SYM_VALUE): Define.
1668 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1669 to subtract abs sym.
1670 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1671 (MD_APPLY_SYM_VALUE): Define.
1672 (MD_PCREL_FROM_SECTION): Tweak param name.
1673 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1674 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1675 (i386_force_relocation): New function.
1676 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1677 (TC_VALIDATE_FIX): Likewise.
1678 (TC_FIX_ADJUSTABLE): Don't define.
1679 (MD_APPLY_SYM_VALUE): Define.
1680 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1681 (i386_force_relocation): Declare.
1682 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1683 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1684 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1685 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1686 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1687 (EXTERN_FORCE_RELOC): Define.
1688 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1689 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1690 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1691 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1692 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1693 Remove #if 0 code. Invert return boolean.
1694 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1695 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1696 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1697 (tc_coff_sizemachdep): Prototype.
1698 (i960_handle_align): Likewise.
1699 (i960_validate_fix): Adjust declaration.
1700 (reloc_callj): Likewise.
1701 (EXTERN_FORCE_RELOC): Define.
1702 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1703 (TC_FORCE_RELOCATION_ABS): Define.
1704 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1705 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1706 (TC_FIX_ADJUSTABLE): Don't define.
1707 (MD_APPLY_SYM_VALUE): Define.
1708 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1709 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1710 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1711 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1712 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1713 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1714 (MD_APPLY_SYM_VALUE): Define.
1715 (EXTERN_FORCE_RELOC): Define.
1716 (TC_FORCE_RELOCATION): Tweak param name.
1717 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1718 (m32r_fix_adjustable): Don't test extern, weak.
1719 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1720 (MD_APPLY_SYM_VALUE): Define.
1721 (obj_fix_adjustable): Don't define.
1722 (tc_fix_adjustable): Define.
1723 (tc_frob_file): Don't define.
1724 (tc_frob_file_before_fix): Define.
1725 (EXTERN_FORCE_RELOC): Define.
1726 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1727 BFD_RELOC_VTABLE_ENTRY address.
1728 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1729 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1730 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1731 Remove duplicated fx_done code.
1732 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1733 (EXTERN_FORCE_RELOC): Define.
1734 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1736 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1737 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1738 (TC_FIX_ADJUSTABLE): Don't define.
1739 (EXTERN_FORCE_RELOC): Define.
1740 (MD_APPLY_SYM_VALUE): Define.
1741 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1742 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1743 Remove fx_addsy tests.
1744 (mcore_force_relocation): Call S_FORCE_RELOC.
1745 (mcore_fix_adjustable): Don't test fx_addsy.
1746 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1747 (EXTERN_FORCE_RELOC): Define.
1748 (obj_fix_adjustable): Don't define.
1749 (tc_fix_adjustable): Define.
1750 (MD_APPLY_SYM_VALUE): Define.
1751 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1752 (mips_pic): No longer static.
1753 (mips_force_relocation): Call S_FORCE_RELOC.
1754 (mips_fix_adjustable): Remove extern, weak tests.
1755 * config/tc-mips.h (enum mips_pic_level): Declare.
1756 (mips_pic): Declare.
1757 (tc_frob_file): Don't define.
1758 (tc_frob_file_before_fix): Define this instead.
1759 (EXTERN_FORCE_RELOC): Define.
1760 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1761 with reg_section tests. Set fx_done instead of calling
1762 symbol_clear_used_in_reloc on bad relocs.
1763 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1764 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1765 (mmix_adjust_symtab): Simplify list handling. Abort on any
1767 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1768 BFD_RELOC_MMIX_LOCAL.
1769 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1770 (EXTERN_FORCE_RELOC): Define.
1771 (MD_PCREL_FROM_SECTION): Tweak param name.
1772 (tc_frob_file): Don't define.
1773 (tc_frob_file_before_fix): Define this instead.
1774 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1775 Remove SEC_CODE checks.
1776 (mn10300_fix_adjustable): Remove extern and weak tests.
1777 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1778 (TC_FORCE_RELOCATION): Tweak param name.
1779 (obj_fix_adjustable): Don't define.
1780 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1781 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1782 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1783 (openrisc_fix_adjustable): Don't test fx_addsy.
1784 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1785 (obj_fix_adjustable): Don't define.
1786 (tc_fix_adjustable): Define this instead.
1787 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1788 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1789 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1790 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1791 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1792 (MD_APPLY_SYM_VALUE): Define.
1793 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1794 Don't subtract symbol value.
1795 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1796 (EXTERN_FORCE_RELOC): Define.
1797 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1798 (MD_APPLY_SYM_VALUE): Define.
1799 (obj_fix_adjustable): Don't define.
1800 (tc_fix_adjustable): Define this instead.
1801 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1803 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1804 (ppc_force_relocation <elf version>): New.
1805 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1806 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1807 comments. Don't subtract fx_subsy as that is already done.
1808 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1809 (MD_PCREL_FROM_SECTION): Likewise.
1810 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1811 ppc_force_relocation.
1812 (TC_FORCE_RELOCATION_SECTION): Delete.
1813 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1814 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1815 (MD_APPLY_SYM_VALUE): Define.
1816 * config/tc-s390.c: #include "dwarf2dbg.h".
1817 (s390_insn): Remove excess parens.
1818 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1819 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1820 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1821 non-NULL. Don't subtract off fx_addsy value.
1822 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1823 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1824 (TC_FIX_ADJUSTABLE): Don't define.
1825 (MD_APPLY_SYM_VALUE): Define.
1826 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1827 (SWITCH_TABLE): Likewise.
1828 (sh_force_relocation): Call S_FORCE_RELOC.
1829 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1830 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1831 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1832 fx_addnumber is zero on entry. Save val in fx_addnumber.
1833 (tc_gen_reloc): Don't subtract fx_subsy.
1834 * config/tc-sh.h (struct fix): Move.
1835 (obj_fix_adjustable): Don't define.
1836 (tc_fix_adjustable): Define this instead.
1837 (TC_FIX_ADJUSTABLE): Don't define.
1838 (MD_APPLY_SYM_VALUE): Define.
1839 (SWITCH_TABLE_CONS): Define.
1840 (SWITCH_TABLE): Define.
1841 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1842 (TC_VALIDATE_FIX_SUB): Define.
1843 (MD_PCREL_FROM_SECTION): Tweak param name.
1844 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1845 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1846 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1847 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1848 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1849 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1850 (TC_VALIDATE_FIX_SUB): Define.
1851 (MD_PCREL_FROM_SECTION): Tweak param name.
1852 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1853 (tc_gen_reloc): Use S_FORCE_RELOC.
1854 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1855 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1856 (TC_FORCE_RELOCATION_ABS): Define this instead.
1857 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1858 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1859 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1860 (MD_APPLY_SYM_VALUE): Define.
1861 (TC_FIX_DATA_PRINT): Tweak param name.
1862 * config/tc-tic30.c (USE_STDOUT): Don't define.
1863 (md_parse_option): Remove stupid debug code.
1864 (tc_gen_reloc): Don't use fx_addnumber.
1865 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1866 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1867 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1868 (tc_fix_adjustable): Define this instead.
1869 (TC_FIX_ADJUSTABLE): Don't define.
1870 (MD_APPLY_SYM_VALUE): Define this instead.
1871 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1872 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1873 (TC_FIX_ADJUSTABLE): Don't define.
1874 (MD_APPLY_SYM_VALUE): Define this instead.
1875 (tc_fix_adjustable): Remove extern and weak tests.
1876 * config/tc-w65.h (struct fix): Forward declare.
1877 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1879 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1880 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1881 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1883 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1884 (MD_APPLY_SYM_VALUE): Define.
1885 (obj_fix_adjustable): Don't define.
1886 (tc_fix_adjustable): Define this instead.
1887 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1889 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1891 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1892 (ppc_fix_adjustable <coff version>): Cleanup.
1894 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1895 (md_parse_option): No -a64 without BFD64.
1896 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1897 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1899 2002-09-04 Nick Clifton <nickc@redhat.com>
1901 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1902 instructions into the hash table if the target cpu is the BookE32.
1904 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1906 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1909 2000-08-28 Catherine Moore <clm@redhat.com>
1911 * tc-v850.c (v850_relax): Declare.
1912 (v850_longcode): New routine.
1913 (v850_handle_align): New routine.
1914 (md_pseudo_table): Add longcall and longjump.
1915 (md_parse_option): Check for relax option.
1916 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1917 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1918 (md_apply_fix3): Likewise.
1919 (v850_force_relocation): Likewise.
1920 (v850_comm): Change the current section.
1921 (md_assemble): Ensure that the correct value is put in the
1923 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1924 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1925 Remove redundant v850ea support.
1926 * tc-v850.h (HANDLE_ALIGN): Define.
1927 (v850_handle_align): Declare.
1928 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1930 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1932 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1933 * configure: Regenerate.
1934 * NEWS: Mention new port.
1936 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1938 * config/obj-coff.c: Add sdef definition.
1939 * config/obj-coff.h: Add tic4x include file and set
1941 * config/tc-tic4x.c: New file.
1942 * config/tc-tic4x.h: New file.
1944 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1946 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1947 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1948 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1949 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1950 (RELOC_ENUM): Define.
1951 (fix_new_internal): Use RELOC_ENUM.
1952 (fix_new, fix_new_exp): Likewise.
1953 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1954 Replace gotos with continue.
1955 (write_relocs): Formatting. Avoid symbol loops in
1956 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1957 errors, and error number in other cases.
1958 (fixup_segment): Remove param names from prototype. Rename
1959 "this_segment_type" to "this_segment". Update linkrelax comment.
1960 Remove "size, "place" and "where" local vars. Formatting. Update
1961 "no symbol" comment. Remove #if 0 and #if 1.
1963 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1965 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1967 * dwarf2dbg.c: Always include dwarf2dbg.h.
1968 (dwarf2_directive_file): Adjust dummy version args.
1969 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1970 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1971 when symbol values differ.
1972 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1973 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1974 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1976 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1978 * config/tc-w65.c (md_section_align): Fix typo.
1979 (md_parse_option): Return 0, not 1.
1981 2002-08-22 Nick Clifton <nickc@redhat.com>
1983 * doc/as.texinfo (Section): Note that if '@' is a comment
1984 character then another symbol is used to prefix the section's
1987 2002-08-22 Christian Groessler <chris@groessler.org>
1989 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1992 2002-08-12 Graeme Peterson <gp@qnx.com>
1994 * configure.in: Add support for sh-**-nto* target.
1995 * configure: Regenerate.
1997 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1999 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2001 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2003 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2005 (ppc_apuinfo_section_add): Define only if format is ELF.
2006 (md_assemble): Emit APUinfo section only if format is ELF.
2009 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2011 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2012 * config/tc-frv.c: Likewise.
2013 * config/tc-hppa.c: Likewise.
2014 * config/tc-ia64.c: Likewise.
2015 * config/tc-ip2k.c: Likewise.
2016 * config/tc-m68hc11.c: Likewise.
2017 * config/tc-m68k.c: Likewise.
2018 * config/tc-mmix.c: Likewise.
2019 * config/tc-mn10300.c: Likewise.
2020 * config/tc-sh.c: Likewise.
2021 * config/tc-sparc.c: Likewise.
2022 * config/tc-v850.c: Likewise.
2024 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2026 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2029 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2031 From matthew green <mrg@redhat.com>
2033 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2034 PPC_OPCODE_PPC is, except for BookE architectures.
2035 (md_parse_option): Add support for -mspe.
2036 (md_show_usage): Add -mspe.
2037 (md_parse_option): Add support for -me500 and
2038 -me500x2 to generate code for Motorola e500 core complex.
2039 (md_show_usage): Add -me500 and -me500x2.
2041 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2042 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2043 PPC_APUINFO_BRLOCK): New macros.
2045 (ppc_cleanup): New function.
2046 (ppc_apuinfo_section_add): New function.
2048 (md_assemble): Collect info and write the APUinfo section.
2050 * config/tc-ppc.h (md_cleanup): Define.
2051 (ppc_cleanup): Export.
2052 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2054 2002-08-17 Stan Cox <scox@redhat.com>
2056 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2057 config/tc-mips.c (s_change_section): New function to support
2058 IRIX .section pseudo-op.
2060 2002-08-16 Nick Clifton <nickc@redhat.com>
2062 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2064 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2066 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2067 the fix-up against on the right frag.
2068 (s_cpsetup): Likewise. Parse third argument as expression, to
2069 handle global symbols and forward/backward labels correctly.
2071 2002-08-14 Nick Clifton <nickc@redhat.com>
2073 * read.c (stringer): Catch attempts to create strings in the abs
2076 * config/tc-alpha.c: Fix compiling for COFF targets.
2077 Some minor formatting tidyups.
2079 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2081 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2082 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2083 according to the reloc.
2084 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2085 (TC_FORCE_RELOCATION): Define.
2086 (tc_m68hc11_force_relocation): Declare.
2088 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2089 (s_m68hc11_relax): New function for relax group.
2090 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2091 beginning of jump instruction.
2092 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2093 address computation.
2094 (tc-gen_reloc): Update.
2095 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2097 (tc_m68hc11_force_relocation): New function, handle new relocs.
2098 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2099 reloc for the linker relax pass.
2100 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2103 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2105 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2106 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2107 (s_m68hc11_mode): New function for .mode pseudo op.
2108 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2110 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2111 (m68hc11_elf_final_processing): Declare.
2113 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2115 * config/tc-m68hc11.c (md_begin): Take into account additional
2116 page operand for call instruction.
2117 (print_opcode_format): Likewise.
2118 (check_range): Likewise for page range checking.
2119 (get_operand): Don't skip a possible comma in operands.
2120 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2121 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2122 (fixup24): New to handle call reloc.
2123 (build_insn): Handle missing page operand for call instruction.
2125 (md_apply_fix3): Take into account new relocs.
2126 (get_operand): Fix the mode for indexed indirect addressing.
2127 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2129 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2131 * config/tc-mips.c (mips_ip): Don't work out the value of
2132 constant %hi()s here.
2134 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2136 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2137 for ELF, and don't bother checking ELF relocs when non-ELF.
2138 (i386_immediate): Allow absolute_section expressions for aout.
2139 (i386_displacement): Likewise. Also test bfd_is_com_section.
2140 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2141 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2142 not when fx_addsy. Remove dead code.
2144 2002-08-09 Graeme Peterson <gp@qnx.com>
2146 * configure.in: Add support for ppc-*-nto* target.
2147 * configure: Regenerate.
2149 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2151 * config/tc-i386.h: Reorganize.
2153 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2155 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2156 immediate offset in "dla" and "la" expansions.
2158 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2160 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2161 Remove "bfd_gas=yes" from target table when covered later.
2162 Consolidate some entries.
2163 * configure: Regenerate
2165 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2167 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2168 at start of insn, pass it to output_disp and output_imm.
2169 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2170 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2172 (output_imm): Added arguments. Compute properly addend for
2174 (md_apply_fix3): Remove R_386_GOTPC handling.
2176 2002-08-06 George France <france@handhelds.org>
2178 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2179 and m21264b processor names and cpu types.
2180 * doc/c-alpha.texi: Documented new types.
2182 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2184 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2186 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2188 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2189 handling to BFD_RELOC_MIPS16_GPREL.
2191 2002-08-01 Nick Clifton <nickc@redhat.com>
2193 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2194 pool is computed using signed arithmetic so that proper sign
2195 extension is performed if X_add_number is a 64-bit integer.
2197 2002-08-01 H.J. Lu <hjl@gnu.org>
2198 Daniel Jacobowitz <drow@mvista.com>
2200 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2201 .debug_line section unless it has line information.
2203 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2205 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2206 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2207 Allow default displacement size to be an option "--disp-size-default".
2208 (md_number_to_disp): Make error messages include value. Use %d to
2209 print integers, not %s.
2210 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2211 get duplicate messages sometimes.
2212 (convert_iif): Grow frag to max possible instruction size. Avoid
2213 creating unnecessary fixes.
2214 (md_number_to_field) Add prototype.
2215 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2216 prototypes and make static.
2217 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2218 (evaluate_expr): Use resultP argument instead of exprP global.
2219 (get_addr_mode): Quiten compiler warnings.
2220 (encode_operand): eliminate unused variables. Quiten compiler
2221 warnings. Eliminate nul character in format strings.
2222 (parse): argc is unsigned.
2223 (reloc): Type cast index to quieten compiler.
2224 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2225 (md_convert_frag): Note unused parameters. Remove unused
2227 (md_create_long_jump, md_create_short_jump,
2228 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2231 2002-07-31 Nick Clifton <nickc@redhat.com>
2233 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2234 of the PDP-11 and 2.11BSD a.out support.
2236 2002-07-31 Momchil Velikov <velco@fadata.bg>
2238 * config/tc-v850.c (md_assemble): Fix range check for immediate
2241 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2243 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2244 to Broadcom SB-1 core support.
2246 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2248 * config/tc-mips.c (mips_target_format): Fix formatting.
2249 Add recognition of n32 ABI formats.
2251 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2253 * tc-mips.c (load_address): Don't clobber $at when loading a
2254 64-bit address in non-PIC code if noat is in effect.
2257 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2259 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2260 used in division/multiply macro expansions similarly to how they
2261 are used in the variants with break instructions.
2264 2002-07-30 Graeme Peterson <gp@qnx.com>
2266 * configure.in: Add support for arm-*-nto target.
2267 * configure: Regenerate.
2269 2002-07-30 Nick Clifton <nickc@redhat.com>
2271 * config/tc-arm.c (struct literal_pool): Add fields to allow
2272 multiple literal pools to be maintained.
2273 (find_literal_pool): New function.
2274 (find_or_make_literal_pool): New function.
2275 (add_to_literal_pool): Use find_or_make_literal_pool.
2276 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2278 (s_ltorg): Use find_literal_pool.
2279 (arm_cleanup): Dump all literal pools.
2280 * doc/c-arm.texi: Document new behaviour of only dumping literal
2283 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2285 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2286 rather than PPC_OPCODE_32 for powerpc64*.
2288 2002-07-25 Nick Clifton <nickc@redhat.com>
2290 * po/es.po: Updated Spanish translation.
2291 * po/fr.po: Updated French translation.
2293 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2295 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2296 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2297 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2298 * configure, config.in: Regenerate.
2299 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2300 (mips_set_options): Remove "abi" field.
2301 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2304 (mips_arch_string, mips_arch_info): New vars.
2305 (mips_tune_string, mips_tune_info): New vars.
2306 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2307 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2308 (mips_isa_to_str, mips_cpu_to_str): Remove.
2309 (mips_ip): If the selected architecture is a generic ISA rather
2310 than a processor, only mention the ISA level in error messages.
2311 (OPTION_MCPU): Remove.
2313 (md_longopts): Add -mfp64, remove -mcpu.
2314 (mips_set_option_string): New fn.
2315 (md_parse_option): Make -mipsN update file_mips_isa rather than
2316 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2317 Don't let -mgp32 and -mfp32 change the ABI.
2318 (show): Move to end of file. Constify string argument.
2319 (md_show_usage): Move to the end of the file. Read available
2320 architectures from mips_cpu_info_table.
2321 (mips_set_architecture): New fn.
2322 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2323 is an alias for -march=mipsN. Don't change the ABI based on other
2324 flags. Infer the register size from the ABI as well as the
2325 architecture. Complain about more conflicting arguments.
2326 Unify logic with GCC.
2327 (s_mipsset): Don't change the ABI.
2328 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2329 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2330 "mipsN"-type entries. Remove entries that vary only in the
2331 manufacturer's prefix, or that have "000" replaced by "k".
2332 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2333 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2334 (mips_parse_cpu): New fn.
2335 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2336 (mips_cpu_info_from_isa): Minor formatting tweak.
2338 2002-07-24 Nick Clifton <nickc@redhat.com>
2340 * po/sv.po: Updated Swedish translation.
2341 * po/es.po: Updated Spanish translation.
2343 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2345 * Makefile.am: Run "make dep-am".
2346 * Makefile.in: Regenerate.
2347 * doc/Makefile.in: Regenerate.
2348 * config.in: Regenerate.
2349 * po/POTFILES.in: Regenerate.
2351 2002-07-23 Nick Clifton <nickc@redhat.com>
2353 * po/fr.po: Updated French translation.
2355 2002-07-23 Nick Clifton <nickc@redhat.com>
2357 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2360 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2362 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2363 instead of S_IS_EXTERN.
2364 (md_estimate_size_before_relax): Likewise.
2365 (mips_fix_adjustable): Likewise.
2367 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2369 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2371 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2372 Nick Clifton <nickc@redhat.com>
2374 * cond.c (s_ifdef): Treat a referenced but not yet defined
2375 symbol as if it were undefined, in exactly the same way as
2378 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2379 consider referenced bug not yet defined symbols to be
2382 2002-07-18 Denis Chertykov <denisc@overta.ru>
2383 Frank Ch. Eigler <fche@redhat.com>
2384 Alan Lehotsky <alehotsky@cygnus.com>
2385 John Healy <jhealy@redhat.com>
2386 Jeff Johnston <jjohnstn@redhat.com>
2388 * configure.in: Add ip2k configuraton.
2389 * configure: Regenerate.
2390 * Makefile.am: Add ip2k configuraton.
2391 * Makefile.in: Regenerate.
2392 * configure: Regenerate.
2393 * Makefile.in: Regenerate.
2394 * config/tc-ip2k.c: New file.
2395 * config/tc-ip2k.h: New files.
2396 * NEWS: Mention new support.
2397 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2398 * doc/Makefile.in: Regenerate.
2399 * doc/all.texi: Set IP2K
2400 * doc/as.texinfo: Add IP2K description.
2401 * doc/c-ip2k.texi: New file.
2403 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2405 * NEWS: Reformat to match style of other NEWS files.
2407 2002-07-17 Jan Hubicka <jh@suse.cz>
2409 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2411 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2413 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2415 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2417 * NEWS: Add 'Changes in 2.13'.
2419 2002-07-15 Matt Fredette <fredette@netbsd.org>
2421 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2423 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2425 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2426 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2429 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2431 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2432 (ppc_frob_file_before_adjust): New function.
2433 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2434 (ppc_elf_frob_symbol): Don't declare.
2435 (tc_frob_file_before_adjust): Define.
2436 (ppc_frob_file_before_adjust): Declare.
2438 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2439 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2442 (ppc_xcoff64): Rename to ppc_obj64.
2443 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2444 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2445 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2447 (ppc_target_format): Use ppc_obj64 to select format.
2448 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2449 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2450 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2451 (tc_frob_symbol): Likewise.
2452 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2453 BFD_DEFAULT_TARGET_SIZE.
2455 (ppc_is_toc_sym): Likewise.
2456 (md_apply_fix3): Likewise.
2457 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2458 BFD_DEFAULT_TARGET_SIZE.
2459 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2460 (tc_frob_symbol): Likewise.
2462 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2464 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2465 (mips_ip): Likewise.
2467 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2469 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2470 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2471 (md_apply_fix3): Formatting. Remove redundant test.
2472 (tc_gen_reloc): Remove redundant code.
2473 (tc_i386_force_relocation): Delete. Movy body of function to..
2474 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2476 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2478 * configure.in: Add hppa-*-openbsd* target, change
2479 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2481 * configure: Regenerate.
2483 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2485 * config/tc-mips.c (macro): Shift the 32-bit address range
2486 accessible with a lone "lui" down by 32768.
2488 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2490 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2491 instead of "dadd" in address calculations.
2494 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2496 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2498 (md_assemble): Instead, zap the suffix here.
2500 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2502 * NEWS: Remove next release number until the release is actually
2505 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2507 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2509 * Makefile.in: Regenerate.
2511 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2513 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2514 to symbols in merge sections, even non pc-relative ones.
2516 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2518 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2520 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2522 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2523 .softregs and .eeprom.
2525 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2527 * NEWS: Note the next release is 2.13.
2529 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2531 * po/tr.po: New translation imported.
2533 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2535 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2536 (ecoff_directive_def): Likewise.
2537 (ecoff_directive_tag): Likewise.
2538 * listing.c (file_info): Likewise.
2539 * hash.c (what): Likewise.
2541 2002-06-25 H.J. Lu <hjl@gnu.org>
2543 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2544 * Makefile.in: Regenerated.
2546 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2548 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2549 (assemble_ppi): Generate warning if the same register is used
2550 twice as destination in the same padd / pmuls instruction.
2552 2002-06-18 Dave Brolley <brolley@redhat.com>
2554 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2555 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2556 * configure.in: Support frv-*-*.
2557 * Makefile.am (CPU_TYPES): Add frv.
2558 (TARGET_CPU_CFILES): Add tc-frv.c.
2559 (TARGET_CPU_HFILES): Add tc-frv.h.
2560 (DEPTC_frv_coff): New variable.
2561 (DEPTC_frv_elf): New variable.
2562 (DEPOBJ_frv_coff): New variable.
2563 (DEPOBJ_frv_elf): New variable.
2564 (DEP_frv_coff): New variable.
2565 (DEP_frv_elf): New variable.
2566 * tc-frv.c: New file.
2567 * tc-frv.h: New file.
2569 2002-06-17 Catherine Moore <clm@redhat.com>
2571 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2573 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2575 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2577 2002-06-17 Tom Rix <trix@redhat.com>
2579 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2581 2002-06-14 H.J. Lu <hjl@gnu.org>
2582 Daniel Jacobowitz <drow@mvista.com>
2584 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2585 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2586 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2587 and new_logical_line for the first .file directive.
2588 * read.c (s_app_file_string): New function.
2589 (s_app_file): Call it.
2590 * read.h (s_app_file_string): Add declaration.
2592 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2594 * configure.in: Remove MIPS_STABS_ELF.
2595 * configure: Regenerated.
2596 * config.in: Regenerated.
2597 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2599 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2601 (pdr_seg): Declare unconditionally.
2602 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2603 (s_mips_end): Likewise. Generate stabs function markers.
2604 (s_mips_ent): Generate stabs function markers.
2605 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2607 (s_mips_mask): Likewise.
2608 (mips_flag_mdebug): New.
2609 (md_longopts): Add "mdebug" and "no-mdebug".
2610 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2611 (mips_after_parse_args): Set mips_flag_mdebug.
2612 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2614 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2616 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2617 value twice for RELA relocations.
2619 2002-06-12 Ben Elliston <bje@redhat.com>
2621 * symbols.c (resolve_symbol_value): Initialise final_val.
2623 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2625 2002-06-11 Tom Rix <trix@redhat.com>
2627 * config/tc-ppc.c (ppc_subseg_align): Delete.
2628 (ppc_change_csect): Default csect align is 2.
2629 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2631 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2633 * config/tc-avr.c (mcu_types): Update.
2635 2002-06-08 Matt Thomas <matt@3am-software.com>
2637 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2638 (vax-*-netbsd*): New targets.
2639 * configure: Regenerate.
2640 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2641 * config/tc-vax.c: Add support for ELF and PIC.
2642 (flag_want_pic): New flag.
2643 (float_cons): Fix prototype.
2644 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2645 (md_assemble): Introduce a new is_absolute local, and use it
2646 rather than repeating the test. Make fatal errors actually
2647 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2648 Add support for ELF. Add support for PIC.
2649 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2650 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2652 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2653 optional for a.out, and not allowed for VMS. Adjust all callers.
2654 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2655 (md_create_long_jump): Likewise.
2656 (md_undefined_symbol): Likewise.
2657 (md_section_align): Likewise.
2658 (md_shortopts): Allow -k and -K for ELF.
2659 (md_parse_option): Set flag_want_pic if -k or -K.
2660 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2661 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2662 * config/tc-vax.h (tc_headers_hook): Remove.
2663 (TARGET_FORMAT): Set according to object format and target
2665 (BFD_ARCH, TARGET_ARCH): Define.
2666 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2667 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2668 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2669 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2671 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2673 * Makefile.am: Run "make dep-am".
2674 * Makefile.in: Regenerate.
2676 * as.c: Replace CONST with const.
2677 * write.c: Likewise.
2678 * config/obj-coff.c: Likewise.
2679 * config/tc-a29k.c: Likewise.
2680 * config/tc-arm.c: Likewise.
2681 * config/tc-dlx.c: Likewise.
2682 * config/tc-h8300.c: Likewise.
2683 * config/tc-h8500.c: Likewise.
2684 * config/tc-i370.c: Likewise.
2685 * config/tc-i860.c: Likewise.
2686 * config/tc-i960.c: Likewise.
2687 * config/tc-m68hc11.c: Likewise.
2688 * config/tc-m68k.c: Likewise.
2689 * config/tc-m88k.c: Likewise.
2690 * config/tc-mcore.c: Likewise.
2691 * config/tc-mips.c: Likewise.
2692 * config/tc-ns32k.c: Likewise.
2693 * config/tc-pdp11.c: Likewise.
2694 * config/tc-pj.c: Likewise.
2695 * config/tc-s390.c: Likewise.
2696 * config/tc-sh.c: Likewise.
2697 * config/tc-sparc.c: Likewise.
2698 * config/tc-tahoe.c: Likewise.
2699 * config/tc-tic80.c: Likewise.
2700 * config/tc-v850.c: Likewise.
2701 * config/tc-vax.c: Likewise.
2702 * config/tc-w65.c: Likewise.
2703 * config/tc-z8k.c: Likewise.
2705 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2707 Based on patch from Matt Green:
2708 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2709 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2710 (s_mips_loc): New function.
2711 (mips_nonecoff_pseudo_table): Call them.
2712 (append_insn): Call dwarf2_emit_insn.
2714 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2716 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2718 (file_ase_mips16): New veriable.
2719 (mips_eabi64): Remove.
2720 (CPU_HAS_MIPS16): New define.
2721 (CPU_HAS_MDMX): Fix data type.
2722 (md_begin): Code cleanup. Use file_ase_mips16.
2723 (mips_elf_final_processing): Handle mips16 header flag.
2724 Handle EABI flag without intermediate variable.
2726 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2728 * doc/as.texinfo: Update MIPS documentation.
2730 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2732 * config/tc-mips.c: Add define for $zero register.
2733 (md_begin): Add $zero as alias name for $0.
2734 (insn_uses_reg): Use ZERO define.
2735 (mips_ip): Add $zero as alias name for $0.
2736 (mips16_ip): Likewise.
2737 (s_cplocal): Demand empty rest of input line.
2738 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2739 names. Use ZERO define. Fix input_line_pointer progress.
2741 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2743 * symbols.c: Replace CONST by const throughout.
2744 (symbol_find_exact): Split out from..
2745 (symbol_find_base): ..here.
2746 * symbols.h: Replace CONST by const throughout.
2747 (symbol_find_exact): Declare.
2748 * config/obj-elf.c: #include "struc-symbol.h".
2749 (elf_frob_file): If group name matches an exported symbol, use that
2750 symbol for the signature and ".group" as the section name.
2752 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2754 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2757 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2759 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2760 and mips_opts.ase_mdmx if they are uninitialized.
2762 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2764 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2765 (hppa_force_relocation): Check if a stub just before the start symbol
2766 of the last call_info is reachable before forcing relocation. Fix
2769 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2771 * config/tc-mips.c (mips_after_parse_args): New function.
2772 (md_begin): Move processing of defaults to mips_after_parse_args.
2773 config/tc-mips.h (md_after_parse_args): Define.
2775 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2777 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2778 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2779 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2780 * configure: Regenerate.
2781 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2784 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2786 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2788 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2790 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2791 linkonce flag. Print all warnings.
2792 (obj_elf_section): Parse ",comdat" for groups.
2793 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2794 consistency of comdat flag.
2796 2002-06-02 Richard Henderson <rth@redhat.com>
2798 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2799 with LITERALs without sequence numbers.
2801 2002-06-01 Richard Henderson <rth@redhat.com>
2803 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2804 Rename them LITUSE_ALPHA_*.
2806 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2808 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2809 accept parentheses enclosed register lists.
2811 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2813 * Makefile.am: Run "make dep-am".
2814 * Makefile.in: Regenerate.
2815 * po/POTFILES.in: Regenerate.
2817 2002-05-31 Graeme Peterson <gp@qnx.com>
2819 * configure.in: Add i386-*-nto-qnx*.
2820 * configure: Regenerate.
2822 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2824 * config/tc-mips.c (mips_ip): Use unsigned long values for
2827 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2829 * config/tc-mips.c (s_cpsetup): Fix initialization of
2830 mips_cpreturn_register and mips_cpreturn_offset.
2832 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2834 * config/tc-mips.c (s_cpsetup): Fix comment.
2836 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2838 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2839 (mips_ip): Likewise.
2840 (mips16_ip): Likewise.
2841 (tc_get_register): Likewise.
2843 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2844 Ed Satterthwaite <ehs@broadcom.com>
2846 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2847 (mips_opts): Initialize "ase_mdmx" member.
2848 (file_ase_mdmx): New variable.
2849 (CPU_HAS_MDMX): New macro.
2850 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2851 based on command line options and configuration defaults.
2852 (macro_build): Note in comment that use of MDMX in macros is
2853 not currently allowed.
2854 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2855 "Z" MDMX operand types.
2856 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2857 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2859 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2860 Add support for "-mdmx" and "-no-mdmx" options.
2861 (OPTION_ELF_BASE): Move to accomodate new options.
2862 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2863 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2864 file_ase_mdmx was set.
2865 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2866 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2869 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2871 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2872 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2873 command line switch conforming to gcc conventions.
2874 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2876 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2878 * config/tc-mips.c (macro_build_jalr): New Function.
2879 (md_begin): NewABI uses big GOTs.
2880 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2881 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2882 (load_address): Add some NewABI PIC support.
2884 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2885 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2887 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2889 * config/tc-mips.c (load_address): Use mips_gp_register instead
2890 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2892 (macro): Use mips_gp_register instead of hardcoded value.
2894 2002-05-30 Richard Henderson <rth@redhat.com>
2896 * expr.h (operatorT): Add O_md17..O_md32.
2897 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2898 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2899 O_tprelhi, O_tprello, O_tprel): New.
2900 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2901 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2902 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2903 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2904 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2905 (md_apply_fix3): Handle TLS relocations.
2906 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2907 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2908 associated TLS reloc. Check lituse_tls relocs match up.
2909 (emit_insn): Handle TLS relocations.
2912 * doc/c-alpha.texi: Add docs for tls relocations.
2914 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2916 * config/tc-mips.c (mips_gprel_offset): New variable.
2917 (s_gpvalue): Use it.
2919 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2921 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2922 write-write conflicts.
2923 (md_assemble): Reformat introductory comment.
2924 (parallel_ok): Prevent packing only if the first
2925 instruction cannot be packed.
2927 2002-05-30 Jason Eckhardt <jle@redhat.com>
2928 Tom Rix <trix@redhat.com>
2930 * config/tc-d10v.c (build_insn): Check for immediates.
2932 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2934 * config/tc-mips.c: Replace GP in comments by $gp.
2935 (mips_big_got): Initialize.
2936 (mips_trap): Initialize.
2937 (load_address): Use mips_gp_register instead of hardcoded value.
2938 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2939 (macro): Use mips_gp_register instead of hardcoded value.
2940 (macro2): Change load_address calls.
2941 (md_pcrel_from): Comment formatting.
2942 (s_cpload): Use mips_gp_register instead of hardcoded value.
2943 (s_cprestore): Likewise. Comment formatting.
2944 (s_gpword): Fix data type.
2945 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2946 (nopic_need_relax): Replace GP in comments by $gp.
2947 (mips_elf_final_processing): Better comment.
2949 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2951 * configure.in: Add DLX configuraton
2952 * Makefile.am: Add DLX configuraton
2953 * configure: Regenerate.
2954 * Makefile.in: Regenerate.
2955 * config/tc-dlx.c: New file.
2956 * config/tc-dlx.h: New files.
2957 * NEWS: Mention new support.
2959 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2961 * config/obj-coff.c (write_object_file): Add missing semicolon.
2963 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2965 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2966 by the define. Remove superfluous check of mips_opts.mips16.
2967 (append_insn): Likewise. Canonicalize variable increments.
2968 (macro_build): Canonicalize variable increments.
2969 (macro_build_lui): Likewise.
2970 (load_register): Likewise.
2971 (load_address): Move pointer initialization.
2972 (macro): Move pointer to a more local scope. Canonicalize variable
2973 increments. Better comments. Replace magic constant for RA by the
2975 (macro2): Replace magic constant for RA by the define. Canonicalize
2976 variable increments.
2977 (mips_ip): Canonicalize variable increments.
2978 (mips16_ip): Replace magic constant for RA by the define.
2979 (my_getSmallParser): Canonicalize variable increments/decrements.
2980 (my_getPercentOp): Likewise.
2981 (my_getSmallExpression): Likewise.
2982 (s_align): Likewise.
2983 (s_mipsset): Likewise.
2984 (s_cpsetup): Likewise.
2985 (s_insn): Remove superfluous check of mips_opts.mips16.
2986 (s_mips_stab): Likewise.
2987 (mips_handle_align): Canonicalize variable increments.
2988 (s_mips_ent): Likewise.
2989 (s_mips_end): Add comment.
2991 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2993 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2994 * configure: Regenerate.
2996 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2998 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2999 * Makefile.in: Regenerate.
3000 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3001 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3002 * configure: Regenerate.
3003 * as.h: Use #include "" instead of <> for local header files.
3004 * flonum-konst.c: Likewise.
3005 * flonum-mult.c: Likewise.
3007 * listing.c: Likewise.
3008 * config/tc-ia64.h: Likewise.
3009 * config/tc-v850.h: Likewise.
3011 2002-05-24 TAMURA Kent <kent@netbsd.org>
3013 * configure.in: Add a target for i386-netbsdpe.
3014 * configure: Regenerate.
3016 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3018 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3019 (obj_elf_common): Call elf_common.
3020 (obj_elf_tls_common): New function.
3021 (elf_pseudo_tab): Support .tls_common.
3022 (special_sections): Add .tdata and .tbss.
3023 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3025 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3026 (obj_elf_parse_section_letters): Include T in error message.
3027 * config/tc-ppc.c (ppc_section_letter): Likewise.
3028 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3029 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3031 * config/tc-sparc.c (md_apply_fix3): Likewise.
3032 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3033 Define them if not BFD_ASSEMBLER.
3034 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3036 (md_apply_fix3): Add TLS relocs.
3037 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3038 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3039 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3040 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3041 (ia64_elf_section_letter): Include T in error message.
3042 (md_begin): Support TLS operators.
3043 (md_operand): Likewise.
3044 (ia64_gen_real_reloc_type): Support TLS relocs.
3045 * write.c (adjust_reloc_syms): Don't change symbols in
3046 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3048 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3050 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3051 round the relocation up rather than down.
3053 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3055 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3057 * doc/as.texinfo: Document that the COFF version of .section
3058 ignores the 'a' flag.
3060 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3062 * config/tc-alpha.c (assemble_tokens): Protect use of
3063 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3065 * write.c (size_seg): Check adjustment to last frag.
3066 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3068 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3069 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3070 (write_object_file): Invoke md_do_align if available, and use
3071 frag_align_code on text sections.
3072 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3073 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3074 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3075 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3076 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3079 2002-05-22 H.J. Lu <hjl@gnu.org>
3081 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3084 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3086 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3089 2002-05-22 H.J. Lu <hjl@gnu.org>
3091 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3092 for one .loc for compiler.
3094 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3096 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3099 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3101 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3102 Optimize the rotate by zero case.
3104 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3106 * configure.in: Remove accidental enabling of bfd_gas=yes for
3108 * configure: Regenerate.
3110 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3112 * app.c: Fix formatting.
3114 * ehopt.c: Likewise.
3116 * input-file.c: Likewise.
3117 * listing.c: Likewise.
3118 * macro.h: Likewise.
3119 * stabs.c: Likewise.
3120 * symbols.c: Likewise.
3122 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3124 * config/obj-generic.c: Delete file.
3125 * config/obj-generic.h: Likewise.
3127 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3129 * config/tc-avr.c (mcu_types): Update for new devices.
3131 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3133 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3135 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3137 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3138 worked sometimes by accident. Fix copy&paste comment.
3140 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3142 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3143 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3144 (mips_elf_final_processing): Let n32 use .reginfo.
3146 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3148 * config/tc-mips.c (append_insn): Fix too small range of variable.
3150 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3152 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3153 listing_prev_line().
3155 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3157 * config/tc-arm.c (md_assemble): Remove redundant call to
3160 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3163 * stabs.c (s_stab_generic): Fix grammatical error in warning
3166 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3168 * write.c (subsegs_finish): Don't specially align last subseg.
3170 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3172 * stabs.c (s_stab_generic): Warn about a description field that is
3175 * config/obj-coff.c: Fix compile time warnings when compiling
3176 without BFD_ASSEMBLER defined.
3179 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3181 (md_pcrel_from_section): Use md_pcrel_from().
3183 2002-05-11 Bruno Haible <bruno@clisp.org>
3185 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3186 by dwarf2_directive_loc, instead of calling dwarf2_where.
3188 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3190 * config/obj-coff.h: Fix formatting.
3191 * config/tc-mcore.c: Likewise.
3192 * config/tc-mn10300.c: Likewise.
3193 * config/tc-openrisc.c: Likewise.
3194 * config/tc-or32.c: Likewise.
3195 * config/tc-pdp11.c: Likewise.
3196 * config/tc-ppc.c: Likewise.
3197 * config/tc-ppc.h: Likewise.
3198 * config/tc-sh64.c: Likewise.
3199 * config/tc-sh.c: Likewise.
3200 * config/tc-tic54x.c: Likewise.
3201 * config/tc-xstormy16.c: Likewise.
3202 * config/tc-xstormy16.h: Likewise.
3204 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3206 * config/obj-coff.c: Fix formatting.
3207 * config/obj-elf.c: Likewise.
3208 * config/tc-alpha.c: Likewise.
3209 * config/tc-arm.c: Likewise.
3210 * config/tc-d10v.c: Likewise.
3211 * config/tc-d30v.c: Likewise.
3212 * config/tc-h8300.c: Likewise.
3213 * config/tc-hppa.c: Likewise.
3215 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3217 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3218 reloc when no_cond_jump_promotion.
3220 2002-05-08 Jim Wilson <wilson@redhat.com>
3222 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3223 current variable part of frag.
3225 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3227 * config/tc-mmix.c: Fix formatting.
3228 * config/tc-mmix.h: Likewise.
3230 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3232 * configure: Regenerate.
3234 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3236 * config/tc-m68k.c: Fix formatting.
3238 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3240 * Makefile.am: Honour DESTDIR.
3241 * Makefile.in: Regenerate.
3243 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3245 * config/tc-ia64.c: Fix formatting.
3246 * config/tc-ia64.h: Likewise.
3248 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3250 * config/tc-mips.c: Fix formatting.
3251 * config/tc-s390.c: Likewise.
3252 * config/tc-s390.h: Likewise.
3254 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3256 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3257 information for instructions.
3259 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3261 * as.h: Fix formatting.
3264 * dwarf2dbg.c: Likewise.
3265 * frags.h: Likewise.
3267 * macro.c: Likewise.
3269 * stabs.c: Likewise.
3270 * symbols.c: Likewise.
3272 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3274 * app.c (mri_pseudo): Only declare for TC_M68K.
3276 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3277 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3278 BFD_RELOC_16_BASEREL.
3279 (md_assemble): Likewise.
3280 (md_apply_fix3): Likewise.
3282 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3284 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3285 zero into an add of zero - it is not the same.
3287 2002-05-01 Arati Dikey <aratid@kpit.com>
3289 * tc-sh.c (get_specific): Generate warning if the same
3290 destination register is used in parallel instructions.
3292 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3294 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3296 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3298 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3299 backwards to prevent cascading errors.
3301 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3303 * configure.in: Add support for powerpc-*-windiss.
3304 * configure: Regenerated.
3306 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3308 * config/tc-s390.c (md_parse_option): Formatting.
3310 * config/tc-i386.c: Formatting fixes, add missing space in error
3313 2002-04-24 Christian Groessler <chris@groessler.org>
3315 * config/tc-z8k.c (build_bytes): Add support for new cases:
3316 CLASS_IGNORE and ARG_NIM4.
3317 (md_assemble): Prevent destruction of input_line_pointer if
3318 get_operands returns failure.
3320 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3322 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3323 instructions to be generated by macros.
3325 2002-04-24 Andreas Schwab <schwab@suse.de>
3327 * config/tc-i386.c (output_jump, output_disp)
3328 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3330 (md_apply_fix3): Remember addend value for rela relocations.
3331 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3333 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3335 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3336 from previous change.
3338 2002-04-22 Eric Christopher <echristo@redhat.com>
3340 * config/tc-mips.c (macro_build): Add warning if macro instructions
3341 are expanded into a branch delay slot.
3343 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3345 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3346 numbers, gdb relies on them to detect the start of the prologue.
3348 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3350 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3351 symbols in merge sections.
3353 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3355 * as.c (main): Don't reference _bfd_chunksize.
3357 2002-04-15 Tom Rix <trix@redhat.com>
3359 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3360 symbols in merge sections.
3362 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3364 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3365 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3366 argument for the precision.
3367 (gen_to_words): Update accordingly.
3369 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3371 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3372 BFD_VERSION_STRING unavailable.
3373 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3375 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3377 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3378 symbol_used_in_reloc_p is true.
3380 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3383 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3385 * dep-in.sed: Cope with absolute paths.
3386 * Makefile.am (dep.sed): Subst TOPDIR.
3388 * Makefile.in: Regenerate.
3390 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3392 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3393 (mips_ip): Remove unused variable.
3394 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3395 unsigned char with bfd_byte.
3396 (s_file): Remove unused variable.
3397 (s_mips_ent): Likewise.
3399 2002-04-03 Tom Rix <trix@redhat.com>
3401 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3403 (find_opcode): Fix warning in as_warn.
3404 * config/tc-d10v.h: Update Copyright.
3406 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3407 Tom Rix <trix@redhat.com>
3409 From Jeff Knaggs <jknaggs@redhat.com>
3410 * config/tc-d10v.c (check_resource_conflict): New function to
3411 check for resource conflicts.
3413 From Jason Eckhardt <jle@redhat.com>
3414 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3416 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3417 reserved control registers is used.
3418 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3421 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3422 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3423 instruction cannot be packed.
3425 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3426 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3427 write-write conflicts.
3428 (md_assemble): Reformat introductory comment.
3429 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3432 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3434 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3435 O_logical_not>): Derive final_seg from add_symbol.
3436 <O_multiply..O_logical_or>: More final_seg twiddles.
3438 2002-04-01 Jessica Han <jessica@cup.hp.com>
3440 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3443 2002-03-27 Andreas Schwab <schwab@suse.de>
3445 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3446 field for pc-relative fixups.
3447 (output_disp): Likewise.
3448 (md_estimate_size_before_relax): Likewise.
3449 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3450 pc-relative fixups in 64bit mode.
3452 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3454 * config/te-aix5.h: Typo fix.
3456 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3458 * Makefile.am: Run "make dep-am".
3459 * Makefile.in: Regenerate.
3460 * doc/Makefile.in: Regenerate.
3462 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3464 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3465 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3467 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3469 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3470 the EXTENDED bit here; report the estimate according to the
3473 2002-03-18 Tom Rix <trix@redhat.com>
3475 * configure.in: Add AIX 5 support.
3476 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3477 * config/te-aix5.h: New file. AIX 5 support.
3478 * configure: Regenerate.
3480 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3482 * po/fr.po: Updated version.
3484 2002-03-16 Andreas Jaeger <aj@suse.de>
3486 * doc/c-mips.texi (Machine Dependencies): Add new node.
3488 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3490 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3491 (mips_opts): Initialize "ase_mips3d" member.
3492 (file_ase_mips3d): New variable.
3493 (CPU_HAS_MIPS3D): New macro.
3494 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3495 based on command line options and configuration defaults.
3496 (macro_build, mips_ip): Accept MIPS-3D instructions if
3497 mips_opts.ase_mips3d is set.
3498 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3499 Add support for "-mips3d" and "-no-mips3d" options.
3500 (OPTION_ELF_BASE): Move to accomodate new options.
3501 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3502 (mips_elf_final_processing): Add a comment indicating that a
3503 MIPS-3D ASE ELF header flag should be set, when one exists.
3504 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3505 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3506 nomips3d" directives.
3508 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3510 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3511 a weak symbol in same section to be within reach.
3513 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3515 * po/fr.po: Updated version.
3517 2002-03-12 Andreas Schwab <schwab@suse.de>
3519 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3520 body record so that an error is given for misplaced .save
3523 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3525 * config/tc-i386.h (REX_OPCODE): Define.
3526 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3527 (rex_byte): typedef to int.
3528 * config/tc-i386.c: Group prototypes and vars together.
3529 Formatting fixes. Remove occurrences of "register" keyword.
3532 (mode_from_disp_size): Add INLINE keyword to prototype.
3533 (fits_in_signed_byte): Likewise.
3534 (fits_in_unsigned_byte): Likewise.
3535 (fits_in_unsigned_word): Likewise.
3536 (fits_in_signed_word): Likewise.
3537 (fits_in_unsigned_long): Likewise.
3538 (fits_in_signed_long): Likewise.
3539 (type_names): Constify.
3540 (intel_float_operand): Constify param.
3541 (add_prefix): Use REX_OPCODE.
3542 (md_assemble): Likewise. Modify for changed rex_byte.
3543 (parse_insn): Split out of md_assemble.
3544 (parse_operands): Likewise.
3545 (swap_operands): Likewise.
3546 (optimize_imm): Likewise.
3547 (optimize_disp): Likewise.
3548 (match_template): Likewise.
3549 (check_string): Likewise.
3550 (process_suffix): Likewise.
3551 (check_byte_reg): Likewise.
3552 (check_long_reg): Likewise.
3553 (check_qword_reg): Likewise.
3554 (check_word_reg): Likewise.
3555 (finalize_imm): Likewise.
3556 (process_operands): Likewise.
3557 (build_modrm_byte): Likewise.
3558 (output_insn): Likewise.
3559 (output_branch): Likewise.
3560 (output_jump): Likewise.
3561 (output_interseg_jump): Likewise.
3562 (output_disp): Likewise.
3563 (output_imm): Likewise.
3565 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3567 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3569 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3571 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3572 relocs except when BFD64.
3574 * write.c (number_to_chars_bigendian): Don't abort when N is
3575 larger than sizeof (VAL).
3576 (number_to_chars_littleendian): Likewise.
3578 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3580 * config/tc-hppa.c (md_apply_fix3): Add cast.
3581 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3584 2002-03-05 Paul Koning <pkoning@equallogic.com>
3586 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3587 (parse_ac5): New function for parsing float regs in float operand.
3588 (parse_expression): Remove attempt to make literals be octal.
3589 (parse_op_no_deferred): Support float literals.
3590 (parse_op): Reject attempts to refer to float regs.
3591 (parse_fop): New function, like parse_op but for float operand.
3592 (md_assemble): Add cases to parse float operands. Also fix
3593 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3595 2002-03-04 H.J. Lu <hjl@gnu.org>
3597 * config/obj-elf.c (special_section): Add .init_array,
3598 .fini_array and .preinit_array.
3600 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3601 .init_array and .fini_array.
3603 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3605 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3607 (obj_frob_symbol): Copy visibility.
3609 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3611 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3613 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3615 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3617 * po/es.po: Updated.
3619 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3621 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3622 only, undo the changes made on 2001-06-08, with the
3623 effect being that common or extern symbols are
3624 adjusted for embedded-PIC, but weak symbols are not.
3625 (md_estimate_size_before_relax: Likewise, with the effect
3626 that extern symbols are treated the same as weak symbols
3627 only if not embedded-PIC.
3628 (mips_fix_adjustable) Likewise, with the effect that
3629 weak or extern symbols are not adjusted for embedded-PIC.
3630 (md_apply_fix3): Tweak so that the case where value is zero
3631 is handled more correctly for embedded-PIC code.
3633 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3635 * doc/as.texinfo (Overview): Add missing @ifset IA64
3637 * configure.in (LINGUAS): Add es.po.
3638 * configure: Regenerate.
3639 * po/es.po: New file.
3641 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3643 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3644 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3645 and NO_PIC cases. Code cleanup.
3646 (macro2): Fix handling of 64bit register loads.
3648 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3650 * doc/as.texinfo: Add entry for IA64.
3651 * doc/c-ia64.texi: New file.
3653 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3655 * config/tc-hppa.c: Update copyright date.
3657 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3658 Remove references to chip manufacturers.
3659 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3661 (md_show_usage): Remove references to chip manufacturers. Mention
3663 (md_begin): Test power4 opcode flag bits.
3665 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3667 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3668 count exceeds prologue count.
3669 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3670 (unwind.label_prologue_count): New member.
3672 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3674 (get_saved_prologue_count): New function.
3675 (save_prologue_count): New function.
3676 (free_saved_prologue_count): New function.
3677 (dot_label_state): Record state label by calling save_prologue_count().
3678 (dot_copy_state): Restore prologue count by calling
3679 get_saved_prologue_count().
3680 (generate_unwind_image): Free up list of saved prologue
3681 counts by calling free_saved_prologue_counts().
3683 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3685 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3686 function declarations.
3688 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3690 * NEWS: Note that GASP is now deprecated.
3691 * Makefile.am: Do not build gasp-new by default.
3692 * Makefile.in: Regenerate.
3693 * doc/Makefile.am: Do not install gasp.info.
3694 * doc/Makefile.in: Regenerate.
3695 * gas/gasp.texi: Note that gasp is now deprecated.
3697 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3699 * NEWS: Mark 2.12 branch.
3701 2002-02-19 Tom Tromey <tromey@redhat.com>
3703 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3705 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3707 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3710 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3712 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3713 Make bit size independent of architecture switch.
3714 (md_begin): Add warning for -m64 with -Aesa.
3715 (s390_md_end): Use renamed architecture defines.
3717 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3719 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3721 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3723 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3726 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3728 * config/tc-mips.c (md_estimate_size_before_relax): Really
3729 make sure we treat weak like extern only for ELF. (Fixes
3730 patch from 2001-07-25.)
3732 2002-02-15 Ben Elliston <bje@redhat.com>
3734 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3737 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3739 * NEWS: Mention support for MMIX.
3741 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3743 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3744 a sequence of indpendent 'if' statements for easier debugging
3745 and future modification.
3747 2002-02-13 Matt Fredette <fredette@netbsd.org>
3749 * config/tc-m68k.c (md_show_usage): No longer display a
3750 hard-coded "68020" for the default CPU, instead display the
3751 canonical name of the true, configured default CPU.
3752 (m68k_elf_final_processing): Mark objects for sub-68020
3753 CPUs with the new EF_M68000 flag.
3755 2002-02-13 Andreas Schwab <schwab@suse.de>
3757 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3758 pc-relative relocations to merge sections in 64-bit mode.
3760 2002-02-13 Ben Elliston <bje@redhat.com>
3762 * NEWS: Document floating point number handling in gasp.
3763 * gasp.c: Include <assert.h> and "xregex.h".
3764 (is_flonum): New function.
3765 (chew_flownum): Likewise.
3766 (change_base): Consume flonums from the input, where possible.
3767 * doc/gasp.texi (Constants): Document floating point numbers.
3769 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3771 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3772 that implicitly use LR and RR selectors.
3774 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3776 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3777 and `epsw' as available on AM33 and above only.
3778 (other_register_name): Add logic to handle machine type encoded in
3781 2002-02-11 Tom Rix <trix@redhat.com>
3783 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3786 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3788 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3791 2002-02-11 Jan Hubicka <jh@suse.cz>
3793 * i386.c (md_assemble): Support 32bit address prefix.
3794 (i386_displacement): Likewise.
3795 (i386_index_check): Accept 32bit addressing in 64bit mode.
3797 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3799 * config/tc-sh.c (dot): Removed unused function.
3801 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3803 * Makefile.am: "make dep-am".
3804 * Makefile.in: Regenerate.
3805 * aclocal.m4: Regenerate.
3806 * config.in: Regenerate.
3807 * configure: Regenerate.
3808 * doc/Makefile.in: Regenerate.
3810 2002-02-10 Richard Henderson <rth@redhat.com>
3812 * doc/c-alpha.texi: New file.
3813 * doc/Makefile.am (CPU_DOCS): Add it.
3814 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3816 2002-02-09 Richard Henderson <rth@redhat.com>
3818 * config/tc-alpha.c (O_samegp): New.
3819 (USER_RELOC_P): Include it.
3820 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3821 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3822 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3823 (alpha_validate_fix): New.
3824 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3826 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3828 * doc/c-cris.texi: New.
3829 * doc/all.texi: @set CRIS.
3830 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3831 Include c-cris.texi.
3832 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3833 * doc/Makefile.in: Regenerate.
3835 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3837 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3838 determine if a number is a sign-extended 32-bit number.
3839 (load_register): Use IS_SEXT_32BIT_NUM.
3840 (macro): Check if load/store macro handling is using a
3841 constant 32-bit address on 64-bit address systems, and if
3842 so optimize the generation of that address.
3844 2002-02-08 Richard Henderson <rth@redhat.com>
3846 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3847 we've eliminated all foreign relocation types yet.
3848 (alpha_fix_adjustable): Likewise.
3850 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3852 Contribute sh64-elf.
3853 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3854 Stephen Clarke <Stephen.Clarke@st.com>
3855 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3856 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3857 * config/tc-sh.c (md_relax_table): Added default sizes for
3858 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3859 MOVI_16, MOVI_32 and MOVI_48.
3860 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3861 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3863 (shmedia_md_estimate_size_before_relax): Remove redundant
3864 blocks. Set fragP->fr_var even if relaxation type unchanged.
3865 Retain UNDEF_MOVI until expression decays to number.
3866 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3867 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3868 relocation types. Take fixP->fx_addnumber into account too.
3869 (shmedia_md_apply_fix): Likewise.
3870 (shmedia_md_convert_frag): Likewise.
3871 (shmedia_build_Mytes): Likewise.
3872 (sh64_consume_datalabel): Complain about nested datalabel.
3873 Support PIC relocs. Call sh_parse_name.
3874 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3875 in tc-sh.h to SHmedia reloc types.
3876 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3877 MOVI_GOTPC): New relaxation constants.
3878 (md_relax_table): Introduce relaxation directives for PIC-related
3880 (sh_PIC_related_p): Handle datalabel.
3881 (sh_check_fixup): Choose SH5 PIC relocations.
3882 (sh_cons_fix_new): Added BDF_RELOC_64.
3883 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3884 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3885 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3886 current ISA is SHmedia, get 7 bytes.
3887 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3888 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3890 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3891 shmedia_apply_fix3 and make void.
3892 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3893 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3895 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3896 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3897 2001-03-14 DJ Delorie <dj@redhat.com>
3898 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3899 * doc/Makefile.in(CPU_DOCS): Ditto.
3900 * doc/c-sh64.texi: New file.
3901 * doc/as.texinfo: Add SH64 support.
3902 2001-03-13 DJ Delorie <dj@redhat.com>
3903 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3904 A_REUSE_PREV so that its purpose is more obvious.
3905 (shmedia_build_Mytes): Ditto.
3906 2001-03-07 DJ Delorie <dj@redhat.com>
3907 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3909 (sh64_vtable_inherit): Ditto.
3910 (strip_datalabels): New, strip "datalabel" from given line.
3911 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3913 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3914 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3916 (shmedia_build_Mytes): ... to here.
3917 2001-03-06 DJ Delorie <dj@redhat.com>
3918 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3920 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3921 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3922 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3923 address by one in call to dwarf2_emit_insn.
3924 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3925 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3926 alignment handling broken by imported changes.
3927 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3928 (sh64_handle_align): Declare.
3929 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3930 (sh64_max_mem_for_rs_align_code): Declare.
3931 (enum sh64_isa_values): Moved here from tc-sh64.c.
3932 (md_do_align): Define.
3933 (sh64_do_align): Declare.
3934 (struct sh64_tc_frag_data): New.
3935 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3937 (TC_FRAG_INIT): Change to set new datatype.
3938 (struct sh64_segment_info_type): Rename member
3939 last_flushed_location to last_contents_mark. All users changed.
3940 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3941 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3942 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3943 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3944 of unsetting seen_insn.
3945 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3946 call sh64_update_contents_mark.
3947 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3948 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3949 enum sh64_isa_values.
3950 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3951 (emitting_crange): Boolean guard moved to file scope from function
3952 scope in sh64_set_contents_type.
3954 (sh64_update_contents_mark): New; most split out from
3955 sh64_flush_pending_output.
3956 (shmedia_md_end): Call sh64_update_contents_mark. Set
3957 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3958 (sh64_do_align): New function.
3959 (sh64_max_mem_for_rs_align_code): New function.
3960 (sh64_handle_align): Rename from shmedia_do_align. Make
3961 non-static. Add head comment. Emit zero bytes for n bytes modulo
3962 four. Change return-type to void.
3963 (shmedia_elf_new_section): Remove.
3964 (shmedia_md_assemble): Call sh64_update_contents_mark.
3965 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3966 new frag. Call sh64_update_contents_mark after making the new
3968 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3969 and sh_flush_pending_output.
3970 (sh64_flag_output): Also call md_flush_pending_output, but add
3971 condition on not emitting_crange.
3972 (sh64_tc_cons_fix_new): Remove.
3973 2001-01-12 Nick Clifton <nickc@redhat.com>
3974 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3975 alignment handling scheme imported from sourceware.
3976 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3977 * config/tc-sh64.h (TARGET_FORMAT): Define.
3978 (sh64_target_format): Prototype.
3979 * config/tc-sh64.c (sh64_target_mach): New function.
3980 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3981 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3982 zero_address_frag instead of copying the frag of the symbol.
3983 (shmedia_frob_file_before_adjust): Ditto.
3984 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3985 to valueT to remove signedness.
3986 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3987 headers to output_bfd. Do not evaluate symbols if final is false;
3989 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3990 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3991 to the current frag, call shmedia_md_convert_frag to emit fixups
3992 and make frag_wane neutralize the frag. Update comments.
3993 * config/tc-sh.c (md_convert_frag): Change caller of
3994 shmedia_md_convert_frag.
3995 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3996 * config/tc-sh64.h: Tweak comments and correct formatting.
3997 * config/tc-sh64.c: Ditto.
3998 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3999 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4000 for the no-relocation case.
4001 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4002 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4004 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4006 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4007 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4009 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4011 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4012 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4013 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4014 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4015 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4016 if reloc is emitted.
4017 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4018 New options plus bugfixes.
4019 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4021 (md_parse_option): Handle new options.
4022 (md_show_usage): Add blurb for new options.
4023 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4024 (sh64_expand, sh64_pt32): New variables.
4025 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4026 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4027 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4028 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4029 <resolved previously-pc-relative relocs>: Handle
4030 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4031 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4032 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4033 points to SHcompact code.
4034 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4035 SH64PCREL16)>: Check that ISA of what operand points at and
4036 PTA/PTB matches, or emit error.
4037 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4038 SHMEDIA_BFD_RELOC_PT.
4039 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4041 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4042 condition for MOVI expansion.
4043 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4044 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4046 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4048 (sh64_target_format): Error-check setting of sh64_pt32 and
4049 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4050 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4051 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4052 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4053 * config/tc-sh64.c: Improve comments.
4054 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4055 not say the linker will check correctness of PTA/PTB expansion.
4056 (shmedia_md_end): Make non-static.
4057 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4059 * config/tc-sh.c (sh_finalize): Remove.
4060 * config/tc-sh.h (md_end): Do not define.
4061 Remove prototype for sh_finalize.
4062 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4063 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4064 sh64_section_data container when storing section type in tdata
4065 field in elf_section_data.
4066 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4068 * Makefile.am: Update dependencies.
4069 * Makefile.in: Regenerate.
4070 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4071 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4072 dwarf2_emit_insn call with test on debug_type.
4073 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4074 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4075 CRT_SH5_ISA32 sticky for 64-bit.
4076 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4077 Generate .crange sections when switching ISA mode or emitting
4078 constants in same section as code.
4079 * config/tc-sh64.c: Reformat structure definitions.
4080 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4082 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4083 to emit a .cranges descriptor when contents type changes. Only
4084 emit error if changing contents type and -no-mix is in effect.
4085 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4086 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4087 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4088 sh64_flush_last_crange over sections.
4089 When checking main symbol of datalabel symbol, check for
4090 STO_SH5_ISA32, not ISA type of section in definition.
4091 (shmedia_frob_file_before_adjust): Check main symbol for
4092 STO_SH5_ISA32; don't check ISA type of section in definition.
4093 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4094 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4095 .cranges entries have been output.
4096 (shmedia_elf_new_section): Just call md_flush_pending_output.
4097 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4098 fix. Do not set tc_segment_info_data.in_code for section. Call
4099 sh64_set_contents_type for SHmedia code.
4100 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4101 false. Call md_flush_pending_output.
4102 (sh64_target_format): Check that -no-mix and
4103 -shcompact-const-crange are used in sane combination with other
4105 (shmedia_md_pcrel_from_section): Check type of fix for how to
4107 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4108 not ISA type of section in definition.
4109 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4110 hold contents-type state.
4111 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4112 (sh64_flush_pending_output): Declare.
4113 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4114 (sh64_tc_cons_fix_new): Declare.
4115 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4116 call sh64_flag_output.
4117 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4118 call sh64_set_contents_type to mark SHcompact code and set
4120 (md_longopts): New options "-no-mix" and
4121 "-shcompact-const-crange".
4122 (md_parse_option): Handle new options.
4123 (md_show_usage): Add blurb for new options.
4124 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4125 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4126 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4127 (sh64_last_insn_frag): New.
4128 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4129 to get frag for insn opcode for generating fixups; do not assume it
4131 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4133 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4135 (TC_FRAG_TYPE): Define as fragS *.
4136 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4137 (sh64_last_insn_frag): Declare.
4138 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4139 not == NULL before dereferencing.
4140 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4141 Get rid of BFD section flag and EF_SH64_ABI64.
4142 * config/tc-sh64.c (shmedia_frob_section_type): Use
4143 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4144 communicate the section as containing SHmedia code. Describe why.
4145 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4146 EF_SH64 regardless of ABI.
4147 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4148 in error message. Handle resolved expressions for
4149 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4150 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4151 (shmedia_check_limits): Handle BFD_RELOC_64.
4152 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4153 a STO_SH5_ISA32 symbol, only the BFD value.
4154 2000-12-11 Ben Elliston <bje@redhat.com>
4155 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4156 dwarf2_generate_asm_lineno.
4157 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4158 Handle PC-relative MOVI expansions with assembler relaxation.
4159 Generate PC-relative relocs from 16-bit PC-relative expressions.
4160 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4161 (shmedia_md_pcrel_from_section): ...here.
4162 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4163 turned completely resolved. Adjust relocation type for 16-bit
4164 immediate operands that has turned PC-relative. Adjust back for
4165 MD_PCREL_FROM_SECTION being applied twice.
4166 (shmedia_md_convert_frag): Always emit reloc for expression with
4167 global or weak symbol. Handle relaxation result for PC-relative
4169 (shmedia_md_estimate_size_before_relax): An expression with a weak
4170 or global symbol can not be relaxed. Break out tests for
4171 relaxable symbol into variable sym_relaxable.
4172 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4173 UNDEF_MOVI)>: Break out any PC-relative expression and change
4175 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4177 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4178 MOVI expansion. If X_op_symbol of the immediate expression is
4179 set, make an expression symbol for the argument to frag_var.
4180 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4182 (END): Adjust for new relaxations.
4183 (md_relax_table): Add entries for new relaxations.
4184 2000-12-07 Ben Elliston <bje@redhat.com>
4185 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4186 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4187 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4188 SHORI operand offsets in PT/PTA/PTB expansions.
4189 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4190 Implement DataLabel semantics.
4191 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4192 shmedia_frob_file_before_adjust.
4193 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4194 (DATALABEL_SUFFIX): Define.
4195 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4196 symbol list to update "datalabel" symbols to their main symbol
4198 (shmedia_frob_file_before_adjust): New.
4199 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4200 undefined and set STT_DATALABEL.
4201 (sh64_frob_label): Initialize TC symbol field.
4202 (sh64_consume_datalabel): Actually implement semantics. New
4203 parameter operandf, call it instead of expression.
4204 (sh64_exclude_symbol): New.
4205 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4206 to sh64_consume_datalabel.
4207 (tc_symbol_new_hook): Define to tc_frob_symbol.
4208 (TC_SYMFIELD_TYPE): Define to symbolS *.
4209 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4210 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4211 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4213 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4214 generating dwarf2 debug information.
4215 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4216 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4217 elf64-sh64 for the 64-bit ABI.
4218 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4220 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4221 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4223 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4224 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4225 (enum sh64_abi_values): New type.
4226 (enum sh64_isa_values): New type.
4227 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4228 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4229 (sh64_abi): Replace shmedia_64.
4230 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4231 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4232 (s_sh64_mode): Check validity for this target.
4233 (sh64_target_format): Initialize defaults for ISA and ABI.
4234 Fallback to old object format if no SH64 ISA or ABI has been
4236 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4237 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4238 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4239 * config/tc-sh64.h: Fix typo in comment.
4240 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4241 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4242 <PT fixups for absolute values>: Size will be longest, not
4244 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4245 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4246 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4247 and l1 to hold lowercase of two first characters. Change all
4248 remaining TO_LOWER to tolower.
4249 * config/tc-sh64.c (TO_LOWER): Delete.
4250 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4251 (md_parse_name): Define.
4252 (sh64_consume_datalabel): Declare.
4253 (DOLLAR_DOT): Define.
4254 * config/tc-sh64.c (shmedia_parse_exp): New.
4255 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4256 (shmedia_parse_reg): Remove const from src
4258 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4259 (shmedia_md_assemble): Ditto for op_end variable.
4260 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4261 Use shmedia_parse_exp, not parse_exp.
4262 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4263 parameter. All callers changed.
4264 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4266 (shmedia_parse_reg): Put first two character in local variables.
4267 Use tolower, not TO_LOWER. If no register is found and argtype
4268 indicates a control register, scan shmedia_creg_table
4270 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4271 * Makefile.am (CPU_TYPES): Add sh64.
4272 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4273 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4274 Regenerate dependencies.
4275 * Makefile.in: Regenerate.
4276 * configure.in: Add support for sh64-*-elf*.
4277 * configure: Regenerate.
4278 * config/tc-sh64.h: New.
4279 * config/tc-sh64.c: New.
4280 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4281 .mode, .isa and .uaquad.
4282 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4283 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4284 [HAVE_SH64] (END): Define as 10.
4285 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4286 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4288 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4289 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4290 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4291 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4293 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4294 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4295 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4296 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4297 SHmedia instructions. Handle state-change after switching to
4299 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4300 (md_parse_option) [HAVE_SH64]: Parse new options.
4301 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4302 (md_convert_frag) [HAVE_SH64] <default>: Call
4303 shmedia_md_convert_frag instead of abort.
4304 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4305 BFD_RELOC_SH_SHMEDIA_CODE.
4306 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4307 SHcompact or SHmedia code.
4308 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4309 shmedia_md_apply_fix instead of abort.
4310 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4311 result from calling shmedia_md_estimate_size_before_relax instead
4313 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4315 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4316 shmedia_init_reloc and do nothing more if it returns non-zero.
4317 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4318 * po/POTFILES.in: Regenerate.
4319 * po/gas.pot: Regenerate.
4321 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4323 * config/tc-sh.c (parse_at): Install the correct version of
4326 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4327 assume fixP->fx_subsy is non-NULL.
4329 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4331 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4332 A_DISP_PC_ABS, and adjust it by -4.
4333 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4335 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4336 the operand type is not A_DISP_PC_ABS.
4338 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4340 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4341 common and weak symbols. Handle common and weak symbols as
4342 undefined symbols with regards to GREG handling and merging.
4343 (mmix_frob_file): Ditto.
4345 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4347 * configure.in (hppa-*-netbsd*): New target.
4348 * configure: Regenerate.
4349 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4351 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4353 * config/tc-v850.c: Add missing prototypes amd use old-style
4354 function definitions.
4355 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4356 (sdata_section tdata_section, zdata_section, sbss_section,
4357 tbss_section, zbss_section, rosdata_section, rozdata_section,
4358 scommon_section, tcommon_section, zcommon_section,
4359 call_table_data_section, call_table_text_section): Delete.
4360 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4361 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4362 v850_call_table_data, v850_call_table_text): Delete.
4363 (struct v850_seg_entry): New.
4364 (v850_seg_table): New.
4365 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4366 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4367 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4368 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4371 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4372 recording of alignment.
4373 (md_pseudo_table): Use v850_seg.
4374 (md_begin): Don't init .call_table_data and .call_table_text here.
4375 Set v850_seg_table bss entry.
4377 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4379 Support on-demand global register allocation by passing on
4380 base-plus-offset relocs to the linker.
4381 * config/tc-mmix.c: Tweak and fix typos in comments.
4382 (allocate_undefined_gregs_in_linker): New variable.
4383 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4384 (md_longopts): Add --linker-allocated-gregs.
4385 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4386 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4387 (md_show_usage): Update text for -x. Add text for
4388 --linker-allocated-gregs.
4389 (tc_gen_reloc): Derive default value for addend from val and
4390 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4391 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4392 GREG if allocate_undefined_gregs_in_linker.
4393 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4394 --linker-allocated-gregs.
4395 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4396 --linker-allocated-gregs. Mention that it's implied by -x.
4397 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4398 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4400 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4402 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4404 * Makefile.am: Run "make dep-am"
4405 * Makefile.in: Regenerate.
4407 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4409 * config/tc-or32.c: New file.
4410 * config/tc-or32.h: New file.
4411 * configure.in: Add support for or32 targets.
4412 * configure: Regenerate.
4413 * config/obj-coff.c: Add support for or32 targets.
4414 * config/obj-coff.h: Add support for or32 targets.
4415 * Makefile.am: Add support for or32 targets.
4416 * Makefile.in: Regenerate.
4417 * NEWS: Mention support for OpenRISC.
4418 * doc/Makefile.in: Regenerate.
4419 * po/POTFILES.in: Regenerate.
4420 * po/gas.pot: Regenerate.
4422 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4424 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4427 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4429 * config/tc-mips.c (tc_gen_reloc): Arrange for
4430 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4431 their LO16 parts, even for ELF.
4433 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4435 * config/tc-i386.c: Protect definitions of true and false
4438 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4440 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4441 made because of .weak, if they are neither defined nor used in any
4444 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4446 * configure: Regenerated.
4448 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4450 * doc/Makefile.am (install): Depend on install-info.
4451 * doc/Makefile.in: Regenerate.
4453 2002-01-26 Nick Clifton <nick@redhat.com>
4455 * po/fr.po: Updated version
4457 2002-01-24 Kazu Hirata <kazu@hxi.com>
4459 * config/tc-h8300.c (check_operand): Don't print a warning
4460 when a valid 24-bit address is given to a 16-bit address
4463 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4465 * config/tc-sh.c (sh_elf_suffix): Removed.
4466 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4467 sh_end_of_match, sh_parse_name): New functions.
4468 (sh_elf_cons): Simplify.
4469 (parse_exp): Reject misplaced PIC operands.
4470 (md_undefined_symbol): Simplify.
4471 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4472 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4473 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4474 Complain if subsy remains at the end.
4475 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4476 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4478 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4480 * config/tc-mn10300.c (xr_registers): Move `pc'...
4481 (other_registers): ... here.
4483 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4485 * Makefile.am: Run "make dep-am".
4486 * Makefile.in: Regenerate.
4487 * gas/po/POTFILES.in: Regenerate.
4489 2002-01-21 DJ Delorie <dj@redhat.com>
4491 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4492 stabstr_name allocation permanent, as it will be referenced from
4495 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4497 * configure.in (ia64-*-netbsd*): New target.
4498 * configure: Regenerate.
4500 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4502 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4504 <Detailed description, ARM options>: Ditto.
4505 * doc/c-arm.texi (ARM Options): Ditto.
4507 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4509 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4510 do_mia, do_mar and do_mra respectively.
4511 (do_mav_*): Renamed from do_c_*.
4512 (mav_reg_required_here, mav_parse_offset): Renamed from
4513 cirrus_reg_required_here and cirrus_parse_offset respectively.
4514 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4516 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4517 Keith Walker <keith.walker@arm.com>
4519 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4520 (insns): Add pattern for bxj instruction.
4521 (do_bxj): New function.
4522 (arm_cpus): Add arm926ej.
4523 (arm_archs): Add armv5tej.
4525 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4527 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4529 2002-01-19 Keith Walker <keith.walker@arm.com>
4531 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4533 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4535 * NEWS: Mention new ARM command-line options and VFP support.
4537 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4539 (ARM_CEXT_MAVERICK): Similarly.
4540 (ARM_ANY): Now means any core instruction.
4541 (CPU_DEFAULT): Default to ARM_ANY.
4542 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4543 (pic_code): Declare for all object types. Make type int.
4544 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4545 (march_fpu_opt, mfpu_opt): Declare.
4546 (md_longopts): Tidy up conditional definitions.
4547 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4548 (arm_long_opts): New tables.
4549 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4550 (arm_parse_extension): New function.
4551 (md_parse_option): Rewrite using new table-driven system.
4552 (md_show_usage): Use new table-driven system.
4553 (md_begin): Calculate cpu_variant from command line option data.
4554 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4555 command-line options.
4556 * doc/c-arm.texi: Likewise.
4558 2002-01-18 Andreas Jaeger <aj@suse.de>
4560 * as.c (parse_args): Update year.
4562 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4564 * config/tc-tic54x.c (encode_address): Add a more informative
4565 warning about incorrect syntax.
4567 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4569 * po/gas.pot: Regenerate.
4571 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4573 * macro.c (get_any_string): Add no-c-format comment to prevent
4574 confusion when translating string.
4575 * gasp.c (get_any_string): Add no-c-format comment to prevent
4576 confusion when translating string.
4578 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4579 Johannes Stezenbach <js@convergence.de>
4580 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4581 matched before the shorter ones.
4582 (my_getSmallParser): Fix handling of nested parentheses in
4583 percent_op's. Code cleanup.
4584 (my_getPercentOp): New function, code from my_getSmallParser.
4585 (my_getSmallExpression): Fix handling of closing parentheses.
4586 Code cleanup. Better comments.
4588 2002-01-16 Nick Clifton <nickc@redhat.com>
4590 po/tr.po: New file: Turkish translation.
4591 configure.in (LINGUAS): Add "tr".
4592 configure: Regenerate.
4594 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4596 Support for VFP instructions
4597 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4598 (cp_address_required_here): New argument wb_ok. When false, do not
4599 accept write-back forms of addressing. Change all callers.
4600 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4601 (FPU_VFP_EXT_V2): Define.
4602 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4603 Define in terms of above.
4604 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4605 (vfp_reg): New struct.
4606 (vfp_regs): New array of registers.
4607 (insns): Add VFP instructions.
4608 (sn_table): New array of VFP single-precision register names.
4609 (dn_table): New array of VFP double-precision register names.
4610 (all_reg_maps): Add the new register tables.
4611 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4612 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4613 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4614 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4615 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4616 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4617 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4618 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4619 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4620 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4621 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4622 (do_vfp_sp_dp_cvt): New functions.
4623 (md_begin): Set soft-float flag for appropriate VFP work.
4624 (md_atof): Handle VFP-format doubles.
4625 (md_parse_option): Handle VFP command-line options.
4626 (md_show_usage): Display VFP command-line options.
4628 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4630 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4631 various command line options.
4633 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4635 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4637 (xstormy16_md_apply_fix3): Do not return a value.
4639 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4641 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4642 the -EL/-EB option that matches the target's endianness.
4643 (md_parse_option): Likewise.
4645 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4647 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4648 is not dependent on ARM_BI_ENDIAN.
4650 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4652 * tc-arm.c (all error messages): Normalize capitalization of messages.
4654 * tc-arm.h (md_operand): Delete define.
4655 * tc-arm.c (in_my_get_expression): New static variable.
4656 (my_get_expression): Set and clear it.
4657 (md_operand): New function. If called from my_get_expression
4658 put the error in inst.error.
4659 (output_inst): Now takes argument of instruction being assembled.
4660 Print it out with any error message.
4661 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4663 (end_of_line): Don't update inst.error if it is already set.
4665 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4667 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4668 op that can be translated into a mvn instruction.
4670 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4672 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4673 setting default md.flags.
4674 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4675 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4676 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4677 for 32 bit unwind info blocks.
4678 (generate_unwind_image): Add support for different types
4679 of unwind images (32 bits and/or big-endian).
4680 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4681 (ia64_target_format): Add support for hpux target formats.
4682 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4683 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4684 SHT_FINI_ARRAY elf section types.
4686 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4688 * tc-arm.c (struct reg_entry): Move before prototypes.
4689 (int_register, cp_register, fp_register): Delete.
4690 (reg_table): Delete. Replaced with ...
4691 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4692 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4693 (mav_dspsc_table): ... one table per register set.
4694 (arm_reg_hsh): Delete.
4695 (struct reg_map): New structure.
4696 (all_reg_maps): New array.
4697 (enum arm_reg_type): New enums.
4698 (build_reg_hsh): New function.
4699 (insert_reg_alias): Use hash table passed by caller. Adjust all
4701 (create_register_alias): New function, split out from ...
4702 (md_assemble): ... here.
4703 (md_begin): Build new register hash tables.
4704 (arm_reg_parse): New argument for the hash table to search. Adjust all
4706 (arm_reg_parse_any): New function.
4707 (co_proc_number): Look up the processor number in the processor hash
4709 (cirrus_regtype): Delete.
4710 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4711 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4712 (ARM_EXT_MAVERICKsc_register): Delete.
4713 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4714 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4716 (do_c_triple_4, do_c_triple_5): Delete.
4717 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4718 (do_c_quad_6): Delete.
4719 (do_c_quad_6[ab]): New functions.
4720 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4721 arguments to use new register parsing methods.
4722 (cirrus_reg_required_here): Likewise.
4723 (insns): Reclassify cirrus maverick worker functions.
4724 (cirrus_valid_reg): Delete.
4726 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4728 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4729 (sh*-*-netbsdelf*): New target.
4730 * configure: Regenerate.
4731 * tc-sh.h: Update copyright years.
4732 (TARGET_FORMAT): Add version for TE_NetBSD.
4734 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4736 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4739 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4741 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4742 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4744 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4746 * tc-mips.c (mips_cprestore_valid): New flag.
4747 (mips_frame_reg_valid): New flag.
4748 (macro) [M_JAL_2]: Check both flags.
4749 [M_JAL_A]: Likewise.
4750 (s_cprestore): Set mips_cprestore_valid.
4751 (tc_get_register): If setting mips_frame_reg, set
4752 mips_frame_reg_valid and clear mips_cprestore_valid.
4753 (s_mips_ent): Clear both flags.
4754 (s_mips_end): Clear both flags.
4756 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4758 * write.c (write_object_file): Make use of bfd_section_list_remove.
4759 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4760 * config/tc-mmix.c (mmix_frob_file): Likewise.
4762 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4764 * configure.in (i386-*-netbsdelf*): Collapse target into...
4765 (i386-*-netbsd*): ...this. Add support for x86-64.
4766 * configure: Regenerated.
4768 2002-01-03 matthew green <mrg@redhat.com>
4770 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4772 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4774 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4777 For older changes see ChangeLog-0001
4783 version-control: never