1 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
4 (tc_frob_file_before_adjust): Don't define.
5 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
7 (mmix_frob_file_before_adjust): Remove ineffective function.
9 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
11 * config/tc-cris.c (SIMPLE_EXPR): New macro.
12 (cris_relax_frag): New function.
13 (md_estimate_size_before_relax) <case ENCODE_RELAX
14 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
15 expressions that will become absolute expressions to relaxation.
16 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
17 STATE_WORD)>: Expect only absolute expressions. Use the symbol
18 value, not distance to symbol.
19 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
20 Ditto. Correct placement of fixup.
21 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
23 * config/tc-cris.h (cris_relax_frag): Declare.
24 (md_relax_frag): Define.
26 2002-10-22 Alan Modra <amodra@bigpond.net.au>
28 * config/obj-elf.c (special_sections): Use correct types for init
30 (obj_elf_change_section): Don't mess with init array section type.
32 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
34 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
35 for relocs against symbols in a merged section.
37 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
39 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
40 table as register names.
42 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
44 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
47 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
49 * expr.c (operand): Add support for n.nn flonums.
51 2002-10-17 Johannes Stezenbach <js@convergence.de>
53 * itbl-parse.y (entry): Provide empty action.
55 2002-10-16 Alan Modra <amodra@bigpond.net.au>
57 * configure.in (BFDVER_H): Set and subst.
58 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
59 * Makefile.am: Run "make dep-am".
61 * configure: Regenerate.
62 * Makefile.in: Regenerate.
63 * doc/Makefile.in: Regenerate.
65 2002-10-15 Alan Modra <amodra@bigpond.net.au>
67 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
68 (MD_APPLY_SYM_VALUE): Define for PE too.
70 2002-10-14 Alan Modra <amodra@bigpond.net.au>
72 * Makefile.am: Run "make dep-am".
73 (CPU_OBJ_VALID): sh64 coff is invalid.
74 * as.c: #include "bfdver.h".
75 * Makefile.in: Regenerate.
76 * config.in: Regenerate.
78 2002-10-14 Momchil Velikov <velco@fadata.bg>
80 * config/tc-v850.c (CHECK_): Remove token pasting operator.
82 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
84 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
85 * configure: Regenerate.
87 2002-10-13 Eric Christopher <echristo@redhat.com>
88 Alexandre Oliva <aoliva@redhat.com>
90 * config/tc-mips.c (s_gpdword): New function.
91 (mips_pseudo_table): Add .gpdword.
92 (mips_need_elf_addend_fixup): never for NEWABI.
93 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
95 (s_cpadd): Generate .cpadd on NEWABI.
97 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
99 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
101 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
103 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
104 (md_relax_frag): Adjust macro.
105 * config/tc-mips.c (mips_relax_branch): New variable.
106 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
107 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
108 (RELAX_MIPS16_P): Adjust.
109 (append_insn): Emit branch to non-constant in a frag_var if
110 branch-relaxation is desirable and possible.
111 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
112 (OPTION_ELF_BASE): Adjust.
113 (md_parse_option): Handle new options.
114 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
116 (relaxed_branch_length): New function.
117 (md_estimate_size_before_relax): Handle branch frags.
118 (mips_relax_frag): Likewise.
119 (md_convert_frag): Handle branch frags. Warn if branch is
122 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
124 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
126 (md_apply_fix3): Add TLS relocs.
127 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
130 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
131 Alan Modra <amodra@bigpond.net.au>
133 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
134 (md_estimate_size_before_relax): Likewise for 8 bit branches.
136 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
138 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
141 2002-10-09 Richard Shann <richard.shann@superh.com>
142 Stephen Clarke <stephen.clarke@superh.com>
144 * config/tc-sh64.c (sh64_target_format): Add support for sh64
147 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
149 * contig/tc-sh.c (sh_local_pcrel): New.
150 (sh_force_relocation): Use sh_local_pcrel.
151 (md_pcrel_from_section): Check the relocation type whether it
152 should be resolved locally. Use S_FORCE_RELOC.
154 2002-10-01 Alan Modra <amodra@bigpond.net.au>
156 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
157 (TC_FORCE_RELOCATION): Tidy arg.
159 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
160 Ken Raeburn <raeburn@cygnus.com>
161 Aldy Hernandez <aldyh@redhat.com>
162 DJ Delorie <dj@redhat.com>
163 Michael Meissner <meissner@redhat.com>
164 Eric Christopher <echristo@redhat.com>
165 Richard Sandiford <rsandifo@redhat.com>
167 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
168 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
169 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
170 (hilo_interlocks): True for CPU_VR5500.
171 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
172 (mips_fix_vr4122_bugs): New.
173 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
174 (mips_emit_delays): Likewise.
175 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
176 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
177 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
178 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
179 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
180 (OPTION_ELF_BASE): Bump.
181 (md_parse_option): Handle the new options.
182 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
185 2002-09-29 H.J. Lu <hjl@gnu.org>
187 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
188 twice if howto->pcrel_offset is true.
190 2002-09-28 Matt Thomas <matt@3am-software.com>
191 Jason Thorpe <thorpej@wasabisystems.com>
193 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
194 convert undefined references to GOT32/PLT32 if PIC code is
195 requested. Fix comment.
197 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
199 * config/tc-sh.c (sh_force_relocation): Return 0 for
200 some PC relative relocations when not relaxing.
202 2002-09-26 Jakub Jelinek <jakub@redhat.com>
204 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
205 Define them if not BFD_ASSEMBLER.
206 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
208 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
209 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
210 (tc_gen_reloc): Handle x86-64 TLS relocs.
212 2002-09-27 Alan Modra <amodra@bigpond.net.au>
214 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
215 fixups to current or absolute section.
217 2002-09-26 Jim Wilson <wilson@redhat.com>
219 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
222 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
224 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
225 capable configuration.
226 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
230 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
232 * config/tc-mips.c (append_insn): Fix jump overflow check.
234 2002-09-24 Alan Modra <amodra@bigpond.net.au>
236 * config/tc-i386.c (process_operands): Warn about "lea" segment
239 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
241 * write.c: Delete set_segment_vma and prototype. Update all callers.
243 2002-09-21 Alan Modra <amodra@bigpond.net.au>
245 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
246 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
247 Rename "fseg" to "sym_seg".
248 * Makefile.am: Run "make dep-am".
249 * Makefile.in: Regenerate.
250 * doc/Makefile.in: Regenerate.
252 2002-09-20 Nick Clifton <nickc@redhat.com>
254 * symbols.c (colon): Do not allow symbols to be created in the
255 absolute section if WORKING_DOT_WORD is not defined and
256 new_broken_words would require a new frag to be created.
258 2002-09-20 Alan Modra <amodra@bigpond.net.au>
260 * expr.c (expr): Simplify foo-foo here.
261 (clean_up_expression): Remove O_subtract code.
263 * write.h (struct fix): Add fx_dot_value.
264 (dot_value): Declare.
265 * write.c (dot_value): New var.
266 (fix_new_internal): Save dot_value as fx_dot_value.
267 (fixup_segment): Adjust fx_offset using fx_dot_value.
268 * expr.c (expr): Update dot_value.
270 2002-09-19 Jakub Jelinek <jakub@redhat.com>
272 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
273 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
274 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
276 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
277 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
278 BFD_RELOC_386_TLS_GOTIE.
280 2002-09-19 Richard Henderson <rth@redhat.com>
282 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
284 (alpha_force_relocation): Don't special-case branch type relocs.
286 2002-09-19 Nick Clifton <nickc@redhat.com>
288 * config/tc-m68k.c (select_control_regs): Handle situation where
289 architecture has not yet been selected.
291 2002-09-18 Chris Demetriou <cgd@broadcom.com>
293 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
294 (IS_SEXT_16BIT_NUM): New macro.
295 (macro_build_ldst_constoffset): New function, to build a set of
296 instructions to do a load or store from a constant offset relative
298 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
299 .cprestore pseudo-op.
301 2002-09-18 Chris Demetriou <cgd@broadcom.com>
303 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
305 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
307 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
309 2002-09-17 Stan Cox <scox@redhat.com>
311 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
312 (macro): Likewise for la. Likewise for ld.
313 (mips_after_parse_args): Make -xgot optional, not the default.
314 (md_apply_fix3): Allow composite relocation to set up gp.
315 (tc_gen_reloc): Allow relaxing for newabi.
316 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
317 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
319 2002-09-17 Nick Clifton <nickc@redhat.com>
321 * config/tc-arm.c (md_apply_fix3): Note that an implemented
322 BFD_RELOC_ARM_IMMEDIATE has been done.
323 (tc_gen_reloc): Do not issue reloc number of unimplemented
324 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
325 their name is already in the error message - plus remove them
326 from the default case.
328 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
329 behavior of instructions.
331 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
333 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
334 Convert functions to K&R format.
336 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
338 * config/tc-mips.c (pdr_seg): Define only for ELF.
339 (s_change_section): Remove unused variable. Don't use for nonELF.
341 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
343 * config/obj-elf.c (obj_elf_change_section): Move prototype to
345 * config/obj-elf.h (obj_elf_change_section): Likewise.
347 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
349 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
350 (out_debug_info): Likewise.
352 2002-09-16 Bruno Haible <bruno@clisp.org>
354 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
355 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
356 * config/tc-i386.c (i386_target_format): Likewise.
357 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
358 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
360 2002-09-13 Nick Clifton <nickc@redhat.com>
362 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
363 when deciding if any operands have been skipped.
365 2002-09-11 Nick Clifton <nickc@redhat.com>
367 * NEWS: New TI port supports both C4x and C3x series of DSPs.
369 * po/tr.po: Updated Turkish translation.
371 2002-09-11 Jakub Jelinek <jakub@redhat.com>
373 * config/tc-i386.c (md_apply_fix3): Allow addend for
374 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
375 BFD_RELOC_386_TLS_LE_32.
377 2002-09-05 Jeff Law <law@redhat.com>
379 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
380 marker relocations such as ENTRY/EXIT.
381 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
382 to both OBJ_ELF and OBJ_SOM.
384 2002-09-05 Alan Modra <amodra@bigpond.net.au>
386 * doc/internals.texi (md_apply_fix3): Expand.
387 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
388 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
389 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
390 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
391 EXTERN_FORCE_RELOC): Document.
392 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
393 * as.h: Don't include struc-symbol.h for arc.
395 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
396 subtract absolute symbol.
397 * obj.h (struct format_ops): Add frob_file_before_fix.
398 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
399 * symbols.c (S_FORCE_RELOC): New function.
400 * symbols.h (S_FORCE_RELOC): Declare.
401 * write.c (TC_FORCE_RELOCATION): Change default.
402 (TC_FORCE_RELOCATION_ABS): Define.
403 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
404 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
405 (TC_FORCE_RELOCATION_SECTION): Don't define.
406 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
407 (TC_FORCE_RELOCATION_SUB_ABS): Define.
408 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
409 (TC_VALIDATE_FIX_SUB): Define.
410 (TC_FIX_ADJUSTABLE): Don't define.
411 (MD_APPLY_SYM_VALUE): Define this instead.
412 (abs_section_sym): New variable.
413 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
414 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
415 Don't put the absolute section sym on fixups here.
416 (fix_segment): New function.
417 (write_relocs): Don't call fixup_segment from here.
418 (write_object_file): Instead call tc_frob_file_before_fix,
419 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
420 Don't output the absolute section symbol.
421 (fixup_segment): Rewrite.
422 * write.h (abs_section_sym): Declare.
423 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
425 (aout_format_ops): Adjust to suit.
426 * config/obj-aout.h (obj_frob_file): Don't define.
427 (obj_frob_file_before_fix): Define.
428 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
429 (S_FORCE_RELOC): Define.
430 * config/obj-bout.h (S_FORCE_RELOC): Define.
431 * config/obj-coff.c (coff_format_ops): Init new field.
432 * config/obj-coff.h: Formatting fixes.
433 (obj_sec_sym_ok_for_reloc): Define.
434 (S_FORCE_RELOC): Define.
435 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
436 (ecoff_frob_file): .. from here.
437 (ecoff_format_ops): Add new function.
438 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
439 (obj_frob_file_before_fix): Define.
440 * config/obj-elf.c (elf_format_ops): Init new field.
441 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
442 * config/obj-ieee.h: Formatting fixes.
443 (S_FORCE_RELOC): Define.
444 * config/obj-multi.h (obj_frob_file_before_fix): Define.
445 * config/obj-vms.h (S_FORCE_RELOC): Define.
446 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
447 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
448 for BFD_RELOC_32 and BFD_RELOC_64.
449 (alpha_fix_adjustable): Remove extern and weak tests.
450 (alpha_before_fix): Rename from alpha_adjust_symtab.
451 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
452 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
453 (TC_VALIDATE_FIX): Tweak param name.
454 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
455 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
456 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
457 (MD_APPLY_SYM_VALUE): Define.
458 (tc_adjust_symtab): Don't define.
459 (alpha_adjust_symtab): Don't declare.
460 (tc_frob_file_before_fix): Define.
461 (alpha_before_fix): Declare.
462 (TC_INIT_FIX_DATA): Tweak param names.
463 * config/tc-arc.c: Include "struc-symbol.h".
464 (md_pcrel_from): Remove undefined sym fudge.
465 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
466 Don't set fx_addnumber.
467 (tc_gen_reloc): Remove spurious fx_addnumber comment.
468 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
469 (EXTERN_FORCE_RELOC): Define.
470 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
471 (tc_gen_reloc): Fudge ARM_GOTPC addend.
472 (arm_validate_fix): Return void.
473 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
474 Add plt and got reloc tests.
475 (arm_force_relocation): Call S_FORCE_RELOC.
476 * config/tc-arm.h (struct fix): Forward declare.
477 (TC_VALIDATE_FIX): No longer set add_symbolP.
478 (arm_validate_fix): Adjust declaration.
479 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
480 (TC_FORCE_RELOCATION): Tweak param name.
481 (TC_INIT_FIX_DATA): Likewise.
482 (obj_fix_adjustable): Don't define.
483 (tc_fix_adjustable): Call arm_fix_adjustable.
484 (TC_FIX_ADJUSTABLE): Don't define.
485 (MD_APPLY_SYM_VALUE): Define.
486 (EXTERN_FORCE_RELOC): Define.
487 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
488 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
489 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
490 Remove *valP fudges and code to subtract abs sym. Don't set
492 * config/tc-avr.h: Formatting.
493 (EXTERN_FORCE_RELOC): Define.
494 (MD_APPLY_SYM_VALUE): Define.
495 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
496 (md_apply_fix3): Remove code to subtract abs sym.
497 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
498 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
499 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
500 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
501 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
502 (tc_fix_adjustable): Remove extern, weak tests.
503 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
504 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
505 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
506 and code to subtract abs sym.
507 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
508 (d10v_force_relocation): Call S_FORCE_RELOC.
509 * config/tc-d10v.h: Don't include write.h.
510 (struct fix): Instead, forward declare.
511 (MD_PCREL_FROM_SECTION): Tweak param names.
512 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
513 (d10v_fix_adjustable): Likewise.
514 (obj_fix_adjustable): Don't define.
515 (tc_fix_adjustable): Define.
516 (TC_FORCE_RELOCATION): Tweak param name.
517 (MD_APPLY_SYM_VALUE): Define.
518 (EXTERN_FORCE_RELOC): Define.
519 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
520 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
521 and code to subtract abs sym.
522 * config/tc-d30v.h: Don't include write.h.
523 (struct fix): Instead, forward declare.
524 (MD_PCREL_FROM_SECTION): Tweak param names.
525 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
526 (MD_APPLY_SYM_VALUE): Define.
527 (EXTERN_FORCE_RELOC): Define.
528 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
529 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
530 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
531 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
532 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
533 Don't use fx_addnumber.
534 * config/tc-dlx.h: Don't include write.h.
535 (md_convert_frag): We're not alpha twice over.
536 (EXTERN_FORCE_RELOC): Define.
537 (obj_fix_adjustable): Don't define.
538 (tc_fix_adjustable): Define.
539 (TC_FIX_ADJUSTABLE): Don't define.
540 (MD_APPLY_SYM_VALUE): Define.
541 (LOCAL_LABELS_DOLLAR): Undef always.
542 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
543 (fr30_fix_adjustable): Remove extern, weak tests.
544 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
545 (obj_fix_adjustable): Don't define.
546 (tc_fix_adjustable): Define.
547 (struct fix): Forward declare.
548 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
549 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
550 (frv_fix_adjustable): Don't do extern, weak tests.
551 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
552 (TC_FIX_ADJUSTABLE): Don't define.
553 (obj_fix_adjustable): Don't define.
554 (tc_fix_adjustable): Define.
555 (struct fix): Forward declare.
556 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
557 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
558 * config/tc-h8300.h (struct fix): Forward declare.
559 (EXTERN_FORCE_RELOC): Define.
560 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
561 (hppa_fix_adjustable): Don't test extern or weak. Don't
562 symbol_mark_used_in_reloc.
563 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
565 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
566 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
567 (TC_FORCE_RELOCATION_SECTION): Don't define.
568 (MD_APPLY_SYM_VALUE): Define.
569 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
571 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
572 (MD_APPLY_SYM_VALUE): Define.
573 (MD_PCREL_FROM_SECTION): Tweak param name.
574 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
575 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
576 (i386_force_relocation): New function.
577 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
578 (TC_VALIDATE_FIX): Likewise.
579 (TC_FIX_ADJUSTABLE): Don't define.
580 (MD_APPLY_SYM_VALUE): Define.
581 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
582 (i386_force_relocation): Declare.
583 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
584 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
585 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
586 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
587 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
588 (EXTERN_FORCE_RELOC): Define.
589 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
590 (md_apply_fix3): Don't cast valP pointer type. Move code here from
591 old fixup_segment. No need to test fx_pcrel before setting fx_done.
592 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
593 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
594 Remove #if 0 code. Invert return boolean.
595 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
596 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
597 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
598 (tc_coff_sizemachdep): Prototype.
599 (i960_handle_align): Likewise.
600 (i960_validate_fix): Adjust declaration.
601 (reloc_callj): Likewise.
602 (EXTERN_FORCE_RELOC): Define.
603 (TC_FORCE_RELOCATION_SUB_SAME): Define.
604 (TC_FORCE_RELOCATION_ABS): Define.
605 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
606 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
607 (TC_FIX_ADJUSTABLE): Don't define.
608 (MD_APPLY_SYM_VALUE): Define.
609 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
610 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
611 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
612 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
613 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
614 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
615 (MD_APPLY_SYM_VALUE): Define.
616 (EXTERN_FORCE_RELOC): Define.
617 (TC_FORCE_RELOCATION): Tweak param name.
618 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
619 (m32r_fix_adjustable): Don't test extern, weak.
620 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
621 (MD_APPLY_SYM_VALUE): Define.
622 (obj_fix_adjustable): Don't define.
623 (tc_fix_adjustable): Define.
624 (tc_frob_file): Don't define.
625 (tc_frob_file_before_fix): Define.
626 (EXTERN_FORCE_RELOC): Define.
627 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
628 BFD_RELOC_VTABLE_ENTRY address.
629 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
630 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
631 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
632 Remove duplicated fx_done code.
633 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
634 (EXTERN_FORCE_RELOC): Define.
635 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
637 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
638 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
639 (TC_FIX_ADJUSTABLE): Don't define.
640 (EXTERN_FORCE_RELOC): Define.
641 (MD_APPLY_SYM_VALUE): Define.
642 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
643 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
644 Remove fx_addsy tests.
645 (mcore_force_relocation): Call S_FORCE_RELOC.
646 (mcore_fix_adjustable): Don't test fx_addsy.
647 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
648 (EXTERN_FORCE_RELOC): Define.
649 (obj_fix_adjustable): Don't define.
650 (tc_fix_adjustable): Define.
651 (MD_APPLY_SYM_VALUE): Define.
652 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
653 (mips_pic): No longer static.
654 (mips_force_relocation): Call S_FORCE_RELOC.
655 (mips_fix_adjustable): Remove extern, weak tests.
656 * config/tc-mips.h (enum mips_pic_level): Declare.
658 (tc_frob_file): Don't define.
659 (tc_frob_file_before_fix): Define this instead.
660 (EXTERN_FORCE_RELOC): Define.
661 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
662 with reg_section tests. Set fx_done instead of calling
663 symbol_clear_used_in_reloc on bad relocs.
664 (tc_gen_reloc): Zero fx_addsy on bad relocs.
665 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
666 (mmix_adjust_symtab): Simplify list handling. Abort on any
668 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
669 BFD_RELOC_MMIX_LOCAL.
670 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
671 (EXTERN_FORCE_RELOC): Define.
672 (MD_PCREL_FROM_SECTION): Tweak param name.
673 (tc_frob_file): Don't define.
674 (tc_frob_file_before_fix): Define this instead.
675 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
676 Remove SEC_CODE checks.
677 (mn10300_fix_adjustable): Remove extern and weak tests.
678 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
679 (TC_FORCE_RELOCATION): Tweak param name.
680 (obj_fix_adjustable): Don't define.
681 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
682 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
683 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
684 (openrisc_fix_adjustable): Don't test fx_addsy.
685 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
686 (obj_fix_adjustable): Don't define.
687 (tc_fix_adjustable): Define this instead.
688 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
689 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
690 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
691 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
692 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
693 (MD_APPLY_SYM_VALUE): Define.
694 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
695 Don't subtract symbol value.
696 * config/tc-pj.h (md_pcrel_from): Tweak param name.
697 (EXTERN_FORCE_RELOC): Define.
698 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
699 (MD_APPLY_SYM_VALUE): Define.
700 (obj_fix_adjustable): Don't define.
701 (tc_fix_adjustable): Define this instead.
702 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
704 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
705 (ppc_force_relocation <elf version>): New.
706 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
707 (md_apply_fix3): Don't subtract symbol values for ELF. Update
708 comments. Don't subtract fx_subsy as that is already done.
709 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
710 (MD_PCREL_FROM_SECTION): Likewise.
711 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
712 ppc_force_relocation.
713 (TC_FORCE_RELOCATION_SECTION): Delete.
714 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
715 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
716 (MD_APPLY_SYM_VALUE): Define.
717 * config/tc-s390.c: #include "dwarf2dbg.h".
718 (s390_insn): Remove excess parens.
719 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
720 (tc_s390_force_relocation): Call S_FORCE_RELOC.
721 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
722 non-NULL. Don't subtract off fx_addsy value.
723 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
724 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
725 (TC_FIX_ADJUSTABLE): Don't define.
726 (MD_APPLY_SYM_VALUE): Define.
727 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
728 (SWITCH_TABLE): Likewise.
729 (sh_force_relocation): Call S_FORCE_RELOC.
730 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
731 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
732 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
733 fx_addnumber is zero on entry. Save val in fx_addnumber.
734 (tc_gen_reloc): Don't subtract fx_subsy.
735 * config/tc-sh.h (struct fix): Move.
736 (obj_fix_adjustable): Don't define.
737 (tc_fix_adjustable): Define this instead.
738 (TC_FIX_ADJUSTABLE): Don't define.
739 (MD_APPLY_SYM_VALUE): Define.
740 (SWITCH_TABLE_CONS): Define.
741 (SWITCH_TABLE): Define.
742 (TC_FORCE_RELOCATION_SUB_SAME): Define.
743 (TC_VALIDATE_FIX_SUB): Define.
744 (MD_PCREL_FROM_SECTION): Tweak param name.
745 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
746 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
747 (TC_FORCE_RELOCATION_SUB_ABS): Define.
748 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
749 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
750 (TC_FORCE_RELOCATION_SUB_SAME): Define.
751 (TC_VALIDATE_FIX_SUB): Define.
752 (MD_PCREL_FROM_SECTION): Tweak param name.
753 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
754 (tc_gen_reloc): Use S_FORCE_RELOC.
755 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
756 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
757 (TC_FORCE_RELOCATION_ABS): Define this instead.
758 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
759 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
760 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
761 (MD_APPLY_SYM_VALUE): Define.
762 (TC_FIX_DATA_PRINT): Tweak param name.
763 * config/tc-tic30.c (USE_STDOUT): Don't define.
764 (md_parse_option): Remove stupid debug code.
765 (tc_gen_reloc): Don't use fx_addnumber.
766 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
767 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
768 * config/tc-v850.h (obj_fix_adjustable): Don't define.
769 (tc_fix_adjustable): Define this instead.
770 (TC_FIX_ADJUSTABLE): Don't define.
771 (MD_APPLY_SYM_VALUE): Define this instead.
772 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
773 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
774 (TC_FIX_ADJUSTABLE): Don't define.
775 (MD_APPLY_SYM_VALUE): Define this instead.
776 (tc_fix_adjustable): Remove extern and weak tests.
777 * config/tc-w65.h (struct fix): Forward declare.
778 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
780 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
781 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
782 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
784 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
785 (MD_APPLY_SYM_VALUE): Define.
786 (obj_fix_adjustable): Don't define.
787 (tc_fix_adjustable): Define this instead.
788 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
790 2002-09-04 Alan Modra <amodra@bigpond.net.au>
792 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
793 (ppc_fix_adjustable <coff version>): Cleanup.
795 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
796 (md_parse_option): No -a64 without BFD64.
797 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
798 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
800 2002-09-04 Nick Clifton <nickc@redhat.com>
802 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
803 instructions into the hash table if the target cpu is the BookE32.
805 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
807 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
810 2000-08-28 Catherine Moore <clm@redhat.com>
812 * tc-v850.c (v850_relax): Declare.
813 (v850_longcode): New routine.
814 (v850_handle_align): New routine.
815 (md_pseudo_table): Add longcall and longjump.
816 (md_parse_option): Check for relax option.
817 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
818 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
819 (md_apply_fix3): Likewise.
820 (v850_force_relocation): Likewise.
821 (v850_comm): Change the current section.
822 (md_assemble): Ensure that the correct value is put in the
824 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
825 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
826 Remove redundant v850ea support.
827 * tc-v850.h (HANDLE_ALIGN): Define.
828 (v850_handle_align): Declare.
829 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
831 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
833 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
834 * configure: Regenerate.
835 * NEWS: Mention new port.
837 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
839 * config/obj-coff.c: Add sdef definition.
840 * config/obj-coff.h: Add tic4x include file and set
842 * config/tc-tic4x.c: New file.
843 * config/tc-tic4x.h: New file.
845 2002-08-28 Alan Modra <amodra@bigpond.net.au>
847 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
848 (TC_ADJUST_RELOC_COUNT): Tweak param name.
849 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
850 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
851 (RELOC_ENUM): Define.
852 (fix_new_internal): Use RELOC_ENUM.
853 (fix_new, fix_new_exp): Likewise.
854 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
855 Replace gotos with continue.
856 (write_relocs): Formatting. Avoid symbol loops in
857 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
858 errors, and error number in other cases.
859 (fixup_segment): Remove param names from prototype. Rename
860 "this_segment_type" to "this_segment". Update linkrelax comment.
861 Remove "size, "place" and "where" local vars. Formatting. Update
862 "no symbol" comment. Remove #if 0 and #if 1.
864 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
866 2002-08-27 Alan Modra <amodra@bigpond.net.au>
868 * dwarf2dbg.c: Always include dwarf2dbg.h.
869 (dwarf2_directive_file): Adjust dummy version args.
870 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
871 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
872 when symbol values differ.
873 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
874 (pseudo_set <O_subtract>): Remove unnecessary segment test.
875 * config/obj-bout.c (obj_pseudo_table): Warning fix.
877 2002-08-26 Alan Modra <amodra@bigpond.net.au>
879 * config/tc-w65.c (md_section_align): Fix typo.
880 (md_parse_option): Return 0, not 1.
882 2002-08-22 Nick Clifton <nickc@redhat.com>
884 * doc/as.texinfo (Section): Note that if '@' is a comment
885 character then another symbol is used to prefix the section's
888 2002-08-22 Christian Groessler <chris@groessler.org>
890 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
893 2002-08-12 Graeme Peterson <gp@qnx.com>
895 * configure.in: Add support for sh-**-nto* target.
896 * configure: Regenerate.
898 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
900 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
902 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
904 * config/tc-ppc.c (ppc_cleanup): Do something only if format
906 (ppc_apuinfo_section_add): Define only if format is ELF.
907 (md_assemble): Emit APUinfo section only if format is ELF.
910 2002-08-21 Alan Modra <amodra@bigpond.net.au>
912 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
913 * config/tc-frv.c: Likewise.
914 * config/tc-hppa.c: Likewise.
915 * config/tc-ia64.c: Likewise.
916 * config/tc-ip2k.c: Likewise.
917 * config/tc-m68hc11.c: Likewise.
918 * config/tc-m68k.c: Likewise.
919 * config/tc-mmix.c: Likewise.
920 * config/tc-mn10300.c: Likewise.
921 * config/tc-sh.c: Likewise.
922 * config/tc-sparc.c: Likewise.
923 * config/tc-v850.c: Likewise.
925 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
927 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
930 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
932 From matthew green <mrg@redhat.com>
934 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
935 PPC_OPCODE_PPC is, except for BookE architectures.
936 (md_parse_option): Add support for -mspe.
937 (md_show_usage): Add -mspe.
938 (md_parse_option): Add support for -me500 and
939 -me500x2 to generate code for Motorola e500 core complex.
940 (md_show_usage): Add -me500 and -me500x2.
942 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
943 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
944 PPC_APUINFO_BRLOCK): New macros.
946 (ppc_cleanup): New function.
947 (ppc_apuinfo_section_add): New function.
949 (md_assemble): Collect info and write the APUinfo section.
951 * config/tc-ppc.h (md_cleanup): Define.
952 (ppc_cleanup): Export.
953 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
955 2002-08-17 Stan Cox <scox@redhat.com>
957 * config/obj-elf.c (obj_elf_change_section): Make non-static.
958 config/tc-mips.c (s_change_section): New function to support
959 IRIX .section pseudo-op.
961 2002-08-16 Nick Clifton <nickc@redhat.com>
963 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
965 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
967 * config/tc-mips.c (macro_build_jalr): Make sure we generate
968 the fix-up against on the right frag.
969 (s_cpsetup): Likewise. Parse third argument as expression, to
970 handle global symbols and forward/backward labels correctly.
972 2002-08-14 Nick Clifton <nickc@redhat.com>
974 * read.c (stringer): Catch attempts to create strings in the abs
977 * config/tc-alpha.c: Fix compiling for COFF targets.
978 Some minor formatting tidyups.
980 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
982 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
983 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
984 according to the reloc.
985 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
986 (TC_FORCE_RELOCATION): Define.
987 (tc_m68hc11_force_relocation): Declare.
989 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
990 (s_m68hc11_relax): New function for relax group.
991 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
992 beginning of jump instruction.
993 (md_pcrel_from): Rename from md_pcrel_from_section and fix
995 (tc-gen_reloc): Update.
996 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
998 (tc_m68hc11_force_relocation): New function, handle new relocs.
999 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1000 reloc for the linker relax pass.
1001 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1004 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1006 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1007 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1008 (s_m68hc11_mode): New function for .mode pseudo op.
1009 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1011 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1012 (m68hc11_elf_final_processing): Declare.
1014 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1016 * config/tc-m68hc11.c (md_begin): Take into account additional
1017 page operand for call instruction.
1018 (print_opcode_format): Likewise.
1019 (check_range): Likewise for page range checking.
1020 (get_operand): Don't skip a possible comma in operands.
1021 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1022 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1023 (fixup24): New to handle call reloc.
1024 (build_insn): Handle missing page operand for call instruction.
1026 (md_apply_fix3): Take into account new relocs.
1027 (get_operand): Fix the mode for indexed indirect addressing.
1028 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1030 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1032 * config/tc-mips.c (mips_ip): Don't work out the value of
1033 constant %hi()s here.
1035 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1037 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1038 for ELF, and don't bother checking ELF relocs when non-ELF.
1039 (i386_immediate): Allow absolute_section expressions for aout.
1040 (i386_displacement): Likewise. Also test bfd_is_com_section.
1041 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1042 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1043 not when fx_addsy. Remove dead code.
1045 2002-08-09 Graeme Peterson <gp@qnx.com>
1047 * configure.in: Add support for ppc-*-nto* target.
1048 * configure: Regenerate.
1050 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1052 * config/tc-i386.h: Reorganize.
1054 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1056 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1057 immediate offset in "dla" and "la" expansions.
1059 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1061 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1062 Remove "bfd_gas=yes" from target table when covered later.
1063 Consolidate some entries.
1064 * configure: Regenerate
1066 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1068 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1069 at start of insn, pass it to output_disp and output_imm.
1070 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1071 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1073 (output_imm): Added arguments. Compute properly addend for
1075 (md_apply_fix3): Remove R_386_GOTPC handling.
1076 * testsuite/gas/i386/gotpc.s: New.
1077 * testsuite/gas/i386/gotpc.d: New.
1078 * testsuite/gas/i386/i386.exp: Add gotpc test.
1080 2002-08-06 George France <france@handhelds.org>
1082 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1083 and m21264b processor names and cpu types.
1084 * doc/c-alpha.texi: Documented new types.
1086 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1088 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1090 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1092 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1093 handling to BFD_RELOC_MIPS16_GPREL.
1095 2002-08-01 Nick Clifton <nickc@redhat.com>
1097 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1098 pool is computed using signed arithmetic so that proper sign
1099 extension is performed if X_add_number is a 64-bit integer.
1101 2002-08-01 H.J. Lu <hjl@gnu.org>
1102 Daniel Jacobowitz <drow@mvista.com>
1104 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1105 .debug_line section unless it has line information.
1107 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1109 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1110 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1111 Allow default displacement size to be an option "--disp-size-default".
1112 (md_number_to_disp): Make error messages include value. Use %d to
1113 print integers, not %s.
1114 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1115 get duplicate messages sometimes.
1116 (convert_iif): Grow frag to max possible instruction size. Avoid
1117 creating unnecessary fixes.
1118 (md_number_to_field) Add prototype.
1119 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1120 prototypes and make static.
1121 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1122 (evaluate_expr): Use resultP argument instead of exprP global.
1123 (get_addr_mode): Quiten compiler warnings.
1124 (encode_operand): eliminate unused variables. Quiten compiler
1125 warnings. Eliminate nul character in format strings.
1126 (parse): argc is unsigned.
1127 (reloc): Type cast index to quieten compiler.
1128 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1129 (md_convert_frag): Note unused parameters. Remove unused
1131 (md_create_long_jump, md_create_short_jump,
1132 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1135 2002-07-31 Nick Clifton <nickc@redhat.com>
1137 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1138 of the PDP-11 and 2.11BSD a.out support.
1140 2002-07-31 Momchil Velikov <velco@fadata.bg>
1142 * config/tc-v850.c (md_assemble): Fix range check for immediate
1145 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1147 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1148 to Broadcom SB-1 core support.
1150 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1152 * config/tc-mips.c (mips_target_format): Fix formatting.
1153 Add recognition of n32 ABI formats.
1155 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1157 * tc-mips.c (load_address): Don't clobber $at when loading a
1158 64-bit address in non-PIC code if noat is in effect.
1161 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1163 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1164 used in division/multiply macro expansions similarly to how they
1165 are used in the variants with break instructions.
1168 2002-07-30 Graeme Peterson <gp@qnx.com>
1170 * configure.in: Add support for arm-*-nto target.
1171 * configure: Regenerate.
1173 2002-07-30 Nick Clifton <nickc@redhat.com>
1175 * config/tc-arm.c (struct literal_pool): Add fields to allow
1176 multiple literal pools to be maintained.
1177 (find_literal_pool): New function.
1178 (find_or_make_literal_pool): New function.
1179 (add_to_literal_pool): Use find_or_make_literal_pool.
1180 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1182 (s_ltorg): Use find_literal_pool.
1183 (arm_cleanup): Dump all literal pools.
1184 * doc/c-arm.texi: Document new behaviour of only dumping literal
1187 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1189 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1190 rather than PPC_OPCODE_32 for powerpc64*.
1192 2002-07-25 Nick Clifton <nickc@redhat.com>
1194 * po/es.po: Updated Spanish translation.
1195 * po/fr.po: Updated French translation.
1197 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
1199 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1200 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1201 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1202 * configure, config.in: Regenerate.
1203 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1204 (mips_set_options): Remove "abi" field.
1205 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1208 (mips_arch_string, mips_arch_info): New vars.
1209 (mips_tune_string, mips_tune_info): New vars.
1210 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1211 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1212 (mips_isa_to_str, mips_cpu_to_str): Remove.
1213 (mips_ip): If the selected architecture is a generic ISA rather
1214 than a processor, only mention the ISA level in error messages.
1215 (OPTION_MCPU): Remove.
1217 (md_longopts): Add -mfp64, remove -mcpu.
1218 (mips_set_option_string): New fn.
1219 (md_parse_option): Make -mipsN update file_mips_isa rather than
1220 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
1221 Don't let -mgp32 and -mfp32 change the ABI.
1222 (show): Move to end of file. Constify string argument.
1223 (md_show_usage): Move to the end of the file. Read available
1224 architectures from mips_cpu_info_table.
1225 (mips_set_architecture): New fn.
1226 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
1227 is an alias for -march=mipsN. Don't change the ABI based on other
1228 flags. Infer the register size from the ABI as well as the
1229 architecture. Complain about more conflicting arguments.
1230 Unify logic with GCC.
1231 (s_mipsset): Don't change the ABI.
1232 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1233 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1234 "mipsN"-type entries. Remove entries that vary only in the
1235 manufacturer's prefix, or that have "000" replaced by "k".
1236 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
1237 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1238 (mips_parse_cpu): New fn.
1239 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1240 (mips_cpu_info_from_isa): Minor formatting tweak.
1242 2002-07-24 Nick Clifton <nickc@redhat.com>
1244 * po/sv.po: Updated Swedish translation.
1245 * po/es.po: Updated Spanish translation.
1247 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1249 * Makefile.am: Run "make dep-am".
1250 * Makefile.in: Regenerate.
1251 * doc/Makefile.in: Regenerate.
1252 * config.in: Regenerate.
1253 * po/POTFILES.in: Regenerate.
1255 2002-07-23 Nick Clifton <nickc@redhat.com>
1257 * po/fr.po: Updated French translation.
1259 2002-07-23 Nick Clifton <nickc@redhat.com>
1261 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1264 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1266 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1267 instead of S_IS_EXTERN.
1268 (md_estimate_size_before_relax): Likewise.
1269 (mips_fix_adjustable): Likewise.
1271 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1273 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1275 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1276 Nick Clifton <nickc@redhat.com>
1278 * cond.c (s_ifdef): Treat a referenced but not yet defined
1279 symbol as if it were undefined, in exactly the same way as
1282 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1283 consider referenced bug not yet defined symbols to be
1286 2002-07-18 Denis Chertykov <denisc@overta.ru>
1287 Frank Ch. Eigler <fche@redhat.com>
1288 Alan Lehotsky <alehotsky@cygnus.com>
1289 John Healy <jhealy@redhat.com>
1290 Jeff Johnston <jjohnstn@redhat.com>
1292 * configure.in: Add ip2k configuraton.
1293 * configure: Regenerate.
1294 * Makefile.am: Add ip2k configuraton.
1295 * Makefile.in: Regenerate.
1296 * configure: Regenerate.
1297 * Makefile.in: Regenerate.
1298 * config/tc-ip2k.c: New file.
1299 * config/tc-ip2k.h: New files.
1300 * NEWS: Mention new support.
1301 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1302 * doc/Makefile.in: Regenerate.
1303 * doc/all.texi: Set IP2K
1304 * doc/as.texinfo: Add IP2K description.
1305 * doc/c-ip2k.texi: New file.
1307 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1309 * NEWS: Reformat to match style of other NEWS files.
1311 2002-07-17 Jan Hubicka <jh@suse.cz>
1313 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1315 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
1317 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1319 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1321 * NEWS: Add 'Changes in 2.13'.
1323 2002-07-15 Matt Fredette <fredette@netbsd.org>
1325 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1327 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1329 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1330 case with non CODE_64BIT case. Don't warn on "qword ptr" if
1333 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1335 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1336 (ppc_frob_file_before_adjust): New function.
1337 * config/tc-ppc.h (tc_frob_symbol): Don't define.
1338 (ppc_elf_frob_symbol): Don't declare.
1339 (tc_frob_file_before_adjust): Define.
1340 (ppc_frob_file_before_adjust): Declare.
1342 * config/tc-ppc.c (md_pseudo_table): Warning fix.
1343 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1346 (ppc_xcoff64): Rename to ppc_obj64.
1347 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1348 (ppc_set_cpu): Set PPC_OPCODE_32 too.
1349 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1351 (ppc_target_format): Use ppc_obj64 to select format.
1352 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1353 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1354 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
1355 (tc_frob_symbol): Likewise.
1356 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
1357 BFD_DEFAULT_TARGET_SIZE.
1359 (ppc_is_toc_sym): Likewise.
1360 (md_apply_fix3): Likewise.
1361 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1362 BFD_DEFAULT_TARGET_SIZE.
1363 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1364 (tc_frob_symbol): Likewise.
1366 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1368 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1369 (mips_ip): Likewise.
1371 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1373 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1374 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1375 (md_apply_fix3): Formatting. Remove redundant test.
1376 (tc_gen_reloc): Remove redundant code.
1377 (tc_i386_force_relocation): Delete. Movy body of function to..
1378 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1380 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1382 * configure.in: Add hppa-*-openbsd* target, change
1383 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1385 * configure: Regenerate.
1387 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1389 * config/tc-mips.c (macro): Shift the 32-bit address range
1390 accessible with a lone "lui" down by 32768.
1392 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1394 * config/tc-mips.c (load_address): Use non-trapping "daddu"
1395 instead of "dadd" in address calculations.
1398 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1400 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1402 (md_assemble): Instead, zap the suffix here.
1404 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1406 * NEWS: Remove next release number until the release is actually
1409 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1411 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1413 * Makefile.in: Regenerate.
1415 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1417 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1418 to symbols in merge sections, even non pc-relative ones.
1420 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1422 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1424 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1426 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1427 .softregs and .eeprom.
1429 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1431 * NEWS: Note the next release is 2.13.
1433 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1435 * po/tr.po: New translation imported.
1437 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
1439 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1440 (ecoff_directive_def): Likewise.
1441 (ecoff_directive_tag): Likewise.
1442 * listing.c (file_info): Likewise.
1443 * hash.c (what): Likewise.
1445 2002-06-25 H.J. Lu <hjl@gnu.org>
1447 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1448 * Makefile.in: Regenerated.
1450 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1452 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1453 (assemble_ppi): Generate warning if the same register is used
1454 twice as destination in the same padd / pmuls instruction.
1456 2002-06-18 Dave Brolley <brolley@redhat.com>
1458 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1459 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1460 * configure.in: Support frv-*-*.
1461 * Makefile.am (CPU_TYPES): Add frv.
1462 (TARGET_CPU_CFILES): Add tc-frv.c.
1463 (TARGET_CPU_HFILES): Add tc-frv.h.
1464 (DEPTC_frv_coff): New variable.
1465 (DEPTC_frv_elf): New variable.
1466 (DEPOBJ_frv_coff): New variable.
1467 (DEPOBJ_frv_elf): New variable.
1468 (DEP_frv_coff): New variable.
1469 (DEP_frv_elf): New variable.
1470 * tc-frv.c: New file.
1471 * tc-frv.h: New file.
1473 2002-06-17 Catherine Moore <clm@redhat.com>
1475 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1477 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1479 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1481 2002-06-17 Tom Rix <trix@redhat.com>
1483 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1485 2002-06-14 H.J. Lu <hjl@gnu.org>
1486 Daniel Jacobowitz <drow@mvista.com>
1488 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1489 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1490 * config/tc-mips.c (s_mips_file): Call s_app_file_string
1491 and new_logical_line for the first .file directive.
1492 * read.c (s_app_file_string): New function.
1493 (s_app_file): Call it.
1494 * read.h (s_app_file_string): Add declaration.
1496 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1498 * configure.in: Remove MIPS_STABS_ELF.
1499 * configure: Regenerated.
1500 * config.in: Regenerated.
1501 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1503 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1505 (pdr_seg): Declare unconditionally.
1506 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1507 (s_mips_end): Likewise. Generate stabs function markers.
1508 (s_mips_ent): Generate stabs function markers.
1509 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1511 (s_mips_mask): Likewise.
1512 (mips_flag_mdebug): New.
1513 (md_longopts): Add "mdebug" and "no-mdebug".
1514 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1515 (mips_after_parse_args): Set mips_flag_mdebug.
1516 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1518 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1520 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1521 value twice for RELA relocations.
1523 2002-06-12 Ben Elliston <bje@redhat.com>
1525 * symbols.c (resolve_symbol_value): Initialise final_val.
1527 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1529 2002-06-11 Tom Rix <trix@redhat.com>
1531 * config/tc-ppc.c (ppc_subseg_align): Delete.
1532 (ppc_change_csect): Default csect align is 2.
1533 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1535 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1537 * config/tc-avr.c (mcu_types): Update.
1539 2002-06-08 Matt Thomas <matt@3am-software.com>
1541 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1542 (vax-*-netbsd*): New targets.
1543 * configure: Regenerate.
1544 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1545 * config/tc-vax.c: Add support for ELF and PIC.
1546 (flag_want_pic): New flag.
1547 (float_cons): Fix prototype.
1548 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1549 (md_assemble): Introduce a new is_absolute local, and use it
1550 rather than repeating the test. Make fatal errors actually
1551 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
1552 Add support for ELF. Add support for PIC.
1553 (md_convert_frag): Adjust for BFD_ASSEMBLER.
1554 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1556 (vax_reg_parse): Make the % register prefix mandatory for ELF,
1557 optional for a.out, and not allowed for VMS. Adjust all callers.
1558 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1559 (md_create_long_jump): Likewise.
1560 (md_undefined_symbol): Likewise.
1561 (md_section_align): Likewise.
1562 (md_shortopts): Allow -k and -K for ELF.
1563 (md_parse_option): Set flag_want_pic if -k or -K.
1564 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1565 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1566 * config/tc-vax.h (tc_headers_hook): Remove.
1567 (TARGET_FORMAT): Set according to object format and target
1569 (BFD_ARCH, TARGET_ARCH): Define.
1570 (NO_RELOC): Adjust for BFD_ASSEMBLER.
1571 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1572 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1573 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1575 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1577 * Makefile.am: Run "make dep-am".
1578 * Makefile.in: Regenerate.
1580 * as.c: Replace CONST with const.
1581 * write.c: Likewise.
1582 * config/obj-coff.c: Likewise.
1583 * config/tc-a29k.c: Likewise.
1584 * config/tc-arm.c: Likewise.
1585 * config/tc-dlx.c: Likewise.
1586 * config/tc-h8300.c: Likewise.
1587 * config/tc-h8500.c: Likewise.
1588 * config/tc-i370.c: Likewise.
1589 * config/tc-i860.c: Likewise.
1590 * config/tc-i960.c: Likewise.
1591 * config/tc-m68hc11.c: Likewise.
1592 * config/tc-m68k.c: Likewise.
1593 * config/tc-m88k.c: Likewise.
1594 * config/tc-mcore.c: Likewise.
1595 * config/tc-mips.c: Likewise.
1596 * config/tc-ns32k.c: Likewise.
1597 * config/tc-pdp11.c: Likewise.
1598 * config/tc-pj.c: Likewise.
1599 * config/tc-s390.c: Likewise.
1600 * config/tc-sh.c: Likewise.
1601 * config/tc-sparc.c: Likewise.
1602 * config/tc-tahoe.c: Likewise.
1603 * config/tc-tic80.c: Likewise.
1604 * config/tc-v850.c: Likewise.
1605 * config/tc-vax.c: Likewise.
1606 * config/tc-w65.c: Likewise.
1607 * config/tc-z8k.c: Likewise.
1609 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
1611 Based on patch from Matt Green:
1612 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
1613 * config/tc-mips.c (s_mips_file): Renamed from s_file.
1614 (s_mips_loc): New function.
1615 (mips_nonecoff_pseudo_table): Call them.
1616 (append_insn): Call dwarf2_emit_insn.
1618 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1620 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1622 (file_ase_mips16): New veriable.
1623 (mips_eabi64): Remove.
1624 (CPU_HAS_MIPS16): New define.
1625 (CPU_HAS_MDMX): Fix data type.
1626 (md_begin): Code cleanup. Use file_ase_mips16.
1627 (mips_elf_final_processing): Handle mips16 header flag.
1628 Handle EABI flag without intermediate variable.
1630 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1632 * doc/as.texinfo: Update MIPS documentation.
1634 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1636 * config/tc-mips.c: Add define for $zero register.
1637 (md_begin): Add $zero as alias name for $0.
1638 (insn_uses_reg): Use ZERO define.
1639 (mips_ip): Add $zero as alias name for $0.
1640 (mips16_ip): Likewise.
1641 (s_cplocal): Demand empty rest of input line.
1642 (tc_get_register): Likewise. Add support for $kt0, kt1 register
1643 names. Use ZERO define. Fix input_line_pointer progress.
1645 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1647 * symbols.c: Replace CONST by const throughout.
1648 (symbol_find_exact): Split out from..
1649 (symbol_find_base): ..here.
1650 * symbols.h: Replace CONST by const throughout.
1651 (symbol_find_exact): Declare.
1652 * config/obj-elf.c: #include "struc-symbol.h".
1653 (elf_frob_file): If group name matches an exported symbol, use that
1654 symbol for the signature and ".group" as the section name.
1656 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
1658 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
1660 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
1661 * testsuite/gas/sh/pcrel.d: Update.
1662 * testsuite/gas/sh/pcrel.l: New file.
1664 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
1666 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
1667 and mips_opts.ase_mdmx if they are uninitialized.
1669 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1671 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
1672 (hppa_force_relocation): Check if a stub just before the start symbol
1673 of the last call_info is reachable before forcing relocation. Fix
1676 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1678 * config/tc-mips.c (mips_after_parse_args): New function.
1679 (md_begin): Move processing of defaults to mips_after_parse_args.
1680 config/tc-mips.h (md_after_parse_args): Define.
1682 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1684 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
1685 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
1686 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
1687 * configure: Regenerate.
1688 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
1691 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1693 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1695 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1697 * config/obj-elf.c (obj_elf_change_section): Set and check elf
1698 linkonce flag. Print all warnings.
1699 (obj_elf_section): Parse ",comdat" for groups.
1700 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
1701 consistency of comdat flag.
1703 2002-06-02 Richard Henderson <rth@redhat.com>
1705 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
1706 with LITERALs without sequence numbers.
1708 2002-06-01 Richard Henderson <rth@redhat.com>
1710 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
1711 Rename them LITUSE_ALPHA_*.
1713 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
1715 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
1716 accept parentheses enclosed register lists.
1718 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1720 * Makefile.am: Run "make dep-am".
1721 * Makefile.in: Regenerate.
1722 * po/POTFILES.in: Regenerate.
1724 2002-05-31 Graeme Peterson <gp@qnx.com>
1726 * configure.in: Add i386-*-nto-qnx*.
1727 * configure: Regenerate.
1729 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1731 * config/tc-mips.c (mips_ip): Use unsigned long values for
1734 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1736 * config/tc-mips.c (s_cpsetup): Fix initialization of
1737 mips_cpreturn_register and mips_cpreturn_offset.
1739 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1741 * config/tc-mips.c (s_cpsetup): Fix comment.
1743 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1745 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
1746 (mips_ip): Likewise.
1747 (mips16_ip): Likewise.
1748 (tc_get_register): Likewise.
1750 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
1751 Ed Satterthwaite <ehs@broadcom.com>
1753 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
1754 (mips_opts): Initialize "ase_mdmx" member.
1755 (file_ase_mdmx): New variable.
1756 (CPU_HAS_MDMX): New macro.
1757 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
1758 based on command line options and configuration defaults.
1759 (macro_build): Note in comment that use of MDMX in macros is
1760 not currently allowed.
1761 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
1762 "Z" MDMX operand types.
1763 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
1764 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
1766 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
1767 Add support for "-mdmx" and "-no-mdmx" options.
1768 (OPTION_ELF_BASE): Move to accomodate new options.
1769 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
1770 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
1771 file_ase_mdmx was set.
1772 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
1773 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
1776 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1778 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
1779 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
1780 command line switch conforming to gcc conventions.
1781 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
1783 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1785 * config/tc-mips.c (macro_build_jalr): New Function.
1786 (md_begin): NewABI uses big GOTs.
1787 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
1788 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
1789 (load_address): Add some NewABI PIC support.
1791 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
1792 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
1794 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1796 * config/tc-mips.c (load_address): Use mips_gp_register instead
1797 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
1799 (macro): Use mips_gp_register instead of hardcoded value.
1801 2002-05-30 Richard Henderson <rth@redhat.com>
1803 * expr.h (operatorT): Add O_md17..O_md32.
1804 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
1805 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
1806 O_tprelhi, O_tprello, O_tprel): New.
1807 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
1808 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
1809 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
1810 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
1811 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
1812 (md_apply_fix3): Handle TLS relocations.
1813 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1814 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
1815 associated TLS reloc. Check lituse_tls relocs match up.
1816 (emit_insn): Handle TLS relocations.
1819 * doc/c-alpha.texi: Add docs for tls relocations.
1821 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1823 * config/tc-mips.c (mips_gprel_offset): New variable.
1824 (s_gpvalue): Use it.
1826 2002-05-30 Diego Novillo <dnovillo@redhat.com>
1828 * gas/config/tc-d10v.c (check_resource_conflict): Only check
1829 write-write conflicts.
1830 (md_assemble): Reformat introductory comment.
1831 (parallel_ok): Prevent packing only if the first
1832 instruction cannot be packed.
1834 2002-05-30 Jason Eckhardt <jle@redhat.com>
1835 Tom Rix <trix@redhat.com>
1837 * config/tc-d10v.c (build_insn): Check for immediates.
1839 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1841 * config/tc-mips.c: Replace GP in comments by $gp.
1842 (mips_big_got): Initialize.
1843 (mips_trap): Initialize.
1844 (load_address): Use mips_gp_register instead of hardcoded value.
1845 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
1846 (macro): Use mips_gp_register instead of hardcoded value.
1847 (macro2): Change load_address calls.
1848 (md_pcrel_from): Comment formatting.
1849 (s_cpload): Use mips_gp_register instead of hardcoded value.
1850 (s_cprestore): Likewise. Comment formatting.
1851 (s_gpword): Fix data type.
1852 (s_cpadd): Use mips_gp_register instead of hardcoded value.
1853 (nopic_need_relax): Replace GP in comments by $gp.
1854 (mips_elf_final_processing): Better comment.
1856 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1858 * configure.in: Add DLX configuraton
1859 * Makefile.am: Add DLX configuraton
1860 * configure: Regenerate.
1861 * Makefile.in: Regenerate.
1862 * config/tc-dlx.c: New file.
1863 * config/tc-dlx.h: New files.
1864 * NEWS: Mention new support.
1866 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
1868 * config/obj-coff.c (write_object_file): Add missing semicolon.
1870 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1872 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
1873 by the define. Remove superfluous check of mips_opts.mips16.
1874 (append_insn): Likewise. Canonicalize variable increments.
1875 (macro_build): Canonicalize variable increments.
1876 (macro_build_lui): Likewise.
1877 (load_register): Likewise.
1878 (load_address): Move pointer initialization.
1879 (macro): Move pointer to a more local scope. Canonicalize variable
1880 increments. Better comments. Replace magic constant for RA by the
1882 (macro2): Replace magic constant for RA by the define. Canonicalize
1883 variable increments.
1884 (mips_ip): Canonicalize variable increments.
1885 (mips16_ip): Replace magic constant for RA by the define.
1886 (my_getSmallParser): Canonicalize variable increments/decrements.
1887 (my_getPercentOp): Likewise.
1888 (my_getSmallExpression): Likewise.
1889 (s_align): Likewise.
1890 (s_mipsset): Likewise.
1891 (s_cpsetup): Likewise.
1892 (s_insn): Remove superfluous check of mips_opts.mips16.
1893 (s_mips_stab): Likewise.
1894 (mips_handle_align): Canonicalize variable increments.
1895 (s_mips_ent): Likewise.
1896 (s_mips_end): Add comment.
1898 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1900 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1901 * configure: Regenerate.
1903 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1905 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
1906 * Makefile.in: Regenerate.
1907 * dep-in.sed: Reorder to match OBJS in Makefile.am.
1908 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
1909 * configure: Regenerate.
1910 * as.h: Use #include "" instead of <> for local header files.
1911 * flonum-konst.c: Likewise.
1912 * flonum-mult.c: Likewise.
1914 * listing.c: Likewise.
1915 * config/tc-ia64.h: Likewise.
1916 * config/tc-v850.h: Likewise.
1918 2002-05-24 TAMURA Kent <kent@netbsd.org>
1920 * configure.in: Add a target for i386-netbsdpe.
1921 * configure: Regenerate.
1923 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1925 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
1926 (obj_elf_common): Call elf_common.
1927 (obj_elf_tls_common): New function.
1928 (elf_pseudo_tab): Support .tls_common.
1929 (special_sections): Add .tdata and .tbss.
1930 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
1932 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
1933 (obj_elf_parse_section_letters): Include T in error message.
1934 * config/tc-ppc.c (ppc_section_letter): Likewise.
1935 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
1936 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
1938 * config/tc-sparc.c (md_apply_fix3): Likewise.
1939 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
1940 Define them if not BFD_ASSEMBLER.
1941 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
1943 (md_apply_fix3): Add TLS relocs.
1944 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
1945 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
1946 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
1947 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
1948 (ia64_elf_section_letter): Include T in error message.
1949 (md_begin): Support TLS operators.
1950 (md_operand): Likewise.
1951 (ia64_gen_real_reloc_type): Support TLS relocs.
1952 * testsuite/gas/i386/tlspic.s: New file.
1953 * testsuite/gas/i386/tlsd.s: New file.
1954 * testsuite/gas/i386/tlsnopic.s: New file.
1955 * testsuite/gas/i386/tlsd.d: New file.
1956 * testsuite/gas/i386/tlsnopic.d: New file.
1957 * testsuite/gas/i386/tlspic.d: New file.
1958 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
1959 * testsuite/gas/ia64/tls.s: New file.
1960 * testsuite/gas/ia64/tls.d: New file.
1961 * testsuite/gas/ia64/ia64.exp: Add tls test.
1962 * write.c (adjust_reloc_syms): Don't change symbols in
1963 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
1965 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1967 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
1968 round the relocation up rather than down.
1970 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1972 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
1974 * doc/as.texinfo: Document that the COFF version of .section
1975 ignores the 'a' flag.
1977 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1979 * config/tc-alpha.c (assemble_tokens): Protect use of
1980 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
1982 * write.c (size_seg): Check adjustment to last frag.
1983 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
1985 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
1986 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
1987 (write_object_file): Invoke md_do_align if available, and use
1988 frag_align_code on text sections.
1989 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
1990 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
1991 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
1992 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
1993 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
1996 2002-05-22 H.J. Lu <hjl@gnu.org>
1998 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2001 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2003 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2006 2002-05-22 H.J. Lu <hjl@gnu.org>
2008 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2009 for one .loc for compiler.
2011 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2013 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2016 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2018 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2019 Optimize the rotate by zero case.
2021 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2023 * configure.in: Remove accidental enabling of bfd_gas=yes for
2025 * configure: Regenerate.
2027 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2029 * app.c: Fix formatting.
2031 * ehopt.c: Likewise.
2033 * input-file.c: Likewise.
2034 * listing.c: Likewise.
2035 * macro.h: Likewise.
2036 * stabs.c: Likewise.
2037 * symbols.c: Likewise.
2039 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2041 * config/obj-generic.c: Delete file.
2042 * config/obj-generic.h: Likewise.
2044 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2046 * config/tc-avr.c (mcu_types): Update for new devices.
2048 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2050 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2052 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2054 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2055 worked sometimes by accident. Fix copy&paste comment.
2057 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2059 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2060 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2061 (mips_elf_final_processing): Let n32 use .reginfo.
2063 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2065 * config/tc-mips.c (append_insn): Fix too small range of variable.
2067 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2069 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2070 listing_prev_line().
2072 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2074 * config/tc-arm.c (md_assemble): Remove redundant call to
2077 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2080 * stabs.c (s_stab_generic): Fix grammatical error in warning
2083 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2085 * write.c (subsegs_finish): Don't specially align last subseg.
2087 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2089 * stabs.c (s_stab_generic): Warn about a description field that is
2092 * config/obj-coff.c: Fix compile time warnings when compiling
2093 without BFD_ASSEMBLER defined.
2096 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2098 (md_pcrel_from_section): Use md_pcrel_from().
2100 2002-05-11 Bruno Haible <bruno@clisp.org>
2102 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2103 by dwarf2_directive_loc, instead of calling dwarf2_where.
2105 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2107 * config/obj-coff.h: Fix formatting.
2108 * config/tc-mcore.c: Likewise.
2109 * config/tc-mn10300.c: Likewise.
2110 * config/tc-openrisc.c: Likewise.
2111 * config/tc-or32.c: Likewise.
2112 * config/tc-pdp11.c: Likewise.
2113 * config/tc-ppc.c: Likewise.
2114 * config/tc-ppc.h: Likewise.
2115 * config/tc-sh64.c: Likewise.
2116 * config/tc-sh.c: Likewise.
2117 * config/tc-tic54x.c: Likewise.
2118 * config/tc-xstormy16.c: Likewise.
2119 * config/tc-xstormy16.h: Likewise.
2121 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2123 * config/obj-coff.c: Fix formatting.
2124 * config/obj-elf.c: Likewise.
2125 * config/tc-alpha.c: Likewise.
2126 * config/tc-arm.c: Likewise.
2127 * config/tc-d10v.c: Likewise.
2128 * config/tc-d30v.c: Likewise.
2129 * config/tc-h8300.c: Likewise.
2130 * config/tc-hppa.c: Likewise.
2132 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2134 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2135 reloc when no_cond_jump_promotion.
2137 2002-05-08 Jim Wilson <wilson@redhat.com>
2139 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2140 current variable part of frag.
2142 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2144 * config/tc-mmix.c: Fix formatting.
2145 * config/tc-mmix.h: Likewise.
2147 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2149 * configure: Regenerate.
2151 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2153 * config/tc-m68k.c: Fix formatting.
2155 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2157 * Makefile.am: Honour DESTDIR.
2158 * Makefile.in: Regenerate.
2160 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2162 * config/tc-ia64.c: Fix formatting.
2163 * config/tc-ia64.h: Likewise.
2165 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2167 * config/tc-mips.c: Fix formatting.
2168 * config/tc-s390.c: Likewise.
2169 * config/tc-s390.h: Likewise.
2171 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
2173 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2174 information for instructions.
2176 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2178 * as.h: Fix formatting.
2181 * dwarf2dbg.c: Likewise.
2182 * frags.h: Likewise.
2184 * macro.c: Likewise.
2186 * stabs.c: Likewise.
2187 * symbols.c: Likewise.
2189 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2191 * app.c (mri_pseudo): Only declare for TC_M68K.
2193 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2194 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2195 BFD_RELOC_16_BASEREL.
2196 (md_assemble): Likewise.
2197 (md_apply_fix3): Likewise.
2199 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2201 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2202 zero into an add of zero - it is not the same.
2204 2002-05-01 Arati Dikey <aratid@kpit.com>
2206 * tc-sh.c (get_specific): Generate warning if the same
2207 destination register is used in parallel instructions.
2209 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
2211 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2213 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2215 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2216 backwards to prevent cascading errors.
2218 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2220 * configure.in: Add support for powerpc-*-windiss.
2221 * configure: Regenerated.
2223 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2225 * config/tc-s390.c (md_parse_option): Formatting.
2227 * config/tc-i386.c: Formatting fixes, add missing space in error
2230 2002-04-24 Christian Groessler <chris@groessler.org>
2232 * config/tc-z8k.c (build_bytes): Add support for new cases:
2233 CLASS_IGNORE and ARG_NIM4.
2234 (md_assemble): Prevent destruction of input_line_pointer if
2235 get_operands returns failure.
2237 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2239 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2240 instructions to be generated by macros.
2242 2002-04-24 Andreas Schwab <schwab@suse.de>
2244 * config/tc-i386.c (output_jump, output_disp)
2245 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2247 (md_apply_fix3): Remember addend value for rela relocations.
2248 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2250 2002-04-22 Chris Demetriou <cgd@broadcom.com>
2252 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2253 from previous change.
2255 2002-04-22 Eric Christopher <echristo@redhat.com>
2257 * config/tc-mips.c (macro_build): Add warning if macro instructions
2258 are expanded into a branch delay slot.
2260 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
2262 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2263 numbers, gdb relies on them to detect the start of the prologue.
2265 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2267 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2268 symbols in merge sections.
2270 2002-04-16 Alan Modra <amodra@bigpond.net.au>
2272 * as.c (main): Don't reference _bfd_chunksize.
2274 2002-04-15 Tom Rix <trix@redhat.com>
2276 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2277 symbols in merge sections.
2279 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2281 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2282 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2283 argument for the precision.
2284 (gen_to_words): Update accordingly.
2286 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2288 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2289 BFD_VERSION_STRING unavailable.
2290 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2292 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
2294 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2295 symbol_used_in_reloc_p is true.
2297 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2300 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2302 * dep-in.sed: Cope with absolute paths.
2303 * Makefile.am (dep.sed): Subst TOPDIR.
2305 * Makefile.in: Regenerate.
2307 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2309 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2310 (mips_ip): Remove unused variable.
2311 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2312 unsigned char with bfd_byte.
2313 (s_file): Remove unused variable.
2314 (s_mips_ent): Likewise.
2316 2002-04-03 Tom Rix <trix@redhat.com>
2318 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2320 (find_opcode): Fix warning in as_warn.
2321 * config/tc-d10v.h: Update Copyright.
2323 2002-04-03 Alan Matsuoka <alanm@redhat.com>
2324 Tom Rix <trix@redhat.com>
2326 From Jeff Knaggs <jknaggs@redhat.com>
2327 * config/tc-d10v.c (check_resource_conflict): New function to
2328 check for resource conflicts.
2330 From Jason Eckhardt <jle@redhat.com>
2331 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2333 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2334 reserved control registers is used.
2335 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2338 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
2339 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2340 instruction cannot be packed.
2342 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
2343 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2344 write-write conflicts.
2345 (md_assemble): Reformat introductory comment.
2346 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2349 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2351 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2352 O_logical_not>): Derive final_seg from add_symbol.
2353 <O_multiply..O_logical_or>: More final_seg twiddles.
2355 2002-04-01 Jessica Han <jessica@cup.hp.com>
2357 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2360 2002-03-27 Andreas Schwab <schwab@suse.de>
2362 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2363 field for pc-relative fixups.
2364 (output_disp): Likewise.
2365 (md_estimate_size_before_relax): Likewise.
2366 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2367 pc-relative fixups in 64bit mode.
2369 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2371 * config/te-aix5.h: Typo fix.
2373 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2375 * Makefile.am: Run "make dep-am".
2376 * Makefile.in: Regenerate.
2377 * doc/Makefile.in: Regenerate.
2379 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
2381 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2382 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2384 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2386 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2387 the EXTENDED bit here; report the estimate according to the
2390 2002-03-18 Tom Rix <trix@redhat.com>
2392 * configure.in: Add AIX 5 support.
2393 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2394 * config/te-aix5.h: New file. AIX 5 support.
2395 * configure: Regenerate.
2397 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2399 * po/fr.po: Updated version.
2401 2002-03-16 Andreas Jaeger <aj@suse.de>
2403 * doc/c-mips.texi (Machine Dependencies): Add new node.
2405 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
2407 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2408 (mips_opts): Initialize "ase_mips3d" member.
2409 (file_ase_mips3d): New variable.
2410 (CPU_HAS_MIPS3D): New macro.
2411 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2412 based on command line options and configuration defaults.
2413 (macro_build, mips_ip): Accept MIPS-3D instructions if
2414 mips_opts.ase_mips3d is set.
2415 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2416 Add support for "-mips3d" and "-no-mips3d" options.
2417 (OPTION_ELF_BASE): Move to accomodate new options.
2418 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2419 (mips_elf_final_processing): Add a comment indicating that a
2420 MIPS-3D ASE ELF header flag should be set, when one exists.
2421 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2422 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2423 nomips3d" directives.
2425 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
2427 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2428 a weak symbol in same section to be within reach.
2430 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2432 * po/fr.po: Updated version.
2434 2002-03-12 Andreas Schwab <schwab@suse.de>
2436 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2437 body record so that an error is given for misplaced .save
2440 2002-03-09 Alan Modra <amodra@bigpond.net.au>
2442 * config/tc-i386.h (REX_OPCODE): Define.
2443 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2444 (rex_byte): typedef to int.
2445 * config/tc-i386.c: Group prototypes and vars together.
2446 Formatting fixes. Remove occurrences of "register" keyword.
2449 (mode_from_disp_size): Add INLINE keyword to prototype.
2450 (fits_in_signed_byte): Likewise.
2451 (fits_in_unsigned_byte): Likewise.
2452 (fits_in_unsigned_word): Likewise.
2453 (fits_in_signed_word): Likewise.
2454 (fits_in_unsigned_long): Likewise.
2455 (fits_in_signed_long): Likewise.
2456 (type_names): Constify.
2457 (intel_float_operand): Constify param.
2458 (add_prefix): Use REX_OPCODE.
2459 (md_assemble): Likewise. Modify for changed rex_byte.
2460 (parse_insn): Split out of md_assemble.
2461 (parse_operands): Likewise.
2462 (swap_operands): Likewise.
2463 (optimize_imm): Likewise.
2464 (optimize_disp): Likewise.
2465 (match_template): Likewise.
2466 (check_string): Likewise.
2467 (process_suffix): Likewise.
2468 (check_byte_reg): Likewise.
2469 (check_long_reg): Likewise.
2470 (check_qword_reg): Likewise.
2471 (check_word_reg): Likewise.
2472 (finalize_imm): Likewise.
2473 (process_operands): Likewise.
2474 (build_modrm_byte): Likewise.
2475 (output_insn): Likewise.
2476 (output_branch): Likewise.
2477 (output_jump): Likewise.
2478 (output_interseg_jump): Likewise.
2479 (output_disp): Likewise.
2480 (output_imm): Likewise.
2482 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2484 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2486 2002-03-06 Alan Modra <amodra@bigpond.net.au>
2488 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2489 relocs except when BFD64.
2491 * write.c (number_to_chars_bigendian): Don't abort when N is
2492 larger than sizeof (VAL).
2493 (number_to_chars_littleendian): Likewise.
2495 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2497 * config/tc-hppa.c (md_apply_fix3): Add cast.
2498 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2501 2002-03-05 Paul Koning <pkoning@equallogic.com>
2503 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2504 (parse_ac5): New function for parsing float regs in float operand.
2505 (parse_expression): Remove attempt to make literals be octal.
2506 (parse_op_no_deferred): Support float literals.
2507 (parse_op): Reject attempts to refer to float regs.
2508 (parse_fop): New function, like parse_op but for float operand.
2509 (md_assemble): Add cases to parse float operands. Also fix
2510 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2512 2002-03-04 H.J. Lu <hjl@gnu.org>
2514 * config/obj-elf.c (special_section): Add .init_array,
2515 .fini_array and .preinit_array.
2517 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2518 .init_array and .fini_array.
2520 2002-03-01 Jakub Jelinek <jakub@redhat.com>
2522 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2524 (obj_frob_symbol): Copy visibility.
2526 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2528 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2530 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2532 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2534 * po/es.po: Updated.
2536 2002-02-26 Chris Demetriou <cgd@broadcom.com>
2538 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2539 only, undo the changes made on 2001-06-08, with the
2540 effect being that common or extern symbols are
2541 adjusted for embedded-PIC, but weak symbols are not.
2542 (md_estimate_size_before_relax: Likewise, with the effect
2543 that extern symbols are treated the same as weak symbols
2544 only if not embedded-PIC.
2545 (mips_fix_adjustable) Likewise, with the effect that
2546 weak or extern symbols are not adjusted for embedded-PIC.
2547 (md_apply_fix3): Tweak so that the case where value is zero
2548 is handled more correctly for embedded-PIC code.
2550 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2552 * doc/as.texinfo (Overview): Add missing @ifset IA64
2554 * configure.in (LINGUAS): Add es.po.
2555 * configure: Regenerate.
2556 * po/es.po: New file.
2558 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2560 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2561 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2562 and NO_PIC cases. Code cleanup.
2563 (macro2): Fix handling of 64bit register loads.
2565 2002-02-25 David Mosberger <davidm@hpl.hp.com>
2567 * doc/as.texinfo: Add entry for IA64.
2568 * doc/c-ia64.texi: New file.
2570 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2572 * config/tc-hppa.c: Update copyright date.
2574 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
2575 Remove references to chip manufacturers.
2576 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2578 (md_show_usage): Remove references to chip manufacturers. Mention
2580 (md_begin): Test power4 opcode flag bits.
2582 2002-02-22 David Mosberger <davidm@hpl.hp.com>
2584 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2585 count exceeds prologue count.
2586 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2587 (unwind.label_prologue_count): New member.
2589 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2591 (get_saved_prologue_count): New function.
2592 (save_prologue_count): New function.
2593 (free_saved_prologue_count): New function.
2594 (dot_label_state): Record state label by calling save_prologue_count().
2595 (dot_copy_state): Restore prologue count by calling
2596 get_saved_prologue_count().
2597 (generate_unwind_image): Free up list of saved prologue
2598 counts by calling free_saved_prologue_counts().
2600 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
2602 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2603 function declarations.
2605 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
2607 * NEWS: Note that GASP is now deprecated.
2608 * Makefile.am: Do not build gasp-new by default.
2609 * Makefile.in: Regenerate.
2610 * doc/Makefile.am: Do not install gasp.info.
2611 * doc/Makefile.in: Regenerate.
2612 * gas/gasp.texi: Note that gasp is now deprecated.
2614 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2616 * NEWS: Mark 2.12 branch.
2618 2002-02-19 Tom Tromey <tromey@redhat.com>
2620 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2622 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2624 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2627 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2629 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2630 Make bit size independent of architecture switch.
2631 (md_begin): Add warning for -m64 with -Aesa.
2632 (s390_md_end): Use renamed architecture defines.
2634 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
2636 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2638 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2640 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2643 2002-02-15 Chris Demetriou <cgd@broadcom.com>
2645 * config/tc-mips.c (md_estimate_size_before_relax): Really
2646 make sure we treat weak like extern only for ELF. (Fixes
2647 patch from 2001-07-25.)
2649 2002-02-15 Ben Elliston <bje@redhat.com>
2651 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
2654 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2656 * NEWS: Mention support for MMIX.
2658 2002-02-13 Chris Demetriou <cgd@broadcom.com>
2660 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
2661 a sequence of indpendent 'if' statements for easier debugging
2662 and future modification.
2664 2002-02-13 Matt Fredette <fredette@netbsd.org>
2666 * config/tc-m68k.c (md_show_usage): No longer display a
2667 hard-coded "68020" for the default CPU, instead display the
2668 canonical name of the true, configured default CPU.
2669 (m68k_elf_final_processing): Mark objects for sub-68020
2670 CPUs with the new EF_M68000 flag.
2672 2002-02-13 Andreas Schwab <schwab@suse.de>
2674 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2675 pc-relative relocations to merge sections in 64-bit mode.
2677 2002-02-13 Ben Elliston <bje@redhat.com>
2679 * NEWS: Document floating point number handling in gasp.
2680 * gasp.c: Include <assert.h> and "xregex.h".
2681 (is_flonum): New function.
2682 (chew_flownum): Likewise.
2683 (change_base): Consume flonums from the input, where possible.
2684 * doc/gasp.texi (Constants): Document floating point numbers.
2686 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2688 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
2689 that implicitly use LR and RR selectors.
2691 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2693 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
2694 and `epsw' as available on AM33 and above only.
2695 (other_register_name): Add logic to handle machine type encoded in
2698 2002-02-11 Tom Rix <trix@redhat.com>
2700 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
2703 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
2705 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2708 2002-02-11 Jan Hubicka <jh@suse.cz>
2710 * i386.c (md_assemble): Support 32bit address prefix.
2711 (i386_displacement): Likewise.
2712 (i386_index_check): Accept 32bit addressing in 64bit mode.
2714 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2716 * config/tc-sh.c (dot): Removed unused function.
2718 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2720 * Makefile.am: "make dep-am".
2721 * Makefile.in: Regenerate.
2722 * aclocal.m4: Regenerate.
2723 * config.in: Regenerate.
2724 * configure: Regenerate.
2725 * doc/Makefile.in: Regenerate.
2727 2002-02-10 Richard Henderson <rth@redhat.com>
2729 * doc/c-alpha.texi: New file.
2730 * doc/Makefile.am (CPU_DOCS): Add it.
2731 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
2733 2002-02-09 Richard Henderson <rth@redhat.com>
2735 * config/tc-alpha.c (O_samegp): New.
2736 (USER_RELOC_P): Include it.
2737 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
2738 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
2739 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2740 (alpha_validate_fix): New.
2741 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
2743 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
2745 * doc/c-cris.texi: New.
2746 * doc/all.texi: @set CRIS.
2747 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
2748 Include c-cris.texi.
2749 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
2750 * doc/Makefile.in: Regenerate.
2752 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2754 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
2755 determine if a number is a sign-extended 32-bit number.
2756 (load_register): Use IS_SEXT_32BIT_NUM.
2757 (macro): Check if load/store macro handling is using a
2758 constant 32-bit address on 64-bit address systems, and if
2759 so optimize the generation of that address.
2761 2002-02-08 Richard Henderson <rth@redhat.com>
2763 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
2764 we've eliminated all foreign relocation types yet.
2765 (alpha_fix_adjustable): Likewise.
2767 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2769 Contribute sh64-elf.
2770 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2771 Stephen Clarke <Stephen.Clarke@st.com>
2772 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
2773 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
2774 * config/tc-sh.c (md_relax_table): Added default sizes for
2775 non-PC-relative UNDEF_MOVI, and relaxation sequences for
2776 MOVI_16, MOVI_32 and MOVI_48.
2777 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
2778 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
2780 (shmedia_md_estimate_size_before_relax): Remove redundant
2781 blocks. Set fragP->fr_var even if relaxation type unchanged.
2782 Retain UNDEF_MOVI until expression decays to number.
2783 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2784 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
2785 relocation types. Take fixP->fx_addnumber into account too.
2786 (shmedia_md_apply_fix): Likewise.
2787 (shmedia_md_convert_frag): Likewise.
2788 (shmedia_build_Mytes): Likewise.
2789 (sh64_consume_datalabel): Complain about nested datalabel.
2790 Support PIC relocs. Call sh_parse_name.
2791 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
2792 in tc-sh.h to SHmedia reloc types.
2793 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
2794 MOVI_GOTPC): New relaxation constants.
2795 (md_relax_table): Introduce relaxation directives for PIC-related
2797 (sh_PIC_related_p): Handle datalabel.
2798 (sh_check_fixup): Choose SH5 PIC relocations.
2799 (sh_cons_fix_new): Added BDF_RELOC_64.
2800 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
2801 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2802 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
2803 current ISA is SHmedia, get 7 bytes.
2804 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
2805 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
2807 * config/tc-sh64.c (shmedia_apply_fix): Rename to
2808 shmedia_apply_fix3 and make void.
2809 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
2810 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
2812 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2813 * config/tc-sh64.h (md_parse_name): Take &c as argument.
2814 2001-03-14 DJ Delorie <dj@redhat.com>
2815 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
2816 * doc/Makefile.in(CPU_DOCS): Ditto.
2817 * doc/c-sh64.texi: New file.
2818 * doc/as.texinfo: Add SH64 support.
2819 2001-03-13 DJ Delorie <dj@redhat.com>
2820 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
2821 A_REUSE_PREV so that its purpose is more obvious.
2822 (shmedia_build_Mytes): Ditto.
2823 2001-03-07 DJ Delorie <dj@redhat.com>
2824 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
2826 (sh64_vtable_inherit): Ditto.
2827 (strip_datalabels): New, strip "datalabel" from given line.
2828 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
2830 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
2831 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
2833 (shmedia_build_Mytes): ... to here.
2834 2001-03-06 DJ Delorie <dj@redhat.com>
2835 * config/tc-sh.c: Remove sh64-specific uaquad now that there
2837 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
2838 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
2839 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
2840 address by one in call to dwarf2_emit_insn.
2841 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
2842 Implement ".abi" pseudo and correct .cranges descriptors. Correct
2843 alignment handling broken by imported changes.
2844 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
2845 (sh64_handle_align): Declare.
2846 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
2847 (sh64_max_mem_for_rs_align_code): Declare.
2848 (enum sh64_isa_values): Moved here from tc-sh64.c.
2849 (md_do_align): Define.
2850 (sh64_do_align): Declare.
2851 (struct sh64_tc_frag_data): New.
2852 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
2854 (TC_FRAG_INIT): Change to set new datatype.
2855 (struct sh64_segment_info_type): Rename member
2856 last_flushed_location to last_contents_mark. All users changed.
2857 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
2858 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
2859 * config/tc-sh.c (md_pseudo_table): Add ".abi".
2860 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
2861 of unsetting seen_insn.
2862 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
2863 call sh64_update_contents_mark.
2864 (sh_handle_align): Remove HAVE_SH64-conditioned code.
2865 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
2866 enum sh64_isa_values.
2867 (sh64_set_contents_type): Drop segT parameter. All callers changed.
2868 (emitting_crange): Boolean guard moved to file scope from function
2869 scope in sh64_set_contents_type.
2871 (sh64_update_contents_mark): New; most split out from
2872 sh64_flush_pending_output.
2873 (shmedia_md_end): Call sh64_update_contents_mark. Set
2874 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
2875 (sh64_do_align): New function.
2876 (sh64_max_mem_for_rs_align_code): New function.
2877 (sh64_handle_align): Rename from shmedia_do_align. Make
2878 non-static. Add head comment. Emit zero bytes for n bytes modulo
2879 four. Change return-type to void.
2880 (shmedia_elf_new_section): Remove.
2881 (shmedia_md_assemble): Call sh64_update_contents_mark.
2882 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
2883 new frag. Call sh64_update_contents_mark after making the new
2885 (sh64_flush_pending_output): Just call sh64_update_contents_mark
2886 and sh_flush_pending_output.
2887 (sh64_flag_output): Also call md_flush_pending_output, but add
2888 condition on not emitting_crange.
2889 (sh64_tc_cons_fix_new): Remove.
2890 2001-01-12 Nick Clifton <nickc@redhat.com>
2891 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
2892 alignment handling scheme imported from sourceware.
2893 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
2894 * config/tc-sh64.h (TARGET_FORMAT): Define.
2895 (sh64_target_format): Prototype.
2896 * config/tc-sh64.c (sh64_target_mach): New function.
2897 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
2898 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
2899 zero_address_frag instead of copying the frag of the symbol.
2900 (shmedia_frob_file_before_adjust): Ditto.
2901 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
2902 to valueT to remove signedness.
2903 (shmedia_md_convert_frag): Add parameter final. Rename parameter
2904 headers to output_bfd. Do not evaluate symbols if final is false;
2906 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
2907 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
2908 to the current frag, call shmedia_md_convert_frag to emit fixups
2909 and make frag_wane neutralize the frag. Update comments.
2910 * config/tc-sh.c (md_convert_frag): Change caller of
2911 shmedia_md_convert_frag.
2912 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2913 * config/tc-sh64.h: Tweak comments and correct formatting.
2914 * config/tc-sh64.c: Ditto.
2915 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
2916 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
2917 for the no-relocation case.
2918 (shmedia_check_limits): Fix range check being off-by-one for PTA.
2919 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
2921 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
2923 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
2924 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
2926 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
2928 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2929 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
2930 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
2931 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
2932 al>: Set lowest bit of field to relocate to 1 and rest to empty,
2933 if reloc is emitted.
2934 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2935 New options plus bugfixes.
2936 * config/tc-sh.c (md_longopts): New options "-no-expand" and
2938 (md_parse_option): Handle new options.
2939 (md_show_usage): Add blurb for new options.
2940 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
2941 (sh64_expand, sh64_pt32): New variables.
2942 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
2943 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
2944 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
2945 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
2946 <resolved previously-pc-relative relocs>: Handle
2947 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
2948 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
2949 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
2950 points to SHcompact code.
2951 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
2952 SH64PCREL16)>: Check that ISA of what operand points at and
2953 PTA/PTB matches, or emit error.
2954 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
2955 SHMEDIA_BFD_RELOC_PT.
2956 (shmedia_immediate_op): If pcrel, emit fixup also for constant
2958 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
2959 condition for MOVI expansion.
2960 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
2961 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
2963 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
2965 (sh64_target_format): Error-check setting of sh64_pt32 and
2966 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
2967 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
2968 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
2969 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
2970 * config/tc-sh64.c: Improve comments.
2971 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
2972 not say the linker will check correctness of PTA/PTB expansion.
2973 (shmedia_md_end): Make non-static.
2974 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
2976 * config/tc-sh.c (sh_finalize): Remove.
2977 * config/tc-sh.h (md_end): Do not define.
2978 Remove prototype for sh_finalize.
2979 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2980 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
2981 sh64_section_data container when storing section type in tdata
2982 field in elf_section_data.
2983 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
2985 * Makefile.am: Update dependencies.
2986 * Makefile.in: Regenerate.
2987 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
2988 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
2989 dwarf2_emit_insn call with test on debug_type.
2990 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2991 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
2992 CRT_SH5_ISA32 sticky for 64-bit.
2993 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2994 Generate .crange sections when switching ISA mode or emitting
2995 constants in same section as code.
2996 * config/tc-sh64.c: Reformat structure definitions.
2997 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
2999 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3000 to emit a .cranges descriptor when contents type changes. Only
3001 emit error if changing contents type and -no-mix is in effect.
3002 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3003 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3004 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3005 sh64_flush_last_crange over sections.
3006 When checking main symbol of datalabel symbol, check for
3007 STO_SH5_ISA32, not ISA type of section in definition.
3008 (shmedia_frob_file_before_adjust): Check main symbol for
3009 STO_SH5_ISA32; don't check ISA type of section in definition.
3010 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3011 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3012 .cranges entries have been output.
3013 (shmedia_elf_new_section): Just call md_flush_pending_output.
3014 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3015 fix. Do not set tc_segment_info_data.in_code for section. Call
3016 sh64_set_contents_type for SHmedia code.
3017 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3018 false. Call md_flush_pending_output.
3019 (sh64_target_format): Check that -no-mix and
3020 -shcompact-const-crange are used in sane combination with other
3022 (shmedia_md_pcrel_from_section): Check type of fix for how to
3024 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3025 not ISA type of section in definition.
3026 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3027 hold contents-type state.
3028 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3029 (sh64_flush_pending_output): Declare.
3030 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3031 (sh64_tc_cons_fix_new): Declare.
3032 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3033 call sh64_flag_output.
3034 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3035 call sh64_set_contents_type to mark SHcompact code and set
3037 (md_longopts): New options "-no-mix" and
3038 "-shcompact-const-crange".
3039 (md_parse_option): Handle new options.
3040 (md_show_usage): Add blurb for new options.
3041 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3042 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3043 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3044 (sh64_last_insn_frag): New.
3045 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3046 to get frag for insn opcode for generating fixups; do not assume it
3048 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3050 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3052 (TC_FRAG_TYPE): Define as fragS *.
3053 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3054 (sh64_last_insn_frag): Declare.
3055 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3056 not == NULL before dereferencing.
3057 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3058 Get rid of BFD section flag and EF_SH64_ABI64.
3059 * config/tc-sh64.c (shmedia_frob_section_type): Use
3060 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3061 communicate the section as containing SHmedia code. Describe why.
3062 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3063 EF_SH64 regardless of ABI.
3064 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3065 in error message. Handle resolved expressions for
3066 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3067 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3068 (shmedia_check_limits): Handle BFD_RELOC_64.
3069 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3070 a STO_SH5_ISA32 symbol, only the BFD value.
3071 2000-12-11 Ben Elliston <bje@redhat.com>
3072 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3073 dwarf2_generate_asm_lineno.
3074 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3075 Handle PC-relative MOVI expansions with assembler relaxation.
3076 Generate PC-relative relocs from 16-bit PC-relative expressions.
3077 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3078 (shmedia_md_pcrel_from_section): ...here.
3079 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3080 turned completely resolved. Adjust relocation type for 16-bit
3081 immediate operands that has turned PC-relative. Adjust back for
3082 MD_PCREL_FROM_SECTION being applied twice.
3083 (shmedia_md_convert_frag): Always emit reloc for expression with
3084 global or weak symbol. Handle relaxation result for PC-relative
3086 (shmedia_md_estimate_size_before_relax): An expression with a weak
3087 or global symbol can not be relaxed. Break out tests for
3088 relaxable symbol into variable sym_relaxable.
3089 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3090 UNDEF_MOVI)>: Break out any PC-relative expression and change
3092 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3094 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3095 MOVI expansion. If X_op_symbol of the immediate expression is
3096 set, make an expression symbol for the argument to frag_var.
3097 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3099 (END): Adjust for new relaxations.
3100 (md_relax_table): Add entries for new relaxations.
3101 2000-12-07 Ben Elliston <bje@redhat.com>
3102 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3103 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3104 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3105 SHORI operand offsets in PT/PTA/PTB expansions.
3106 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3107 Implement DataLabel semantics.
3108 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3109 shmedia_frob_file_before_adjust.
3110 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3111 (DATALABEL_SUFFIX): Define.
3112 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3113 symbol list to update "datalabel" symbols to their main symbol
3115 (shmedia_frob_file_before_adjust): New.
3116 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3117 undefined and set STT_DATALABEL.
3118 (sh64_frob_label): Initialize TC symbol field.
3119 (sh64_consume_datalabel): Actually implement semantics. New
3120 parameter operandf, call it instead of expression.
3121 (sh64_exclude_symbol): New.
3122 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3123 to sh64_consume_datalabel.
3124 (tc_symbol_new_hook): Define to tc_frob_symbol.
3125 (TC_SYMFIELD_TYPE): Define to symbolS *.
3126 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3127 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3128 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3130 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3131 generating dwarf2 debug information.
3132 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3133 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3134 elf64-sh64 for the 64-bit ABI.
3135 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3137 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3138 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3140 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3141 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3142 (enum sh64_abi_values): New type.
3143 (enum sh64_isa_values): New type.
3144 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3145 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3146 (sh64_abi): Replace shmedia_64.
3147 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3148 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3149 (s_sh64_mode): Check validity for this target.
3150 (sh64_target_format): Initialize defaults for ISA and ABI.
3151 Fallback to old object format if no SH64 ISA or ABI has been
3153 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3154 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3155 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3156 * config/tc-sh64.h: Fix typo in comment.
3157 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3158 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3159 <PT fixups for absolute values>: Size will be longest, not
3161 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3162 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3163 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3164 and l1 to hold lowercase of two first characters. Change all
3165 remaining TO_LOWER to tolower.
3166 * config/tc-sh64.c (TO_LOWER): Delete.
3167 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3168 (md_parse_name): Define.
3169 (sh64_consume_datalabel): Declare.
3170 (DOLLAR_DOT): Define.
3171 * config/tc-sh64.c (shmedia_parse_exp): New.
3172 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3173 (shmedia_parse_reg): Remove const from src
3175 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3176 (shmedia_md_assemble): Ditto for op_end variable.
3177 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3178 Use shmedia_parse_exp, not parse_exp.
3179 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3180 parameter. All callers changed.
3181 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3183 (shmedia_parse_reg): Put first two character in local variables.
3184 Use tolower, not TO_LOWER. If no register is found and argtype
3185 indicates a control register, scan shmedia_creg_table
3187 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3188 * Makefile.am (CPU_TYPES): Add sh64.
3189 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3190 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3191 Regenerate dependencies.
3192 * Makefile.in: Regenerate.
3193 * configure.in: Add support for sh64-*-elf*.
3194 * configure: Regenerate.
3195 * config/tc-sh64.h: New.
3196 * config/tc-sh64.c: New.
3197 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3198 .mode, .isa and .uaquad.
3199 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3200 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3201 [HAVE_SH64] (END): Define as 10.
3202 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3203 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3205 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3206 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3207 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3208 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3210 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3211 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3212 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3213 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3214 SHmedia instructions. Handle state-change after switching to
3216 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3217 (md_parse_option) [HAVE_SH64]: Parse new options.
3218 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3219 (md_convert_frag) [HAVE_SH64] <default>: Call
3220 shmedia_md_convert_frag instead of abort.
3221 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3222 BFD_RELOC_SH_SHMEDIA_CODE.
3223 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3224 SHcompact or SHmedia code.
3225 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3226 shmedia_md_apply_fix instead of abort.
3227 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3228 result from calling shmedia_md_estimate_size_before_relax instead
3230 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3232 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3233 shmedia_init_reloc and do nothing more if it returns non-zero.
3234 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3235 * po/POTFILES.in: Regenerate.
3236 * po/gas.pot: Regenerate.
3238 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3240 * config/tc-sh.c (parse_at): Install the correct version of
3243 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3244 assume fixP->fx_subsy is non-NULL.
3246 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3248 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3249 A_DISP_PC_ABS, and adjust it by -4.
3250 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3252 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3253 the operand type is not A_DISP_PC_ABS.
3255 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3257 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3258 common and weak symbols. Handle common and weak symbols as
3259 undefined symbols with regards to GREG handling and merging.
3260 (mmix_frob_file): Ditto.
3262 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3264 * configure.in (hppa-*-netbsd*): New target.
3265 * configure: Regenerate.
3266 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3268 2002-02-02 Alan Modra <amodra@bigpond.net.au>
3270 * config/tc-v850.c: Add missing prototypes amd use old-style
3271 function definitions.
3272 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3273 (sdata_section tdata_section, zdata_section, sbss_section,
3274 tbss_section, zbss_section, rosdata_section, rozdata_section,
3275 scommon_section, tcommon_section, zcommon_section,
3276 call_table_data_section, call_table_text_section): Delete.
3277 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3278 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3279 v850_call_table_data, v850_call_table_text): Delete.
3280 (struct v850_seg_entry): New.
3281 (v850_seg_table): New.
3282 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3283 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3284 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3285 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3288 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3289 recording of alignment.
3290 (md_pseudo_table): Use v850_seg.
3291 (md_begin): Don't init .call_table_data and .call_table_text here.
3292 Set v850_seg_table bss entry.
3294 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3296 Support on-demand global register allocation by passing on
3297 base-plus-offset relocs to the linker.
3298 * config/tc-mmix.c: Tweak and fix typos in comments.
3299 (allocate_undefined_gregs_in_linker): New variable.
3300 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3301 (md_longopts): Add --linker-allocated-gregs.
3302 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3303 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3304 (md_show_usage): Update text for -x. Add text for
3305 --linker-allocated-gregs.
3306 (tc_gen_reloc): Derive default value for addend from val and
3307 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
3308 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3309 GREG if allocate_undefined_gregs_in_linker.
3310 * doc/as.texinfo (Overview) <Target MMIX options>: Add
3311 --linker-allocated-gregs.
3312 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3313 --linker-allocated-gregs. Mention that it's implied by -x.
3314 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3315 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3317 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3319 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3321 * Makefile.am: Run "make dep-am"
3322 * Makefile.in: Regenerate.
3324 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3326 * config/tc-or32.c: New file.
3327 * config/tc-or32.h: New file.
3328 * configure.in: Add support for or32 targets.
3329 * configure: Regenerate.
3330 * config/obj-coff.c: Add support for or32 targets.
3331 * config/obj-coff.h: Add support for or32 targets.
3332 * Makefile.am: Add support for or32 targets.
3333 * Makefile.in: Regenerate.
3334 * NEWS: Mention support for OpenRISC.
3335 * doc/Makefile.in: Regenerate.
3336 * po/POTFILES.in: Regenerate.
3337 * po/gas.pot: Regenerate.
3339 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
3341 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3344 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3346 * config/tc-mips.c (tc_gen_reloc): Arrange for
3347 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3348 their LO16 parts, even for ELF.
3350 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
3352 * config/tc-i386.c: Protect definitions of true and false
3355 2002-01-28 Jakub Jelinek <jakub@redhat.com>
3357 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3358 made because of .weak, if they are neither defined nor used in any
3361 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3363 * configure: Regenerated.
3365 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3367 * doc/Makefile.am (install): Depend on install-info.
3368 * doc/Makefile.in: Regenerate.
3370 2002-01-26 Nick Clifton <nick@redhat.com>
3372 * po/fr.po: Updated version
3374 2002-01-24 Kazu Hirata <kazu@hxi.com>
3376 * config/tc-h8300.c (check_operand): Don't print a warning
3377 when a valid 24-bit address is given to a 16-bit address
3380 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3382 * config/tc-sh.c (sh_elf_suffix): Removed.
3383 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3384 sh_end_of_match, sh_parse_name): New functions.
3385 (sh_elf_cons): Simplify.
3386 (parse_exp): Reject misplaced PIC operands.
3387 (md_undefined_symbol): Simplify.
3388 (sh_fix_adjustable): Let @GOTOFF be adjusted.
3389 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3390 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3391 Complain if subsy remains at the end.
3392 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3393 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3395 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3397 * config/tc-mn10300.c (xr_registers): Move `pc'...
3398 (other_registers): ... here.
3400 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3402 * Makefile.am: Run "make dep-am".
3403 * Makefile.in: Regenerate.
3404 * gas/po/POTFILES.in: Regenerate.
3406 2002-01-21 DJ Delorie <dj@redhat.com>
3408 * config/obj-coff.c (obj_coff_init_stab_section): Make the
3409 stabstr_name allocation permanent, as it will be referenced from
3412 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3414 * configure.in (ia64-*-netbsd*): New target.
3415 * configure: Regenerate.
3417 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3419 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3421 <Detailed description, ARM options>: Ditto.
3422 * doc/c-arm.texi (ARM Options): Ditto.
3424 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3426 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3427 do_mia, do_mar and do_mra respectively.
3428 (do_mav_*): Renamed from do_c_*.
3429 (mav_reg_required_here, mav_parse_offset): Renamed from
3430 cirrus_reg_required_here and cirrus_parse_offset respectively.
3431 (MAV_MODE?): Renamed from CIRRUS_MODE?.
3433 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3434 Keith Walker <keith.walker@arm.com>
3436 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3437 (insns): Add pattern for bxj instruction.
3438 (do_bxj): New function.
3439 (arm_cpus): Add arm926ej.
3440 (arm_archs): Add armv5tej.
3442 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3444 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3446 2002-01-19 Keith Walker <keith.walker@arm.com>
3448 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3450 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3452 * NEWS: Mention new ARM command-line options and VFP support.
3454 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
3456 (ARM_CEXT_MAVERICK): Similarly.
3457 (ARM_ANY): Now means any core instruction.
3458 (CPU_DEFAULT): Default to ARM_ANY.
3459 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3460 (pic_code): Declare for all object types. Make type int.
3461 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3462 (march_fpu_opt, mfpu_opt): Declare.
3463 (md_longopts): Tidy up conditional definitions.
3464 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3465 (arm_long_opts): New tables.
3466 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3467 (arm_parse_extension): New function.
3468 (md_parse_option): Rewrite using new table-driven system.
3469 (md_show_usage): Use new table-driven system.
3470 (md_begin): Calculate cpu_variant from command line option data.
3471 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3472 command-line options.
3473 * doc/c-arm.texi: Likewise.
3475 2002-01-18 Andreas Jaeger <aj@suse.de>
3477 * as.c (parse_args): Update year.
3479 2002-01-17 Timothy Wall <twall@alum.mit.edu>
3481 * config/tc-tic54x.c (encode_address): Add a more informative
3482 warning about incorrect syntax.
3484 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3486 * po/gas.pot: Regenerate.
3488 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3490 * macro.c (get_any_string): Add no-c-format comment to prevent
3491 confusion when translating string.
3492 * gasp.c (get_any_string): Add no-c-format comment to prevent
3493 confusion when translating string.
3495 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3496 Johannes Stezenbach <js@convergence.de>
3497 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3498 matched before the shorter ones.
3499 (my_getSmallParser): Fix handling of nested parentheses in
3500 percent_op's. Code cleanup.
3501 (my_getPercentOp): New function, code from my_getSmallParser.
3502 (my_getSmallExpression): Fix handling of closing parentheses.
3503 Code cleanup. Better comments.
3505 2002-01-16 Nick Clifton <nickc@redhat.com>
3507 po/tr.po: New file: Turkish translation.
3508 configure.in (LINGUAS): Add "tr".
3509 configure: Regenerate.
3511 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3513 Support for VFP instructions
3514 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3515 (cp_address_required_here): New argument wb_ok. When false, do not
3516 accept write-back forms of addressing. Change all callers.
3517 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3518 (FPU_VFP_EXT_V2): Define.
3519 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3520 Define in terms of above.
3521 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3522 (vfp_reg): New struct.
3523 (vfp_regs): New array of registers.
3524 (insns): Add VFP instructions.
3525 (sn_table): New array of VFP single-precision register names.
3526 (dn_table): New array of VFP double-precision register names.
3527 (all_reg_maps): Add the new register tables.
3528 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
3529 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3530 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3531 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3532 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3533 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3534 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3535 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3536 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3537 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3538 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3539 (do_vfp_sp_dp_cvt): New functions.
3540 (md_begin): Set soft-float flag for appropriate VFP work.
3541 (md_atof): Handle VFP-format doubles.
3542 (md_parse_option): Handle VFP command-line options.
3543 (md_show_usage): Display VFP command-line options.
3545 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3547 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3548 various command line options.
3550 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3552 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3554 (xstormy16_md_apply_fix3): Do not return a value.
3556 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3558 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3559 the -EL/-EB option that matches the target's endianness.
3560 (md_parse_option): Likewise.
3562 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3564 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3565 is not dependent on ARM_BI_ENDIAN.
3567 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3569 * tc-arm.c (all error messages): Normalize capitalization of messages.
3571 * tc-arm.h (md_operand): Delete define.
3572 * tc-arm.c (in_my_get_expression): New static variable.
3573 (my_get_expression): Set and clear it.
3574 (md_operand): New function. If called from my_get_expression
3575 put the error in inst.error.
3576 (output_inst): Now takes argument of instruction being assembled.
3577 Print it out with any error message.
3578 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3580 (end_of_line): Don't update inst.error if it is already set.
3582 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3584 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
3585 op that can be translated into a mvn instruction.
3587 2002-01-11 Steve Ellcey <sje@cup.hp.com>
3589 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3590 setting default md.flags.
3591 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3592 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3593 * gas/config/tc-ia64.c (setup_unwind_header): Add support
3594 for 32 bit unwind info blocks.
3595 (generate_unwind_image): Add support for different types
3596 of unwind images (32 bits and/or big-endian).
3597 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3598 (ia64_target_format): Add support for hpux target formats.
3599 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3600 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3601 SHT_FINI_ARRAY elf section types.
3603 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
3605 * tc-arm.c (struct reg_entry): Move before prototypes.
3606 (int_register, cp_register, fp_register): Delete.
3607 (reg_table): Delete. Replaced with ...
3608 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3609 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3610 (mav_dspsc_table): ... one table per register set.
3611 (arm_reg_hsh): Delete.
3612 (struct reg_map): New structure.
3613 (all_reg_maps): New array.
3614 (enum arm_reg_type): New enums.
3615 (build_reg_hsh): New function.
3616 (insert_reg_alias): Use hash table passed by caller. Adjust all
3618 (create_register_alias): New function, split out from ...
3619 (md_assemble): ... here.
3620 (md_begin): Build new register hash tables.
3621 (arm_reg_parse): New argument for the hash table to search. Adjust all
3623 (arm_reg_parse_any): New function.
3624 (co_proc_number): Look up the processor number in the processor hash
3626 (cirrus_regtype): Delete.
3627 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3628 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3629 (ARM_EXT_MAVERICKsc_register): Delete.
3630 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3631 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3633 (do_c_triple_4, do_c_triple_5): Delete.
3634 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3635 (do_c_quad_6): Delete.
3636 (do_c_quad_6[ab]): New functions.
3637 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3638 arguments to use new register parsing methods.
3639 (cirrus_reg_required_here): Likewise.
3640 (insns): Reclassify cirrus maverick worker functions.
3641 (cirrus_valid_reg): Delete.
3643 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3645 * configure.in (sh*le): Set cpu_type=sh and endian=little.
3646 (sh*-*-netbsdelf*): New target.
3647 * configure: Regenerate.
3648 * tc-sh.h: Update copyright years.
3649 (TARGET_FORMAT): Add version for TE_NetBSD.
3651 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3653 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
3656 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3658 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
3659 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
3661 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
3663 * tc-mips.c (mips_cprestore_valid): New flag.
3664 (mips_frame_reg_valid): New flag.
3665 (macro) [M_JAL_2]: Check both flags.
3666 [M_JAL_A]: Likewise.
3667 (s_cprestore): Set mips_cprestore_valid.
3668 (tc_get_register): If setting mips_frame_reg, set
3669 mips_frame_reg_valid and clear mips_cprestore_valid.
3670 (s_mips_ent): Clear both flags.
3671 (s_mips_end): Clear both flags.
3673 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3675 * write.c (write_object_file): Make use of bfd_section_list_remove.
3676 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
3677 * config/tc-mmix.c (mmix_frob_file): Likewise.
3679 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3681 * configure.in (i386-*-netbsdelf*): Collapse target into...
3682 (i386-*-netbsd*): ...this. Add support for x86-64.
3683 * configure: Regenerated.
3685 2002-01-03 matthew green <mrg@redhat.com>
3687 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3689 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3691 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
3694 For older changes see ChangeLog-0001
3700 version-control: never