1 2003-02-06 Alan Modra <amodra@bigpond.net.au>
3 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
6 2003-02-05 Alan Modra <amodra@bigpond.net.au>
8 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
9 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
11 (md_assemble): Handle TLS relocs.
12 (ppc_force_relocation): Force for all TLS relocs.
13 (ppc_fix_adjustable): Likewise.
14 (md_apply_fix3): Handle TLS relocs.
16 2003-02-04 Alan Modra <amodra@bigpond.net.au>
18 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
19 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
21 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
23 * config/tc-mips.c (enum small_ex_type): Remove.
24 (imm_unmatched_hi): Remove.
25 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
26 argument from calls to append_insn.
27 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
29 (macro_build): Update append_insn calls.
30 (mips16_macro_build, macro_build_lui): Likewise.
31 (mips_ip): Rework handling of small expressions. Move explicit
32 relocation handling into my_getSmallExpression. Assume that the
33 value of 'o' operands is zero if there is only one bracketed
35 (percent_op): Make constant. Record the BFD relocation code
36 associated with each operator.
37 (my_getSmallParser, my_getPercentOp): Remove.
38 (parse_relocation): New function.
39 (my_getSamllExpression): Rework. Fill in relocations here
40 rather than in mips_ip.
42 2003-01-29 Nick Clifton <nickc@redhat.com>
44 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
45 assembler's handling of # <linenum> "<filename>" directives work.
47 2003-01-28 Jakub Jelinek <jakub@redhat.com>
49 * dwarf2dbg.c: Include filenames.h.
50 (struct file_entry): Make filename const char *.
51 (dirs, dirs_in_use, dirs_allocated): New variables.
52 (get_filenum): Add NUM argument. Build directory table.
53 (dwarf2_where): Adjust caller.
54 (dwarf2_directive_file): Use get_filenum to allocate
55 slot in file and directory tables.
56 (dwarf2_directive_loc): Recreate full filename from
57 directory and filename part if needed for listing.
58 (out_file_list): Output directory table.
59 Output main source file dirname before its filename.
61 2003-01-28 Dmitry Diky <diwil@mail.ru>
63 * config/tc-msp430.c: Replace occurences of 'tolower' with
66 2003-01-27 David Mosberger <davidm@hpl.hp.com>
68 * config/tc-ia64.c (dot_vframesp): Correct error message.
69 (dot_vframepsp): Ditto.
71 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
73 * configure.in (em): Set to irix on all Irix systems.
75 * config/te-irix.h: New file.
76 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
77 whether to use Irix-specific 64-bit format.
79 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
81 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
83 2003-01-25 Jakub Jelinek <jakub@redhat.com>
85 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
86 (tc_gen_reloc): Handle TLS relocs.
87 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
88 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
90 * config/obj-elf.c (obj_elf_section_word): Handle tls.
91 (obj_elf_type): Handle tls_object.
93 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
95 * config/tc-s390.c (s390_tls_suffix): New function.
96 (elf_suffix_type): Add suffix enums for TLS relocations.
97 (s390_elf_suffix): Add suffix strings for TLS relocations.
98 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
100 (md_gather_operands): Map new instruction operand/elf suffix
101 combinations for TLS to bfd relocations.
102 (tc_s390_fix_adjustable): Add new TLS relocations.
103 (tc_s390_force_relocation): Likewise.
104 (md_apply_fix3): Likewise.
106 2003-01-24 Alan Modra <amodra@bigpond.net.au>
108 * as.h: Update copyright date.
109 * symbols.c: Likewise.
110 * config/tc-d10v.h: Likewise.
111 * config/tc-fr30.h: Likewise.
112 * config/tc-i960.h: Likewise.
113 * config/tc-mips.h: Likewise.
115 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
116 (MD_APPLY_SYM_VALUE): Move.
118 2003-01-23 Nick Clifton <nickc@redhat.com>
120 NEWS: Announce sh2e support.
124 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
126 * config/tc-sh.c (md_show_usage): Added sh2e next to
128 (sh_elf_final_processing): Handle arch_sh2e.
130 2003-01-23 Alan Modra <amodra@bigpond.net.au>
132 * symbols.c (S_FORCE_RELOC): Add "strict" param.
133 * symbols.h (S_FORCE_RELOC): Likewise.
134 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
135 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
136 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
137 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
138 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
139 * write.c (generic_force_reloc): New function.
140 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
141 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
142 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
143 * as.h (generic_force_reloc): Declare.
144 * doc/internals.texi (S_FORCE_RELOC): Update.
145 (TC_FORCE_RELOCATION_SUB_SAME): Update.
147 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
149 (alpha_fix_adjustable): Likewise.
150 * config/tc-arm.c (arm_force_relocation): Likewise.
151 * config/tc-cris.c (md_cris_force_relocation): Likewise.
152 * config/tc-frv.c (frv_force_relocation): Likewise.
153 * config/tc-i386.c (md_apply_fix3): Likewise.
154 * config/tc-ia64.c (ia64_force_relocation): Likewise.
155 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
156 * config/tc-m32r.c (m32r_force_relocation): Likewise.
157 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
158 * config/tc-mcore.c (mcore_force_relocation): Likewise.
159 * config/tc-mips.c (mips_force_relocation): Likewise.
160 * config/tc-mmix.c (mmix_force_relocation): Likewise.
161 * config/tc-ppc.c (ppc_force_relocation): Likewise.
162 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
163 * config/tc-sh.c (sh_force_relocation): Likewise.
164 (md_pcrel_from_section): Likewise.
165 * config/tc-sparc.c (tc_gen_reloc): Likewise.
166 * config/tc-v850.c (v850_force_relocation): Likewise.
167 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
168 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
169 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
170 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
172 * config/tc-d10v.c (d10v_force_relocation): Delete.
173 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
174 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
175 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
176 * config/tc-fr30.c (fr30_force_relocation): Delete.
177 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
178 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
179 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
180 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
181 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
182 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
183 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
184 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
185 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
186 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
187 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
188 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
189 * config/tc-i386.c (i386_force_relocation): Delete.
190 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
192 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
193 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
194 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
195 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
197 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
198 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
200 2003-01-23 Alan Modra <amodra@bigpond.net.au>
202 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
203 sh64_elf_section_data.
204 * config/tc-sh64.h: Include elf32-sh64.h.
205 * config/tc-m68hc11.c: Don't include stdio.h.
206 (md_show_usage): Fix missing continuation.
207 * Makefile.am: Run "make dep-am".
208 * Makefile.in: Regenerate.
210 2003-01-22 Nick Clifton <nickc@redhat.com>
212 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
214 2003-01-21 Fabio Alemagna <falemagn@aros.org>
216 * configure.in: Handle *-*-aros*.
217 * configure: Regenerated from configure.in.
219 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
221 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
222 gotplt and pltoff relocations.
223 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
224 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
225 gotplt and pltoff to bfd relocations.
226 (md_gather_operands): Map new instruction operand/elf suffix
227 combinations to bfd relocations.
228 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
229 to the list of unadjustable relocations.
230 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
231 and pltoff relocations.
232 (md_apply_fix3): Add the new relocations.
234 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
236 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
239 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
241 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
242 of relocs for memory bank addressing.
244 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
246 * config/tc-m68hc11.c (md_show_usage): Update usage.
247 (md_parse_option): Recognize -m68hcs12.
248 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
250 * doc/as.texinfo (Overview): Document new option -m68hcs12.
252 2003-01-16 Jakub Jelinek <jakub@redhat.com>
254 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
256 2003-01-16 Alan Modra <amodra@bigpond.net.au>
258 * Makefile.am: Run "make dep-am".
259 * Makefile.in: Regenerate.
260 * po/POTFILES.in: Regenerate.
262 2003-01-11 Alan Modra <amodra@bigpond.net.au>
264 * read.c (get_absolute_expr): New, split out from..
265 (get_absolute_expression): ..here.
266 * read.h (get_absolute_expr): Declare.
267 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
268 Trim size to arch bits_per_address, and test for negative input
269 via get_absolute_expr.
271 2003-01-07 DJ Delorie <dj@redhat.com>
273 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
275 (xstormy16_md_apply_fix3): Use adjustment.
277 2003-01-02 Ben Elliston <bje@redhat.com>
279 * configure.in: Add iq2000-elf target.
280 * configure: Regenerate.
281 * config/tc-iq2000.c: New file.
282 * config/tc-iq2000.h: Likewise.
283 * po/gas.pot: Regenerate.
285 2003-01-02 Chris Demetriou <cgd@broadcom.com>
287 * config/tc-mips.c: Update copyright years to include 2003.
288 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
289 Additionally, clean up their code slightly and clean up their
292 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
294 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
296 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
298 * doc/Makefile.in: Regenerate.
300 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
302 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
303 of .init and .fini sections for array initializers and finalizers.
305 2002-12-31 Chris Demetriou <cgd@broadcom.com>
307 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
308 the "+D" operand, which will be used only by the disassembler.
310 2002-12-30 Chris Demetriou <cgd@broadcom.com>
312 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
314 * configure: Regenerate.
315 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
316 (macro_build): Handle "K" operand.
317 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
318 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
319 (mips_ip): New variable "lastpos", and implement "+A", "+B",
320 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
321 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
322 (validate_mips_insn): Implement "+" as a way to extend the
323 allowed operands, and implement "K", "+A", "+B", and "+C"
325 (OPTION_MIPS32R2): New define.
326 (md_longopts): Add entry for OPTION_MIPS32R2.
327 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
328 (md_parse_option): Handle OPTION_MIPS32R2.
329 (s_mipsset): Reimplement handling of ".set mipsN" options
330 and add support for ".set mips32r2".
331 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
332 (md_show_usage): Document "-mips32r2" option.
333 * doc/as.texinfo: Document "-mips32r2" option.
334 * doc/c-mips.texi: Likewise.
336 2002-12-30 Dmitry Diky <diwil@mail.ru>
338 * configure.in: Add msp430 target.
339 * configure: Regenerate.
340 * Makefile.am: Add msp430 target.
341 * Makefile.in: Regenerate.
342 * config/tc-msp430.c: New file: msp430 assembler.
343 * config/tc-msp430.h: New file: target macros for msp430.
344 * doc/Makefile.am: Add msp430 target.
345 * doc/Makefile.in: Regenerate.
346 * doc/as.texinfo: Include msp430 documenation.
347 * doc/all.texi: Enable msp430 documentation.
348 * doc/c-msp430.texi: New file: document msp430 specific features
351 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
353 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
354 (dwarf2_finish): Use it.
355 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
356 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
358 2002-12-20 DJ Delorie <dj@redhat.com>
360 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
361 BFD_RELOC_XSTORMY16_12.
363 2002-12-19 Alan Modra <amodra@bigpond.net.au>
365 * doc/as.texinfo (Invoking): Typo fix.
366 * config/tc-tic54x.c (encode_operand): Comment typo fix.
368 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
370 * doc/c-alpha.texi: Fix typos.
371 * doc/c-arm.texi: Likewise.
372 * doc/c-d10v.texi: Likewise.
373 * doc/c-i370.texi: Likewise.
374 * doc/c-i960.texi: Likewise.
375 * doc/c-ia64.texi: Likewise.
376 * doc/c-mmix.texi: Likewise.
377 * doc/c-ns32k.texi: Likewise.
378 * doc/c-pdp11.texi: Likewise.
379 * doc/c-pj.texi: Likewise.
380 * doc/c-sh64.texi: Likewise.
381 * doc/c-sparc.texi: Likewise.
382 * doc/c-tic54x.texi: Likewise.
383 * doc/c-v850.texi: Likewise.
384 * doc/c-vax.texi: Likewise.
385 * doc/internals.texi: Likewise.
387 2002-12-18 Chris Demetriou <cgd@broadcom.com>
389 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
390 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
391 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
392 arrange not to issue warnings about use of AT when AT is not
395 2002-12-17 Nick Clifton <nickc@redhat.com>
397 * as.c (std_longopts): Duplicate --keep-locals entry in order to
398 prevent it being confused with -k.
400 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
402 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
403 has already been set up, use it.
405 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
407 * ChangeLog-9295: Fix a typo.
409 * config/tc-d10v.c: Fix a comment typo.
410 * config/tc-dlx.c: Likewise.
411 * config/tc-h8300.h: Likewise.
412 * config/tc-h8500.h: Likewise.
413 * config/tc-mips.c: Likewise.
414 * config/tc-s390.c: Likewise.
415 * config/tc-sh.h: Likewise.
416 * config/tc-tic80.h: Likewise.
417 * config/tc-w65.h: Likewise.
418 * config/tc-z8k.c: Likewise.
419 * config/tc-z8k.h: Likewise.
420 * testsuite/gas/h8300/cmpsi2.s: Likewise.
422 2002-12-16 Alan Modra <amodra@bigpond.net.au>
424 * config/tc-d30v.c (check_range): Warning fixes, formatting.
425 Simplify sign extension. Remove redundant unsigned < 0 test.
426 * config/tc-i960.c (md_ri_to_chars): Prototype.
427 * config/tc-mcore.c (md_pseudo_table): Fix typo.
428 (dump_literals): Init brarsym, and test later instead of isforce.
430 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
431 (parse): Constify line and lineptr.
432 (md_begin): Calculate endop here.
434 2002-12-13 Alan Modra <amodra@bigpond.net.au>
436 * config/obj-vms.c: Formatting. Include fnctl.h.
437 (Create_VMS_Object_File): Fix creat call for sane unix systems.
438 (Object_Record_Offset): Make it a size_t.
439 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
440 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
441 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
442 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
443 (vms_fixup_data_section <data_size>): Add here instead.
444 * config/e-criself.c: Fix typo in last change.
446 2002-12-13 Alan Modra <amodra@bigpond.net.au>
448 * write.c (write_object_file): Fix signed/unsigned warning.
449 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
450 * config/e-criself.c (criself_bfd_name): Prototype.
451 * config/obj-aout.c (s_sect): Remove unused function.
452 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
453 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
454 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
455 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
456 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
457 (VMS_RSYM_Parse <Current_Routine>): Likewise.
458 (vms_fixup_text_section <text_siz>): Likewise.
459 (synthesize_data_segment <data_size>): Likewise.
460 (vms_fixup_xtors_section <sect_no>): Likewise.
461 (structure_count): Don't use implicit int type.
462 * config/tc-a29k.c (insert_sreg): Prototype.
463 (define_some_regs): Prototype, make static.
464 (parse_operand): Likewise.
465 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
466 (md_show_usage <stream>): Likewise.
467 (md_section_align <segment>): Likewise.
468 (md_convert_frag <all args>): Likewise.
469 (md_estimate_size_before_relax <all args>): Likewise.
470 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
471 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
472 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
473 (md_undefined_symbol <name>): Likewise.
474 (md_convert_frag <all args>): Likewise.
475 (write_long <opcode>): Likewise.
476 (tc_gen_reloc <seg>): Likewise.
477 (md_estimate_size_before_relax <all args>): Likewise.
478 (md_apply_fix3 <seg>): Likewise.
479 (s_d30v_align <ignore>): Likewise.
480 (build_insn): Correct format string.
481 (md_apply_fix3): Likewise.
482 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
483 (md_undefined_symbol <name>): Likewise.
484 (md_convert_frag <all args>): Likewise.
485 (md_cgen_lookup_reloc <insn>): Likewise.
486 (md_begin): Delete unused vars.
487 (md_assemble): Likewise.
488 (md_estimate_size_before_relax): Likewise.
489 (fr30_relax_frag): #if 0 out, seems unused.
490 (md_atof): Remove declaration of atof_ieee.
491 (restore_colon): Prototype.
492 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
493 (frv_find_in_vliw): Likewise.
494 (frv_debug_tomcat): Likewise.
495 (frv_adjust_vliw_count): Likewise.
496 (frv_tomcat_shuffle): Likewise.
497 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
498 frv_find_in_vliw call.
499 (md_atof): Remove declaration of atof_ieee.
500 * config/tc-h8500.c (cons): Delete declaration.
501 (md_begin <opcode>): Constify.
502 (displacement_size, immediate_size, absolute_size): Remove.
503 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
504 (tc_crawl_symbol_chain <headers>): Likewise.
505 (md_undefined_symbol <name>): Likewise.
506 (tc_headers_hook <headers>): Likewise.
507 (md_parse_option <c,arg>): Likewise.
508 (md_show_usage <stream>): Likewise.
509 (md_convert_frag <headers, seg>): Likewise.
510 (tc_coff_symbol_emit_hook <ignore>): Likewise.
511 (md_atof): Remove declaration of atof_ieee.
512 (tc_aout_fix_to_chars): Remove unused function.
513 (parse_reg): Prototype.
514 (parse_exp): Prototype.
515 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
516 (parse_reglist): Prototype.
517 (get_operand): Prototype.
518 (get_operands): Prototype.
519 (get_specific): Prototype. Make "this_index" signed.
520 (check): Prototype, make static.
522 (build_relaxable_instruction): Prototype, make static.
523 (build_bytes): Prototype.
524 (wordify_scb): Prototype.
525 * config/tc-h8500.h (start_label): Declare.
526 (tc_coff_sizemachdep): Declare.
527 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
528 (i370_rmode <unused>): Likewise.
529 (i370_csect <unused>): Likewise.
530 (i370_dc <unused>): Likewise.
531 (i370_ds <unused>): Likewise.
532 (i370_elf_lcomm <unused>): Likewise.
533 (i370_ltorg <ignore>): Likewise.
534 (i370_using <ignore>): Likewise.
535 (i370_drop <ignore>): Likewise.
536 (i370_byte <ignore>): Likewise.
537 (i370_tc <ignore>): Likewise.
538 (md_estimate_size_before_relax <fragp, seg>): Likewise.
539 (md_convert_frag <all args>): Likewise.
540 (md_undefined_symbol <name>): Likewise.
541 (md_pcrel_from_section <sec>): Likewise.
542 (tc_gen_reloc <seg>): Likewise.
543 (i370_section_letter): #if 0 unused functions.
544 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
545 (symbol_locate): Prototype.
546 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
547 (md_number_to_disp, md_number_to_field): Remove.
548 (md_apply_fix3): Correct format string and cast "fup".
549 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
550 (s_endian <ignore>): Likewise.
551 (md_undefined_symbol <name>): Likewise.
552 (tc_crawl_symbol_chain <headers>): Likewise.
553 (tc_set_bal_of_call): Likewise.
554 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
555 (i960_handle_align <fragp>): Likewise.
556 (i960_validate_fix <this_segment_type>): Likewise
557 (tc_gen_reloc <section>): Likewise.
558 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
559 (struct memS, struct regop): Forward declare.
560 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
561 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
562 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
563 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
564 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
565 (md_chars_to_number, md_number_to_imm): Make static, prototype.
566 (md_number_to_field): Likewise.
567 (md_number_to_disp): Remove unused function.
568 (md_atof): Remove declaration of atof_ieee.
569 (md_apply_fix3): Correct md_number_to_imm call.
570 * config/tc-ip2k.c (md_assemble): Warning fix.
571 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
572 (fill_insn <ignore>): Likewise.
573 (debug_sym <ignore>): Likewise.
574 (md_undefined_symbol <name>): Likewise.
575 (m32r_scomm <ignore>): Likewise.
576 (md_convert_frag <abfd>): Likewise.
577 (md_cgen_lookup_reloc <insn>): Likewise.
578 (m32r_record_hi16 <seg>): Likewise.
579 (md_estimate_size_before_relax): #if 0 old_fr_fix.
580 (allow_m32rx): Prototype.
581 (first_writes_to_seconds_operands): Prototype.
582 (writes_to_pc): Prototype.
583 (can_make_parallel): Prototype.
584 (make_parallel): Prototype.
585 (target_make_parallel): Prototype.
586 (assemble_two_insns): Prototype.
587 (m32r_record_hi16): Prototype.
588 (md_atof): Remove declaration of atof_ieee.
589 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
590 (m32r_force_relocation): Prototype.
591 (m32r_elf_section_change_hook): Prototype.
592 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
593 (md_show_usage): Fix signed/unsigned warning.
594 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
595 (calcop): Ditto for reg_prefix var.
596 (hexval): Add cast to fix signed/unsigned warning.
597 (md_number_to_disp): Delete unused function.
598 (md_number_to_field): Likewise.
599 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
600 (match_name): Prototype.
601 (get_bf2): Prototype.
602 (get_bf_offset_expression): Prototype.
603 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
604 (md_undefined_symbol <ignore>): Likewise.
605 (md_create_short_jump <all args>): Likewise.
606 (md_create_long_jump <all args>): Likewise.
607 (md_convert_frag <abfd, sec>): Likewise.
608 (md_apply_fix3 <segment>): Likewise.
609 (md_section_align <segment>): Likewise.
610 (md_pcrel_from_section <sec>): Likewise.
611 (tc_gen_reloc <section>): Likewise.
612 (reg_m, reg_n, immediate): Delete unused vars.
613 (dump_literals): Fix signed/unsigned warning.
614 (enter_literal): Likewise.
615 (parse_imm): Likewise. Also fix format string.
616 (parse_mem): Remove unused var.
617 (md_assemble <LS>): Abort on unexpected inst.
618 (md_atof): Remove declaration of atof_ieee.
619 (md_parse_option): Remove unused vars.
620 (md_apply_fix3): Fix format strings, cast args.
621 (tc_gen_reloc): Delete unused var.
622 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
623 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
624 (md_undefined_symbol <name>): Likewise.
625 (md_convert_frag <abfd>): Likewise.
626 (tc_gen_reloc <seg>): Likewise.
627 (check_operand <insn>): Likewise.
628 (md_convert_frag): Fix format strings.
629 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
630 * config/tc-openrisc.c (ignore_pseudo): Prototype.
631 (md_atof): Remove declaration of atof_ieee.
632 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
633 (md_apply_fix3): Fix bogus >>='s.
634 (md_undefined_symbol): Delete unused var.
635 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
636 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
637 (fake_opcode): Adjust for pj_opc_int_t change.
638 (md_begin): Likewise.
639 (md_assemble): Likewise.
640 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
641 instead of non-existent third arg of parse_exp_save_ilp.
642 (md_parse_option): Correct "little" and "big" calls.
643 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
644 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
645 (tc_gen_reloc <section>): Likewise.
646 * config/tc-tic30.c: #include stdarg.h or varargs.h.
647 (debug): Rewrite using VA_* macros.
648 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
649 (md_convert_frag): Likewise.
650 (md_parse_option): Likewise.
651 (md_show_usage): Likewise.
652 (md_undefined_symbol): Likewise.
653 (tc_gen_reloc): Likewise.
654 (md_operand): Likewise.
655 (tc_aout_pre_write_hook): Delete.
656 (struct tic30_insn): Make "operands" unsigned.
657 (struct tic30_par_insn): Likewise.
658 (md_assemble): Likewise for "count", "i" and "numops".
659 (tic30_parallel_insn): Likewise for vars here.
660 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
661 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
662 * config/tc-tic80.c (obj_coff_section): Delete declaration.
663 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
664 (md_undefined_symbol): Likewise.
665 (md_parse_option): Likewise.
666 (md_convert_frag): Likewise.
667 (tc_coff_symbol_emit_hook): Likewise.
668 (md_atof): Remove declaration of atof_ieee.
669 (const_overflow): Warning fixes, tidy.
670 (get_operands): Delete unused vars.
671 (internal_error_a): Adjust format string to expect a long for arg.
672 (find_opcode): Warning fixes, simplify.
673 (build_insn): Cast internal_error_a arg.
674 (md_begin): Likewise.
675 (md_apply_fix3): Likewise.
676 (md_assemble): Delete unused var.
677 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
678 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
679 (whatreg, parse_reg, parse_exp): Make static, prototype.
680 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
681 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
682 (get_operand, get_operands, get_specific, newfix): Likewise.
683 (apply_fix, build_bytes): Likewise.
684 (md_atof): Remove declaration of atof_ieee.
685 (tc_aout_fix_to_chars): Delete.
686 (md_begin): Constify "opcode". Don't try to init opcode->idx.
688 (md_parse_option): Fix s_segm and s_unseg calls.
690 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
692 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
694 (RELAX_BRANCH_RELOC_S2): Delete.
695 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
696 Do not handle BFD_RELOC_16_PCREL.
697 (macro_build, mips_ip): Likewise.
698 (md_pcrel_from): Return 4 for undefined symbols regardless of
700 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
701 Don't dereference howto if no such relocation is available.
702 Do not apply hack for in-place zero addend in NEWABI.
703 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
705 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
706 Alan Modra <amodra@bigpond.net.au>
708 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
709 (TC_LINKRELAX_FIXUP): Add comments.
711 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
713 * config/tc-mn10300.c (set_arch_mach): Change argument type to
715 (r_register_name, xr_register_name): Add prototype declarations.
717 2002-12-08 H.J. Lu <hjl@gnu.org>
719 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
720 copied from tc-i386.c.
722 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
724 Fix Bug savannah/1825:
725 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
726 (md_relax_table): Define specific relax for PC-rel offsets.
727 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
728 (m68hc11_relax_frag): Handle the new relax code.
729 (md_convert_frag): Likewise.
730 (md_estimate_size_before_relax): Likewise.
732 2002-12-08 Alan Modra <amodra@bigpond.net.au>
734 * subsegs.c (section_symbol): Use the symbol, not the section, name.
736 2002-12-05 Richard Henderson <rth@redhat.com>
738 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
739 (ia64_gen_real_reloc_type): Handle it.
740 (pseudo_func): Add @ltoffx.
741 (md_begin): Build .<ltoffx>.
742 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
744 2002-12-05 Alan Modra <amodra@bigpond.net.au>
746 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
747 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
748 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
749 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
750 COFF to call arm_force_relocation.
752 2002-12-04 David Mosberger <davidm@hpl.hp.com>
754 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
756 (emit_one_bundle): Handle "hint" instruction.
757 (operand_match): Match IA64_OPND_AR_CSD.
759 2002-12-04 Alan Modra <amodra@bigpond.net.au>
761 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
764 2002-12-03 Nick Clifton <nickc@redhat.com>
766 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
767 .PPC.EMB.apuinfo sections.
769 2002-12-03 Richard Henderson <rth@redhat.com>
771 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
773 2002-12-03 Alan Modra <amodra@bigpond.net.au>
775 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
776 (cons, s_align_bytes): Delete declaration.
778 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
780 (dot): Delete unused function.
781 (w65_expression): Remove unused arg.
782 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
784 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
786 (get_specific): Prototype. Constify "struct opinfo *" arg and return
788 (check): Remove unused function.
789 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
790 on unhandled switch case.
791 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
793 (tc_crawl_symbol_chain): Delete unused function.
794 (tc_headers_hook): Likewise.
795 (tc_Nout_fix_to_chars): Likewise.
796 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
797 (md_parse_option): Likewise.
798 (md_convert_frag): Likewise.
799 (tc_coff_symbol_emit_hook): Likewise.
800 (md_show_usage): Likewise.
801 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
802 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
803 (w65_expression): Declare.
805 * po/POTFILES.in: Regenerate.
807 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
808 and ARM_ADRL_IMMEDIATE.
810 2002-12-02 Nick Clifton <nickc@redhat.com>
812 * gasp.c: Delete. It has been deprecated.
813 * NEWS: Mention that gasp has been removed.
814 * Makefile.am: Remove references to gasp.
815 * makefile.vms: Likewise.
816 * mpw-make.sed: Likewise.
817 * Makeile.in: Regenerate.
818 * doc/gasp.texi: Delete.
819 * doc/Makefile.am: Remove references to gasp.texi.
820 * doc/Makefile.in: Regenerate.
821 * macro.c: Delete references to gasp.
822 Remove use of comment_char function parameter as it is no longer
824 * macro.h: Update prototypes to remove comment_char parameter.
826 * read.c (read_a_source_file, s_irp): Remove comment_char
827 parameter from invocation of functions in macro.c
829 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
831 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
833 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
835 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
836 (tc_gen_reloc): Mark section param as not used.
838 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
840 Fix Bug savannah/1825:
841 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
842 that are not pc-relative.
843 (m68hc11_relax_frag): Declare.
845 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
846 the offsetable indexed addressing modes (n,r).
847 (build_insn): Cleanup some locals.
848 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
849 relaxation of difference between two symbols of same section.
850 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
851 only when this is a PC-relative operand and the offset is not absolute.
852 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
853 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
854 be handled by m68hc11_relax_frag.
856 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
858 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
859 (32-bit int, 64-bit double).
860 (md_longopts): New options -mshort, -mlong, -mshort-double and
861 -mlong-double to control the ABI.
862 (md_show_usage): Update.
863 (md_parse_option): Handle new options.
864 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
866 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
868 * symbols.c (report_op_error): New function, broken out of ...
869 (resolve_symbol_value): ... here. Use for both monadic and dyadic
872 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
874 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
875 for BFD_RELOC_32_PLT_PCREL.
877 2002-11-30 Alan Modra <amodra@bigpond.net.au>
879 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
880 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
881 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
882 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
883 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
884 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
885 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
886 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
887 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
888 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
889 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
890 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
891 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
892 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
893 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
894 TRUE/FALSE. Formatting.
896 2002-11-29 Nick Clifton <nickc@redhat.com>
898 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
899 assume a value of zero.
902 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
904 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
907 2002-11-29 Jakub Jelinek <jakub@redhat.com>
909 * config/tc-ia64.c (md_apply_fix3): Add default case.
911 2002-11-28 Jakub Jelinek <jakub@redhat.com>
913 * symbols.c (S_SET_THREAD_LOCAL): New function.
914 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
915 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
917 * config/tc-ia64.c (md_apply_fix3): Likewise.
918 * config/tc-alpha.c (md_apply_fix3): Likewise.
920 2002-11-28 Jakub Jelinek <jakub@redhat.com>
922 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
925 2002-11-26 DJ Delorie <dj@redhat.com.
927 * dwarf2dbg.c (scale_addr_delta): New.
928 (size_inc_line_addr): Use it.
929 (emit_inc_line_addr): Use it.
931 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
933 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
934 (md_assemble): Don't pass on branches to constants as relaxable.
937 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
939 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
941 2002-11-21 Randolph Chung <randolph@tausq.org>
943 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
944 only if they have default visibility.
946 2002-11-21 Richard Henderson <rth@redhat.com>
948 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
951 2002-11-21 Alan Modra <amodra@bigpond.net.au>
953 * config/tc-mcore.c (mcore_pool_count): New function.
954 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
956 2002-11-20 Klee Dienes <kdienes@apple.com>
958 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
959 coalesce the name fields to use the same pointer.
961 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
962 the name fields to use the same pointer.
963 (get_specific): Check for opcodes with the same name using strcmp
964 as well as comparing the pointer.
966 2002-11-20 Alan Modra <amodra@bigpond.net.au>
968 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
971 2002-11-19 Richard Henderson <rth@redhat.com>
973 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
974 visibility portion of st_other.
976 2002-11-19 Klee Dienes <kdienes@apple.com>
978 * config/tc-h8300.c (struct h8_instruction): New type, used to
979 wrap h8_opcodes with length, noperands, idx, and size fields
980 (computed at run-time).
981 (h8_instructions): New variable.
982 (md_begin): Allocate the storage for h8_instructions. Fill
983 h8_instructions with pointers to the appropriate opcode and the
984 correct value for the additional fields.
985 (clever_message): Update to use h8_instructions instead of
987 (build_bytes): Ditto.
988 (get_specific): Ditto.
989 (md_assemble): Ditto.
991 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
993 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
994 adjustments to symbols in merge sections.
996 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
998 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1000 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1002 * dwarf2dbg.h (dwarf2_format): New enum.
1003 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1004 (out_debug_line, out_debug_info): Add code for handling 64-bit
1006 * config/tc-mips.h (mips_dwarf2_format): Declare.
1007 * config/tc-mips.c (mips_dwarf2_format): New function.
1008 * doc/internals.texi (DWARF2_FORMAT): Document.
1010 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1012 * config/tc-mips.c (s_change_section): Make sure input buffer
1013 is not accessed past the end. Don't hand
1014 obj_elf_change_section a pointer into the input buffer.
1016 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1018 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1021 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1023 * config/tc-tic4x.c: Fixed proper commandline
1024 parameters. Added support for new opcode-list format. General
1025 error message fixups.
1026 (c4x_inst_add): Reject insn not for our CPU
1027 (md_begin): Added matrix for setting the proper opcode-level &
1028 device-flags according to cpu type and revision. Rewrite the
1030 (c4x_operand_parse): Fix opcode bug
1031 (c4x_operands_match): New function argument. Added dry-run
1032 mechanism, that is optional error generation. Added constraint 'i'
1034 (c4x_insn_check): Added new function for post-verification of the
1036 (md_assemble): Check all opcodes before croaking because of an
1037 argument mismatch. Need this to be able to fully support
1038 ortogonally arguments.
1039 (md_parse_options): Revised commandprompt swicthes and added new
1041 (md_show_usage): Complete rewrite of printout.
1043 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1045 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1046 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1047 warning when using constant direct bigger than 2^16. Add the new
1050 2002-11-11 Christopher Faylor <cgf@redhat.com>
1052 * configure.in: Use .gdbinit under Cygwin.
1053 * configure: Regenerate.
1055 2002-11-11 Christopher Faylor <cgf@redhat.com>
1057 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1060 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1062 * config/tc-tic4x.c: Declare as many functions as possible as
1063 static. Maintenance on the general indenting. Removed unnecessary
1064 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1065 function. Add support for new DSP, TMS320VC33. Fix bug for
1066 converting flonum constants.
1067 (c4x_do_align): Add proper align handling. Setup align to insert
1069 (c4x_gen_to_words): Support for extended TI type floats.
1070 (md_atof): Proper dumping of multiple-word littlenums.
1071 (c4x_atof): Added support for extended TI type floats.
1072 (c4x_stringer): Added new function to handle compact strings.
1073 (c4x_emit_char): Added new function argument to handle custom
1074 length inserts, like single-byte strings.
1075 * config/tc-tic4x.h: Add proper align handling with NOP's.
1076 * Makefile.am: Added tic4x dependecy
1077 * Makefile.in: Regenerate
1079 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1081 * macro.c (get_any_string): Correct logic for not going beyond end
1084 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1086 * config/tc-mmix.c (get_putget_operands): Mark both possible
1087 operands as invalid at beginning.
1089 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1090 Initialize target of fixup to zero.
1092 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1094 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1095 NEWABI, but we should still emit HI16_S for non-PIC n32.
1097 2002-11-06 Richard Henderson <rth@redhat.com>
1099 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1100 (alpha_fix_adjustable): ... here.
1101 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1103 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1105 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1108 2002-11-05 H.J. Lu <hjl@gnu.org>
1110 * config/tc-mips.c (support_64bit_objects): Check *l before it
1113 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1115 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1116 SEC_LOAD flags for sections marked as 's'.
1118 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1120 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1121 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1122 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1125 * dep-in.sed: Fix typo.
1127 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1129 * configure.in: Update ARM CPU patterns.
1130 * configure: Regenerated.
1132 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1134 * itbl-lex.l: Use #include <> for generated headers.
1135 * itbl-ops.c: Likewise.
1137 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1139 * doc/gasp.texi: Fix typo in deprecation note.
1141 2002-10-23 Nick Clifton <nickc@redhat.com>
1143 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1144 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1146 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1148 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1149 (tc_frob_file_before_adjust): Don't define.
1150 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1152 (mmix_frob_file_before_adjust): Remove ineffective function.
1154 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1156 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1157 (cris_relax_frag): New function.
1158 (md_estimate_size_before_relax) <case ENCODE_RELAX
1159 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1160 expressions that will become absolute expressions to relaxation.
1161 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1162 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1163 value, not distance to symbol.
1164 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1165 Ditto. Correct placement of fixup.
1166 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1168 * config/tc-cris.h (cris_relax_frag): Declare.
1169 (md_relax_frag): Define.
1171 2002-10-22 Alan Modra <amodra@bigpond.net.au>
1173 * config/obj-elf.c (special_sections): Use correct types for init
1175 (obj_elf_change_section): Don't mess with init array section type.
1177 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
1179 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1180 for relocs against symbols in a merged section.
1182 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
1184 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1185 table as register names.
1187 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1189 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1192 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1194 * expr.c (operand): Add support for n.nn flonums.
1196 2002-10-17 Johannes Stezenbach <js@convergence.de>
1198 * itbl-parse.y (entry): Provide empty action.
1200 2002-10-16 Alan Modra <amodra@bigpond.net.au>
1202 * configure.in (BFDVER_H): Set and subst.
1203 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1204 * Makefile.am: Run "make dep-am".
1206 * configure: Regenerate.
1207 * Makefile.in: Regenerate.
1208 * doc/Makefile.in: Regenerate.
1210 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1212 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1213 (MD_APPLY_SYM_VALUE): Define for PE too.
1215 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1217 * Makefile.am: Run "make dep-am".
1218 (CPU_OBJ_VALID): sh64 coff is invalid.
1219 * as.c: #include "bfdver.h".
1220 * Makefile.in: Regenerate.
1221 * config.in: Regenerate.
1223 2002-10-14 Momchil Velikov <velco@fadata.bg>
1225 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1227 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1229 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1230 * configure: Regenerate.
1232 2002-10-13 Eric Christopher <echristo@redhat.com>
1233 Alexandre Oliva <aoliva@redhat.com>
1235 * config/tc-mips.c (s_gpdword): New function.
1236 (mips_pseudo_table): Add .gpdword.
1237 (mips_need_elf_addend_fixup): never for NEWABI.
1238 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1240 (s_cpadd): Generate .cpadd on NEWABI.
1242 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1244 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1246 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
1248 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1249 (md_relax_frag): Adjust macro.
1250 * config/tc-mips.c (mips_relax_branch): New variable.
1251 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1252 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1253 (RELAX_MIPS16_P): Adjust.
1254 (append_insn): Emit branch to non-constant in a frag_var if
1255 branch-relaxation is desirable and possible.
1256 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1257 (OPTION_ELF_BASE): Adjust.
1258 (md_parse_option): Handle new options.
1259 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1261 (relaxed_branch_length): New function.
1262 (md_estimate_size_before_relax): Handle branch frags.
1263 (mips_relax_frag): Likewise.
1264 (md_convert_frag): Handle branch frags. Warn if branch is
1267 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1269 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1271 (md_apply_fix3): Add TLS relocs.
1272 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1275 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
1276 Alan Modra <amodra@bigpond.net.au>
1278 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1279 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1281 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1283 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1286 2002-10-09 Richard Shann <richard.shann@superh.com>
1287 Stephen Clarke <stephen.clarke@superh.com>
1289 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1292 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1294 * contig/tc-sh.c (sh_local_pcrel): New.
1295 (sh_force_relocation): Use sh_local_pcrel.
1296 (md_pcrel_from_section): Check the relocation type whether it
1297 should be resolved locally. Use S_FORCE_RELOC.
1299 2002-10-01 Alan Modra <amodra@bigpond.net.au>
1301 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1302 (TC_FORCE_RELOCATION): Tidy arg.
1304 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1305 Ken Raeburn <raeburn@cygnus.com>
1306 Aldy Hernandez <aldyh@redhat.com>
1307 DJ Delorie <dj@redhat.com>
1308 Michael Meissner <meissner@redhat.com>
1309 Eric Christopher <echristo@redhat.com>
1310 Richard Sandiford <rsandifo@redhat.com>
1312 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1313 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1314 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1315 (hilo_interlocks): True for CPU_VR5500.
1316 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1317 (mips_fix_vr4122_bugs): New.
1318 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1319 (mips_emit_delays): Likewise.
1320 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1321 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1322 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1323 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1324 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1325 (OPTION_ELF_BASE): Bump.
1326 (md_parse_option): Handle the new options.
1327 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1330 2002-09-29 H.J. Lu <hjl@gnu.org>
1332 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1333 twice if howto->pcrel_offset is true.
1335 2002-09-28 Matt Thomas <matt@3am-software.com>
1336 Jason Thorpe <thorpej@wasabisystems.com>
1338 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1339 convert undefined references to GOT32/PLT32 if PIC code is
1340 requested. Fix comment.
1342 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1344 * config/tc-sh.c (sh_force_relocation): Return 0 for
1345 some PC relative relocations when not relaxing.
1347 2002-09-26 Jakub Jelinek <jakub@redhat.com>
1349 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1350 Define them if not BFD_ASSEMBLER.
1351 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1353 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1354 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1355 (tc_gen_reloc): Handle x86-64 TLS relocs.
1357 2002-09-27 Alan Modra <amodra@bigpond.net.au>
1359 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1360 fixups to current or absolute section.
1362 2002-09-26 Jim Wilson <wilson@redhat.com>
1364 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1367 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1369 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1370 capable configuration.
1371 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1373 (mips_ip): Likewise.
1375 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1377 * config/tc-mips.c (append_insn): Fix jump overflow check.
1379 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1381 * config/tc-i386.c (process_operands): Warn about "lea" segment
1384 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1386 * write.c: Delete set_segment_vma and prototype. Update all callers.
1388 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1390 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1391 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1392 Rename "fseg" to "sym_seg".
1393 * Makefile.am: Run "make dep-am".
1394 * Makefile.in: Regenerate.
1395 * doc/Makefile.in: Regenerate.
1397 2002-09-20 Nick Clifton <nickc@redhat.com>
1399 * symbols.c (colon): Do not allow symbols to be created in the
1400 absolute section if WORKING_DOT_WORD is not defined and
1401 new_broken_words would require a new frag to be created.
1403 2002-09-20 Alan Modra <amodra@bigpond.net.au>
1405 * expr.c (expr): Simplify foo-foo here.
1406 (clean_up_expression): Remove O_subtract code.
1408 * write.h (struct fix): Add fx_dot_value.
1409 (dot_value): Declare.
1410 * write.c (dot_value): New var.
1411 (fix_new_internal): Save dot_value as fx_dot_value.
1412 (fixup_segment): Adjust fx_offset using fx_dot_value.
1413 * expr.c (expr): Update dot_value.
1415 2002-09-19 Jakub Jelinek <jakub@redhat.com>
1417 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1418 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1419 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1421 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1422 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1423 BFD_RELOC_386_TLS_GOTIE.
1425 2002-09-19 Richard Henderson <rth@redhat.com>
1427 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1429 (alpha_force_relocation): Don't special-case branch type relocs.
1431 2002-09-19 Nick Clifton <nickc@redhat.com>
1433 * config/tc-m68k.c (select_control_regs): Handle situation where
1434 architecture has not yet been selected.
1436 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1438 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1439 (IS_SEXT_16BIT_NUM): New macro.
1440 (macro_build_ldst_constoffset): New function, to build a set of
1441 instructions to do a load or store from a constant offset relative
1442 to a given register.
1443 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1444 .cprestore pseudo-op.
1446 2002-09-18 Chris Demetriou <cgd@broadcom.com>
1448 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1450 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1452 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1454 2002-09-17 Stan Cox <scox@redhat.com>
1456 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1457 (macro): Likewise for la. Likewise for ld.
1458 (mips_after_parse_args): Make -xgot optional, not the default.
1459 (md_apply_fix3): Allow composite relocation to set up gp.
1460 (tc_gen_reloc): Allow relaxing for newabi.
1461 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1462 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1464 2002-09-17 Nick Clifton <nickc@redhat.com>
1466 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1467 BFD_RELOC_ARM_IMMEDIATE has been done.
1468 (tc_gen_reloc): Do not issue reloc number of unimplemented
1469 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1470 their name is already in the error message - plus remove them
1471 from the default case.
1473 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1474 behavior of instructions.
1476 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1478 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1479 Convert functions to K&R format.
1481 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1483 * config/tc-mips.c (pdr_seg): Define only for ELF.
1484 (s_change_section): Remove unused variable. Don't use for nonELF.
1486 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1488 * config/obj-elf.c (obj_elf_change_section): Move prototype to
1490 * config/obj-elf.h (obj_elf_change_section): Likewise.
1492 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
1494 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
1495 (out_debug_info): Likewise.
1497 2002-09-16 Bruno Haible <bruno@clisp.org>
1499 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
1500 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
1501 * config/tc-i386.c (i386_target_format): Likewise.
1502 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
1503 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
1505 2002-09-13 Nick Clifton <nickc@redhat.com>
1507 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
1508 when deciding if any operands have been skipped.
1510 2002-09-11 Nick Clifton <nickc@redhat.com>
1512 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1514 * po/tr.po: Updated Turkish translation.
1516 2002-09-11 Jakub Jelinek <jakub@redhat.com>
1518 * config/tc-i386.c (md_apply_fix3): Allow addend for
1519 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
1520 BFD_RELOC_386_TLS_LE_32.
1522 2002-09-05 Jeff Law <law@redhat.com>
1524 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
1525 marker relocations such as ENTRY/EXIT.
1526 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
1527 to both OBJ_ELF and OBJ_SOM.
1529 2002-09-05 Alan Modra <amodra@bigpond.net.au>
1531 * doc/internals.texi (md_apply_fix3): Expand.
1532 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
1533 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
1534 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
1535 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
1536 EXTERN_FORCE_RELOC): Document.
1537 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
1538 * as.h: Don't include struc-symbol.h for arc.
1540 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
1541 subtract absolute symbol.
1542 * obj.h (struct format_ops): Add frob_file_before_fix.
1543 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
1544 * symbols.c (S_FORCE_RELOC): New function.
1545 * symbols.h (S_FORCE_RELOC): Declare.
1546 * write.c (TC_FORCE_RELOCATION): Change default.
1547 (TC_FORCE_RELOCATION_ABS): Define.
1548 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1549 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1550 (TC_FORCE_RELOCATION_SECTION): Don't define.
1551 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
1552 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1553 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1554 (TC_VALIDATE_FIX_SUB): Define.
1555 (TC_FIX_ADJUSTABLE): Don't define.
1556 (MD_APPLY_SYM_VALUE): Define this instead.
1557 (abs_section_sym): New variable.
1558 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
1559 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
1560 Don't put the absolute section sym on fixups here.
1561 (fix_segment): New function.
1562 (write_relocs): Don't call fixup_segment from here.
1563 (write_object_file): Instead call tc_frob_file_before_fix,
1564 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
1565 Don't output the absolute section symbol.
1566 (fixup_segment): Rewrite.
1567 * write.h (abs_section_sym): Declare.
1568 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
1570 (aout_format_ops): Adjust to suit.
1571 * config/obj-aout.h (obj_frob_file): Don't define.
1572 (obj_frob_file_before_fix): Define.
1573 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
1574 (S_FORCE_RELOC): Define.
1575 * config/obj-bout.h (S_FORCE_RELOC): Define.
1576 * config/obj-coff.c (coff_format_ops): Init new field.
1577 * config/obj-coff.h: Formatting fixes.
1578 (obj_sec_sym_ok_for_reloc): Define.
1579 (S_FORCE_RELOC): Define.
1580 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
1581 (ecoff_frob_file): .. from here.
1582 (ecoff_format_ops): Add new function.
1583 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
1584 (obj_frob_file_before_fix): Define.
1585 * config/obj-elf.c (elf_format_ops): Init new field.
1586 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
1587 * config/obj-ieee.h: Formatting fixes.
1588 (S_FORCE_RELOC): Define.
1589 * config/obj-multi.h (obj_frob_file_before_fix): Define.
1590 * config/obj-vms.h (S_FORCE_RELOC): Define.
1591 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
1592 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
1593 for BFD_RELOC_32 and BFD_RELOC_64.
1594 (alpha_fix_adjustable): Remove extern and weak tests.
1595 (alpha_before_fix): Rename from alpha_adjust_symtab.
1596 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
1597 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
1598 (TC_VALIDATE_FIX): Tweak param name.
1599 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
1600 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1601 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1602 (MD_APPLY_SYM_VALUE): Define.
1603 (tc_adjust_symtab): Don't define.
1604 (alpha_adjust_symtab): Don't declare.
1605 (tc_frob_file_before_fix): Define.
1606 (alpha_before_fix): Declare.
1607 (TC_INIT_FIX_DATA): Tweak param names.
1608 * config/tc-arc.c: Include "struc-symbol.h".
1609 (md_pcrel_from): Remove undefined sym fudge.
1610 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1611 Don't set fx_addnumber.
1612 (tc_gen_reloc): Remove spurious fx_addnumber comment.
1613 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
1614 (EXTERN_FORCE_RELOC): Define.
1615 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
1616 (tc_gen_reloc): Fudge ARM_GOTPC addend.
1617 (arm_validate_fix): Return void.
1618 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
1619 Add plt and got reloc tests.
1620 (arm_force_relocation): Call S_FORCE_RELOC.
1621 * config/tc-arm.h (struct fix): Forward declare.
1622 (TC_VALIDATE_FIX): No longer set add_symbolP.
1623 (arm_validate_fix): Adjust declaration.
1624 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
1625 (TC_FORCE_RELOCATION): Tweak param name.
1626 (TC_INIT_FIX_DATA): Likewise.
1627 (obj_fix_adjustable): Don't define.
1628 (tc_fix_adjustable): Call arm_fix_adjustable.
1629 (TC_FIX_ADJUSTABLE): Don't define.
1630 (MD_APPLY_SYM_VALUE): Define.
1631 (EXTERN_FORCE_RELOC): Define.
1632 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1633 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1634 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
1635 Remove *valP fudges and code to subtract abs sym. Don't set
1637 * config/tc-avr.h: Formatting.
1638 (EXTERN_FORCE_RELOC): Define.
1639 (MD_APPLY_SYM_VALUE): Define.
1640 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
1641 (md_apply_fix3): Remove code to subtract abs sym.
1642 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
1643 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
1644 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
1645 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1646 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1647 (tc_fix_adjustable): Remove extern, weak tests.
1648 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
1649 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
1650 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1651 and code to subtract abs sym.
1652 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1653 (d10v_force_relocation): Call S_FORCE_RELOC.
1654 * config/tc-d10v.h: Don't include write.h.
1655 (struct fix): Instead, forward declare.
1656 (MD_PCREL_FROM_SECTION): Tweak param names.
1657 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1658 (d10v_fix_adjustable): Likewise.
1659 (obj_fix_adjustable): Don't define.
1660 (tc_fix_adjustable): Define.
1661 (TC_FORCE_RELOCATION): Tweak param name.
1662 (MD_APPLY_SYM_VALUE): Define.
1663 (EXTERN_FORCE_RELOC): Define.
1664 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
1665 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
1666 and code to subtract abs sym.
1667 * config/tc-d30v.h: Don't include write.h.
1668 (struct fix): Instead, forward declare.
1669 (MD_PCREL_FROM_SECTION): Tweak param names.
1670 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
1671 (MD_APPLY_SYM_VALUE): Define.
1672 (EXTERN_FORCE_RELOC): Define.
1673 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
1674 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
1675 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
1676 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1677 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1678 Don't use fx_addnumber.
1679 * config/tc-dlx.h: Don't include write.h.
1680 (md_convert_frag): We're not alpha twice over.
1681 (EXTERN_FORCE_RELOC): Define.
1682 (obj_fix_adjustable): Don't define.
1683 (tc_fix_adjustable): Define.
1684 (TC_FIX_ADJUSTABLE): Don't define.
1685 (MD_APPLY_SYM_VALUE): Define.
1686 (LOCAL_LABELS_DOLLAR): Undef always.
1687 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
1688 (fr30_fix_adjustable): Remove extern, weak tests.
1689 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
1690 (obj_fix_adjustable): Don't define.
1691 (tc_fix_adjustable): Define.
1692 (struct fix): Forward declare.
1693 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
1694 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
1695 (frv_fix_adjustable): Don't do extern, weak tests.
1696 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
1697 (TC_FIX_ADJUSTABLE): Don't define.
1698 (obj_fix_adjustable): Don't define.
1699 (tc_fix_adjustable): Define.
1700 (struct fix): Forward declare.
1701 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
1702 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
1703 * config/tc-h8300.h (struct fix): Forward declare.
1704 (EXTERN_FORCE_RELOC): Define.
1705 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
1706 (hppa_fix_adjustable): Don't test extern or weak. Don't
1707 symbol_mark_used_in_reloc.
1708 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
1710 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
1711 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
1712 (TC_FORCE_RELOCATION_SECTION): Don't define.
1713 (MD_APPLY_SYM_VALUE): Define.
1714 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
1715 to subtract abs sym.
1716 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
1717 (MD_APPLY_SYM_VALUE): Define.
1718 (MD_PCREL_FROM_SECTION): Tweak param name.
1719 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
1720 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
1721 (i386_force_relocation): New function.
1722 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
1723 (TC_VALIDATE_FIX): Likewise.
1724 (TC_FIX_ADJUSTABLE): Don't define.
1725 (MD_APPLY_SYM_VALUE): Define.
1726 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
1727 (i386_force_relocation): Declare.
1728 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1729 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1730 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
1731 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
1732 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
1733 (EXTERN_FORCE_RELOC): Define.
1734 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
1735 (md_apply_fix3): Don't cast valP pointer type. Move code here from
1736 old fixup_segment. No need to test fx_pcrel before setting fx_done.
1737 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
1738 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
1739 Remove #if 0 code. Invert return boolean.
1740 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
1741 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
1742 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
1743 (tc_coff_sizemachdep): Prototype.
1744 (i960_handle_align): Likewise.
1745 (i960_validate_fix): Adjust declaration.
1746 (reloc_callj): Likewise.
1747 (EXTERN_FORCE_RELOC): Define.
1748 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1749 (TC_FORCE_RELOCATION_ABS): Define.
1750 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1751 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1752 (TC_FIX_ADJUSTABLE): Don't define.
1753 (MD_APPLY_SYM_VALUE): Define.
1754 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
1755 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
1756 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1757 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1758 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
1759 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
1760 (MD_APPLY_SYM_VALUE): Define.
1761 (EXTERN_FORCE_RELOC): Define.
1762 (TC_FORCE_RELOCATION): Tweak param name.
1763 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
1764 (m32r_fix_adjustable): Don't test extern, weak.
1765 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
1766 (MD_APPLY_SYM_VALUE): Define.
1767 (obj_fix_adjustable): Don't define.
1768 (tc_fix_adjustable): Define.
1769 (tc_frob_file): Don't define.
1770 (tc_frob_file_before_fix): Define.
1771 (EXTERN_FORCE_RELOC): Define.
1772 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
1773 BFD_RELOC_VTABLE_ENTRY address.
1774 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
1775 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
1776 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
1777 Remove duplicated fx_done code.
1778 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
1779 (EXTERN_FORCE_RELOC): Define.
1780 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
1782 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
1783 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1784 (TC_FIX_ADJUSTABLE): Don't define.
1785 (EXTERN_FORCE_RELOC): Define.
1786 (MD_APPLY_SYM_VALUE): Define.
1787 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1788 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
1789 Remove fx_addsy tests.
1790 (mcore_force_relocation): Call S_FORCE_RELOC.
1791 (mcore_fix_adjustable): Don't test fx_addsy.
1792 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
1793 (EXTERN_FORCE_RELOC): Define.
1794 (obj_fix_adjustable): Don't define.
1795 (tc_fix_adjustable): Define.
1796 (MD_APPLY_SYM_VALUE): Define.
1797 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
1798 (mips_pic): No longer static.
1799 (mips_force_relocation): Call S_FORCE_RELOC.
1800 (mips_fix_adjustable): Remove extern, weak tests.
1801 * config/tc-mips.h (enum mips_pic_level): Declare.
1802 (mips_pic): Declare.
1803 (tc_frob_file): Don't define.
1804 (tc_frob_file_before_fix): Define this instead.
1805 (EXTERN_FORCE_RELOC): Define.
1806 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
1807 with reg_section tests. Set fx_done instead of calling
1808 symbol_clear_used_in_reloc on bad relocs.
1809 (tc_gen_reloc): Zero fx_addsy on bad relocs.
1810 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
1811 (mmix_adjust_symtab): Simplify list handling. Abort on any
1813 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
1814 BFD_RELOC_MMIX_LOCAL.
1815 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
1816 (EXTERN_FORCE_RELOC): Define.
1817 (MD_PCREL_FROM_SECTION): Tweak param name.
1818 (tc_frob_file): Don't define.
1819 (tc_frob_file_before_fix): Define this instead.
1820 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
1821 Remove SEC_CODE checks.
1822 (mn10300_fix_adjustable): Remove extern and weak tests.
1823 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
1824 (TC_FORCE_RELOCATION): Tweak param name.
1825 (obj_fix_adjustable): Don't define.
1826 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
1827 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
1828 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
1829 (openrisc_fix_adjustable): Don't test fx_addsy.
1830 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
1831 (obj_fix_adjustable): Don't define.
1832 (tc_fix_adjustable): Define this instead.
1833 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1834 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
1835 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
1836 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
1837 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
1838 (MD_APPLY_SYM_VALUE): Define.
1839 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
1840 Don't subtract symbol value.
1841 * config/tc-pj.h (md_pcrel_from): Tweak param name.
1842 (EXTERN_FORCE_RELOC): Define.
1843 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
1844 (MD_APPLY_SYM_VALUE): Define.
1845 (obj_fix_adjustable): Don't define.
1846 (tc_fix_adjustable): Define this instead.
1847 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
1849 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
1850 (ppc_force_relocation <elf version>): New.
1851 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
1852 (md_apply_fix3): Don't subtract symbol values for ELF. Update
1853 comments. Don't subtract fx_subsy as that is already done.
1854 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
1855 (MD_PCREL_FROM_SECTION): Likewise.
1856 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
1857 ppc_force_relocation.
1858 (TC_FORCE_RELOCATION_SECTION): Delete.
1859 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1860 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1861 (MD_APPLY_SYM_VALUE): Define.
1862 * config/tc-s390.c: #include "dwarf2dbg.h".
1863 (s390_insn): Remove excess parens.
1864 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
1865 (tc_s390_force_relocation): Call S_FORCE_RELOC.
1866 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
1867 non-NULL. Don't subtract off fx_addsy value.
1868 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1869 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1870 (TC_FIX_ADJUSTABLE): Don't define.
1871 (MD_APPLY_SYM_VALUE): Define.
1872 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
1873 (SWITCH_TABLE): Likewise.
1874 (sh_force_relocation): Call S_FORCE_RELOC.
1875 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1876 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1877 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1878 fx_addnumber is zero on entry. Save val in fx_addnumber.
1879 (tc_gen_reloc): Don't subtract fx_subsy.
1880 * config/tc-sh.h (struct fix): Move.
1881 (obj_fix_adjustable): Don't define.
1882 (tc_fix_adjustable): Define this instead.
1883 (TC_FIX_ADJUSTABLE): Don't define.
1884 (MD_APPLY_SYM_VALUE): Define.
1885 (SWITCH_TABLE_CONS): Define.
1886 (SWITCH_TABLE): Define.
1887 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1888 (TC_VALIDATE_FIX_SUB): Define.
1889 (MD_PCREL_FROM_SECTION): Tweak param name.
1890 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1891 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1892 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1893 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1894 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1895 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1896 (TC_VALIDATE_FIX_SUB): Define.
1897 (MD_PCREL_FROM_SECTION): Tweak param name.
1898 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1899 (tc_gen_reloc): Use S_FORCE_RELOC.
1900 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1901 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1902 (TC_FORCE_RELOCATION_ABS): Define this instead.
1903 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1904 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1905 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1906 (MD_APPLY_SYM_VALUE): Define.
1907 (TC_FIX_DATA_PRINT): Tweak param name.
1908 * config/tc-tic30.c (USE_STDOUT): Don't define.
1909 (md_parse_option): Remove stupid debug code.
1910 (tc_gen_reloc): Don't use fx_addnumber.
1911 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1912 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1913 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1914 (tc_fix_adjustable): Define this instead.
1915 (TC_FIX_ADJUSTABLE): Don't define.
1916 (MD_APPLY_SYM_VALUE): Define this instead.
1917 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1918 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1919 (TC_FIX_ADJUSTABLE): Don't define.
1920 (MD_APPLY_SYM_VALUE): Define this instead.
1921 (tc_fix_adjustable): Remove extern and weak tests.
1922 * config/tc-w65.h (struct fix): Forward declare.
1923 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1925 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1926 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1927 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1929 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1930 (MD_APPLY_SYM_VALUE): Define.
1931 (obj_fix_adjustable): Don't define.
1932 (tc_fix_adjustable): Define this instead.
1933 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1935 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1937 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1938 (ppc_fix_adjustable <coff version>): Cleanup.
1940 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1941 (md_parse_option): No -a64 without BFD64.
1942 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1943 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1945 2002-09-04 Nick Clifton <nickc@redhat.com>
1947 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1948 instructions into the hash table if the target cpu is the BookE32.
1950 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1952 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1955 2000-08-28 Catherine Moore <clm@redhat.com>
1957 * tc-v850.c (v850_relax): Declare.
1958 (v850_longcode): New routine.
1959 (v850_handle_align): New routine.
1960 (md_pseudo_table): Add longcall and longjump.
1961 (md_parse_option): Check for relax option.
1962 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1963 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1964 (md_apply_fix3): Likewise.
1965 (v850_force_relocation): Likewise.
1966 (v850_comm): Change the current section.
1967 (md_assemble): Ensure that the correct value is put in the
1969 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1970 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1971 Remove redundant v850ea support.
1972 * tc-v850.h (HANDLE_ALIGN): Define.
1973 (v850_handle_align): Declare.
1974 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1976 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1978 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1979 * configure: Regenerate.
1980 * NEWS: Mention new port.
1982 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1984 * config/obj-coff.c: Add sdef definition.
1985 * config/obj-coff.h: Add tic4x include file and set
1987 * config/tc-tic4x.c: New file.
1988 * config/tc-tic4x.h: New file.
1990 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1992 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1993 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1994 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1995 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1996 (RELOC_ENUM): Define.
1997 (fix_new_internal): Use RELOC_ENUM.
1998 (fix_new, fix_new_exp): Likewise.
1999 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2000 Replace gotos with continue.
2001 (write_relocs): Formatting. Avoid symbol loops in
2002 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2003 errors, and error number in other cases.
2004 (fixup_segment): Remove param names from prototype. Rename
2005 "this_segment_type" to "this_segment". Update linkrelax comment.
2006 Remove "size, "place" and "where" local vars. Formatting. Update
2007 "no symbol" comment. Remove #if 0 and #if 1.
2009 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2011 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2013 * dwarf2dbg.c: Always include dwarf2dbg.h.
2014 (dwarf2_directive_file): Adjust dummy version args.
2015 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2016 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2017 when symbol values differ.
2018 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2019 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2020 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2022 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2024 * config/tc-w65.c (md_section_align): Fix typo.
2025 (md_parse_option): Return 0, not 1.
2027 2002-08-22 Nick Clifton <nickc@redhat.com>
2029 * doc/as.texinfo (Section): Note that if '@' is a comment
2030 character then another symbol is used to prefix the section's
2033 2002-08-22 Christian Groessler <chris@groessler.org>
2035 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2038 2002-08-12 Graeme Peterson <gp@qnx.com>
2040 * configure.in: Add support for sh-**-nto* target.
2041 * configure: Regenerate.
2043 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2045 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2047 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2049 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2051 (ppc_apuinfo_section_add): Define only if format is ELF.
2052 (md_assemble): Emit APUinfo section only if format is ELF.
2055 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2057 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2058 * config/tc-frv.c: Likewise.
2059 * config/tc-hppa.c: Likewise.
2060 * config/tc-ia64.c: Likewise.
2061 * config/tc-ip2k.c: Likewise.
2062 * config/tc-m68hc11.c: Likewise.
2063 * config/tc-m68k.c: Likewise.
2064 * config/tc-mmix.c: Likewise.
2065 * config/tc-mn10300.c: Likewise.
2066 * config/tc-sh.c: Likewise.
2067 * config/tc-sparc.c: Likewise.
2068 * config/tc-v850.c: Likewise.
2070 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2072 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2075 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2077 From matthew green <mrg@redhat.com>
2079 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2080 PPC_OPCODE_PPC is, except for BookE architectures.
2081 (md_parse_option): Add support for -mspe.
2082 (md_show_usage): Add -mspe.
2083 (md_parse_option): Add support for -me500 and
2084 -me500x2 to generate code for Motorola e500 core complex.
2085 (md_show_usage): Add -me500 and -me500x2.
2087 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2088 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2089 PPC_APUINFO_BRLOCK): New macros.
2091 (ppc_cleanup): New function.
2092 (ppc_apuinfo_section_add): New function.
2094 (md_assemble): Collect info and write the APUinfo section.
2096 * config/tc-ppc.h (md_cleanup): Define.
2097 (ppc_cleanup): Export.
2098 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2100 2002-08-17 Stan Cox <scox@redhat.com>
2102 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2103 config/tc-mips.c (s_change_section): New function to support
2104 IRIX .section pseudo-op.
2106 2002-08-16 Nick Clifton <nickc@redhat.com>
2108 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2110 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2112 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2113 the fix-up against on the right frag.
2114 (s_cpsetup): Likewise. Parse third argument as expression, to
2115 handle global symbols and forward/backward labels correctly.
2117 2002-08-14 Nick Clifton <nickc@redhat.com>
2119 * read.c (stringer): Catch attempts to create strings in the abs
2122 * config/tc-alpha.c: Fix compiling for COFF targets.
2123 Some minor formatting tidyups.
2125 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2127 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2128 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2129 according to the reloc.
2130 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2131 (TC_FORCE_RELOCATION): Define.
2132 (tc_m68hc11_force_relocation): Declare.
2134 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2135 (s_m68hc11_relax): New function for relax group.
2136 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2137 beginning of jump instruction.
2138 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2139 address computation.
2140 (tc-gen_reloc): Update.
2141 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2143 (tc_m68hc11_force_relocation): New function, handle new relocs.
2144 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2145 reloc for the linker relax pass.
2146 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2149 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2151 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2152 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2153 (s_m68hc11_mode): New function for .mode pseudo op.
2154 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2156 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2157 (m68hc11_elf_final_processing): Declare.
2159 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2161 * config/tc-m68hc11.c (md_begin): Take into account additional
2162 page operand for call instruction.
2163 (print_opcode_format): Likewise.
2164 (check_range): Likewise for page range checking.
2165 (get_operand): Don't skip a possible comma in operands.
2166 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2167 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2168 (fixup24): New to handle call reloc.
2169 (build_insn): Handle missing page operand for call instruction.
2171 (md_apply_fix3): Take into account new relocs.
2172 (get_operand): Fix the mode for indexed indirect addressing.
2173 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2175 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
2177 * config/tc-mips.c (mips_ip): Don't work out the value of
2178 constant %hi()s here.
2180 2002-08-10 Alan Modra <amodra@bigpond.net.au>
2182 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2183 for ELF, and don't bother checking ELF relocs when non-ELF.
2184 (i386_immediate): Allow absolute_section expressions for aout.
2185 (i386_displacement): Likewise. Also test bfd_is_com_section.
2186 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2187 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2188 not when fx_addsy. Remove dead code.
2190 2002-08-09 Graeme Peterson <gp@qnx.com>
2192 * configure.in: Add support for ppc-*-nto* target.
2193 * configure: Regenerate.
2195 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2197 * config/tc-i386.h: Reorganize.
2199 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2201 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2202 immediate offset in "dla" and "la" expansions.
2204 2002-08-09 Alan Modra <amodra@bigpond.net.au>
2206 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2207 Remove "bfd_gas=yes" from target table when covered later.
2208 Consolidate some entries.
2209 * configure: Regenerate
2211 2002-08-09 Jakub Jelinek <jakub@redhat.com>
2213 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2214 at start of insn, pass it to output_disp and output_imm.
2215 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2216 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2218 (output_imm): Added arguments. Compute properly addend for
2220 (md_apply_fix3): Remove R_386_GOTPC handling.
2222 2002-08-06 George France <france@handhelds.org>
2224 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2225 and m21264b processor names and cpu types.
2226 * doc/c-alpha.texi: Documented new types.
2228 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2230 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2232 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
2234 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2235 handling to BFD_RELOC_MIPS16_GPREL.
2237 2002-08-01 Nick Clifton <nickc@redhat.com>
2239 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2240 pool is computed using signed arithmetic so that proper sign
2241 extension is performed if X_add_number is a 64-bit integer.
2243 2002-08-01 H.J. Lu <hjl@gnu.org>
2244 Daniel Jacobowitz <drow@mvista.com>
2246 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2247 .debug_line section unless it has line information.
2249 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2251 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2252 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2253 Allow default displacement size to be an option "--disp-size-default".
2254 (md_number_to_disp): Make error messages include value. Use %d to
2255 print integers, not %s.
2256 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2257 get duplicate messages sometimes.
2258 (convert_iif): Grow frag to max possible instruction size. Avoid
2259 creating unnecessary fixes.
2260 (md_number_to_field) Add prototype.
2261 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2262 prototypes and make static.
2263 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2264 (evaluate_expr): Use resultP argument instead of exprP global.
2265 (get_addr_mode): Quiten compiler warnings.
2266 (encode_operand): eliminate unused variables. Quiten compiler
2267 warnings. Eliminate nul character in format strings.
2268 (parse): argc is unsigned.
2269 (reloc): Type cast index to quieten compiler.
2270 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2271 (md_convert_frag): Note unused parameters. Remove unused
2273 (md_create_long_jump, md_create_short_jump,
2274 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2277 2002-07-31 Nick Clifton <nickc@redhat.com>
2279 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2280 of the PDP-11 and 2.11BSD a.out support.
2282 2002-07-31 Momchil Velikov <velco@fadata.bg>
2284 * config/tc-v850.c (md_assemble): Fix range check for immediate
2287 2002-07-30 Chris Demetriou <cgd@broadcom.com>
2289 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2290 to Broadcom SB-1 core support.
2292 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2294 * config/tc-mips.c (mips_target_format): Fix formatting.
2295 Add recognition of n32 ABI formats.
2297 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2299 * tc-mips.c (load_address): Don't clobber $at when loading a
2300 64-bit address in non-PIC code if noat is in effect.
2303 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2305 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2306 used in division/multiply macro expansions similarly to how they
2307 are used in the variants with break instructions.
2310 2002-07-30 Graeme Peterson <gp@qnx.com>
2312 * configure.in: Add support for arm-*-nto target.
2313 * configure: Regenerate.
2315 2002-07-30 Nick Clifton <nickc@redhat.com>
2317 * config/tc-arm.c (struct literal_pool): Add fields to allow
2318 multiple literal pools to be maintained.
2319 (find_literal_pool): New function.
2320 (find_or_make_literal_pool): New function.
2321 (add_to_literal_pool): Use find_or_make_literal_pool.
2322 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2324 (s_ltorg): Use find_literal_pool.
2325 (arm_cleanup): Dump all literal pools.
2326 * doc/c-arm.texi: Document new behaviour of only dumping literal
2329 2002-07-26 Alan Modra <amodra@bigpond.net.au>
2331 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2332 rather than PPC_OPCODE_32 for powerpc64*.
2334 2002-07-25 Nick Clifton <nickc@redhat.com>
2336 * po/es.po: Updated Spanish translation.
2337 * po/fr.po: Updated French translation.
2339 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
2341 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2342 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2343 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2344 * configure, config.in: Regenerate.
2345 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2346 (mips_set_options): Remove "abi" field.
2347 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2350 (mips_arch_string, mips_arch_info): New vars.
2351 (mips_tune_string, mips_tune_info): New vars.
2352 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2353 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2354 (mips_isa_to_str, mips_cpu_to_str): Remove.
2355 (mips_ip): If the selected architecture is a generic ISA rather
2356 than a processor, only mention the ISA level in error messages.
2357 (OPTION_MCPU): Remove.
2359 (md_longopts): Add -mfp64, remove -mcpu.
2360 (mips_set_option_string): New fn.
2361 (md_parse_option): Make -mipsN update file_mips_isa rather than
2362 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2363 Don't let -mgp32 and -mfp32 change the ABI.
2364 (show): Move to end of file. Constify string argument.
2365 (md_show_usage): Move to the end of the file. Read available
2366 architectures from mips_cpu_info_table.
2367 (mips_set_architecture): New fn.
2368 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2369 is an alias for -march=mipsN. Don't change the ABI based on other
2370 flags. Infer the register size from the ABI as well as the
2371 architecture. Complain about more conflicting arguments.
2372 Unify logic with GCC.
2373 (s_mipsset): Don't change the ABI.
2374 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2375 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2376 "mipsN"-type entries. Remove entries that vary only in the
2377 manufacturer's prefix, or that have "000" replaced by "k".
2378 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2379 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2380 (mips_parse_cpu): New fn.
2381 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2382 (mips_cpu_info_from_isa): Minor formatting tweak.
2384 2002-07-24 Nick Clifton <nickc@redhat.com>
2386 * po/sv.po: Updated Swedish translation.
2387 * po/es.po: Updated Spanish translation.
2389 2002-07-23 Alan Modra <amodra@bigpond.net.au>
2391 * Makefile.am: Run "make dep-am".
2392 * Makefile.in: Regenerate.
2393 * doc/Makefile.in: Regenerate.
2394 * config.in: Regenerate.
2395 * po/POTFILES.in: Regenerate.
2397 2002-07-23 Nick Clifton <nickc@redhat.com>
2399 * po/fr.po: Updated French translation.
2401 2002-07-23 Nick Clifton <nickc@redhat.com>
2403 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2406 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2408 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2409 instead of S_IS_EXTERN.
2410 (md_estimate_size_before_relax): Likewise.
2411 (mips_fix_adjustable): Likewise.
2413 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2415 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2417 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2418 Nick Clifton <nickc@redhat.com>
2420 * cond.c (s_ifdef): Treat a referenced but not yet defined
2421 symbol as if it were undefined, in exactly the same way as
2424 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2425 consider referenced bug not yet defined symbols to be
2428 2002-07-18 Denis Chertykov <denisc@overta.ru>
2429 Frank Ch. Eigler <fche@redhat.com>
2430 Alan Lehotsky <alehotsky@cygnus.com>
2431 John Healy <jhealy@redhat.com>
2432 Jeff Johnston <jjohnstn@redhat.com>
2434 * configure.in: Add ip2k configuraton.
2435 * configure: Regenerate.
2436 * Makefile.am: Add ip2k configuraton.
2437 * Makefile.in: Regenerate.
2438 * configure: Regenerate.
2439 * Makefile.in: Regenerate.
2440 * config/tc-ip2k.c: New file.
2441 * config/tc-ip2k.h: New files.
2442 * NEWS: Mention new support.
2443 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2444 * doc/Makefile.in: Regenerate.
2445 * doc/all.texi: Set IP2K
2446 * doc/as.texinfo: Add IP2K description.
2447 * doc/c-ip2k.texi: New file.
2449 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2451 * NEWS: Reformat to match style of other NEWS files.
2453 2002-07-17 Jan Hubicka <jh@suse.cz>
2455 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2457 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
2459 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2461 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2463 * NEWS: Add 'Changes in 2.13'.
2465 2002-07-15 Matt Fredette <fredette@netbsd.org>
2467 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2469 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2471 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2472 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2475 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2477 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2478 (ppc_frob_file_before_adjust): New function.
2479 * config/tc-ppc.h (tc_frob_symbol): Don't define.
2480 (ppc_elf_frob_symbol): Don't declare.
2481 (tc_frob_file_before_adjust): Define.
2482 (ppc_frob_file_before_adjust): Declare.
2484 * config/tc-ppc.c (md_pseudo_table): Warning fix.
2485 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
2488 (ppc_xcoff64): Rename to ppc_obj64.
2489 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
2490 (ppc_set_cpu): Set PPC_OPCODE_32 too.
2491 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
2493 (ppc_target_format): Use ppc_obj64 to select format.
2494 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
2495 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
2496 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
2497 (tc_frob_symbol): Likewise.
2498 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
2499 BFD_DEFAULT_TARGET_SIZE.
2501 (ppc_is_toc_sym): Likewise.
2502 (md_apply_fix3): Likewise.
2503 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
2504 BFD_DEFAULT_TARGET_SIZE.
2505 (ELF_TC_SPECIAL_SECTIONS): Likewise.
2506 (tc_frob_symbol): Likewise.
2508 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2510 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
2511 (mips_ip): Likewise.
2513 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2515 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
2516 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
2517 (md_apply_fix3): Formatting. Remove redundant test.
2518 (tc_gen_reloc): Remove redundant code.
2519 (tc_i386_force_relocation): Delete. Movy body of function to..
2520 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
2522 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2524 * configure.in: Add hppa-*-openbsd* target, change
2525 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
2527 * configure: Regenerate.
2529 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2531 * config/tc-mips.c (macro): Shift the 32-bit address range
2532 accessible with a lone "lui" down by 32768.
2534 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2536 * config/tc-mips.c (load_address): Use non-trapping "daddu"
2537 instead of "dadd" in address calculations.
2540 2002-07-08 Alan Modra <amodra@bigpond.net.au>
2542 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
2544 (md_assemble): Instead, zap the suffix here.
2546 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2548 * NEWS: Remove next release number until the release is actually
2551 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2553 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2555 * Makefile.in: Regenerate.
2557 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
2559 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
2560 to symbols in merge sections, even non pc-relative ones.
2562 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2564 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
2566 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2568 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
2569 .softregs and .eeprom.
2571 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2573 * NEWS: Note the next release is 2.13.
2575 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
2577 * po/tr.po: New translation imported.
2579 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2581 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
2582 (ecoff_directive_def): Likewise.
2583 (ecoff_directive_tag): Likewise.
2584 * listing.c (file_info): Likewise.
2585 * hash.c (what): Likewise.
2587 2002-06-25 H.J. Lu <hjl@gnu.org>
2589 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2590 * Makefile.in: Regenerated.
2592 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2594 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
2595 (assemble_ppi): Generate warning if the same register is used
2596 twice as destination in the same padd / pmuls instruction.
2598 2002-06-18 Dave Brolley <brolley@redhat.com>
2600 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
2601 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
2602 * configure.in: Support frv-*-*.
2603 * Makefile.am (CPU_TYPES): Add frv.
2604 (TARGET_CPU_CFILES): Add tc-frv.c.
2605 (TARGET_CPU_HFILES): Add tc-frv.h.
2606 (DEPTC_frv_coff): New variable.
2607 (DEPTC_frv_elf): New variable.
2608 (DEPOBJ_frv_coff): New variable.
2609 (DEPOBJ_frv_elf): New variable.
2610 (DEP_frv_coff): New variable.
2611 (DEP_frv_elf): New variable.
2612 * tc-frv.c: New file.
2613 * tc-frv.h: New file.
2615 2002-06-17 Catherine Moore <clm@redhat.com>
2617 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
2619 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
2621 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
2623 2002-06-17 Tom Rix <trix@redhat.com>
2625 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
2627 2002-06-14 H.J. Lu <hjl@gnu.org>
2628 Daniel Jacobowitz <drow@mvista.com>
2630 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
2631 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
2632 * config/tc-mips.c (s_mips_file): Call s_app_file_string
2633 and new_logical_line for the first .file directive.
2634 * read.c (s_app_file_string): New function.
2635 (s_app_file): Call it.
2636 * read.h (s_app_file_string): Add declaration.
2638 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2640 * configure.in: Remove MIPS_STABS_ELF.
2641 * configure: Regenerated.
2642 * config.in: Regenerated.
2643 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
2645 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
2647 (pdr_seg): Declare unconditionally.
2648 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
2649 (s_mips_end): Likewise. Generate stabs function markers.
2650 (s_mips_ent): Generate stabs function markers.
2651 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
2653 (s_mips_mask): Likewise.
2654 (mips_flag_mdebug): New.
2655 (md_longopts): Add "mdebug" and "no-mdebug".
2656 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
2657 (mips_after_parse_args): Set mips_flag_mdebug.
2658 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
2660 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2662 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
2663 value twice for RELA relocations.
2665 2002-06-12 Ben Elliston <bje@redhat.com>
2667 * symbols.c (resolve_symbol_value): Initialise final_val.
2669 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2671 2002-06-11 Tom Rix <trix@redhat.com>
2673 * config/tc-ppc.c (ppc_subseg_align): Delete.
2674 (ppc_change_csect): Default csect align is 2.
2675 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
2677 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2679 * config/tc-avr.c (mcu_types): Update.
2681 2002-06-08 Matt Thomas <matt@3am-software.com>
2683 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
2684 (vax-*-netbsd*): New targets.
2685 * configure: Regenerate.
2686 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
2687 * config/tc-vax.c: Add support for ELF and PIC.
2688 (flag_want_pic): New flag.
2689 (float_cons): Fix prototype.
2690 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
2691 (md_assemble): Introduce a new is_absolute local, and use it
2692 rather than repeating the test. Make fatal errors actually
2693 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
2694 Add support for ELF. Add support for PIC.
2695 (md_convert_frag): Adjust for BFD_ASSEMBLER.
2696 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
2698 (vax_reg_parse): Make the % register prefix mandatory for ELF,
2699 optional for a.out, and not allowed for VMS. Adjust all callers.
2700 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
2701 (md_create_long_jump): Likewise.
2702 (md_undefined_symbol): Likewise.
2703 (md_section_align): Likewise.
2704 (md_shortopts): Allow -k and -K for ELF.
2705 (md_parse_option): Set flag_want_pic if -k or -K.
2706 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
2707 (tc_gen_reloc): New function if BFD_ASSEMBLER.
2708 * config/tc-vax.h (tc_headers_hook): Remove.
2709 (TARGET_FORMAT): Set according to object format and target
2711 (BFD_ARCH, TARGET_ARCH): Define.
2712 (NO_RELOC): Adjust for BFD_ASSEMBLER.
2713 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
2714 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
2715 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2717 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2719 * Makefile.am: Run "make dep-am".
2720 * Makefile.in: Regenerate.
2722 * as.c: Replace CONST with const.
2723 * write.c: Likewise.
2724 * config/obj-coff.c: Likewise.
2725 * config/tc-a29k.c: Likewise.
2726 * config/tc-arm.c: Likewise.
2727 * config/tc-dlx.c: Likewise.
2728 * config/tc-h8300.c: Likewise.
2729 * config/tc-h8500.c: Likewise.
2730 * config/tc-i370.c: Likewise.
2731 * config/tc-i860.c: Likewise.
2732 * config/tc-i960.c: Likewise.
2733 * config/tc-m68hc11.c: Likewise.
2734 * config/tc-m68k.c: Likewise.
2735 * config/tc-m88k.c: Likewise.
2736 * config/tc-mcore.c: Likewise.
2737 * config/tc-mips.c: Likewise.
2738 * config/tc-ns32k.c: Likewise.
2739 * config/tc-pdp11.c: Likewise.
2740 * config/tc-pj.c: Likewise.
2741 * config/tc-s390.c: Likewise.
2742 * config/tc-sh.c: Likewise.
2743 * config/tc-sparc.c: Likewise.
2744 * config/tc-tahoe.c: Likewise.
2745 * config/tc-tic80.c: Likewise.
2746 * config/tc-v850.c: Likewise.
2747 * config/tc-vax.c: Likewise.
2748 * config/tc-w65.c: Likewise.
2749 * config/tc-z8k.c: Likewise.
2751 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
2753 Based on patch from Matt Green:
2754 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
2755 * config/tc-mips.c (s_mips_file): Renamed from s_file.
2756 (s_mips_loc): New function.
2757 (mips_nonecoff_pseudo_table): Call them.
2758 (append_insn): Call dwarf2_emit_insn.
2760 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2762 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
2764 (file_ase_mips16): New veriable.
2765 (mips_eabi64): Remove.
2766 (CPU_HAS_MIPS16): New define.
2767 (CPU_HAS_MDMX): Fix data type.
2768 (md_begin): Code cleanup. Use file_ase_mips16.
2769 (mips_elf_final_processing): Handle mips16 header flag.
2770 Handle EABI flag without intermediate variable.
2772 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2774 * doc/as.texinfo: Update MIPS documentation.
2776 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2778 * config/tc-mips.c: Add define for $zero register.
2779 (md_begin): Add $zero as alias name for $0.
2780 (insn_uses_reg): Use ZERO define.
2781 (mips_ip): Add $zero as alias name for $0.
2782 (mips16_ip): Likewise.
2783 (s_cplocal): Demand empty rest of input line.
2784 (tc_get_register): Likewise. Add support for $kt0, kt1 register
2785 names. Use ZERO define. Fix input_line_pointer progress.
2787 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2789 * symbols.c: Replace CONST by const throughout.
2790 (symbol_find_exact): Split out from..
2791 (symbol_find_base): ..here.
2792 * symbols.h: Replace CONST by const throughout.
2793 (symbol_find_exact): Declare.
2794 * config/obj-elf.c: #include "struc-symbol.h".
2795 (elf_frob_file): If group name matches an exported symbol, use that
2796 symbol for the signature and ".group" as the section name.
2798 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2800 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
2803 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
2805 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
2806 and mips_opts.ase_mdmx if they are uninitialized.
2808 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2810 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
2811 (hppa_force_relocation): Check if a stub just before the start symbol
2812 of the last call_info is reachable before forcing relocation. Fix
2815 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2817 * config/tc-mips.c (mips_after_parse_args): New function.
2818 (md_begin): Move processing of defaults to mips_after_parse_args.
2819 config/tc-mips.h (md_after_parse_args): Define.
2821 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2823 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
2824 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
2825 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
2826 * configure: Regenerate.
2827 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
2830 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2832 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
2834 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2836 * config/obj-elf.c (obj_elf_change_section): Set and check elf
2837 linkonce flag. Print all warnings.
2838 (obj_elf_section): Parse ",comdat" for groups.
2839 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
2840 consistency of comdat flag.
2842 2002-06-02 Richard Henderson <rth@redhat.com>
2844 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
2845 with LITERALs without sequence numbers.
2847 2002-06-01 Richard Henderson <rth@redhat.com>
2849 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
2850 Rename them LITUSE_ALPHA_*.
2852 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
2854 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
2855 accept parentheses enclosed register lists.
2857 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2859 * Makefile.am: Run "make dep-am".
2860 * Makefile.in: Regenerate.
2861 * po/POTFILES.in: Regenerate.
2863 2002-05-31 Graeme Peterson <gp@qnx.com>
2865 * configure.in: Add i386-*-nto-qnx*.
2866 * configure: Regenerate.
2868 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2870 * config/tc-mips.c (mips_ip): Use unsigned long values for
2873 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2875 * config/tc-mips.c (s_cpsetup): Fix initialization of
2876 mips_cpreturn_register and mips_cpreturn_offset.
2878 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2880 * config/tc-mips.c (s_cpsetup): Fix comment.
2882 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2884 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2885 (mips_ip): Likewise.
2886 (mips16_ip): Likewise.
2887 (tc_get_register): Likewise.
2889 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2890 Ed Satterthwaite <ehs@broadcom.com>
2892 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2893 (mips_opts): Initialize "ase_mdmx" member.
2894 (file_ase_mdmx): New variable.
2895 (CPU_HAS_MDMX): New macro.
2896 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2897 based on command line options and configuration defaults.
2898 (macro_build): Note in comment that use of MDMX in macros is
2899 not currently allowed.
2900 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2901 "Z" MDMX operand types.
2902 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2903 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2905 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2906 Add support for "-mdmx" and "-no-mdmx" options.
2907 (OPTION_ELF_BASE): Move to accomodate new options.
2908 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2909 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2910 file_ase_mdmx was set.
2911 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2912 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2915 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2917 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2918 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2919 command line switch conforming to gcc conventions.
2920 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2922 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2924 * config/tc-mips.c (macro_build_jalr): New Function.
2925 (md_begin): NewABI uses big GOTs.
2926 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2927 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2928 (load_address): Add some NewABI PIC support.
2930 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2931 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2933 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2935 * config/tc-mips.c (load_address): Use mips_gp_register instead
2936 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2938 (macro): Use mips_gp_register instead of hardcoded value.
2940 2002-05-30 Richard Henderson <rth@redhat.com>
2942 * expr.h (operatorT): Add O_md17..O_md32.
2943 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2944 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2945 O_tprelhi, O_tprello, O_tprel): New.
2946 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2947 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2948 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2949 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2950 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2951 (md_apply_fix3): Handle TLS relocations.
2952 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2953 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2954 associated TLS reloc. Check lituse_tls relocs match up.
2955 (emit_insn): Handle TLS relocations.
2958 * doc/c-alpha.texi: Add docs for tls relocations.
2960 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2962 * config/tc-mips.c (mips_gprel_offset): New variable.
2963 (s_gpvalue): Use it.
2965 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2967 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2968 write-write conflicts.
2969 (md_assemble): Reformat introductory comment.
2970 (parallel_ok): Prevent packing only if the first
2971 instruction cannot be packed.
2973 2002-05-30 Jason Eckhardt <jle@redhat.com>
2974 Tom Rix <trix@redhat.com>
2976 * config/tc-d10v.c (build_insn): Check for immediates.
2978 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2980 * config/tc-mips.c: Replace GP in comments by $gp.
2981 (mips_big_got): Initialize.
2982 (mips_trap): Initialize.
2983 (load_address): Use mips_gp_register instead of hardcoded value.
2984 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2985 (macro): Use mips_gp_register instead of hardcoded value.
2986 (macro2): Change load_address calls.
2987 (md_pcrel_from): Comment formatting.
2988 (s_cpload): Use mips_gp_register instead of hardcoded value.
2989 (s_cprestore): Likewise. Comment formatting.
2990 (s_gpword): Fix data type.
2991 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2992 (nopic_need_relax): Replace GP in comments by $gp.
2993 (mips_elf_final_processing): Better comment.
2995 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2997 * configure.in: Add DLX configuraton
2998 * Makefile.am: Add DLX configuraton
2999 * configure: Regenerate.
3000 * Makefile.in: Regenerate.
3001 * config/tc-dlx.c: New file.
3002 * config/tc-dlx.h: New files.
3003 * NEWS: Mention new support.
3005 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3007 * config/obj-coff.c (write_object_file): Add missing semicolon.
3009 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3011 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3012 by the define. Remove superfluous check of mips_opts.mips16.
3013 (append_insn): Likewise. Canonicalize variable increments.
3014 (macro_build): Canonicalize variable increments.
3015 (macro_build_lui): Likewise.
3016 (load_register): Likewise.
3017 (load_address): Move pointer initialization.
3018 (macro): Move pointer to a more local scope. Canonicalize variable
3019 increments. Better comments. Replace magic constant for RA by the
3021 (macro2): Replace magic constant for RA by the define. Canonicalize
3022 variable increments.
3023 (mips_ip): Canonicalize variable increments.
3024 (mips16_ip): Replace magic constant for RA by the define.
3025 (my_getSmallParser): Canonicalize variable increments/decrements.
3026 (my_getPercentOp): Likewise.
3027 (my_getSmallExpression): Likewise.
3028 (s_align): Likewise.
3029 (s_mipsset): Likewise.
3030 (s_cpsetup): Likewise.
3031 (s_insn): Remove superfluous check of mips_opts.mips16.
3032 (s_mips_stab): Likewise.
3033 (mips_handle_align): Canonicalize variable increments.
3034 (s_mips_ent): Likewise.
3035 (s_mips_end): Add comment.
3037 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3039 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3040 * configure: Regenerate.
3042 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3044 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3045 * Makefile.in: Regenerate.
3046 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3047 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3048 * configure: Regenerate.
3049 * as.h: Use #include "" instead of <> for local header files.
3050 * flonum-konst.c: Likewise.
3051 * flonum-mult.c: Likewise.
3053 * listing.c: Likewise.
3054 * config/tc-ia64.h: Likewise.
3055 * config/tc-v850.h: Likewise.
3057 2002-05-24 TAMURA Kent <kent@netbsd.org>
3059 * configure.in: Add a target for i386-netbsdpe.
3060 * configure: Regenerate.
3062 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3064 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3065 (obj_elf_common): Call elf_common.
3066 (obj_elf_tls_common): New function.
3067 (elf_pseudo_tab): Support .tls_common.
3068 (special_sections): Add .tdata and .tbss.
3069 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3071 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3072 (obj_elf_parse_section_letters): Include T in error message.
3073 * config/tc-ppc.c (ppc_section_letter): Likewise.
3074 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3075 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3077 * config/tc-sparc.c (md_apply_fix3): Likewise.
3078 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3079 Define them if not BFD_ASSEMBLER.
3080 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3082 (md_apply_fix3): Add TLS relocs.
3083 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3084 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3085 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3086 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3087 (ia64_elf_section_letter): Include T in error message.
3088 (md_begin): Support TLS operators.
3089 (md_operand): Likewise.
3090 (ia64_gen_real_reloc_type): Support TLS relocs.
3091 * write.c (adjust_reloc_syms): Don't change symbols in
3092 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3094 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3096 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3097 round the relocation up rather than down.
3099 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3101 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3103 * doc/as.texinfo: Document that the COFF version of .section
3104 ignores the 'a' flag.
3106 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3108 * config/tc-alpha.c (assemble_tokens): Protect use of
3109 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3111 * write.c (size_seg): Check adjustment to last frag.
3112 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3114 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3115 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3116 (write_object_file): Invoke md_do_align if available, and use
3117 frag_align_code on text sections.
3118 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3119 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3120 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3121 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3122 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3125 2002-05-22 H.J. Lu <hjl@gnu.org>
3127 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3130 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3132 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3135 2002-05-22 H.J. Lu <hjl@gnu.org>
3137 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3138 for one .loc for compiler.
3140 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3142 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3145 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3147 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3148 Optimize the rotate by zero case.
3150 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3152 * configure.in: Remove accidental enabling of bfd_gas=yes for
3154 * configure: Regenerate.
3156 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3158 * app.c: Fix formatting.
3160 * ehopt.c: Likewise.
3162 * input-file.c: Likewise.
3163 * listing.c: Likewise.
3164 * macro.h: Likewise.
3165 * stabs.c: Likewise.
3166 * symbols.c: Likewise.
3168 2002-05-17 Alan Modra <amodra@bigpond.net.au>
3170 * config/obj-generic.c: Delete file.
3171 * config/obj-generic.h: Likewise.
3173 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3175 * config/tc-avr.c (mcu_types): Update for new devices.
3177 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3179 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3181 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3183 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3184 worked sometimes by accident. Fix copy&paste comment.
3186 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3188 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3189 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3190 (mips_elf_final_processing): Let n32 use .reginfo.
3192 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3194 * config/tc-mips.c (append_insn): Fix too small range of variable.
3196 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3198 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3199 listing_prev_line().
3201 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3203 * config/tc-arm.c (md_assemble): Remove redundant call to
3206 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3209 * stabs.c (s_stab_generic): Fix grammatical error in warning
3212 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3214 * write.c (subsegs_finish): Don't specially align last subseg.
3216 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3218 * stabs.c (s_stab_generic): Warn about a description field that is
3221 * config/obj-coff.c: Fix compile time warnings when compiling
3222 without BFD_ASSEMBLER defined.
3225 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3227 (md_pcrel_from_section): Use md_pcrel_from().
3229 2002-05-11 Bruno Haible <bruno@clisp.org>
3231 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3232 by dwarf2_directive_loc, instead of calling dwarf2_where.
3234 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3236 * config/obj-coff.h: Fix formatting.
3237 * config/tc-mcore.c: Likewise.
3238 * config/tc-mn10300.c: Likewise.
3239 * config/tc-openrisc.c: Likewise.
3240 * config/tc-or32.c: Likewise.
3241 * config/tc-pdp11.c: Likewise.
3242 * config/tc-ppc.c: Likewise.
3243 * config/tc-ppc.h: Likewise.
3244 * config/tc-sh64.c: Likewise.
3245 * config/tc-sh.c: Likewise.
3246 * config/tc-tic54x.c: Likewise.
3247 * config/tc-xstormy16.c: Likewise.
3248 * config/tc-xstormy16.h: Likewise.
3250 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3252 * config/obj-coff.c: Fix formatting.
3253 * config/obj-elf.c: Likewise.
3254 * config/tc-alpha.c: Likewise.
3255 * config/tc-arm.c: Likewise.
3256 * config/tc-d10v.c: Likewise.
3257 * config/tc-d30v.c: Likewise.
3258 * config/tc-h8300.c: Likewise.
3259 * config/tc-hppa.c: Likewise.
3261 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3263 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3264 reloc when no_cond_jump_promotion.
3266 2002-05-08 Jim Wilson <wilson@redhat.com>
3268 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3269 current variable part of frag.
3271 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3273 * config/tc-mmix.c: Fix formatting.
3274 * config/tc-mmix.h: Likewise.
3276 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3278 * configure: Regenerate.
3280 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3282 * config/tc-m68k.c: Fix formatting.
3284 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3286 * Makefile.am: Honour DESTDIR.
3287 * Makefile.in: Regenerate.
3289 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3291 * config/tc-ia64.c: Fix formatting.
3292 * config/tc-ia64.h: Likewise.
3294 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3296 * config/tc-mips.c: Fix formatting.
3297 * config/tc-s390.c: Likewise.
3298 * config/tc-s390.h: Likewise.
3300 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
3302 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3303 information for instructions.
3305 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3307 * as.h: Fix formatting.
3310 * dwarf2dbg.c: Likewise.
3311 * frags.h: Likewise.
3313 * macro.c: Likewise.
3315 * stabs.c: Likewise.
3316 * symbols.c: Likewise.
3318 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3320 * app.c (mri_pseudo): Only declare for TC_M68K.
3322 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3323 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3324 BFD_RELOC_16_BASEREL.
3325 (md_assemble): Likewise.
3326 (md_apply_fix3): Likewise.
3328 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3330 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3331 zero into an add of zero - it is not the same.
3333 2002-05-01 Arati Dikey <aratid@kpit.com>
3335 * tc-sh.c (get_specific): Generate warning if the same
3336 destination register is used in parallel instructions.
3338 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
3340 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3342 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3344 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3345 backwards to prevent cascading errors.
3347 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3349 * configure.in: Add support for powerpc-*-windiss.
3350 * configure: Regenerated.
3352 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3354 * config/tc-s390.c (md_parse_option): Formatting.
3356 * config/tc-i386.c: Formatting fixes, add missing space in error
3359 2002-04-24 Christian Groessler <chris@groessler.org>
3361 * config/tc-z8k.c (build_bytes): Add support for new cases:
3362 CLASS_IGNORE and ARG_NIM4.
3363 (md_assemble): Prevent destruction of input_line_pointer if
3364 get_operands returns failure.
3366 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3368 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3369 instructions to be generated by macros.
3371 2002-04-24 Andreas Schwab <schwab@suse.de>
3373 * config/tc-i386.c (output_jump, output_disp)
3374 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3376 (md_apply_fix3): Remember addend value for rela relocations.
3377 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3379 2002-04-22 Chris Demetriou <cgd@broadcom.com>
3381 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3382 from previous change.
3384 2002-04-22 Eric Christopher <echristo@redhat.com>
3386 * config/tc-mips.c (macro_build): Add warning if macro instructions
3387 are expanded into a branch delay slot.
3389 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
3391 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3392 numbers, gdb relies on them to detect the start of the prologue.
3394 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3396 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3397 symbols in merge sections.
3399 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3401 * as.c (main): Don't reference _bfd_chunksize.
3403 2002-04-15 Tom Rix <trix@redhat.com>
3405 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3406 symbols in merge sections.
3408 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3410 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3411 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3412 argument for the precision.
3413 (gen_to_words): Update accordingly.
3415 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3417 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3418 BFD_VERSION_STRING unavailable.
3419 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3421 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3423 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3424 symbol_used_in_reloc_p is true.
3426 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3429 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3431 * dep-in.sed: Cope with absolute paths.
3432 * Makefile.am (dep.sed): Subst TOPDIR.
3434 * Makefile.in: Regenerate.
3436 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3438 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3439 (mips_ip): Remove unused variable.
3440 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3441 unsigned char with bfd_byte.
3442 (s_file): Remove unused variable.
3443 (s_mips_ent): Likewise.
3445 2002-04-03 Tom Rix <trix@redhat.com>
3447 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3449 (find_opcode): Fix warning in as_warn.
3450 * config/tc-d10v.h: Update Copyright.
3452 2002-04-03 Alan Matsuoka <alanm@redhat.com>
3453 Tom Rix <trix@redhat.com>
3455 From Jeff Knaggs <jknaggs@redhat.com>
3456 * config/tc-d10v.c (check_resource_conflict): New function to
3457 check for resource conflicts.
3459 From Jason Eckhardt <jle@redhat.com>
3460 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3462 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3463 reserved control registers is used.
3464 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3467 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3468 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3469 instruction cannot be packed.
3471 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3472 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3473 write-write conflicts.
3474 (md_assemble): Reformat introductory comment.
3475 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3478 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3480 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
3481 O_logical_not>): Derive final_seg from add_symbol.
3482 <O_multiply..O_logical_or>: More final_seg twiddles.
3484 2002-04-01 Jessica Han <jessica@cup.hp.com>
3486 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
3489 2002-03-27 Andreas Schwab <schwab@suse.de>
3491 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
3492 field for pc-relative fixups.
3493 (output_disp): Likewise.
3494 (md_estimate_size_before_relax): Likewise.
3495 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
3496 pc-relative fixups in 64bit mode.
3498 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3500 * config/te-aix5.h: Typo fix.
3502 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3504 * Makefile.am: Run "make dep-am".
3505 * Makefile.in: Regenerate.
3506 * doc/Makefile.in: Regenerate.
3508 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
3510 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
3511 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
3513 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3515 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
3516 the EXTENDED bit here; report the estimate according to the
3519 2002-03-18 Tom Rix <trix@redhat.com>
3521 * configure.in: Add AIX 5 support.
3522 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
3523 * config/te-aix5.h: New file. AIX 5 support.
3524 * configure: Regenerate.
3526 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3528 * po/fr.po: Updated version.
3530 2002-03-16 Andreas Jaeger <aj@suse.de>
3532 * doc/c-mips.texi (Machine Dependencies): Add new node.
3534 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
3536 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
3537 (mips_opts): Initialize "ase_mips3d" member.
3538 (file_ase_mips3d): New variable.
3539 (CPU_HAS_MIPS3D): New macro.
3540 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
3541 based on command line options and configuration defaults.
3542 (macro_build, mips_ip): Accept MIPS-3D instructions if
3543 mips_opts.ase_mips3d is set.
3544 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
3545 Add support for "-mips3d" and "-no-mips3d" options.
3546 (OPTION_ELF_BASE): Move to accomodate new options.
3547 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
3548 (mips_elf_final_processing): Add a comment indicating that a
3549 MIPS-3D ASE ELF header flag should be set, when one exists.
3550 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
3551 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
3552 nomips3d" directives.
3554 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
3556 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
3557 a weak symbol in same section to be within reach.
3559 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3561 * po/fr.po: Updated version.
3563 2002-03-12 Andreas Schwab <schwab@suse.de>
3565 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
3566 body record so that an error is given for misplaced .save
3569 2002-03-09 Alan Modra <amodra@bigpond.net.au>
3571 * config/tc-i386.h (REX_OPCODE): Define.
3572 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
3573 (rex_byte): typedef to int.
3574 * config/tc-i386.c: Group prototypes and vars together.
3575 Formatting fixes. Remove occurrences of "register" keyword.
3578 (mode_from_disp_size): Add INLINE keyword to prototype.
3579 (fits_in_signed_byte): Likewise.
3580 (fits_in_unsigned_byte): Likewise.
3581 (fits_in_unsigned_word): Likewise.
3582 (fits_in_signed_word): Likewise.
3583 (fits_in_unsigned_long): Likewise.
3584 (fits_in_signed_long): Likewise.
3585 (type_names): Constify.
3586 (intel_float_operand): Constify param.
3587 (add_prefix): Use REX_OPCODE.
3588 (md_assemble): Likewise. Modify for changed rex_byte.
3589 (parse_insn): Split out of md_assemble.
3590 (parse_operands): Likewise.
3591 (swap_operands): Likewise.
3592 (optimize_imm): Likewise.
3593 (optimize_disp): Likewise.
3594 (match_template): Likewise.
3595 (check_string): Likewise.
3596 (process_suffix): Likewise.
3597 (check_byte_reg): Likewise.
3598 (check_long_reg): Likewise.
3599 (check_qword_reg): Likewise.
3600 (check_word_reg): Likewise.
3601 (finalize_imm): Likewise.
3602 (process_operands): Likewise.
3603 (build_modrm_byte): Likewise.
3604 (output_insn): Likewise.
3605 (output_branch): Likewise.
3606 (output_jump): Likewise.
3607 (output_interseg_jump): Likewise.
3608 (output_disp): Likewise.
3609 (output_imm): Likewise.
3611 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3613 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3615 2002-03-06 Alan Modra <amodra@bigpond.net.au>
3617 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
3618 relocs except when BFD64.
3620 * write.c (number_to_chars_bigendian): Don't abort when N is
3621 larger than sizeof (VAL).
3622 (number_to_chars_littleendian): Likewise.
3624 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3626 * config/tc-hppa.c (md_apply_fix3): Add cast.
3627 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
3630 2002-03-05 Paul Koning <pkoning@equallogic.com>
3632 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
3633 (parse_ac5): New function for parsing float regs in float operand.
3634 (parse_expression): Remove attempt to make literals be octal.
3635 (parse_op_no_deferred): Support float literals.
3636 (parse_op): Reject attempts to refer to float regs.
3637 (parse_fop): New function, like parse_op but for float operand.
3638 (md_assemble): Add cases to parse float operands. Also fix
3639 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
3641 2002-03-04 H.J. Lu <hjl@gnu.org>
3643 * config/obj-elf.c (special_section): Add .init_array,
3644 .fini_array and .preinit_array.
3646 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
3647 .init_array and .fini_array.
3649 2002-03-01 Jakub Jelinek <jakub@redhat.com>
3651 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
3653 (obj_frob_symbol): Copy visibility.
3655 2002-02-28 Jakub Jelinek <jakub@redhat.com>
3657 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
3659 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
3661 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
3663 * po/es.po: Updated.
3665 2002-02-26 Chris Demetriou <cgd@broadcom.com>
3667 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
3668 only, undo the changes made on 2001-06-08, with the
3669 effect being that common or extern symbols are
3670 adjusted for embedded-PIC, but weak symbols are not.
3671 (md_estimate_size_before_relax: Likewise, with the effect
3672 that extern symbols are treated the same as weak symbols
3673 only if not embedded-PIC.
3674 (mips_fix_adjustable) Likewise, with the effect that
3675 weak or extern symbols are not adjusted for embedded-PIC.
3676 (md_apply_fix3): Tweak so that the case where value is zero
3677 is handled more correctly for embedded-PIC code.
3679 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
3681 * doc/as.texinfo (Overview): Add missing @ifset IA64
3683 * configure.in (LINGUAS): Add es.po.
3684 * configure: Regenerate.
3685 * po/es.po: New file.
3687 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3689 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
3690 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
3691 and NO_PIC cases. Code cleanup.
3692 (macro2): Fix handling of 64bit register loads.
3694 2002-02-25 David Mosberger <davidm@hpl.hp.com>
3696 * doc/as.texinfo: Add entry for IA64.
3697 * doc/c-ia64.texi: New file.
3699 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3701 * config/tc-hppa.c: Update copyright date.
3703 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
3704 Remove references to chip manufacturers.
3705 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
3707 (md_show_usage): Remove references to chip manufacturers. Mention
3709 (md_begin): Test power4 opcode flag bits.
3711 2002-02-22 David Mosberger <davidm@hpl.hp.com>
3713 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
3714 count exceeds prologue count.
3715 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
3716 (unwind.label_prologue_count): New member.
3718 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
3720 (get_saved_prologue_count): New function.
3721 (save_prologue_count): New function.
3722 (free_saved_prologue_count): New function.
3723 (dot_label_state): Record state label by calling save_prologue_count().
3724 (dot_copy_state): Restore prologue count by calling
3725 get_saved_prologue_count().
3726 (generate_unwind_image): Free up list of saved prologue
3727 counts by calling free_saved_prologue_counts().
3729 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
3731 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
3732 function declarations.
3734 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
3736 * NEWS: Note that GASP is now deprecated.
3737 * Makefile.am: Do not build gasp-new by default.
3738 * Makefile.in: Regenerate.
3739 * doc/Makefile.am: Do not install gasp.info.
3740 * doc/Makefile.in: Regenerate.
3741 * gas/gasp.texi: Note that gasp is now deprecated.
3743 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3745 * NEWS: Mark 2.12 branch.
3747 2002-02-19 Tom Tromey <tromey@redhat.com>
3749 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
3751 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3753 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
3756 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3758 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
3759 Make bit size independent of architecture switch.
3760 (md_begin): Add warning for -m64 with -Aesa.
3761 (s390_md_end): Use renamed architecture defines.
3763 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
3765 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
3767 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
3769 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
3772 2002-02-15 Chris Demetriou <cgd@broadcom.com>
3774 * config/tc-mips.c (md_estimate_size_before_relax): Really
3775 make sure we treat weak like extern only for ELF. (Fixes
3776 patch from 2001-07-25.)
3778 2002-02-15 Ben Elliston <bje@redhat.com>
3780 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
3783 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3785 * NEWS: Mention support for MMIX.
3787 2002-02-13 Chris Demetriou <cgd@broadcom.com>
3789 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
3790 a sequence of indpendent 'if' statements for easier debugging
3791 and future modification.
3793 2002-02-13 Matt Fredette <fredette@netbsd.org>
3795 * config/tc-m68k.c (md_show_usage): No longer display a
3796 hard-coded "68020" for the default CPU, instead display the
3797 canonical name of the true, configured default CPU.
3798 (m68k_elf_final_processing): Mark objects for sub-68020
3799 CPUs with the new EF_M68000 flag.
3801 2002-02-13 Andreas Schwab <schwab@suse.de>
3803 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
3804 pc-relative relocations to merge sections in 64-bit mode.
3806 2002-02-13 Ben Elliston <bje@redhat.com>
3808 * NEWS: Document floating point number handling in gasp.
3809 * gasp.c: Include <assert.h> and "xregex.h".
3810 (is_flonum): New function.
3811 (chew_flownum): Likewise.
3812 (change_base): Consume flonums from the input, where possible.
3813 * doc/gasp.texi (Constants): Document floating point numbers.
3815 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3817 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
3818 that implicitly use LR and RR selectors.
3820 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3822 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
3823 and `epsw' as available on AM33 and above only.
3824 (other_register_name): Add logic to handle machine type encoded in
3827 2002-02-11 Tom Rix <trix@redhat.com>
3829 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
3832 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
3834 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
3837 2002-02-11 Jan Hubicka <jh@suse.cz>
3839 * i386.c (md_assemble): Support 32bit address prefix.
3840 (i386_displacement): Likewise.
3841 (i386_index_check): Accept 32bit addressing in 64bit mode.
3843 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3845 * config/tc-sh.c (dot): Removed unused function.
3847 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3849 * Makefile.am: "make dep-am".
3850 * Makefile.in: Regenerate.
3851 * aclocal.m4: Regenerate.
3852 * config.in: Regenerate.
3853 * configure: Regenerate.
3854 * doc/Makefile.in: Regenerate.
3856 2002-02-10 Richard Henderson <rth@redhat.com>
3858 * doc/c-alpha.texi: New file.
3859 * doc/Makefile.am (CPU_DOCS): Add it.
3860 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
3862 2002-02-09 Richard Henderson <rth@redhat.com>
3864 * config/tc-alpha.c (O_samegp): New.
3865 (USER_RELOC_P): Include it.
3866 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
3867 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
3868 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3869 (alpha_validate_fix): New.
3870 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
3872 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
3874 * doc/c-cris.texi: New.
3875 * doc/all.texi: @set CRIS.
3876 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3877 Include c-cris.texi.
3878 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3879 * doc/Makefile.in: Regenerate.
3881 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3883 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3884 determine if a number is a sign-extended 32-bit number.
3885 (load_register): Use IS_SEXT_32BIT_NUM.
3886 (macro): Check if load/store macro handling is using a
3887 constant 32-bit address on 64-bit address systems, and if
3888 so optimize the generation of that address.
3890 2002-02-08 Richard Henderson <rth@redhat.com>
3892 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3893 we've eliminated all foreign relocation types yet.
3894 (alpha_fix_adjustable): Likewise.
3896 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3898 Contribute sh64-elf.
3899 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3900 Stephen Clarke <Stephen.Clarke@st.com>
3901 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3902 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3903 * config/tc-sh.c (md_relax_table): Added default sizes for
3904 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3905 MOVI_16, MOVI_32 and MOVI_48.
3906 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3907 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3909 (shmedia_md_estimate_size_before_relax): Remove redundant
3910 blocks. Set fragP->fr_var even if relaxation type unchanged.
3911 Retain UNDEF_MOVI until expression decays to number.
3912 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3913 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3914 relocation types. Take fixP->fx_addnumber into account too.
3915 (shmedia_md_apply_fix): Likewise.
3916 (shmedia_md_convert_frag): Likewise.
3917 (shmedia_build_Mytes): Likewise.
3918 (sh64_consume_datalabel): Complain about nested datalabel.
3919 Support PIC relocs. Call sh_parse_name.
3920 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3921 in tc-sh.h to SHmedia reloc types.
3922 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3923 MOVI_GOTPC): New relaxation constants.
3924 (md_relax_table): Introduce relaxation directives for PIC-related
3926 (sh_PIC_related_p): Handle datalabel.
3927 (sh_check_fixup): Choose SH5 PIC relocations.
3928 (sh_cons_fix_new): Added BDF_RELOC_64.
3929 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3930 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3931 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3932 current ISA is SHmedia, get 7 bytes.
3933 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3934 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3936 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3937 shmedia_apply_fix3 and make void.
3938 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3939 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3941 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3942 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3943 2001-03-14 DJ Delorie <dj@redhat.com>
3944 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3945 * doc/Makefile.in(CPU_DOCS): Ditto.
3946 * doc/c-sh64.texi: New file.
3947 * doc/as.texinfo: Add SH64 support.
3948 2001-03-13 DJ Delorie <dj@redhat.com>
3949 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3950 A_REUSE_PREV so that its purpose is more obvious.
3951 (shmedia_build_Mytes): Ditto.
3952 2001-03-07 DJ Delorie <dj@redhat.com>
3953 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3955 (sh64_vtable_inherit): Ditto.
3956 (strip_datalabels): New, strip "datalabel" from given line.
3957 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3959 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3960 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3962 (shmedia_build_Mytes): ... to here.
3963 2001-03-06 DJ Delorie <dj@redhat.com>
3964 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3966 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3967 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3968 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3969 address by one in call to dwarf2_emit_insn.
3970 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3971 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3972 alignment handling broken by imported changes.
3973 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3974 (sh64_handle_align): Declare.
3975 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3976 (sh64_max_mem_for_rs_align_code): Declare.
3977 (enum sh64_isa_values): Moved here from tc-sh64.c.
3978 (md_do_align): Define.
3979 (sh64_do_align): Declare.
3980 (struct sh64_tc_frag_data): New.
3981 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3983 (TC_FRAG_INIT): Change to set new datatype.
3984 (struct sh64_segment_info_type): Rename member
3985 last_flushed_location to last_contents_mark. All users changed.
3986 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3987 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3988 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3989 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3990 of unsetting seen_insn.
3991 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3992 call sh64_update_contents_mark.
3993 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3994 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3995 enum sh64_isa_values.
3996 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3997 (emitting_crange): Boolean guard moved to file scope from function
3998 scope in sh64_set_contents_type.
4000 (sh64_update_contents_mark): New; most split out from
4001 sh64_flush_pending_output.
4002 (shmedia_md_end): Call sh64_update_contents_mark. Set
4003 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4004 (sh64_do_align): New function.
4005 (sh64_max_mem_for_rs_align_code): New function.
4006 (sh64_handle_align): Rename from shmedia_do_align. Make
4007 non-static. Add head comment. Emit zero bytes for n bytes modulo
4008 four. Change return-type to void.
4009 (shmedia_elf_new_section): Remove.
4010 (shmedia_md_assemble): Call sh64_update_contents_mark.
4011 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4012 new frag. Call sh64_update_contents_mark after making the new
4014 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4015 and sh_flush_pending_output.
4016 (sh64_flag_output): Also call md_flush_pending_output, but add
4017 condition on not emitting_crange.
4018 (sh64_tc_cons_fix_new): Remove.
4019 2001-01-12 Nick Clifton <nickc@redhat.com>
4020 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4021 alignment handling scheme imported from sourceware.
4022 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4023 * config/tc-sh64.h (TARGET_FORMAT): Define.
4024 (sh64_target_format): Prototype.
4025 * config/tc-sh64.c (sh64_target_mach): New function.
4026 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4027 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4028 zero_address_frag instead of copying the frag of the symbol.
4029 (shmedia_frob_file_before_adjust): Ditto.
4030 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4031 to valueT to remove signedness.
4032 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4033 headers to output_bfd. Do not evaluate symbols if final is false;
4035 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4036 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4037 to the current frag, call shmedia_md_convert_frag to emit fixups
4038 and make frag_wane neutralize the frag. Update comments.
4039 * config/tc-sh.c (md_convert_frag): Change caller of
4040 shmedia_md_convert_frag.
4041 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4042 * config/tc-sh64.h: Tweak comments and correct formatting.
4043 * config/tc-sh64.c: Ditto.
4044 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4045 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4046 for the no-relocation case.
4047 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4048 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4050 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4052 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4053 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4055 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4057 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4058 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4059 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4060 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4061 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4062 if reloc is emitted.
4063 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4064 New options plus bugfixes.
4065 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4067 (md_parse_option): Handle new options.
4068 (md_show_usage): Add blurb for new options.
4069 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4070 (sh64_expand, sh64_pt32): New variables.
4071 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4072 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4073 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4074 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4075 <resolved previously-pc-relative relocs>: Handle
4076 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4077 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4078 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4079 points to SHcompact code.
4080 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4081 SH64PCREL16)>: Check that ISA of what operand points at and
4082 PTA/PTB matches, or emit error.
4083 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4084 SHMEDIA_BFD_RELOC_PT.
4085 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4087 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4088 condition for MOVI expansion.
4089 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4090 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4092 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4094 (sh64_target_format): Error-check setting of sh64_pt32 and
4095 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4096 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4097 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4098 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4099 * config/tc-sh64.c: Improve comments.
4100 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4101 not say the linker will check correctness of PTA/PTB expansion.
4102 (shmedia_md_end): Make non-static.
4103 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4105 * config/tc-sh.c (sh_finalize): Remove.
4106 * config/tc-sh.h (md_end): Do not define.
4107 Remove prototype for sh_finalize.
4108 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4109 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4110 sh64_section_data container when storing section type in tdata
4111 field in elf_section_data.
4112 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4114 * Makefile.am: Update dependencies.
4115 * Makefile.in: Regenerate.
4116 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4117 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4118 dwarf2_emit_insn call with test on debug_type.
4119 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4120 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4121 CRT_SH5_ISA32 sticky for 64-bit.
4122 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4123 Generate .crange sections when switching ISA mode or emitting
4124 constants in same section as code.
4125 * config/tc-sh64.c: Reformat structure definitions.
4126 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4128 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4129 to emit a .cranges descriptor when contents type changes. Only
4130 emit error if changing contents type and -no-mix is in effect.
4131 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4132 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4133 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4134 sh64_flush_last_crange over sections.
4135 When checking main symbol of datalabel symbol, check for
4136 STO_SH5_ISA32, not ISA type of section in definition.
4137 (shmedia_frob_file_before_adjust): Check main symbol for
4138 STO_SH5_ISA32; don't check ISA type of section in definition.
4139 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4140 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4141 .cranges entries have been output.
4142 (shmedia_elf_new_section): Just call md_flush_pending_output.
4143 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4144 fix. Do not set tc_segment_info_data.in_code for section. Call
4145 sh64_set_contents_type for SHmedia code.
4146 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4147 false. Call md_flush_pending_output.
4148 (sh64_target_format): Check that -no-mix and
4149 -shcompact-const-crange are used in sane combination with other
4151 (shmedia_md_pcrel_from_section): Check type of fix for how to
4153 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4154 not ISA type of section in definition.
4155 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4156 hold contents-type state.
4157 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4158 (sh64_flush_pending_output): Declare.
4159 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4160 (sh64_tc_cons_fix_new): Declare.
4161 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4162 call sh64_flag_output.
4163 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4164 call sh64_set_contents_type to mark SHcompact code and set
4166 (md_longopts): New options "-no-mix" and
4167 "-shcompact-const-crange".
4168 (md_parse_option): Handle new options.
4169 (md_show_usage): Add blurb for new options.
4170 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4171 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4172 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4173 (sh64_last_insn_frag): New.
4174 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4175 to get frag for insn opcode for generating fixups; do not assume it
4177 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4179 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4181 (TC_FRAG_TYPE): Define as fragS *.
4182 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4183 (sh64_last_insn_frag): Declare.
4184 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4185 not == NULL before dereferencing.
4186 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4187 Get rid of BFD section flag and EF_SH64_ABI64.
4188 * config/tc-sh64.c (shmedia_frob_section_type): Use
4189 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4190 communicate the section as containing SHmedia code. Describe why.
4191 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4192 EF_SH64 regardless of ABI.
4193 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4194 in error message. Handle resolved expressions for
4195 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4196 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4197 (shmedia_check_limits): Handle BFD_RELOC_64.
4198 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4199 a STO_SH5_ISA32 symbol, only the BFD value.
4200 2000-12-11 Ben Elliston <bje@redhat.com>
4201 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4202 dwarf2_generate_asm_lineno.
4203 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4204 Handle PC-relative MOVI expansions with assembler relaxation.
4205 Generate PC-relative relocs from 16-bit PC-relative expressions.
4206 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4207 (shmedia_md_pcrel_from_section): ...here.
4208 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4209 turned completely resolved. Adjust relocation type for 16-bit
4210 immediate operands that has turned PC-relative. Adjust back for
4211 MD_PCREL_FROM_SECTION being applied twice.
4212 (shmedia_md_convert_frag): Always emit reloc for expression with
4213 global or weak symbol. Handle relaxation result for PC-relative
4215 (shmedia_md_estimate_size_before_relax): An expression with a weak
4216 or global symbol can not be relaxed. Break out tests for
4217 relaxable symbol into variable sym_relaxable.
4218 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4219 UNDEF_MOVI)>: Break out any PC-relative expression and change
4221 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4223 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4224 MOVI expansion. If X_op_symbol of the immediate expression is
4225 set, make an expression symbol for the argument to frag_var.
4226 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4228 (END): Adjust for new relaxations.
4229 (md_relax_table): Add entries for new relaxations.
4230 2000-12-07 Ben Elliston <bje@redhat.com>
4231 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4232 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4233 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4234 SHORI operand offsets in PT/PTA/PTB expansions.
4235 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4236 Implement DataLabel semantics.
4237 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4238 shmedia_frob_file_before_adjust.
4239 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4240 (DATALABEL_SUFFIX): Define.
4241 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4242 symbol list to update "datalabel" symbols to their main symbol
4244 (shmedia_frob_file_before_adjust): New.
4245 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4246 undefined and set STT_DATALABEL.
4247 (sh64_frob_label): Initialize TC symbol field.
4248 (sh64_consume_datalabel): Actually implement semantics. New
4249 parameter operandf, call it instead of expression.
4250 (sh64_exclude_symbol): New.
4251 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4252 to sh64_consume_datalabel.
4253 (tc_symbol_new_hook): Define to tc_frob_symbol.
4254 (TC_SYMFIELD_TYPE): Define to symbolS *.
4255 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4256 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4257 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4259 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4260 generating dwarf2 debug information.
4261 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4262 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4263 elf64-sh64 for the 64-bit ABI.
4264 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4266 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4267 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4269 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4270 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4271 (enum sh64_abi_values): New type.
4272 (enum sh64_isa_values): New type.
4273 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4274 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4275 (sh64_abi): Replace shmedia_64.
4276 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4277 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4278 (s_sh64_mode): Check validity for this target.
4279 (sh64_target_format): Initialize defaults for ISA and ABI.
4280 Fallback to old object format if no SH64 ISA or ABI has been
4282 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4283 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4284 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4285 * config/tc-sh64.h: Fix typo in comment.
4286 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4287 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4288 <PT fixups for absolute values>: Size will be longest, not
4290 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4291 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4292 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4293 and l1 to hold lowercase of two first characters. Change all
4294 remaining TO_LOWER to tolower.
4295 * config/tc-sh64.c (TO_LOWER): Delete.
4296 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4297 (md_parse_name): Define.
4298 (sh64_consume_datalabel): Declare.
4299 (DOLLAR_DOT): Define.
4300 * config/tc-sh64.c (shmedia_parse_exp): New.
4301 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4302 (shmedia_parse_reg): Remove const from src
4304 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4305 (shmedia_md_assemble): Ditto for op_end variable.
4306 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4307 Use shmedia_parse_exp, not parse_exp.
4308 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4309 parameter. All callers changed.
4310 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4312 (shmedia_parse_reg): Put first two character in local variables.
4313 Use tolower, not TO_LOWER. If no register is found and argtype
4314 indicates a control register, scan shmedia_creg_table
4316 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4317 * Makefile.am (CPU_TYPES): Add sh64.
4318 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4319 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4320 Regenerate dependencies.
4321 * Makefile.in: Regenerate.
4322 * configure.in: Add support for sh64-*-elf*.
4323 * configure: Regenerate.
4324 * config/tc-sh64.h: New.
4325 * config/tc-sh64.c: New.
4326 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4327 .mode, .isa and .uaquad.
4328 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4329 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4330 [HAVE_SH64] (END): Define as 10.
4331 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4332 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4334 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4335 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4336 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4337 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4339 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4340 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4341 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4342 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4343 SHmedia instructions. Handle state-change after switching to
4345 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4346 (md_parse_option) [HAVE_SH64]: Parse new options.
4347 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4348 (md_convert_frag) [HAVE_SH64] <default>: Call
4349 shmedia_md_convert_frag instead of abort.
4350 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4351 BFD_RELOC_SH_SHMEDIA_CODE.
4352 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4353 SHcompact or SHmedia code.
4354 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4355 shmedia_md_apply_fix instead of abort.
4356 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4357 result from calling shmedia_md_estimate_size_before_relax instead
4359 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4361 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4362 shmedia_init_reloc and do nothing more if it returns non-zero.
4363 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4364 * po/POTFILES.in: Regenerate.
4365 * po/gas.pot: Regenerate.
4367 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4369 * config/tc-sh.c (parse_at): Install the correct version of
4372 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4373 assume fixP->fx_subsy is non-NULL.
4375 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4377 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4378 A_DISP_PC_ABS, and adjust it by -4.
4379 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4381 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4382 the operand type is not A_DISP_PC_ABS.
4384 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4386 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4387 common and weak symbols. Handle common and weak symbols as
4388 undefined symbols with regards to GREG handling and merging.
4389 (mmix_frob_file): Ditto.
4391 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4393 * configure.in (hppa-*-netbsd*): New target.
4394 * configure: Regenerate.
4395 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4397 2002-02-02 Alan Modra <amodra@bigpond.net.au>
4399 * config/tc-v850.c: Add missing prototypes amd use old-style
4400 function definitions.
4401 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4402 (sdata_section tdata_section, zdata_section, sbss_section,
4403 tbss_section, zbss_section, rosdata_section, rozdata_section,
4404 scommon_section, tcommon_section, zcommon_section,
4405 call_table_data_section, call_table_text_section): Delete.
4406 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4407 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4408 v850_call_table_data, v850_call_table_text): Delete.
4409 (struct v850_seg_entry): New.
4410 (v850_seg_table): New.
4411 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4412 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4413 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4414 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4417 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4418 recording of alignment.
4419 (md_pseudo_table): Use v850_seg.
4420 (md_begin): Don't init .call_table_data and .call_table_text here.
4421 Set v850_seg_table bss entry.
4423 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4425 Support on-demand global register allocation by passing on
4426 base-plus-offset relocs to the linker.
4427 * config/tc-mmix.c: Tweak and fix typos in comments.
4428 (allocate_undefined_gregs_in_linker): New variable.
4429 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4430 (md_longopts): Add --linker-allocated-gregs.
4431 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4432 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4433 (md_show_usage): Update text for -x. Add text for
4434 --linker-allocated-gregs.
4435 (tc_gen_reloc): Derive default value for addend from val and
4436 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4437 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4438 GREG if allocate_undefined_gregs_in_linker.
4439 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4440 --linker-allocated-gregs.
4441 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4442 --linker-allocated-gregs. Mention that it's implied by -x.
4443 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4444 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4446 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4448 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4450 * Makefile.am: Run "make dep-am"
4451 * Makefile.in: Regenerate.
4453 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4455 * config/tc-or32.c: New file.
4456 * config/tc-or32.h: New file.
4457 * configure.in: Add support for or32 targets.
4458 * configure: Regenerate.
4459 * config/obj-coff.c: Add support for or32 targets.
4460 * config/obj-coff.h: Add support for or32 targets.
4461 * Makefile.am: Add support for or32 targets.
4462 * Makefile.in: Regenerate.
4463 * NEWS: Mention support for OpenRISC.
4464 * doc/Makefile.in: Regenerate.
4465 * po/POTFILES.in: Regenerate.
4466 * po/gas.pot: Regenerate.
4468 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
4470 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4473 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4475 * config/tc-mips.c (tc_gen_reloc): Arrange for
4476 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4477 their LO16 parts, even for ELF.
4479 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
4481 * config/tc-i386.c: Protect definitions of true and false
4484 2002-01-28 Jakub Jelinek <jakub@redhat.com>
4486 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
4487 made because of .weak, if they are neither defined nor used in any
4490 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4492 * configure: Regenerated.
4494 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4496 * doc/Makefile.am (install): Depend on install-info.
4497 * doc/Makefile.in: Regenerate.
4499 2002-01-26 Nick Clifton <nick@redhat.com>
4501 * po/fr.po: Updated version
4503 2002-01-24 Kazu Hirata <kazu@hxi.com>
4505 * config/tc-h8300.c (check_operand): Don't print a warning
4506 when a valid 24-bit address is given to a 16-bit address
4509 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4511 * config/tc-sh.c (sh_elf_suffix): Removed.
4512 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
4513 sh_end_of_match, sh_parse_name): New functions.
4514 (sh_elf_cons): Simplify.
4515 (parse_exp): Reject misplaced PIC operands.
4516 (md_undefined_symbol): Simplify.
4517 (sh_fix_adjustable): Let @GOTOFF be adjusted.
4518 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
4519 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
4520 Complain if subsy remains at the end.
4521 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
4522 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
4524 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4526 * config/tc-mn10300.c (xr_registers): Move `pc'...
4527 (other_registers): ... here.
4529 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4531 * Makefile.am: Run "make dep-am".
4532 * Makefile.in: Regenerate.
4533 * gas/po/POTFILES.in: Regenerate.
4535 2002-01-21 DJ Delorie <dj@redhat.com>
4537 * config/obj-coff.c (obj_coff_init_stab_section): Make the
4538 stabstr_name allocation permanent, as it will be referenced from
4541 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4543 * configure.in (ia64-*-netbsd*): New target.
4544 * configure: Regenerate.
4546 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4548 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
4550 <Detailed description, ARM options>: Ditto.
4551 * doc/c-arm.texi (ARM Options): Ditto.
4553 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4555 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
4556 do_mia, do_mar and do_mra respectively.
4557 (do_mav_*): Renamed from do_c_*.
4558 (mav_reg_required_here, mav_parse_offset): Renamed from
4559 cirrus_reg_required_here and cirrus_parse_offset respectively.
4560 (MAV_MODE?): Renamed from CIRRUS_MODE?.
4562 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4563 Keith Walker <keith.walker@arm.com>
4565 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
4566 (insns): Add pattern for bxj instruction.
4567 (do_bxj): New function.
4568 (arm_cpus): Add arm926ej.
4569 (arm_archs): Add armv5tej.
4571 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4573 * doc/c-arm.texi: Add new fpe options to list of supported flags.
4575 2002-01-19 Keith Walker <keith.walker@arm.com>
4577 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
4579 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
4581 * NEWS: Mention new ARM command-line options and VFP support.
4583 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
4585 (ARM_CEXT_MAVERICK): Similarly.
4586 (ARM_ANY): Now means any core instruction.
4587 (CPU_DEFAULT): Default to ARM_ANY.
4588 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
4589 (pic_code): Declare for all object types. Make type int.
4590 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
4591 (march_fpu_opt, mfpu_opt): Declare.
4592 (md_longopts): Tidy up conditional definitions.
4593 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
4594 (arm_long_opts): New tables.
4595 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
4596 (arm_parse_extension): New function.
4597 (md_parse_option): Rewrite using new table-driven system.
4598 (md_show_usage): Use new table-driven system.
4599 (md_begin): Calculate cpu_variant from command line option data.
4600 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
4601 command-line options.
4602 * doc/c-arm.texi: Likewise.
4604 2002-01-18 Andreas Jaeger <aj@suse.de>
4606 * as.c (parse_args): Update year.
4608 2002-01-17 Timothy Wall <twall@alum.mit.edu>
4610 * config/tc-tic54x.c (encode_address): Add a more informative
4611 warning about incorrect syntax.
4613 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4615 * po/gas.pot: Regenerate.
4617 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4619 * macro.c (get_any_string): Add no-c-format comment to prevent
4620 confusion when translating string.
4621 * gasp.c (get_any_string): Add no-c-format comment to prevent
4622 confusion when translating string.
4624 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4625 Johannes Stezenbach <js@convergence.de>
4626 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
4627 matched before the shorter ones.
4628 (my_getSmallParser): Fix handling of nested parentheses in
4629 percent_op's. Code cleanup.
4630 (my_getPercentOp): New function, code from my_getSmallParser.
4631 (my_getSmallExpression): Fix handling of closing parentheses.
4632 Code cleanup. Better comments.
4634 2002-01-16 Nick Clifton <nickc@redhat.com>
4636 po/tr.po: New file: Turkish translation.
4637 configure.in (LINGUAS): Add "tr".
4638 configure: Regenerate.
4640 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4642 Support for VFP instructions
4643 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
4644 (cp_address_required_here): New argument wb_ok. When false, do not
4645 accept write-back forms of addressing. Change all callers.
4646 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
4647 (FPU_VFP_EXT_V2): Define.
4648 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
4649 Define in terms of above.
4650 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
4651 (vfp_reg): New struct.
4652 (vfp_regs): New array of registers.
4653 (insns): Add VFP instructions.
4654 (sn_table): New array of VFP single-precision register names.
4655 (dn_table): New array of VFP double-precision register names.
4656 (all_reg_maps): Add the new register tables.
4657 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
4658 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
4659 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
4660 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
4661 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
4662 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
4663 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
4664 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
4665 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
4666 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
4667 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
4668 (do_vfp_sp_dp_cvt): New functions.
4669 (md_begin): Set soft-float flag for appropriate VFP work.
4670 (md_atof): Handle VFP-format doubles.
4671 (md_parse_option): Handle VFP command-line options.
4672 (md_show_usage): Display VFP command-line options.
4674 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
4676 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
4677 various command line options.
4679 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4681 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
4683 (xstormy16_md_apply_fix3): Do not return a value.
4685 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4687 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
4688 the -EL/-EB option that matches the target's endianness.
4689 (md_parse_option): Likewise.
4691 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4693 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
4694 is not dependent on ARM_BI_ENDIAN.
4696 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
4698 * tc-arm.c (all error messages): Normalize capitalization of messages.
4700 * tc-arm.h (md_operand): Delete define.
4701 * tc-arm.c (in_my_get_expression): New static variable.
4702 (my_get_expression): Set and clear it.
4703 (md_operand): New function. If called from my_get_expression
4704 put the error in inst.error.
4705 (output_inst): Now takes argument of instruction being assembled.
4706 Print it out with any error message.
4707 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
4709 (end_of_line): Don't update inst.error if it is already set.
4711 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4713 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
4714 op that can be translated into a mvn instruction.
4716 2002-01-11 Steve Ellcey <sje@cup.hp.com>
4718 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
4719 setting default md.flags.
4720 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
4721 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
4722 * gas/config/tc-ia64.c (setup_unwind_header): Add support
4723 for 32 bit unwind info blocks.
4724 (generate_unwind_image): Add support for different types
4725 of unwind images (32 bits and/or big-endian).
4726 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
4727 (ia64_target_format): Add support for hpux target formats.
4728 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
4729 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
4730 SHT_FINI_ARRAY elf section types.
4732 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
4734 * tc-arm.c (struct reg_entry): Move before prototypes.
4735 (int_register, cp_register, fp_register): Delete.
4736 (reg_table): Delete. Replaced with ...
4737 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
4738 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
4739 (mav_dspsc_table): ... one table per register set.
4740 (arm_reg_hsh): Delete.
4741 (struct reg_map): New structure.
4742 (all_reg_maps): New array.
4743 (enum arm_reg_type): New enums.
4744 (build_reg_hsh): New function.
4745 (insert_reg_alias): Use hash table passed by caller. Adjust all
4747 (create_register_alias): New function, split out from ...
4748 (md_assemble): ... here.
4749 (md_begin): Build new register hash tables.
4750 (arm_reg_parse): New argument for the hash table to search. Adjust all
4752 (arm_reg_parse_any): New function.
4753 (co_proc_number): Look up the processor number in the processor hash
4755 (cirrus_regtype): Delete.
4756 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
4757 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
4758 (ARM_EXT_MAVERICKsc_register): Delete.
4759 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
4760 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
4762 (do_c_triple_4, do_c_triple_5): Delete.
4763 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
4764 (do_c_quad_6): Delete.
4765 (do_c_quad_6[ab]): New functions.
4766 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
4767 arguments to use new register parsing methods.
4768 (cirrus_reg_required_here): Likewise.
4769 (insns): Reclassify cirrus maverick worker functions.
4770 (cirrus_valid_reg): Delete.
4772 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4774 * configure.in (sh*le): Set cpu_type=sh and endian=little.
4775 (sh*-*-netbsdelf*): New target.
4776 * configure: Regenerate.
4777 * tc-sh.h: Update copyright years.
4778 (TARGET_FORMAT): Add version for TE_NetBSD.
4780 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4782 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
4785 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4787 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
4788 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
4790 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
4792 * tc-mips.c (mips_cprestore_valid): New flag.
4793 (mips_frame_reg_valid): New flag.
4794 (macro) [M_JAL_2]: Check both flags.
4795 [M_JAL_A]: Likewise.
4796 (s_cprestore): Set mips_cprestore_valid.
4797 (tc_get_register): If setting mips_frame_reg, set
4798 mips_frame_reg_valid and clear mips_cprestore_valid.
4799 (s_mips_ent): Clear both flags.
4800 (s_mips_end): Clear both flags.
4802 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4804 * write.c (write_object_file): Make use of bfd_section_list_remove.
4805 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
4806 * config/tc-mmix.c (mmix_frob_file): Likewise.
4808 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4810 * configure.in (i386-*-netbsdelf*): Collapse target into...
4811 (i386-*-netbsd*): ...this. Add support for x86-64.
4812 * configure: Regenerated.
4814 2002-01-03 matthew green <mrg@redhat.com>
4816 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
4818 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4820 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
4823 For older changes see ChangeLog-0001
4829 version-control: never