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