1 2002-11-29 Nick Clifton <nickc@redhat.com>
3 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
4 assume a value of zero.
7 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
12 2002-11-29 Jakub Jelinek <jakub@redhat.com>
14 * config/tc-ia64.c (md_apply_fix3): Add default case.
16 2002-11-28 Jakub Jelinek <jakub@redhat.com>
18 * symbols.c (S_SET_THREAD_LOCAL): New function.
19 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
20 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
22 * config/tc-ia64.c (md_apply_fix3): Likewise.
23 * config/tc-alpha.c (md_apply_fix3): Likewise.
25 2002-11-28 Jakub Jelinek <jakub@redhat.com>
27 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
30 2002-11-26 DJ Delorie <dj@redhat.com.
32 * dwarf2dbg.c (scale_addr_delta): New.
33 (size_inc_line_addr): Use it.
34 (emit_inc_line_addr): Use it.
36 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
38 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
39 (md_assemble): Don't pass on branches to constants as relaxable.
42 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
44 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
46 2002-11-21 Randolph Chung <randolph@tausq.org>
48 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
49 only if they have default visibility.
51 2002-11-21 Richard Henderson <rth@redhat.com>
53 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
56 2002-11-21 Alan Modra <amodra@bigpond.net.au>
58 * config/tc-mcore.c (mcore_pool_count): New function.
59 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
61 2002-11-20 Klee Dienes <kdienes@apple.com>
63 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
64 coalesce the name fields to use the same pointer.
66 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
67 the name fields to use the same pointer.
68 (get_specific): Check for opcodes with the same name using strcmp
69 as well as comparing the pointer.
71 2002-11-20 Alan Modra <amodra@bigpond.net.au>
73 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
76 2002-11-19 Richard Henderson <rth@redhat.com>
78 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
79 visibility portion of st_other.
81 2002-11-19 Klee Dienes <kdienes@apple.com>
83 * config/tc-h8300.c (struct h8_instruction): New type, used to
84 wrap h8_opcodes with length, noperands, idx, and size fields
85 (computed at run-time).
86 (h8_instructions): New variable.
87 (md_begin): Allocate the storage for h8_instructions. Fill
88 h8_instructions with pointers to the appropriate opcode and the
89 correct value for the additional fields.
90 (clever_message): Update to use h8_instructions instead of
93 (get_specific): Ditto.
96 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
98 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
99 adjustments to symbols in merge sections.
101 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
103 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
105 2002-11-18 Kevin Buettner <kevinb@redhat.com>
107 * dwarf2dbg.h (dwarf2_format): New enum.
108 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
109 (out_debug_line, out_debug_info): Add code for handling 64-bit
111 * config/tc-mips.h (mips_dwarf2_format): Declare.
112 * config/tc-mips.c (mips_dwarf2_format): New function.
113 * doc/internals.texi (DWARF2_FORMAT): Document.
115 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
117 * config/tc-mips.c (s_change_section): Make sure input buffer
118 is not accessed past the end. Don't hand
119 obj_elf_change_section a pointer into the input buffer.
121 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
123 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
126 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
128 * config/tc-tic4x.c: Fixed proper commandline
129 parameters. Added support for new opcode-list format. General
130 error message fixups.
131 (c4x_inst_add): Reject insn not for our CPU
132 (md_begin): Added matrix for setting the proper opcode-level &
133 device-flags according to cpu type and revision. Rewrite the
135 (c4x_operand_parse): Fix opcode bug
136 (c4x_operands_match): New function argument. Added dry-run
137 mechanism, that is optional error generation. Added constraint 'i'
139 (c4x_insn_check): Added new function for post-verification of the
141 (md_assemble): Check all opcodes before croaking because of an
142 argument mismatch. Need this to be able to fully support
143 ortogonally arguments.
144 (md_parse_options): Revised commandprompt swicthes and added new
146 (md_show_usage): Complete rewrite of printout.
148 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
150 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
151 (c4x_operands_match): Added check for 8-bits LDF insn. Give
152 warning when using constant direct bigger than 2^16. Add the new
155 2002-11-11 Christopher Faylor <cgf@redhat.com>
157 * configure.in: Use .gdbinit under Cygwin.
158 * configure: Regenerate.
160 2002-11-11 Christopher Faylor <cgf@redhat.com>
162 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
165 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
167 * config/tc-tic4x.c: Declare as many functions as possible as
168 static. Maintenance on the general indenting. Removed unnecessary
169 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
170 function. Add support for new DSP, TMS320VC33. Fix bug for
171 converting flonum constants.
172 (c4x_do_align): Add proper align handling. Setup align to insert
174 (c4x_gen_to_words): Support for extended TI type floats.
175 (md_atof): Proper dumping of multiple-word littlenums.
176 (c4x_atof): Added support for extended TI type floats.
177 (c4x_stringer): Added new function to handle compact strings.
178 (c4x_emit_char): Added new function argument to handle custom
179 length inserts, like single-byte strings.
180 * config/tc-tic4x.h: Add proper align handling with NOP's.
181 * Makefile.am: Added tic4x dependecy
182 * Makefile.in: Regenerate
184 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
186 * macro.c (get_any_string): Correct logic for not going beyond end
189 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
191 * config/tc-mmix.c (get_putget_operands): Mark both possible
192 operands as invalid at beginning.
194 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
195 Initialize target of fixup to zero.
197 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
199 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
200 NEWABI, but we should still emit HI16_S for non-PIC n32.
202 2002-11-06 Richard Henderson <rth@redhat.com>
204 * config/tc-alpha.c (alpha_validate_fix): Move code ...
205 (alpha_fix_adjustable): ... here.
206 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
208 2002-11-07 Eric Kohl <ekohl@rz-online.de>
210 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
213 2002-11-05 H.J. Lu <hjl@gnu.org>
215 * config/tc-mips.c (support_64bit_objects): Check *l before it
218 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
220 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
221 SEC_LOAD flags for sections marked as 's'.
223 2002-11-01 Alan Modra <amodra@bigpond.net.au>
225 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
226 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
227 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
230 * dep-in.sed: Fix typo.
232 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
234 * configure.in: Update ARM CPU patterns.
235 * configure: Regenerated.
237 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
239 * itbl-lex.l: Use #include <> for generated headers.
240 * itbl-ops.c: Likewise.
242 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
244 * doc/gasp.texi: Fix typo in deprecation note.
246 2002-10-23 Nick Clifton <nickc@redhat.com>
248 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
249 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
251 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
253 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
254 (tc_frob_file_before_adjust): Don't define.
255 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
257 (mmix_frob_file_before_adjust): Remove ineffective function.
259 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
261 * config/tc-cris.c (SIMPLE_EXPR): New macro.
262 (cris_relax_frag): New function.
263 (md_estimate_size_before_relax) <case ENCODE_RELAX
264 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
265 expressions that will become absolute expressions to relaxation.
266 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
267 STATE_WORD)>: Expect only absolute expressions. Use the symbol
268 value, not distance to symbol.
269 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
270 Ditto. Correct placement of fixup.
271 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
273 * config/tc-cris.h (cris_relax_frag): Declare.
274 (md_relax_frag): Define.
276 2002-10-22 Alan Modra <amodra@bigpond.net.au>
278 * config/obj-elf.c (special_sections): Use correct types for init
280 (obj_elf_change_section): Don't mess with init array section type.
282 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
284 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
285 for relocs against symbols in a merged section.
287 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
289 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
290 table as register names.
292 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
294 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
297 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
299 * expr.c (operand): Add support for n.nn flonums.
301 2002-10-17 Johannes Stezenbach <js@convergence.de>
303 * itbl-parse.y (entry): Provide empty action.
305 2002-10-16 Alan Modra <amodra@bigpond.net.au>
307 * configure.in (BFDVER_H): Set and subst.
308 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
309 * Makefile.am: Run "make dep-am".
311 * configure: Regenerate.
312 * Makefile.in: Regenerate.
313 * doc/Makefile.in: Regenerate.
315 2002-10-15 Alan Modra <amodra@bigpond.net.au>
317 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
318 (MD_APPLY_SYM_VALUE): Define for PE too.
320 2002-10-14 Alan Modra <amodra@bigpond.net.au>
322 * Makefile.am: Run "make dep-am".
323 (CPU_OBJ_VALID): sh64 coff is invalid.
324 * as.c: #include "bfdver.h".
325 * Makefile.in: Regenerate.
326 * config.in: Regenerate.
328 2002-10-14 Momchil Velikov <velco@fadata.bg>
330 * config/tc-v850.c (CHECK_): Remove token pasting operator.
332 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
334 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
335 * configure: Regenerate.
337 2002-10-13 Eric Christopher <echristo@redhat.com>
338 Alexandre Oliva <aoliva@redhat.com>
340 * config/tc-mips.c (s_gpdword): New function.
341 (mips_pseudo_table): Add .gpdword.
342 (mips_need_elf_addend_fixup): never for NEWABI.
343 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
345 (s_cpadd): Generate .cpadd on NEWABI.
347 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
349 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
351 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
353 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
354 (md_relax_frag): Adjust macro.
355 * config/tc-mips.c (mips_relax_branch): New variable.
356 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
357 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
358 (RELAX_MIPS16_P): Adjust.
359 (append_insn): Emit branch to non-constant in a frag_var if
360 branch-relaxation is desirable and possible.
361 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
362 (OPTION_ELF_BASE): Adjust.
363 (md_parse_option): Handle new options.
364 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
366 (relaxed_branch_length): New function.
367 (md_estimate_size_before_relax): Handle branch frags.
368 (mips_relax_frag): Likewise.
369 (md_convert_frag): Handle branch frags. Warn if branch is
372 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
374 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
376 (md_apply_fix3): Add TLS relocs.
377 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
380 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
381 Alan Modra <amodra@bigpond.net.au>
383 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
384 (md_estimate_size_before_relax): Likewise for 8 bit branches.
386 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
388 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
391 2002-10-09 Richard Shann <richard.shann@superh.com>
392 Stephen Clarke <stephen.clarke@superh.com>
394 * config/tc-sh64.c (sh64_target_format): Add support for sh64
397 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
399 * contig/tc-sh.c (sh_local_pcrel): New.
400 (sh_force_relocation): Use sh_local_pcrel.
401 (md_pcrel_from_section): Check the relocation type whether it
402 should be resolved locally. Use S_FORCE_RELOC.
404 2002-10-01 Alan Modra <amodra@bigpond.net.au>
406 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
407 (TC_FORCE_RELOCATION): Tidy arg.
409 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
410 Ken Raeburn <raeburn@cygnus.com>
411 Aldy Hernandez <aldyh@redhat.com>
412 DJ Delorie <dj@redhat.com>
413 Michael Meissner <meissner@redhat.com>
414 Eric Christopher <echristo@redhat.com>
415 Richard Sandiford <rsandifo@redhat.com>
417 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
418 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
419 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
420 (hilo_interlocks): True for CPU_VR5500.
421 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
422 (mips_fix_vr4122_bugs): New.
423 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
424 (mips_emit_delays): Likewise.
425 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
426 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
427 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
428 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
429 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
430 (OPTION_ELF_BASE): Bump.
431 (md_parse_option): Handle the new options.
432 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
435 2002-09-29 H.J. Lu <hjl@gnu.org>
437 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
438 twice if howto->pcrel_offset is true.
440 2002-09-28 Matt Thomas <matt@3am-software.com>
441 Jason Thorpe <thorpej@wasabisystems.com>
443 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
444 convert undefined references to GOT32/PLT32 if PIC code is
445 requested. Fix comment.
447 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
449 * config/tc-sh.c (sh_force_relocation): Return 0 for
450 some PC relative relocations when not relaxing.
452 2002-09-26 Jakub Jelinek <jakub@redhat.com>
454 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
455 Define them if not BFD_ASSEMBLER.
456 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
458 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
459 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
460 (tc_gen_reloc): Handle x86-64 TLS relocs.
462 2002-09-27 Alan Modra <amodra@bigpond.net.au>
464 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
465 fixups to current or absolute section.
467 2002-09-26 Jim Wilson <wilson@redhat.com>
469 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
472 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
474 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
475 capable configuration.
476 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
480 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
482 * config/tc-mips.c (append_insn): Fix jump overflow check.
484 2002-09-24 Alan Modra <amodra@bigpond.net.au>
486 * config/tc-i386.c (process_operands): Warn about "lea" segment
489 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
491 * write.c: Delete set_segment_vma and prototype. Update all callers.
493 2002-09-21 Alan Modra <amodra@bigpond.net.au>
495 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
496 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
497 Rename "fseg" to "sym_seg".
498 * Makefile.am: Run "make dep-am".
499 * Makefile.in: Regenerate.
500 * doc/Makefile.in: Regenerate.
502 2002-09-20 Nick Clifton <nickc@redhat.com>
504 * symbols.c (colon): Do not allow symbols to be created in the
505 absolute section if WORKING_DOT_WORD is not defined and
506 new_broken_words would require a new frag to be created.
508 2002-09-20 Alan Modra <amodra@bigpond.net.au>
510 * expr.c (expr): Simplify foo-foo here.
511 (clean_up_expression): Remove O_subtract code.
513 * write.h (struct fix): Add fx_dot_value.
514 (dot_value): Declare.
515 * write.c (dot_value): New var.
516 (fix_new_internal): Save dot_value as fx_dot_value.
517 (fixup_segment): Adjust fx_offset using fx_dot_value.
518 * expr.c (expr): Update dot_value.
520 2002-09-19 Jakub Jelinek <jakub@redhat.com>
522 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
523 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
524 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
526 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
527 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
528 BFD_RELOC_386_TLS_GOTIE.
530 2002-09-19 Richard Henderson <rth@redhat.com>
532 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
534 (alpha_force_relocation): Don't special-case branch type relocs.
536 2002-09-19 Nick Clifton <nickc@redhat.com>
538 * config/tc-m68k.c (select_control_regs): Handle situation where
539 architecture has not yet been selected.
541 2002-09-18 Chris Demetriou <cgd@broadcom.com>
543 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
544 (IS_SEXT_16BIT_NUM): New macro.
545 (macro_build_ldst_constoffset): New function, to build a set of
546 instructions to do a load or store from a constant offset relative
548 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
549 .cprestore pseudo-op.
551 2002-09-18 Chris Demetriou <cgd@broadcom.com>
553 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
555 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
557 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
559 2002-09-17 Stan Cox <scox@redhat.com>
561 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
562 (macro): Likewise for la. Likewise for ld.
563 (mips_after_parse_args): Make -xgot optional, not the default.
564 (md_apply_fix3): Allow composite relocation to set up gp.
565 (tc_gen_reloc): Allow relaxing for newabi.
566 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
567 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
569 2002-09-17 Nick Clifton <nickc@redhat.com>
571 * config/tc-arm.c (md_apply_fix3): Note that an implemented
572 BFD_RELOC_ARM_IMMEDIATE has been done.
573 (tc_gen_reloc): Do not issue reloc number of unimplemented
574 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
575 their name is already in the error message - plus remove them
576 from the default case.
578 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
579 behavior of instructions.
581 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
583 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
584 Convert functions to K&R format.
586 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
588 * config/tc-mips.c (pdr_seg): Define only for ELF.
589 (s_change_section): Remove unused variable. Don't use for nonELF.
591 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
593 * config/obj-elf.c (obj_elf_change_section): Move prototype to
595 * config/obj-elf.h (obj_elf_change_section): Likewise.
597 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
599 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
600 (out_debug_info): Likewise.
602 2002-09-16 Bruno Haible <bruno@clisp.org>
604 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
605 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
606 * config/tc-i386.c (i386_target_format): Likewise.
607 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
608 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
610 2002-09-13 Nick Clifton <nickc@redhat.com>
612 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
613 when deciding if any operands have been skipped.
615 2002-09-11 Nick Clifton <nickc@redhat.com>
617 * NEWS: New TI port supports both C4x and C3x series of DSPs.
619 * po/tr.po: Updated Turkish translation.
621 2002-09-11 Jakub Jelinek <jakub@redhat.com>
623 * config/tc-i386.c (md_apply_fix3): Allow addend for
624 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
625 BFD_RELOC_386_TLS_LE_32.
627 2002-09-05 Jeff Law <law@redhat.com>
629 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
630 marker relocations such as ENTRY/EXIT.
631 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
632 to both OBJ_ELF and OBJ_SOM.
634 2002-09-05 Alan Modra <amodra@bigpond.net.au>
636 * doc/internals.texi (md_apply_fix3): Expand.
637 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
638 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
639 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
640 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
641 EXTERN_FORCE_RELOC): Document.
642 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
643 * as.h: Don't include struc-symbol.h for arc.
645 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
646 subtract absolute symbol.
647 * obj.h (struct format_ops): Add frob_file_before_fix.
648 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
649 * symbols.c (S_FORCE_RELOC): New function.
650 * symbols.h (S_FORCE_RELOC): Declare.
651 * write.c (TC_FORCE_RELOCATION): Change default.
652 (TC_FORCE_RELOCATION_ABS): Define.
653 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
654 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
655 (TC_FORCE_RELOCATION_SECTION): Don't define.
656 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
657 (TC_FORCE_RELOCATION_SUB_ABS): Define.
658 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
659 (TC_VALIDATE_FIX_SUB): Define.
660 (TC_FIX_ADJUSTABLE): Don't define.
661 (MD_APPLY_SYM_VALUE): Define this instead.
662 (abs_section_sym): New variable.
663 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
664 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
665 Don't put the absolute section sym on fixups here.
666 (fix_segment): New function.
667 (write_relocs): Don't call fixup_segment from here.
668 (write_object_file): Instead call tc_frob_file_before_fix,
669 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
670 Don't output the absolute section symbol.
671 (fixup_segment): Rewrite.
672 * write.h (abs_section_sym): Declare.
673 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
675 (aout_format_ops): Adjust to suit.
676 * config/obj-aout.h (obj_frob_file): Don't define.
677 (obj_frob_file_before_fix): Define.
678 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
679 (S_FORCE_RELOC): Define.
680 * config/obj-bout.h (S_FORCE_RELOC): Define.
681 * config/obj-coff.c (coff_format_ops): Init new field.
682 * config/obj-coff.h: Formatting fixes.
683 (obj_sec_sym_ok_for_reloc): Define.
684 (S_FORCE_RELOC): Define.
685 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
686 (ecoff_frob_file): .. from here.
687 (ecoff_format_ops): Add new function.
688 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
689 (obj_frob_file_before_fix): Define.
690 * config/obj-elf.c (elf_format_ops): Init new field.
691 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
692 * config/obj-ieee.h: Formatting fixes.
693 (S_FORCE_RELOC): Define.
694 * config/obj-multi.h (obj_frob_file_before_fix): Define.
695 * config/obj-vms.h (S_FORCE_RELOC): Define.
696 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
697 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
698 for BFD_RELOC_32 and BFD_RELOC_64.
699 (alpha_fix_adjustable): Remove extern and weak tests.
700 (alpha_before_fix): Rename from alpha_adjust_symtab.
701 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
702 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
703 (TC_VALIDATE_FIX): Tweak param name.
704 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
705 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
706 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
707 (MD_APPLY_SYM_VALUE): Define.
708 (tc_adjust_symtab): Don't define.
709 (alpha_adjust_symtab): Don't declare.
710 (tc_frob_file_before_fix): Define.
711 (alpha_before_fix): Declare.
712 (TC_INIT_FIX_DATA): Tweak param names.
713 * config/tc-arc.c: Include "struc-symbol.h".
714 (md_pcrel_from): Remove undefined sym fudge.
715 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
716 Don't set fx_addnumber.
717 (tc_gen_reloc): Remove spurious fx_addnumber comment.
718 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
719 (EXTERN_FORCE_RELOC): Define.
720 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
721 (tc_gen_reloc): Fudge ARM_GOTPC addend.
722 (arm_validate_fix): Return void.
723 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
724 Add plt and got reloc tests.
725 (arm_force_relocation): Call S_FORCE_RELOC.
726 * config/tc-arm.h (struct fix): Forward declare.
727 (TC_VALIDATE_FIX): No longer set add_symbolP.
728 (arm_validate_fix): Adjust declaration.
729 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
730 (TC_FORCE_RELOCATION): Tweak param name.
731 (TC_INIT_FIX_DATA): Likewise.
732 (obj_fix_adjustable): Don't define.
733 (tc_fix_adjustable): Call arm_fix_adjustable.
734 (TC_FIX_ADJUSTABLE): Don't define.
735 (MD_APPLY_SYM_VALUE): Define.
736 (EXTERN_FORCE_RELOC): Define.
737 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
738 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
739 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
740 Remove *valP fudges and code to subtract abs sym. Don't set
742 * config/tc-avr.h: Formatting.
743 (EXTERN_FORCE_RELOC): Define.
744 (MD_APPLY_SYM_VALUE): Define.
745 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
746 (md_apply_fix3): Remove code to subtract abs sym.
747 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
748 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
749 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
750 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
751 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
752 (tc_fix_adjustable): Remove extern, weak tests.
753 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
754 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
755 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
756 and code to subtract abs sym.
757 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
758 (d10v_force_relocation): Call S_FORCE_RELOC.
759 * config/tc-d10v.h: Don't include write.h.
760 (struct fix): Instead, forward declare.
761 (MD_PCREL_FROM_SECTION): Tweak param names.
762 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
763 (d10v_fix_adjustable): Likewise.
764 (obj_fix_adjustable): Don't define.
765 (tc_fix_adjustable): Define.
766 (TC_FORCE_RELOCATION): Tweak param name.
767 (MD_APPLY_SYM_VALUE): Define.
768 (EXTERN_FORCE_RELOC): Define.
769 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
770 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
771 and code to subtract abs sym.
772 * config/tc-d30v.h: Don't include write.h.
773 (struct fix): Instead, forward declare.
774 (MD_PCREL_FROM_SECTION): Tweak param names.
775 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
776 (MD_APPLY_SYM_VALUE): Define.
777 (EXTERN_FORCE_RELOC): Define.
778 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
779 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
780 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
781 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
782 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
783 Don't use fx_addnumber.
784 * config/tc-dlx.h: Don't include write.h.
785 (md_convert_frag): We're not alpha twice over.
786 (EXTERN_FORCE_RELOC): Define.
787 (obj_fix_adjustable): Don't define.
788 (tc_fix_adjustable): Define.
789 (TC_FIX_ADJUSTABLE): Don't define.
790 (MD_APPLY_SYM_VALUE): Define.
791 (LOCAL_LABELS_DOLLAR): Undef always.
792 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
793 (fr30_fix_adjustable): Remove extern, weak tests.
794 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
795 (obj_fix_adjustable): Don't define.
796 (tc_fix_adjustable): Define.
797 (struct fix): Forward declare.
798 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
799 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
800 (frv_fix_adjustable): Don't do extern, weak tests.
801 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
802 (TC_FIX_ADJUSTABLE): Don't define.
803 (obj_fix_adjustable): Don't define.
804 (tc_fix_adjustable): Define.
805 (struct fix): Forward declare.
806 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
807 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
808 * config/tc-h8300.h (struct fix): Forward declare.
809 (EXTERN_FORCE_RELOC): Define.
810 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
811 (hppa_fix_adjustable): Don't test extern or weak. Don't
812 symbol_mark_used_in_reloc.
813 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
815 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
816 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
817 (TC_FORCE_RELOCATION_SECTION): Don't define.
818 (MD_APPLY_SYM_VALUE): Define.
819 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
821 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
822 (MD_APPLY_SYM_VALUE): Define.
823 (MD_PCREL_FROM_SECTION): Tweak param name.
824 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
825 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
826 (i386_force_relocation): New function.
827 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
828 (TC_VALIDATE_FIX): Likewise.
829 (TC_FIX_ADJUSTABLE): Don't define.
830 (MD_APPLY_SYM_VALUE): Define.
831 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
832 (i386_force_relocation): Declare.
833 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
834 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
835 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
836 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
837 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
838 (EXTERN_FORCE_RELOC): Define.
839 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
840 (md_apply_fix3): Don't cast valP pointer type. Move code here from
841 old fixup_segment. No need to test fx_pcrel before setting fx_done.
842 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
843 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
844 Remove #if 0 code. Invert return boolean.
845 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
846 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
847 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
848 (tc_coff_sizemachdep): Prototype.
849 (i960_handle_align): Likewise.
850 (i960_validate_fix): Adjust declaration.
851 (reloc_callj): Likewise.
852 (EXTERN_FORCE_RELOC): Define.
853 (TC_FORCE_RELOCATION_SUB_SAME): Define.
854 (TC_FORCE_RELOCATION_ABS): Define.
855 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
856 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
857 (TC_FIX_ADJUSTABLE): Don't define.
858 (MD_APPLY_SYM_VALUE): Define.
859 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
860 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
861 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
862 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
863 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
864 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
865 (MD_APPLY_SYM_VALUE): Define.
866 (EXTERN_FORCE_RELOC): Define.
867 (TC_FORCE_RELOCATION): Tweak param name.
868 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
869 (m32r_fix_adjustable): Don't test extern, weak.
870 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
871 (MD_APPLY_SYM_VALUE): Define.
872 (obj_fix_adjustable): Don't define.
873 (tc_fix_adjustable): Define.
874 (tc_frob_file): Don't define.
875 (tc_frob_file_before_fix): Define.
876 (EXTERN_FORCE_RELOC): Define.
877 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
878 BFD_RELOC_VTABLE_ENTRY address.
879 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
880 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
881 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
882 Remove duplicated fx_done code.
883 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
884 (EXTERN_FORCE_RELOC): Define.
885 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
887 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
888 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
889 (TC_FIX_ADJUSTABLE): Don't define.
890 (EXTERN_FORCE_RELOC): Define.
891 (MD_APPLY_SYM_VALUE): Define.
892 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
893 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
894 Remove fx_addsy tests.
895 (mcore_force_relocation): Call S_FORCE_RELOC.
896 (mcore_fix_adjustable): Don't test fx_addsy.
897 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
898 (EXTERN_FORCE_RELOC): Define.
899 (obj_fix_adjustable): Don't define.
900 (tc_fix_adjustable): Define.
901 (MD_APPLY_SYM_VALUE): Define.
902 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
903 (mips_pic): No longer static.
904 (mips_force_relocation): Call S_FORCE_RELOC.
905 (mips_fix_adjustable): Remove extern, weak tests.
906 * config/tc-mips.h (enum mips_pic_level): Declare.
908 (tc_frob_file): Don't define.
909 (tc_frob_file_before_fix): Define this instead.
910 (EXTERN_FORCE_RELOC): Define.
911 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
912 with reg_section tests. Set fx_done instead of calling
913 symbol_clear_used_in_reloc on bad relocs.
914 (tc_gen_reloc): Zero fx_addsy on bad relocs.
915 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
916 (mmix_adjust_symtab): Simplify list handling. Abort on any
918 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
919 BFD_RELOC_MMIX_LOCAL.
920 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
921 (EXTERN_FORCE_RELOC): Define.
922 (MD_PCREL_FROM_SECTION): Tweak param name.
923 (tc_frob_file): Don't define.
924 (tc_frob_file_before_fix): Define this instead.
925 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
926 Remove SEC_CODE checks.
927 (mn10300_fix_adjustable): Remove extern and weak tests.
928 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
929 (TC_FORCE_RELOCATION): Tweak param name.
930 (obj_fix_adjustable): Don't define.
931 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
932 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
933 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
934 (openrisc_fix_adjustable): Don't test fx_addsy.
935 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
936 (obj_fix_adjustable): Don't define.
937 (tc_fix_adjustable): Define this instead.
938 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
939 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
940 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
941 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
942 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
943 (MD_APPLY_SYM_VALUE): Define.
944 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
945 Don't subtract symbol value.
946 * config/tc-pj.h (md_pcrel_from): Tweak param name.
947 (EXTERN_FORCE_RELOC): Define.
948 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
949 (MD_APPLY_SYM_VALUE): Define.
950 (obj_fix_adjustable): Don't define.
951 (tc_fix_adjustable): Define this instead.
952 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
954 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
955 (ppc_force_relocation <elf version>): New.
956 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
957 (md_apply_fix3): Don't subtract symbol values for ELF. Update
958 comments. Don't subtract fx_subsy as that is already done.
959 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
960 (MD_PCREL_FROM_SECTION): Likewise.
961 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
962 ppc_force_relocation.
963 (TC_FORCE_RELOCATION_SECTION): Delete.
964 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
965 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
966 (MD_APPLY_SYM_VALUE): Define.
967 * config/tc-s390.c: #include "dwarf2dbg.h".
968 (s390_insn): Remove excess parens.
969 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
970 (tc_s390_force_relocation): Call S_FORCE_RELOC.
971 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
972 non-NULL. Don't subtract off fx_addsy value.
973 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
974 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
975 (TC_FIX_ADJUSTABLE): Don't define.
976 (MD_APPLY_SYM_VALUE): Define.
977 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
978 (SWITCH_TABLE): Likewise.
979 (sh_force_relocation): Call S_FORCE_RELOC.
980 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
981 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
982 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
983 fx_addnumber is zero on entry. Save val in fx_addnumber.
984 (tc_gen_reloc): Don't subtract fx_subsy.
985 * config/tc-sh.h (struct fix): Move.
986 (obj_fix_adjustable): Don't define.
987 (tc_fix_adjustable): Define this instead.
988 (TC_FIX_ADJUSTABLE): Don't define.
989 (MD_APPLY_SYM_VALUE): Define.
990 (SWITCH_TABLE_CONS): Define.
991 (SWITCH_TABLE): Define.
992 (TC_FORCE_RELOCATION_SUB_SAME): Define.
993 (TC_VALIDATE_FIX_SUB): Define.
994 (MD_PCREL_FROM_SECTION): Tweak param name.
995 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
996 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
997 (TC_FORCE_RELOCATION_SUB_ABS): Define.
998 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
999 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1000 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1001 (TC_VALIDATE_FIX_SUB): Define.
1002 (MD_PCREL_FROM_SECTION): Tweak param name.
1003 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1004 (tc_gen_reloc): Use S_FORCE_RELOC.
1005 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1006 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1007 (TC_FORCE_RELOCATION_ABS): Define this instead.
1008 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1009 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1010 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1011 (MD_APPLY_SYM_VALUE): Define.
1012 (TC_FIX_DATA_PRINT): Tweak param name.
1013 * config/tc-tic30.c (USE_STDOUT): Don't define.
1014 (md_parse_option): Remove stupid debug code.
1015 (tc_gen_reloc): Don't use fx_addnumber.
1016 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1017 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1018 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1019 (tc_fix_adjustable): Define this instead.
1020 (TC_FIX_ADJUSTABLE): Don't define.
1021 (MD_APPLY_SYM_VALUE): Define this instead.
1022 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1023 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1024 (TC_FIX_ADJUSTABLE): Don't define.
1025 (MD_APPLY_SYM_VALUE): Define this instead.
1026 (tc_fix_adjustable): Remove extern and weak tests.
1027 * config/tc-w65.h (struct fix): Forward declare.
1028 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1030 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1031 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1032 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1034 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1035 (MD_APPLY_SYM_VALUE): Define.
1036 (obj_fix_adjustable): Don't define.
1037 (tc_fix_adjustable): Define this instead.
1038 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1040 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1042 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1043 (ppc_fix_adjustable <coff version>): Cleanup.
1045 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1046 (md_parse_option): No -a64 without BFD64.
1047 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1048 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1050 2002-09-04 Nick Clifton <nickc@redhat.com>
1052 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1053 instructions into the hash table if the target cpu is the BookE32.
1055 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1057 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1060 2000-08-28 Catherine Moore <clm@redhat.com>
1062 * tc-v850.c (v850_relax): Declare.
1063 (v850_longcode): New routine.
1064 (v850_handle_align): New routine.
1065 (md_pseudo_table): Add longcall and longjump.
1066 (md_parse_option): Check for relax option.
1067 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1068 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1069 (md_apply_fix3): Likewise.
1070 (v850_force_relocation): Likewise.
1071 (v850_comm): Change the current section.
1072 (md_assemble): Ensure that the correct value is put in the
1074 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1075 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1076 Remove redundant v850ea support.
1077 * tc-v850.h (HANDLE_ALIGN): Define.
1078 (v850_handle_align): Declare.
1079 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1081 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1083 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1084 * configure: Regenerate.
1085 * NEWS: Mention new port.
1087 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1089 * config/obj-coff.c: Add sdef definition.
1090 * config/obj-coff.h: Add tic4x include file and set
1092 * config/tc-tic4x.c: New file.
1093 * config/tc-tic4x.h: New file.
1095 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1097 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1098 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1099 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1100 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1101 (RELOC_ENUM): Define.
1102 (fix_new_internal): Use RELOC_ENUM.
1103 (fix_new, fix_new_exp): Likewise.
1104 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1105 Replace gotos with continue.
1106 (write_relocs): Formatting. Avoid symbol loops in
1107 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1108 errors, and error number in other cases.
1109 (fixup_segment): Remove param names from prototype. Rename
1110 "this_segment_type" to "this_segment". Update linkrelax comment.
1111 Remove "size, "place" and "where" local vars. Formatting. Update
1112 "no symbol" comment. Remove #if 0 and #if 1.
1114 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1116 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1118 * dwarf2dbg.c: Always include dwarf2dbg.h.
1119 (dwarf2_directive_file): Adjust dummy version args.
1120 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1121 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1122 when symbol values differ.
1123 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1124 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1125 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1127 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1129 * config/tc-w65.c (md_section_align): Fix typo.
1130 (md_parse_option): Return 0, not 1.
1132 2002-08-22 Nick Clifton <nickc@redhat.com>
1134 * doc/as.texinfo (Section): Note that if '@' is a comment
1135 character then another symbol is used to prefix the section's
1138 2002-08-22 Christian Groessler <chris@groessler.org>
1140 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1143 2002-08-12 Graeme Peterson <gp@qnx.com>
1145 * configure.in: Add support for sh-**-nto* target.
1146 * configure: Regenerate.
1148 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1150 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1152 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1154 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1156 (ppc_apuinfo_section_add): Define only if format is ELF.
1157 (md_assemble): Emit APUinfo section only if format is ELF.
1160 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1162 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1163 * config/tc-frv.c: Likewise.
1164 * config/tc-hppa.c: Likewise.
1165 * config/tc-ia64.c: Likewise.
1166 * config/tc-ip2k.c: Likewise.
1167 * config/tc-m68hc11.c: Likewise.
1168 * config/tc-m68k.c: Likewise.
1169 * config/tc-mmix.c: Likewise.
1170 * config/tc-mn10300.c: Likewise.
1171 * config/tc-sh.c: Likewise.
1172 * config/tc-sparc.c: Likewise.
1173 * config/tc-v850.c: Likewise.
1175 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1177 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1180 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1182 From matthew green <mrg@redhat.com>
1184 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1185 PPC_OPCODE_PPC is, except for BookE architectures.
1186 (md_parse_option): Add support for -mspe.
1187 (md_show_usage): Add -mspe.
1188 (md_parse_option): Add support for -me500 and
1189 -me500x2 to generate code for Motorola e500 core complex.
1190 (md_show_usage): Add -me500 and -me500x2.
1192 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1193 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1194 PPC_APUINFO_BRLOCK): New macros.
1196 (ppc_cleanup): New function.
1197 (ppc_apuinfo_section_add): New function.
1199 (md_assemble): Collect info and write the APUinfo section.
1201 * config/tc-ppc.h (md_cleanup): Define.
1202 (ppc_cleanup): Export.
1203 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1205 2002-08-17 Stan Cox <scox@redhat.com>
1207 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1208 config/tc-mips.c (s_change_section): New function to support
1209 IRIX .section pseudo-op.
1211 2002-08-16 Nick Clifton <nickc@redhat.com>
1213 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1215 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1217 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1218 the fix-up against on the right frag.
1219 (s_cpsetup): Likewise. Parse third argument as expression, to
1220 handle global symbols and forward/backward labels correctly.
1222 2002-08-14 Nick Clifton <nickc@redhat.com>
1224 * read.c (stringer): Catch attempts to create strings in the abs
1227 * config/tc-alpha.c: Fix compiling for COFF targets.
1228 Some minor formatting tidyups.
1230 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1232 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1233 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1234 according to the reloc.
1235 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1236 (TC_FORCE_RELOCATION): Define.
1237 (tc_m68hc11_force_relocation): Declare.
1239 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1240 (s_m68hc11_relax): New function for relax group.
1241 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1242 beginning of jump instruction.
1243 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1244 address computation.
1245 (tc-gen_reloc): Update.
1246 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1248 (tc_m68hc11_force_relocation): New function, handle new relocs.
1249 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1250 reloc for the linker relax pass.
1251 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1254 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1256 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1257 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1258 (s_m68hc11_mode): New function for .mode pseudo op.
1259 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1261 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1262 (m68hc11_elf_final_processing): Declare.
1264 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1266 * config/tc-m68hc11.c (md_begin): Take into account additional
1267 page operand for call instruction.
1268 (print_opcode_format): Likewise.
1269 (check_range): Likewise for page range checking.
1270 (get_operand): Don't skip a possible comma in operands.
1271 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1272 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1273 (fixup24): New to handle call reloc.
1274 (build_insn): Handle missing page operand for call instruction.
1276 (md_apply_fix3): Take into account new relocs.
1277 (get_operand): Fix the mode for indexed indirect addressing.
1278 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1280 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1282 * config/tc-mips.c (mips_ip): Don't work out the value of
1283 constant %hi()s here.
1285 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1287 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1288 for ELF, and don't bother checking ELF relocs when non-ELF.
1289 (i386_immediate): Allow absolute_section expressions for aout.
1290 (i386_displacement): Likewise. Also test bfd_is_com_section.
1291 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1292 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1293 not when fx_addsy. Remove dead code.
1295 2002-08-09 Graeme Peterson <gp@qnx.com>
1297 * configure.in: Add support for ppc-*-nto* target.
1298 * configure: Regenerate.
1300 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1302 * config/tc-i386.h: Reorganize.
1304 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1306 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1307 immediate offset in "dla" and "la" expansions.
1309 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1311 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1312 Remove "bfd_gas=yes" from target table when covered later.
1313 Consolidate some entries.
1314 * configure: Regenerate
1316 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1318 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1319 at start of insn, pass it to output_disp and output_imm.
1320 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1321 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1323 (output_imm): Added arguments. Compute properly addend for
1325 (md_apply_fix3): Remove R_386_GOTPC handling.
1327 2002-08-06 George France <france@handhelds.org>
1329 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1330 and m21264b processor names and cpu types.
1331 * doc/c-alpha.texi: Documented new types.
1333 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1335 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1337 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1339 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1340 handling to BFD_RELOC_MIPS16_GPREL.
1342 2002-08-01 Nick Clifton <nickc@redhat.com>
1344 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1345 pool is computed using signed arithmetic so that proper sign
1346 extension is performed if X_add_number is a 64-bit integer.
1348 2002-08-01 H.J. Lu <hjl@gnu.org>
1349 Daniel Jacobowitz <drow@mvista.com>
1351 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1352 .debug_line section unless it has line information.
1354 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1356 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1357 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1358 Allow default displacement size to be an option "--disp-size-default".
1359 (md_number_to_disp): Make error messages include value. Use %d to
1360 print integers, not %s.
1361 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1362 get duplicate messages sometimes.
1363 (convert_iif): Grow frag to max possible instruction size. Avoid
1364 creating unnecessary fixes.
1365 (md_number_to_field) Add prototype.
1366 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1367 prototypes and make static.
1368 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1369 (evaluate_expr): Use resultP argument instead of exprP global.
1370 (get_addr_mode): Quiten compiler warnings.
1371 (encode_operand): eliminate unused variables. Quiten compiler
1372 warnings. Eliminate nul character in format strings.
1373 (parse): argc is unsigned.
1374 (reloc): Type cast index to quieten compiler.
1375 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1376 (md_convert_frag): Note unused parameters. Remove unused
1378 (md_create_long_jump, md_create_short_jump,
1379 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1382 2002-07-31 Nick Clifton <nickc@redhat.com>
1384 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1385 of the PDP-11 and 2.11BSD a.out support.
1387 2002-07-31 Momchil Velikov <velco@fadata.bg>
1389 * config/tc-v850.c (md_assemble): Fix range check for immediate
1392 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1394 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1395 to Broadcom SB-1 core support.
1397 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1399 * config/tc-mips.c (mips_target_format): Fix formatting.
1400 Add recognition of n32 ABI formats.
1402 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1404 * tc-mips.c (load_address): Don't clobber $at when loading a
1405 64-bit address in non-PIC code if noat is in effect.
1408 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1410 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1411 used in division/multiply macro expansions similarly to how they
1412 are used in the variants with break instructions.
1415 2002-07-30 Graeme Peterson <gp@qnx.com>
1417 * configure.in: Add support for arm-*-nto target.
1418 * configure: Regenerate.
1420 2002-07-30 Nick Clifton <nickc@redhat.com>
1422 * config/tc-arm.c (struct literal_pool): Add fields to allow
1423 multiple literal pools to be maintained.
1424 (find_literal_pool): New function.
1425 (find_or_make_literal_pool): New function.
1426 (add_to_literal_pool): Use find_or_make_literal_pool.
1427 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1429 (s_ltorg): Use find_literal_pool.
1430 (arm_cleanup): Dump all literal pools.
1431 * doc/c-arm.texi: Document new behaviour of only dumping literal
1434 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1436 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1437 rather than PPC_OPCODE_32 for powerpc64*.
1439 2002-07-25 Nick Clifton <nickc@redhat.com>
1441 * po/es.po: Updated Spanish translation.
1442 * po/fr.po: Updated French translation.
1444 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
1446 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1447 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1448 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1449 * configure, config.in: Regenerate.
1450 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1451 (mips_set_options): Remove "abi" field.
1452 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1455 (mips_arch_string, mips_arch_info): New vars.
1456 (mips_tune_string, mips_tune_info): New vars.
1457 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1458 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1459 (mips_isa_to_str, mips_cpu_to_str): Remove.
1460 (mips_ip): If the selected architecture is a generic ISA rather
1461 than a processor, only mention the ISA level in error messages.
1462 (OPTION_MCPU): Remove.
1464 (md_longopts): Add -mfp64, remove -mcpu.
1465 (mips_set_option_string): New fn.
1466 (md_parse_option): Make -mipsN update file_mips_isa rather than
1467 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
1468 Don't let -mgp32 and -mfp32 change the ABI.
1469 (show): Move to end of file. Constify string argument.
1470 (md_show_usage): Move to the end of the file. Read available
1471 architectures from mips_cpu_info_table.
1472 (mips_set_architecture): New fn.
1473 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
1474 is an alias for -march=mipsN. Don't change the ABI based on other
1475 flags. Infer the register size from the ABI as well as the
1476 architecture. Complain about more conflicting arguments.
1477 Unify logic with GCC.
1478 (s_mipsset): Don't change the ABI.
1479 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1480 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1481 "mipsN"-type entries. Remove entries that vary only in the
1482 manufacturer's prefix, or that have "000" replaced by "k".
1483 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
1484 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1485 (mips_parse_cpu): New fn.
1486 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1487 (mips_cpu_info_from_isa): Minor formatting tweak.
1489 2002-07-24 Nick Clifton <nickc@redhat.com>
1491 * po/sv.po: Updated Swedish translation.
1492 * po/es.po: Updated Spanish translation.
1494 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1496 * Makefile.am: Run "make dep-am".
1497 * Makefile.in: Regenerate.
1498 * doc/Makefile.in: Regenerate.
1499 * config.in: Regenerate.
1500 * po/POTFILES.in: Regenerate.
1502 2002-07-23 Nick Clifton <nickc@redhat.com>
1504 * po/fr.po: Updated French translation.
1506 2002-07-23 Nick Clifton <nickc@redhat.com>
1508 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1511 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1513 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1514 instead of S_IS_EXTERN.
1515 (md_estimate_size_before_relax): Likewise.
1516 (mips_fix_adjustable): Likewise.
1518 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1520 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1522 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1523 Nick Clifton <nickc@redhat.com>
1525 * cond.c (s_ifdef): Treat a referenced but not yet defined
1526 symbol as if it were undefined, in exactly the same way as
1529 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1530 consider referenced bug not yet defined symbols to be
1533 2002-07-18 Denis Chertykov <denisc@overta.ru>
1534 Frank Ch. Eigler <fche@redhat.com>
1535 Alan Lehotsky <alehotsky@cygnus.com>
1536 John Healy <jhealy@redhat.com>
1537 Jeff Johnston <jjohnstn@redhat.com>
1539 * configure.in: Add ip2k configuraton.
1540 * configure: Regenerate.
1541 * Makefile.am: Add ip2k configuraton.
1542 * Makefile.in: Regenerate.
1543 * configure: Regenerate.
1544 * Makefile.in: Regenerate.
1545 * config/tc-ip2k.c: New file.
1546 * config/tc-ip2k.h: New files.
1547 * NEWS: Mention new support.
1548 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1549 * doc/Makefile.in: Regenerate.
1550 * doc/all.texi: Set IP2K
1551 * doc/as.texinfo: Add IP2K description.
1552 * doc/c-ip2k.texi: New file.
1554 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1556 * NEWS: Reformat to match style of other NEWS files.
1558 2002-07-17 Jan Hubicka <jh@suse.cz>
1560 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1562 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
1564 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1566 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1568 * NEWS: Add 'Changes in 2.13'.
1570 2002-07-15 Matt Fredette <fredette@netbsd.org>
1572 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1574 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1576 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1577 case with non CODE_64BIT case. Don't warn on "qword ptr" if
1580 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1582 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1583 (ppc_frob_file_before_adjust): New function.
1584 * config/tc-ppc.h (tc_frob_symbol): Don't define.
1585 (ppc_elf_frob_symbol): Don't declare.
1586 (tc_frob_file_before_adjust): Define.
1587 (ppc_frob_file_before_adjust): Declare.
1589 * config/tc-ppc.c (md_pseudo_table): Warning fix.
1590 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1593 (ppc_xcoff64): Rename to ppc_obj64.
1594 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1595 (ppc_set_cpu): Set PPC_OPCODE_32 too.
1596 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1598 (ppc_target_format): Use ppc_obj64 to select format.
1599 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1600 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1601 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
1602 (tc_frob_symbol): Likewise.
1603 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
1604 BFD_DEFAULT_TARGET_SIZE.
1606 (ppc_is_toc_sym): Likewise.
1607 (md_apply_fix3): Likewise.
1608 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1609 BFD_DEFAULT_TARGET_SIZE.
1610 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1611 (tc_frob_symbol): Likewise.
1613 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1615 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1616 (mips_ip): Likewise.
1618 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1620 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1621 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1622 (md_apply_fix3): Formatting. Remove redundant test.
1623 (tc_gen_reloc): Remove redundant code.
1624 (tc_i386_force_relocation): Delete. Movy body of function to..
1625 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1627 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1629 * configure.in: Add hppa-*-openbsd* target, change
1630 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1632 * configure: Regenerate.
1634 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1636 * config/tc-mips.c (macro): Shift the 32-bit address range
1637 accessible with a lone "lui" down by 32768.
1639 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1641 * config/tc-mips.c (load_address): Use non-trapping "daddu"
1642 instead of "dadd" in address calculations.
1645 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1647 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1649 (md_assemble): Instead, zap the suffix here.
1651 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1653 * NEWS: Remove next release number until the release is actually
1656 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1658 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1660 * Makefile.in: Regenerate.
1662 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1664 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1665 to symbols in merge sections, even non pc-relative ones.
1667 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1669 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1671 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1673 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1674 .softregs and .eeprom.
1676 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1678 * NEWS: Note the next release is 2.13.
1680 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1682 * po/tr.po: New translation imported.
1684 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
1686 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1687 (ecoff_directive_def): Likewise.
1688 (ecoff_directive_tag): Likewise.
1689 * listing.c (file_info): Likewise.
1690 * hash.c (what): Likewise.
1692 2002-06-25 H.J. Lu <hjl@gnu.org>
1694 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1695 * Makefile.in: Regenerated.
1697 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1699 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1700 (assemble_ppi): Generate warning if the same register is used
1701 twice as destination in the same padd / pmuls instruction.
1703 2002-06-18 Dave Brolley <brolley@redhat.com>
1705 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1706 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1707 * configure.in: Support frv-*-*.
1708 * Makefile.am (CPU_TYPES): Add frv.
1709 (TARGET_CPU_CFILES): Add tc-frv.c.
1710 (TARGET_CPU_HFILES): Add tc-frv.h.
1711 (DEPTC_frv_coff): New variable.
1712 (DEPTC_frv_elf): New variable.
1713 (DEPOBJ_frv_coff): New variable.
1714 (DEPOBJ_frv_elf): New variable.
1715 (DEP_frv_coff): New variable.
1716 (DEP_frv_elf): New variable.
1717 * tc-frv.c: New file.
1718 * tc-frv.h: New file.
1720 2002-06-17 Catherine Moore <clm@redhat.com>
1722 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1724 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1726 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1728 2002-06-17 Tom Rix <trix@redhat.com>
1730 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1732 2002-06-14 H.J. Lu <hjl@gnu.org>
1733 Daniel Jacobowitz <drow@mvista.com>
1735 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1736 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1737 * config/tc-mips.c (s_mips_file): Call s_app_file_string
1738 and new_logical_line for the first .file directive.
1739 * read.c (s_app_file_string): New function.
1740 (s_app_file): Call it.
1741 * read.h (s_app_file_string): Add declaration.
1743 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1745 * configure.in: Remove MIPS_STABS_ELF.
1746 * configure: Regenerated.
1747 * config.in: Regenerated.
1748 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1750 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1752 (pdr_seg): Declare unconditionally.
1753 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1754 (s_mips_end): Likewise. Generate stabs function markers.
1755 (s_mips_ent): Generate stabs function markers.
1756 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1758 (s_mips_mask): Likewise.
1759 (mips_flag_mdebug): New.
1760 (md_longopts): Add "mdebug" and "no-mdebug".
1761 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1762 (mips_after_parse_args): Set mips_flag_mdebug.
1763 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1765 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1767 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1768 value twice for RELA relocations.
1770 2002-06-12 Ben Elliston <bje@redhat.com>
1772 * symbols.c (resolve_symbol_value): Initialise final_val.
1774 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1776 2002-06-11 Tom Rix <trix@redhat.com>
1778 * config/tc-ppc.c (ppc_subseg_align): Delete.
1779 (ppc_change_csect): Default csect align is 2.
1780 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1782 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1784 * config/tc-avr.c (mcu_types): Update.
1786 2002-06-08 Matt Thomas <matt@3am-software.com>
1788 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1789 (vax-*-netbsd*): New targets.
1790 * configure: Regenerate.
1791 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1792 * config/tc-vax.c: Add support for ELF and PIC.
1793 (flag_want_pic): New flag.
1794 (float_cons): Fix prototype.
1795 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1796 (md_assemble): Introduce a new is_absolute local, and use it
1797 rather than repeating the test. Make fatal errors actually
1798 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
1799 Add support for ELF. Add support for PIC.
1800 (md_convert_frag): Adjust for BFD_ASSEMBLER.
1801 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1803 (vax_reg_parse): Make the % register prefix mandatory for ELF,
1804 optional for a.out, and not allowed for VMS. Adjust all callers.
1805 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1806 (md_create_long_jump): Likewise.
1807 (md_undefined_symbol): Likewise.
1808 (md_section_align): Likewise.
1809 (md_shortopts): Allow -k and -K for ELF.
1810 (md_parse_option): Set flag_want_pic if -k or -K.
1811 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1812 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1813 * config/tc-vax.h (tc_headers_hook): Remove.
1814 (TARGET_FORMAT): Set according to object format and target
1816 (BFD_ARCH, TARGET_ARCH): Define.
1817 (NO_RELOC): Adjust for BFD_ASSEMBLER.
1818 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1819 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1820 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1822 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1824 * Makefile.am: Run "make dep-am".
1825 * Makefile.in: Regenerate.
1827 * as.c: Replace CONST with const.
1828 * write.c: Likewise.
1829 * config/obj-coff.c: Likewise.
1830 * config/tc-a29k.c: Likewise.
1831 * config/tc-arm.c: Likewise.
1832 * config/tc-dlx.c: Likewise.
1833 * config/tc-h8300.c: Likewise.
1834 * config/tc-h8500.c: Likewise.
1835 * config/tc-i370.c: Likewise.
1836 * config/tc-i860.c: Likewise.
1837 * config/tc-i960.c: Likewise.
1838 * config/tc-m68hc11.c: Likewise.
1839 * config/tc-m68k.c: Likewise.
1840 * config/tc-m88k.c: Likewise.
1841 * config/tc-mcore.c: Likewise.
1842 * config/tc-mips.c: Likewise.
1843 * config/tc-ns32k.c: Likewise.
1844 * config/tc-pdp11.c: Likewise.
1845 * config/tc-pj.c: Likewise.
1846 * config/tc-s390.c: Likewise.
1847 * config/tc-sh.c: Likewise.
1848 * config/tc-sparc.c: Likewise.
1849 * config/tc-tahoe.c: Likewise.
1850 * config/tc-tic80.c: Likewise.
1851 * config/tc-v850.c: Likewise.
1852 * config/tc-vax.c: Likewise.
1853 * config/tc-w65.c: Likewise.
1854 * config/tc-z8k.c: Likewise.
1856 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
1858 Based on patch from Matt Green:
1859 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
1860 * config/tc-mips.c (s_mips_file): Renamed from s_file.
1861 (s_mips_loc): New function.
1862 (mips_nonecoff_pseudo_table): Call them.
1863 (append_insn): Call dwarf2_emit_insn.
1865 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1867 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1869 (file_ase_mips16): New veriable.
1870 (mips_eabi64): Remove.
1871 (CPU_HAS_MIPS16): New define.
1872 (CPU_HAS_MDMX): Fix data type.
1873 (md_begin): Code cleanup. Use file_ase_mips16.
1874 (mips_elf_final_processing): Handle mips16 header flag.
1875 Handle EABI flag without intermediate variable.
1877 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1879 * doc/as.texinfo: Update MIPS documentation.
1881 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1883 * config/tc-mips.c: Add define for $zero register.
1884 (md_begin): Add $zero as alias name for $0.
1885 (insn_uses_reg): Use ZERO define.
1886 (mips_ip): Add $zero as alias name for $0.
1887 (mips16_ip): Likewise.
1888 (s_cplocal): Demand empty rest of input line.
1889 (tc_get_register): Likewise. Add support for $kt0, kt1 register
1890 names. Use ZERO define. Fix input_line_pointer progress.
1892 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1894 * symbols.c: Replace CONST by const throughout.
1895 (symbol_find_exact): Split out from..
1896 (symbol_find_base): ..here.
1897 * symbols.h: Replace CONST by const throughout.
1898 (symbol_find_exact): Declare.
1899 * config/obj-elf.c: #include "struc-symbol.h".
1900 (elf_frob_file): If group name matches an exported symbol, use that
1901 symbol for the signature and ".group" as the section name.
1903 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
1905 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
1908 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
1910 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
1911 and mips_opts.ase_mdmx if they are uninitialized.
1913 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1915 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
1916 (hppa_force_relocation): Check if a stub just before the start symbol
1917 of the last call_info is reachable before forcing relocation. Fix
1920 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1922 * config/tc-mips.c (mips_after_parse_args): New function.
1923 (md_begin): Move processing of defaults to mips_after_parse_args.
1924 config/tc-mips.h (md_after_parse_args): Define.
1926 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1928 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
1929 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
1930 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
1931 * configure: Regenerate.
1932 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
1935 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1937 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1939 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1941 * config/obj-elf.c (obj_elf_change_section): Set and check elf
1942 linkonce flag. Print all warnings.
1943 (obj_elf_section): Parse ",comdat" for groups.
1944 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
1945 consistency of comdat flag.
1947 2002-06-02 Richard Henderson <rth@redhat.com>
1949 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
1950 with LITERALs without sequence numbers.
1952 2002-06-01 Richard Henderson <rth@redhat.com>
1954 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
1955 Rename them LITUSE_ALPHA_*.
1957 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
1959 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
1960 accept parentheses enclosed register lists.
1962 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1964 * Makefile.am: Run "make dep-am".
1965 * Makefile.in: Regenerate.
1966 * po/POTFILES.in: Regenerate.
1968 2002-05-31 Graeme Peterson <gp@qnx.com>
1970 * configure.in: Add i386-*-nto-qnx*.
1971 * configure: Regenerate.
1973 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1975 * config/tc-mips.c (mips_ip): Use unsigned long values for
1978 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1980 * config/tc-mips.c (s_cpsetup): Fix initialization of
1981 mips_cpreturn_register and mips_cpreturn_offset.
1983 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1985 * config/tc-mips.c (s_cpsetup): Fix comment.
1987 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1989 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
1990 (mips_ip): Likewise.
1991 (mips16_ip): Likewise.
1992 (tc_get_register): Likewise.
1994 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
1995 Ed Satterthwaite <ehs@broadcom.com>
1997 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
1998 (mips_opts): Initialize "ase_mdmx" member.
1999 (file_ase_mdmx): New variable.
2000 (CPU_HAS_MDMX): New macro.
2001 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2002 based on command line options and configuration defaults.
2003 (macro_build): Note in comment that use of MDMX in macros is
2004 not currently allowed.
2005 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2006 "Z" MDMX operand types.
2007 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2008 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2010 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2011 Add support for "-mdmx" and "-no-mdmx" options.
2012 (OPTION_ELF_BASE): Move to accomodate new options.
2013 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2014 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2015 file_ase_mdmx was set.
2016 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2017 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2020 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2022 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2023 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2024 command line switch conforming to gcc conventions.
2025 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2027 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2029 * config/tc-mips.c (macro_build_jalr): New Function.
2030 (md_begin): NewABI uses big GOTs.
2031 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2032 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2033 (load_address): Add some NewABI PIC support.
2035 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2036 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2038 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2040 * config/tc-mips.c (load_address): Use mips_gp_register instead
2041 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2043 (macro): Use mips_gp_register instead of hardcoded value.
2045 2002-05-30 Richard Henderson <rth@redhat.com>
2047 * expr.h (operatorT): Add O_md17..O_md32.
2048 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2049 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2050 O_tprelhi, O_tprello, O_tprel): New.
2051 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2052 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2053 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2054 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2055 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2056 (md_apply_fix3): Handle TLS relocations.
2057 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2058 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2059 associated TLS reloc. Check lituse_tls relocs match up.
2060 (emit_insn): Handle TLS relocations.
2063 * doc/c-alpha.texi: Add docs for tls relocations.
2065 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2067 * config/tc-mips.c (mips_gprel_offset): New variable.
2068 (s_gpvalue): Use it.
2070 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2072 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2073 write-write conflicts.
2074 (md_assemble): Reformat introductory comment.
2075 (parallel_ok): Prevent packing only if the first
2076 instruction cannot be packed.
2078 2002-05-30 Jason Eckhardt <jle@redhat.com>
2079 Tom Rix <trix@redhat.com>
2081 * config/tc-d10v.c (build_insn): Check for immediates.
2083 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2085 * config/tc-mips.c: Replace GP in comments by $gp.
2086 (mips_big_got): Initialize.
2087 (mips_trap): Initialize.
2088 (load_address): Use mips_gp_register instead of hardcoded value.
2089 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2090 (macro): Use mips_gp_register instead of hardcoded value.
2091 (macro2): Change load_address calls.
2092 (md_pcrel_from): Comment formatting.
2093 (s_cpload): Use mips_gp_register instead of hardcoded value.
2094 (s_cprestore): Likewise. Comment formatting.
2095 (s_gpword): Fix data type.
2096 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2097 (nopic_need_relax): Replace GP in comments by $gp.
2098 (mips_elf_final_processing): Better comment.
2100 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2102 * configure.in: Add DLX configuraton
2103 * Makefile.am: Add DLX configuraton
2104 * configure: Regenerate.
2105 * Makefile.in: Regenerate.
2106 * config/tc-dlx.c: New file.
2107 * config/tc-dlx.h: New files.
2108 * NEWS: Mention new support.
2110 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2112 * config/obj-coff.c (write_object_file): Add missing semicolon.
2114 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2116 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2117 by the define. Remove superfluous check of mips_opts.mips16.
2118 (append_insn): Likewise. Canonicalize variable increments.
2119 (macro_build): Canonicalize variable increments.
2120 (macro_build_lui): Likewise.
2121 (load_register): Likewise.
2122 (load_address): Move pointer initialization.
2123 (macro): Move pointer to a more local scope. Canonicalize variable
2124 increments. Better comments. Replace magic constant for RA by the
2126 (macro2): Replace magic constant for RA by the define. Canonicalize
2127 variable increments.
2128 (mips_ip): Canonicalize variable increments.
2129 (mips16_ip): Replace magic constant for RA by the define.
2130 (my_getSmallParser): Canonicalize variable increments/decrements.
2131 (my_getPercentOp): Likewise.
2132 (my_getSmallExpression): Likewise.
2133 (s_align): Likewise.
2134 (s_mipsset): Likewise.
2135 (s_cpsetup): Likewise.
2136 (s_insn): Remove superfluous check of mips_opts.mips16.
2137 (s_mips_stab): Likewise.
2138 (mips_handle_align): Canonicalize variable increments.
2139 (s_mips_ent): Likewise.
2140 (s_mips_end): Add comment.
2142 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2144 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2145 * configure: Regenerate.
2147 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2149 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2150 * Makefile.in: Regenerate.
2151 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2152 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2153 * configure: Regenerate.
2154 * as.h: Use #include "" instead of <> for local header files.
2155 * flonum-konst.c: Likewise.
2156 * flonum-mult.c: Likewise.
2158 * listing.c: Likewise.
2159 * config/tc-ia64.h: Likewise.
2160 * config/tc-v850.h: Likewise.
2162 2002-05-24 TAMURA Kent <kent@netbsd.org>
2164 * configure.in: Add a target for i386-netbsdpe.
2165 * configure: Regenerate.
2167 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2169 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2170 (obj_elf_common): Call elf_common.
2171 (obj_elf_tls_common): New function.
2172 (elf_pseudo_tab): Support .tls_common.
2173 (special_sections): Add .tdata and .tbss.
2174 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2176 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2177 (obj_elf_parse_section_letters): Include T in error message.
2178 * config/tc-ppc.c (ppc_section_letter): Likewise.
2179 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2180 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2182 * config/tc-sparc.c (md_apply_fix3): Likewise.
2183 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2184 Define them if not BFD_ASSEMBLER.
2185 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2187 (md_apply_fix3): Add TLS relocs.
2188 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2189 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2190 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2191 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2192 (ia64_elf_section_letter): Include T in error message.
2193 (md_begin): Support TLS operators.
2194 (md_operand): Likewise.
2195 (ia64_gen_real_reloc_type): Support TLS relocs.
2196 * write.c (adjust_reloc_syms): Don't change symbols in
2197 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2199 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2201 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2202 round the relocation up rather than down.
2204 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2206 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2208 * doc/as.texinfo: Document that the COFF version of .section
2209 ignores the 'a' flag.
2211 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2213 * config/tc-alpha.c (assemble_tokens): Protect use of
2214 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2216 * write.c (size_seg): Check adjustment to last frag.
2217 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2219 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2220 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2221 (write_object_file): Invoke md_do_align if available, and use
2222 frag_align_code on text sections.
2223 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2224 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2225 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2226 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2227 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2230 2002-05-22 H.J. Lu <hjl@gnu.org>
2232 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2235 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2237 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2240 2002-05-22 H.J. Lu <hjl@gnu.org>
2242 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2243 for one .loc for compiler.
2245 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2247 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2250 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2252 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2253 Optimize the rotate by zero case.
2255 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2257 * configure.in: Remove accidental enabling of bfd_gas=yes for
2259 * configure: Regenerate.
2261 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2263 * app.c: Fix formatting.
2265 * ehopt.c: Likewise.
2267 * input-file.c: Likewise.
2268 * listing.c: Likewise.
2269 * macro.h: Likewise.
2270 * stabs.c: Likewise.
2271 * symbols.c: Likewise.
2273 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2275 * config/obj-generic.c: Delete file.
2276 * config/obj-generic.h: Likewise.
2278 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2280 * config/tc-avr.c (mcu_types): Update for new devices.
2282 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2284 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2286 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2288 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2289 worked sometimes by accident. Fix copy&paste comment.
2291 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2293 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2294 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2295 (mips_elf_final_processing): Let n32 use .reginfo.
2297 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2299 * config/tc-mips.c (append_insn): Fix too small range of variable.
2301 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2303 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2304 listing_prev_line().
2306 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2308 * config/tc-arm.c (md_assemble): Remove redundant call to
2311 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2314 * stabs.c (s_stab_generic): Fix grammatical error in warning
2317 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2319 * write.c (subsegs_finish): Don't specially align last subseg.
2321 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2323 * stabs.c (s_stab_generic): Warn about a description field that is
2326 * config/obj-coff.c: Fix compile time warnings when compiling
2327 without BFD_ASSEMBLER defined.
2330 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2332 (md_pcrel_from_section): Use md_pcrel_from().
2334 2002-05-11 Bruno Haible <bruno@clisp.org>
2336 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2337 by dwarf2_directive_loc, instead of calling dwarf2_where.
2339 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2341 * config/obj-coff.h: Fix formatting.
2342 * config/tc-mcore.c: Likewise.
2343 * config/tc-mn10300.c: Likewise.
2344 * config/tc-openrisc.c: Likewise.
2345 * config/tc-or32.c: Likewise.
2346 * config/tc-pdp11.c: Likewise.
2347 * config/tc-ppc.c: Likewise.
2348 * config/tc-ppc.h: Likewise.
2349 * config/tc-sh64.c: Likewise.
2350 * config/tc-sh.c: Likewise.
2351 * config/tc-tic54x.c: Likewise.
2352 * config/tc-xstormy16.c: Likewise.
2353 * config/tc-xstormy16.h: Likewise.
2355 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2357 * config/obj-coff.c: Fix formatting.
2358 * config/obj-elf.c: Likewise.
2359 * config/tc-alpha.c: Likewise.
2360 * config/tc-arm.c: Likewise.
2361 * config/tc-d10v.c: Likewise.
2362 * config/tc-d30v.c: Likewise.
2363 * config/tc-h8300.c: Likewise.
2364 * config/tc-hppa.c: Likewise.
2366 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2368 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2369 reloc when no_cond_jump_promotion.
2371 2002-05-08 Jim Wilson <wilson@redhat.com>
2373 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2374 current variable part of frag.
2376 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2378 * config/tc-mmix.c: Fix formatting.
2379 * config/tc-mmix.h: Likewise.
2381 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2383 * configure: Regenerate.
2385 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2387 * config/tc-m68k.c: Fix formatting.
2389 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2391 * Makefile.am: Honour DESTDIR.
2392 * Makefile.in: Regenerate.
2394 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2396 * config/tc-ia64.c: Fix formatting.
2397 * config/tc-ia64.h: Likewise.
2399 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2401 * config/tc-mips.c: Fix formatting.
2402 * config/tc-s390.c: Likewise.
2403 * config/tc-s390.h: Likewise.
2405 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
2407 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2408 information for instructions.
2410 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2412 * as.h: Fix formatting.
2415 * dwarf2dbg.c: Likewise.
2416 * frags.h: Likewise.
2418 * macro.c: Likewise.
2420 * stabs.c: Likewise.
2421 * symbols.c: Likewise.
2423 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2425 * app.c (mri_pseudo): Only declare for TC_M68K.
2427 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2428 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2429 BFD_RELOC_16_BASEREL.
2430 (md_assemble): Likewise.
2431 (md_apply_fix3): Likewise.
2433 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2435 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2436 zero into an add of zero - it is not the same.
2438 2002-05-01 Arati Dikey <aratid@kpit.com>
2440 * tc-sh.c (get_specific): Generate warning if the same
2441 destination register is used in parallel instructions.
2443 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
2445 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2447 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2449 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2450 backwards to prevent cascading errors.
2452 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2454 * configure.in: Add support for powerpc-*-windiss.
2455 * configure: Regenerated.
2457 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2459 * config/tc-s390.c (md_parse_option): Formatting.
2461 * config/tc-i386.c: Formatting fixes, add missing space in error
2464 2002-04-24 Christian Groessler <chris@groessler.org>
2466 * config/tc-z8k.c (build_bytes): Add support for new cases:
2467 CLASS_IGNORE and ARG_NIM4.
2468 (md_assemble): Prevent destruction of input_line_pointer if
2469 get_operands returns failure.
2471 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2473 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2474 instructions to be generated by macros.
2476 2002-04-24 Andreas Schwab <schwab@suse.de>
2478 * config/tc-i386.c (output_jump, output_disp)
2479 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2481 (md_apply_fix3): Remember addend value for rela relocations.
2482 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2484 2002-04-22 Chris Demetriou <cgd@broadcom.com>
2486 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2487 from previous change.
2489 2002-04-22 Eric Christopher <echristo@redhat.com>
2491 * config/tc-mips.c (macro_build): Add warning if macro instructions
2492 are expanded into a branch delay slot.
2494 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
2496 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2497 numbers, gdb relies on them to detect the start of the prologue.
2499 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2501 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2502 symbols in merge sections.
2504 2002-04-16 Alan Modra <amodra@bigpond.net.au>
2506 * as.c (main): Don't reference _bfd_chunksize.
2508 2002-04-15 Tom Rix <trix@redhat.com>
2510 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2511 symbols in merge sections.
2513 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2515 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2516 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2517 argument for the precision.
2518 (gen_to_words): Update accordingly.
2520 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2522 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2523 BFD_VERSION_STRING unavailable.
2524 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2526 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
2528 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2529 symbol_used_in_reloc_p is true.
2531 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2534 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2536 * dep-in.sed: Cope with absolute paths.
2537 * Makefile.am (dep.sed): Subst TOPDIR.
2539 * Makefile.in: Regenerate.
2541 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2543 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2544 (mips_ip): Remove unused variable.
2545 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2546 unsigned char with bfd_byte.
2547 (s_file): Remove unused variable.
2548 (s_mips_ent): Likewise.
2550 2002-04-03 Tom Rix <trix@redhat.com>
2552 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2554 (find_opcode): Fix warning in as_warn.
2555 * config/tc-d10v.h: Update Copyright.
2557 2002-04-03 Alan Matsuoka <alanm@redhat.com>
2558 Tom Rix <trix@redhat.com>
2560 From Jeff Knaggs <jknaggs@redhat.com>
2561 * config/tc-d10v.c (check_resource_conflict): New function to
2562 check for resource conflicts.
2564 From Jason Eckhardt <jle@redhat.com>
2565 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2567 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2568 reserved control registers is used.
2569 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2572 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
2573 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2574 instruction cannot be packed.
2576 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
2577 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2578 write-write conflicts.
2579 (md_assemble): Reformat introductory comment.
2580 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2583 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2585 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2586 O_logical_not>): Derive final_seg from add_symbol.
2587 <O_multiply..O_logical_or>: More final_seg twiddles.
2589 2002-04-01 Jessica Han <jessica@cup.hp.com>
2591 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2594 2002-03-27 Andreas Schwab <schwab@suse.de>
2596 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2597 field for pc-relative fixups.
2598 (output_disp): Likewise.
2599 (md_estimate_size_before_relax): Likewise.
2600 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2601 pc-relative fixups in 64bit mode.
2603 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2605 * config/te-aix5.h: Typo fix.
2607 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2609 * Makefile.am: Run "make dep-am".
2610 * Makefile.in: Regenerate.
2611 * doc/Makefile.in: Regenerate.
2613 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
2615 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2616 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2618 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2620 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2621 the EXTENDED bit here; report the estimate according to the
2624 2002-03-18 Tom Rix <trix@redhat.com>
2626 * configure.in: Add AIX 5 support.
2627 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2628 * config/te-aix5.h: New file. AIX 5 support.
2629 * configure: Regenerate.
2631 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2633 * po/fr.po: Updated version.
2635 2002-03-16 Andreas Jaeger <aj@suse.de>
2637 * doc/c-mips.texi (Machine Dependencies): Add new node.
2639 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
2641 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2642 (mips_opts): Initialize "ase_mips3d" member.
2643 (file_ase_mips3d): New variable.
2644 (CPU_HAS_MIPS3D): New macro.
2645 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2646 based on command line options and configuration defaults.
2647 (macro_build, mips_ip): Accept MIPS-3D instructions if
2648 mips_opts.ase_mips3d is set.
2649 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2650 Add support for "-mips3d" and "-no-mips3d" options.
2651 (OPTION_ELF_BASE): Move to accomodate new options.
2652 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2653 (mips_elf_final_processing): Add a comment indicating that a
2654 MIPS-3D ASE ELF header flag should be set, when one exists.
2655 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2656 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2657 nomips3d" directives.
2659 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
2661 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2662 a weak symbol in same section to be within reach.
2664 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2666 * po/fr.po: Updated version.
2668 2002-03-12 Andreas Schwab <schwab@suse.de>
2670 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2671 body record so that an error is given for misplaced .save
2674 2002-03-09 Alan Modra <amodra@bigpond.net.au>
2676 * config/tc-i386.h (REX_OPCODE): Define.
2677 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2678 (rex_byte): typedef to int.
2679 * config/tc-i386.c: Group prototypes and vars together.
2680 Formatting fixes. Remove occurrences of "register" keyword.
2683 (mode_from_disp_size): Add INLINE keyword to prototype.
2684 (fits_in_signed_byte): Likewise.
2685 (fits_in_unsigned_byte): Likewise.
2686 (fits_in_unsigned_word): Likewise.
2687 (fits_in_signed_word): Likewise.
2688 (fits_in_unsigned_long): Likewise.
2689 (fits_in_signed_long): Likewise.
2690 (type_names): Constify.
2691 (intel_float_operand): Constify param.
2692 (add_prefix): Use REX_OPCODE.
2693 (md_assemble): Likewise. Modify for changed rex_byte.
2694 (parse_insn): Split out of md_assemble.
2695 (parse_operands): Likewise.
2696 (swap_operands): Likewise.
2697 (optimize_imm): Likewise.
2698 (optimize_disp): Likewise.
2699 (match_template): Likewise.
2700 (check_string): Likewise.
2701 (process_suffix): Likewise.
2702 (check_byte_reg): Likewise.
2703 (check_long_reg): Likewise.
2704 (check_qword_reg): Likewise.
2705 (check_word_reg): Likewise.
2706 (finalize_imm): Likewise.
2707 (process_operands): Likewise.
2708 (build_modrm_byte): Likewise.
2709 (output_insn): Likewise.
2710 (output_branch): Likewise.
2711 (output_jump): Likewise.
2712 (output_interseg_jump): Likewise.
2713 (output_disp): Likewise.
2714 (output_imm): Likewise.
2716 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2718 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2720 2002-03-06 Alan Modra <amodra@bigpond.net.au>
2722 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2723 relocs except when BFD64.
2725 * write.c (number_to_chars_bigendian): Don't abort when N is
2726 larger than sizeof (VAL).
2727 (number_to_chars_littleendian): Likewise.
2729 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2731 * config/tc-hppa.c (md_apply_fix3): Add cast.
2732 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2735 2002-03-05 Paul Koning <pkoning@equallogic.com>
2737 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2738 (parse_ac5): New function for parsing float regs in float operand.
2739 (parse_expression): Remove attempt to make literals be octal.
2740 (parse_op_no_deferred): Support float literals.
2741 (parse_op): Reject attempts to refer to float regs.
2742 (parse_fop): New function, like parse_op but for float operand.
2743 (md_assemble): Add cases to parse float operands. Also fix
2744 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2746 2002-03-04 H.J. Lu <hjl@gnu.org>
2748 * config/obj-elf.c (special_section): Add .init_array,
2749 .fini_array and .preinit_array.
2751 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2752 .init_array and .fini_array.
2754 2002-03-01 Jakub Jelinek <jakub@redhat.com>
2756 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2758 (obj_frob_symbol): Copy visibility.
2760 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2762 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2764 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2766 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2768 * po/es.po: Updated.
2770 2002-02-26 Chris Demetriou <cgd@broadcom.com>
2772 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2773 only, undo the changes made on 2001-06-08, with the
2774 effect being that common or extern symbols are
2775 adjusted for embedded-PIC, but weak symbols are not.
2776 (md_estimate_size_before_relax: Likewise, with the effect
2777 that extern symbols are treated the same as weak symbols
2778 only if not embedded-PIC.
2779 (mips_fix_adjustable) Likewise, with the effect that
2780 weak or extern symbols are not adjusted for embedded-PIC.
2781 (md_apply_fix3): Tweak so that the case where value is zero
2782 is handled more correctly for embedded-PIC code.
2784 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2786 * doc/as.texinfo (Overview): Add missing @ifset IA64
2788 * configure.in (LINGUAS): Add es.po.
2789 * configure: Regenerate.
2790 * po/es.po: New file.
2792 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2794 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2795 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2796 and NO_PIC cases. Code cleanup.
2797 (macro2): Fix handling of 64bit register loads.
2799 2002-02-25 David Mosberger <davidm@hpl.hp.com>
2801 * doc/as.texinfo: Add entry for IA64.
2802 * doc/c-ia64.texi: New file.
2804 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2806 * config/tc-hppa.c: Update copyright date.
2808 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
2809 Remove references to chip manufacturers.
2810 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2812 (md_show_usage): Remove references to chip manufacturers. Mention
2814 (md_begin): Test power4 opcode flag bits.
2816 2002-02-22 David Mosberger <davidm@hpl.hp.com>
2818 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2819 count exceeds prologue count.
2820 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2821 (unwind.label_prologue_count): New member.
2823 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2825 (get_saved_prologue_count): New function.
2826 (save_prologue_count): New function.
2827 (free_saved_prologue_count): New function.
2828 (dot_label_state): Record state label by calling save_prologue_count().
2829 (dot_copy_state): Restore prologue count by calling
2830 get_saved_prologue_count().
2831 (generate_unwind_image): Free up list of saved prologue
2832 counts by calling free_saved_prologue_counts().
2834 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
2836 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2837 function declarations.
2839 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
2841 * NEWS: Note that GASP is now deprecated.
2842 * Makefile.am: Do not build gasp-new by default.
2843 * Makefile.in: Regenerate.
2844 * doc/Makefile.am: Do not install gasp.info.
2845 * doc/Makefile.in: Regenerate.
2846 * gas/gasp.texi: Note that gasp is now deprecated.
2848 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2850 * NEWS: Mark 2.12 branch.
2852 2002-02-19 Tom Tromey <tromey@redhat.com>
2854 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2856 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2858 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2861 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2863 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2864 Make bit size independent of architecture switch.
2865 (md_begin): Add warning for -m64 with -Aesa.
2866 (s390_md_end): Use renamed architecture defines.
2868 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
2870 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2872 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2874 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2877 2002-02-15 Chris Demetriou <cgd@broadcom.com>
2879 * config/tc-mips.c (md_estimate_size_before_relax): Really
2880 make sure we treat weak like extern only for ELF. (Fixes
2881 patch from 2001-07-25.)
2883 2002-02-15 Ben Elliston <bje@redhat.com>
2885 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
2888 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2890 * NEWS: Mention support for MMIX.
2892 2002-02-13 Chris Demetriou <cgd@broadcom.com>
2894 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
2895 a sequence of indpendent 'if' statements for easier debugging
2896 and future modification.
2898 2002-02-13 Matt Fredette <fredette@netbsd.org>
2900 * config/tc-m68k.c (md_show_usage): No longer display a
2901 hard-coded "68020" for the default CPU, instead display the
2902 canonical name of the true, configured default CPU.
2903 (m68k_elf_final_processing): Mark objects for sub-68020
2904 CPUs with the new EF_M68000 flag.
2906 2002-02-13 Andreas Schwab <schwab@suse.de>
2908 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2909 pc-relative relocations to merge sections in 64-bit mode.
2911 2002-02-13 Ben Elliston <bje@redhat.com>
2913 * NEWS: Document floating point number handling in gasp.
2914 * gasp.c: Include <assert.h> and "xregex.h".
2915 (is_flonum): New function.
2916 (chew_flownum): Likewise.
2917 (change_base): Consume flonums from the input, where possible.
2918 * doc/gasp.texi (Constants): Document floating point numbers.
2920 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2922 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
2923 that implicitly use LR and RR selectors.
2925 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2927 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
2928 and `epsw' as available on AM33 and above only.
2929 (other_register_name): Add logic to handle machine type encoded in
2932 2002-02-11 Tom Rix <trix@redhat.com>
2934 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
2937 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
2939 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2942 2002-02-11 Jan Hubicka <jh@suse.cz>
2944 * i386.c (md_assemble): Support 32bit address prefix.
2945 (i386_displacement): Likewise.
2946 (i386_index_check): Accept 32bit addressing in 64bit mode.
2948 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2950 * config/tc-sh.c (dot): Removed unused function.
2952 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2954 * Makefile.am: "make dep-am".
2955 * Makefile.in: Regenerate.
2956 * aclocal.m4: Regenerate.
2957 * config.in: Regenerate.
2958 * configure: Regenerate.
2959 * doc/Makefile.in: Regenerate.
2961 2002-02-10 Richard Henderson <rth@redhat.com>
2963 * doc/c-alpha.texi: New file.
2964 * doc/Makefile.am (CPU_DOCS): Add it.
2965 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
2967 2002-02-09 Richard Henderson <rth@redhat.com>
2969 * config/tc-alpha.c (O_samegp): New.
2970 (USER_RELOC_P): Include it.
2971 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
2972 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
2973 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2974 (alpha_validate_fix): New.
2975 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
2977 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
2979 * doc/c-cris.texi: New.
2980 * doc/all.texi: @set CRIS.
2981 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
2982 Include c-cris.texi.
2983 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
2984 * doc/Makefile.in: Regenerate.
2986 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2988 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
2989 determine if a number is a sign-extended 32-bit number.
2990 (load_register): Use IS_SEXT_32BIT_NUM.
2991 (macro): Check if load/store macro handling is using a
2992 constant 32-bit address on 64-bit address systems, and if
2993 so optimize the generation of that address.
2995 2002-02-08 Richard Henderson <rth@redhat.com>
2997 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
2998 we've eliminated all foreign relocation types yet.
2999 (alpha_fix_adjustable): Likewise.
3001 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3003 Contribute sh64-elf.
3004 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3005 Stephen Clarke <Stephen.Clarke@st.com>
3006 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3007 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3008 * config/tc-sh.c (md_relax_table): Added default sizes for
3009 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3010 MOVI_16, MOVI_32 and MOVI_48.
3011 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3012 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3014 (shmedia_md_estimate_size_before_relax): Remove redundant
3015 blocks. Set fragP->fr_var even if relaxation type unchanged.
3016 Retain UNDEF_MOVI until expression decays to number.
3017 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3018 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3019 relocation types. Take fixP->fx_addnumber into account too.
3020 (shmedia_md_apply_fix): Likewise.
3021 (shmedia_md_convert_frag): Likewise.
3022 (shmedia_build_Mytes): Likewise.
3023 (sh64_consume_datalabel): Complain about nested datalabel.
3024 Support PIC relocs. Call sh_parse_name.
3025 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3026 in tc-sh.h to SHmedia reloc types.
3027 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3028 MOVI_GOTPC): New relaxation constants.
3029 (md_relax_table): Introduce relaxation directives for PIC-related
3031 (sh_PIC_related_p): Handle datalabel.
3032 (sh_check_fixup): Choose SH5 PIC relocations.
3033 (sh_cons_fix_new): Added BDF_RELOC_64.
3034 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3035 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3036 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3037 current ISA is SHmedia, get 7 bytes.
3038 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3039 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3041 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3042 shmedia_apply_fix3 and make void.
3043 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3044 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3046 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3047 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3048 2001-03-14 DJ Delorie <dj@redhat.com>
3049 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3050 * doc/Makefile.in(CPU_DOCS): Ditto.
3051 * doc/c-sh64.texi: New file.
3052 * doc/as.texinfo: Add SH64 support.
3053 2001-03-13 DJ Delorie <dj@redhat.com>
3054 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3055 A_REUSE_PREV so that its purpose is more obvious.
3056 (shmedia_build_Mytes): Ditto.
3057 2001-03-07 DJ Delorie <dj@redhat.com>
3058 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3060 (sh64_vtable_inherit): Ditto.
3061 (strip_datalabels): New, strip "datalabel" from given line.
3062 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3064 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3065 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3067 (shmedia_build_Mytes): ... to here.
3068 2001-03-06 DJ Delorie <dj@redhat.com>
3069 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3071 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3072 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3073 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3074 address by one in call to dwarf2_emit_insn.
3075 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3076 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3077 alignment handling broken by imported changes.
3078 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3079 (sh64_handle_align): Declare.
3080 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3081 (sh64_max_mem_for_rs_align_code): Declare.
3082 (enum sh64_isa_values): Moved here from tc-sh64.c.
3083 (md_do_align): Define.
3084 (sh64_do_align): Declare.
3085 (struct sh64_tc_frag_data): New.
3086 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3088 (TC_FRAG_INIT): Change to set new datatype.
3089 (struct sh64_segment_info_type): Rename member
3090 last_flushed_location to last_contents_mark. All users changed.
3091 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3092 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3093 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3094 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3095 of unsetting seen_insn.
3096 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3097 call sh64_update_contents_mark.
3098 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3099 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3100 enum sh64_isa_values.
3101 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3102 (emitting_crange): Boolean guard moved to file scope from function
3103 scope in sh64_set_contents_type.
3105 (sh64_update_contents_mark): New; most split out from
3106 sh64_flush_pending_output.
3107 (shmedia_md_end): Call sh64_update_contents_mark. Set
3108 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3109 (sh64_do_align): New function.
3110 (sh64_max_mem_for_rs_align_code): New function.
3111 (sh64_handle_align): Rename from shmedia_do_align. Make
3112 non-static. Add head comment. Emit zero bytes for n bytes modulo
3113 four. Change return-type to void.
3114 (shmedia_elf_new_section): Remove.
3115 (shmedia_md_assemble): Call sh64_update_contents_mark.
3116 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3117 new frag. Call sh64_update_contents_mark after making the new
3119 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3120 and sh_flush_pending_output.
3121 (sh64_flag_output): Also call md_flush_pending_output, but add
3122 condition on not emitting_crange.
3123 (sh64_tc_cons_fix_new): Remove.
3124 2001-01-12 Nick Clifton <nickc@redhat.com>
3125 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3126 alignment handling scheme imported from sourceware.
3127 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3128 * config/tc-sh64.h (TARGET_FORMAT): Define.
3129 (sh64_target_format): Prototype.
3130 * config/tc-sh64.c (sh64_target_mach): New function.
3131 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3132 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3133 zero_address_frag instead of copying the frag of the symbol.
3134 (shmedia_frob_file_before_adjust): Ditto.
3135 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3136 to valueT to remove signedness.
3137 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3138 headers to output_bfd. Do not evaluate symbols if final is false;
3140 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3141 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3142 to the current frag, call shmedia_md_convert_frag to emit fixups
3143 and make frag_wane neutralize the frag. Update comments.
3144 * config/tc-sh.c (md_convert_frag): Change caller of
3145 shmedia_md_convert_frag.
3146 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3147 * config/tc-sh64.h: Tweak comments and correct formatting.
3148 * config/tc-sh64.c: Ditto.
3149 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3150 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3151 for the no-relocation case.
3152 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3153 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3155 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3157 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3158 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3160 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3162 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3163 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3164 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3165 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3166 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3167 if reloc is emitted.
3168 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3169 New options plus bugfixes.
3170 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3172 (md_parse_option): Handle new options.
3173 (md_show_usage): Add blurb for new options.
3174 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3175 (sh64_expand, sh64_pt32): New variables.
3176 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3177 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3178 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3179 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3180 <resolved previously-pc-relative relocs>: Handle
3181 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3182 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3183 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3184 points to SHcompact code.
3185 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3186 SH64PCREL16)>: Check that ISA of what operand points at and
3187 PTA/PTB matches, or emit error.
3188 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3189 SHMEDIA_BFD_RELOC_PT.
3190 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3192 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3193 condition for MOVI expansion.
3194 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3195 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3197 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3199 (sh64_target_format): Error-check setting of sh64_pt32 and
3200 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3201 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3202 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3203 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3204 * config/tc-sh64.c: Improve comments.
3205 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3206 not say the linker will check correctness of PTA/PTB expansion.
3207 (shmedia_md_end): Make non-static.
3208 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3210 * config/tc-sh.c (sh_finalize): Remove.
3211 * config/tc-sh.h (md_end): Do not define.
3212 Remove prototype for sh_finalize.
3213 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3214 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3215 sh64_section_data container when storing section type in tdata
3216 field in elf_section_data.
3217 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3219 * Makefile.am: Update dependencies.
3220 * Makefile.in: Regenerate.
3221 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3222 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3223 dwarf2_emit_insn call with test on debug_type.
3224 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3225 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3226 CRT_SH5_ISA32 sticky for 64-bit.
3227 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3228 Generate .crange sections when switching ISA mode or emitting
3229 constants in same section as code.
3230 * config/tc-sh64.c: Reformat structure definitions.
3231 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3233 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3234 to emit a .cranges descriptor when contents type changes. Only
3235 emit error if changing contents type and -no-mix is in effect.
3236 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3237 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3238 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3239 sh64_flush_last_crange over sections.
3240 When checking main symbol of datalabel symbol, check for
3241 STO_SH5_ISA32, not ISA type of section in definition.
3242 (shmedia_frob_file_before_adjust): Check main symbol for
3243 STO_SH5_ISA32; don't check ISA type of section in definition.
3244 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3245 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3246 .cranges entries have been output.
3247 (shmedia_elf_new_section): Just call md_flush_pending_output.
3248 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3249 fix. Do not set tc_segment_info_data.in_code for section. Call
3250 sh64_set_contents_type for SHmedia code.
3251 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3252 false. Call md_flush_pending_output.
3253 (sh64_target_format): Check that -no-mix and
3254 -shcompact-const-crange are used in sane combination with other
3256 (shmedia_md_pcrel_from_section): Check type of fix for how to
3258 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3259 not ISA type of section in definition.
3260 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3261 hold contents-type state.
3262 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3263 (sh64_flush_pending_output): Declare.
3264 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3265 (sh64_tc_cons_fix_new): Declare.
3266 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3267 call sh64_flag_output.
3268 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3269 call sh64_set_contents_type to mark SHcompact code and set
3271 (md_longopts): New options "-no-mix" and
3272 "-shcompact-const-crange".
3273 (md_parse_option): Handle new options.
3274 (md_show_usage): Add blurb for new options.
3275 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3276 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3277 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3278 (sh64_last_insn_frag): New.
3279 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3280 to get frag for insn opcode for generating fixups; do not assume it
3282 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3284 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3286 (TC_FRAG_TYPE): Define as fragS *.
3287 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3288 (sh64_last_insn_frag): Declare.
3289 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3290 not == NULL before dereferencing.
3291 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3292 Get rid of BFD section flag and EF_SH64_ABI64.
3293 * config/tc-sh64.c (shmedia_frob_section_type): Use
3294 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3295 communicate the section as containing SHmedia code. Describe why.
3296 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3297 EF_SH64 regardless of ABI.
3298 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3299 in error message. Handle resolved expressions for
3300 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3301 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3302 (shmedia_check_limits): Handle BFD_RELOC_64.
3303 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3304 a STO_SH5_ISA32 symbol, only the BFD value.
3305 2000-12-11 Ben Elliston <bje@redhat.com>
3306 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3307 dwarf2_generate_asm_lineno.
3308 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3309 Handle PC-relative MOVI expansions with assembler relaxation.
3310 Generate PC-relative relocs from 16-bit PC-relative expressions.
3311 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3312 (shmedia_md_pcrel_from_section): ...here.
3313 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3314 turned completely resolved. Adjust relocation type for 16-bit
3315 immediate operands that has turned PC-relative. Adjust back for
3316 MD_PCREL_FROM_SECTION being applied twice.
3317 (shmedia_md_convert_frag): Always emit reloc for expression with
3318 global or weak symbol. Handle relaxation result for PC-relative
3320 (shmedia_md_estimate_size_before_relax): An expression with a weak
3321 or global symbol can not be relaxed. Break out tests for
3322 relaxable symbol into variable sym_relaxable.
3323 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3324 UNDEF_MOVI)>: Break out any PC-relative expression and change
3326 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3328 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3329 MOVI expansion. If X_op_symbol of the immediate expression is
3330 set, make an expression symbol for the argument to frag_var.
3331 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3333 (END): Adjust for new relaxations.
3334 (md_relax_table): Add entries for new relaxations.
3335 2000-12-07 Ben Elliston <bje@redhat.com>
3336 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3337 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3338 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3339 SHORI operand offsets in PT/PTA/PTB expansions.
3340 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3341 Implement DataLabel semantics.
3342 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3343 shmedia_frob_file_before_adjust.
3344 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3345 (DATALABEL_SUFFIX): Define.
3346 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3347 symbol list to update "datalabel" symbols to their main symbol
3349 (shmedia_frob_file_before_adjust): New.
3350 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3351 undefined and set STT_DATALABEL.
3352 (sh64_frob_label): Initialize TC symbol field.
3353 (sh64_consume_datalabel): Actually implement semantics. New
3354 parameter operandf, call it instead of expression.
3355 (sh64_exclude_symbol): New.
3356 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3357 to sh64_consume_datalabel.
3358 (tc_symbol_new_hook): Define to tc_frob_symbol.
3359 (TC_SYMFIELD_TYPE): Define to symbolS *.
3360 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3361 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3362 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3364 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3365 generating dwarf2 debug information.
3366 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3367 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3368 elf64-sh64 for the 64-bit ABI.
3369 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3371 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3372 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3374 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3375 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3376 (enum sh64_abi_values): New type.
3377 (enum sh64_isa_values): New type.
3378 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3379 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3380 (sh64_abi): Replace shmedia_64.
3381 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3382 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3383 (s_sh64_mode): Check validity for this target.
3384 (sh64_target_format): Initialize defaults for ISA and ABI.
3385 Fallback to old object format if no SH64 ISA or ABI has been
3387 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3388 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3389 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3390 * config/tc-sh64.h: Fix typo in comment.
3391 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3392 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3393 <PT fixups for absolute values>: Size will be longest, not
3395 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3396 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3397 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3398 and l1 to hold lowercase of two first characters. Change all
3399 remaining TO_LOWER to tolower.
3400 * config/tc-sh64.c (TO_LOWER): Delete.
3401 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3402 (md_parse_name): Define.
3403 (sh64_consume_datalabel): Declare.
3404 (DOLLAR_DOT): Define.
3405 * config/tc-sh64.c (shmedia_parse_exp): New.
3406 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3407 (shmedia_parse_reg): Remove const from src
3409 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3410 (shmedia_md_assemble): Ditto for op_end variable.
3411 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3412 Use shmedia_parse_exp, not parse_exp.
3413 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3414 parameter. All callers changed.
3415 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3417 (shmedia_parse_reg): Put first two character in local variables.
3418 Use tolower, not TO_LOWER. If no register is found and argtype
3419 indicates a control register, scan shmedia_creg_table
3421 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3422 * Makefile.am (CPU_TYPES): Add sh64.
3423 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3424 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3425 Regenerate dependencies.
3426 * Makefile.in: Regenerate.
3427 * configure.in: Add support for sh64-*-elf*.
3428 * configure: Regenerate.
3429 * config/tc-sh64.h: New.
3430 * config/tc-sh64.c: New.
3431 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3432 .mode, .isa and .uaquad.
3433 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3434 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3435 [HAVE_SH64] (END): Define as 10.
3436 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3437 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3439 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3440 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3441 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3442 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3444 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3445 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3446 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3447 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3448 SHmedia instructions. Handle state-change after switching to
3450 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3451 (md_parse_option) [HAVE_SH64]: Parse new options.
3452 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3453 (md_convert_frag) [HAVE_SH64] <default>: Call
3454 shmedia_md_convert_frag instead of abort.
3455 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3456 BFD_RELOC_SH_SHMEDIA_CODE.
3457 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3458 SHcompact or SHmedia code.
3459 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3460 shmedia_md_apply_fix instead of abort.
3461 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3462 result from calling shmedia_md_estimate_size_before_relax instead
3464 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3466 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3467 shmedia_init_reloc and do nothing more if it returns non-zero.
3468 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3469 * po/POTFILES.in: Regenerate.
3470 * po/gas.pot: Regenerate.
3472 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3474 * config/tc-sh.c (parse_at): Install the correct version of
3477 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3478 assume fixP->fx_subsy is non-NULL.
3480 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3482 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3483 A_DISP_PC_ABS, and adjust it by -4.
3484 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3486 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3487 the operand type is not A_DISP_PC_ABS.
3489 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3491 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3492 common and weak symbols. Handle common and weak symbols as
3493 undefined symbols with regards to GREG handling and merging.
3494 (mmix_frob_file): Ditto.
3496 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3498 * configure.in (hppa-*-netbsd*): New target.
3499 * configure: Regenerate.
3500 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3502 2002-02-02 Alan Modra <amodra@bigpond.net.au>
3504 * config/tc-v850.c: Add missing prototypes amd use old-style
3505 function definitions.
3506 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3507 (sdata_section tdata_section, zdata_section, sbss_section,
3508 tbss_section, zbss_section, rosdata_section, rozdata_section,
3509 scommon_section, tcommon_section, zcommon_section,
3510 call_table_data_section, call_table_text_section): Delete.
3511 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3512 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3513 v850_call_table_data, v850_call_table_text): Delete.
3514 (struct v850_seg_entry): New.
3515 (v850_seg_table): New.
3516 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3517 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3518 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3519 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3522 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3523 recording of alignment.
3524 (md_pseudo_table): Use v850_seg.
3525 (md_begin): Don't init .call_table_data and .call_table_text here.
3526 Set v850_seg_table bss entry.
3528 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3530 Support on-demand global register allocation by passing on
3531 base-plus-offset relocs to the linker.
3532 * config/tc-mmix.c: Tweak and fix typos in comments.
3533 (allocate_undefined_gregs_in_linker): New variable.
3534 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3535 (md_longopts): Add --linker-allocated-gregs.
3536 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3537 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3538 (md_show_usage): Update text for -x. Add text for
3539 --linker-allocated-gregs.
3540 (tc_gen_reloc): Derive default value for addend from val and
3541 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
3542 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3543 GREG if allocate_undefined_gregs_in_linker.
3544 * doc/as.texinfo (Overview) <Target MMIX options>: Add
3545 --linker-allocated-gregs.
3546 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3547 --linker-allocated-gregs. Mention that it's implied by -x.
3548 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3549 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3551 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3553 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3555 * Makefile.am: Run "make dep-am"
3556 * Makefile.in: Regenerate.
3558 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3560 * config/tc-or32.c: New file.
3561 * config/tc-or32.h: New file.
3562 * configure.in: Add support for or32 targets.
3563 * configure: Regenerate.
3564 * config/obj-coff.c: Add support for or32 targets.
3565 * config/obj-coff.h: Add support for or32 targets.
3566 * Makefile.am: Add support for or32 targets.
3567 * Makefile.in: Regenerate.
3568 * NEWS: Mention support for OpenRISC.
3569 * doc/Makefile.in: Regenerate.
3570 * po/POTFILES.in: Regenerate.
3571 * po/gas.pot: Regenerate.
3573 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
3575 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3578 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3580 * config/tc-mips.c (tc_gen_reloc): Arrange for
3581 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3582 their LO16 parts, even for ELF.
3584 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
3586 * config/tc-i386.c: Protect definitions of true and false
3589 2002-01-28 Jakub Jelinek <jakub@redhat.com>
3591 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3592 made because of .weak, if they are neither defined nor used in any
3595 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3597 * configure: Regenerated.
3599 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3601 * doc/Makefile.am (install): Depend on install-info.
3602 * doc/Makefile.in: Regenerate.
3604 2002-01-26 Nick Clifton <nick@redhat.com>
3606 * po/fr.po: Updated version
3608 2002-01-24 Kazu Hirata <kazu@hxi.com>
3610 * config/tc-h8300.c (check_operand): Don't print a warning
3611 when a valid 24-bit address is given to a 16-bit address
3614 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3616 * config/tc-sh.c (sh_elf_suffix): Removed.
3617 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3618 sh_end_of_match, sh_parse_name): New functions.
3619 (sh_elf_cons): Simplify.
3620 (parse_exp): Reject misplaced PIC operands.
3621 (md_undefined_symbol): Simplify.
3622 (sh_fix_adjustable): Let @GOTOFF be adjusted.
3623 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3624 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3625 Complain if subsy remains at the end.
3626 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3627 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3629 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3631 * config/tc-mn10300.c (xr_registers): Move `pc'...
3632 (other_registers): ... here.
3634 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3636 * Makefile.am: Run "make dep-am".
3637 * Makefile.in: Regenerate.
3638 * gas/po/POTFILES.in: Regenerate.
3640 2002-01-21 DJ Delorie <dj@redhat.com>
3642 * config/obj-coff.c (obj_coff_init_stab_section): Make the
3643 stabstr_name allocation permanent, as it will be referenced from
3646 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3648 * configure.in (ia64-*-netbsd*): New target.
3649 * configure: Regenerate.
3651 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3653 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3655 <Detailed description, ARM options>: Ditto.
3656 * doc/c-arm.texi (ARM Options): Ditto.
3658 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3660 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3661 do_mia, do_mar and do_mra respectively.
3662 (do_mav_*): Renamed from do_c_*.
3663 (mav_reg_required_here, mav_parse_offset): Renamed from
3664 cirrus_reg_required_here and cirrus_parse_offset respectively.
3665 (MAV_MODE?): Renamed from CIRRUS_MODE?.
3667 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3668 Keith Walker <keith.walker@arm.com>
3670 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3671 (insns): Add pattern for bxj instruction.
3672 (do_bxj): New function.
3673 (arm_cpus): Add arm926ej.
3674 (arm_archs): Add armv5tej.
3676 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3678 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3680 2002-01-19 Keith Walker <keith.walker@arm.com>
3682 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3684 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3686 * NEWS: Mention new ARM command-line options and VFP support.
3688 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
3690 (ARM_CEXT_MAVERICK): Similarly.
3691 (ARM_ANY): Now means any core instruction.
3692 (CPU_DEFAULT): Default to ARM_ANY.
3693 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3694 (pic_code): Declare for all object types. Make type int.
3695 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3696 (march_fpu_opt, mfpu_opt): Declare.
3697 (md_longopts): Tidy up conditional definitions.
3698 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3699 (arm_long_opts): New tables.
3700 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3701 (arm_parse_extension): New function.
3702 (md_parse_option): Rewrite using new table-driven system.
3703 (md_show_usage): Use new table-driven system.
3704 (md_begin): Calculate cpu_variant from command line option data.
3705 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3706 command-line options.
3707 * doc/c-arm.texi: Likewise.
3709 2002-01-18 Andreas Jaeger <aj@suse.de>
3711 * as.c (parse_args): Update year.
3713 2002-01-17 Timothy Wall <twall@alum.mit.edu>
3715 * config/tc-tic54x.c (encode_address): Add a more informative
3716 warning about incorrect syntax.
3718 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3720 * po/gas.pot: Regenerate.
3722 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3724 * macro.c (get_any_string): Add no-c-format comment to prevent
3725 confusion when translating string.
3726 * gasp.c (get_any_string): Add no-c-format comment to prevent
3727 confusion when translating string.
3729 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3730 Johannes Stezenbach <js@convergence.de>
3731 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3732 matched before the shorter ones.
3733 (my_getSmallParser): Fix handling of nested parentheses in
3734 percent_op's. Code cleanup.
3735 (my_getPercentOp): New function, code from my_getSmallParser.
3736 (my_getSmallExpression): Fix handling of closing parentheses.
3737 Code cleanup. Better comments.
3739 2002-01-16 Nick Clifton <nickc@redhat.com>
3741 po/tr.po: New file: Turkish translation.
3742 configure.in (LINGUAS): Add "tr".
3743 configure: Regenerate.
3745 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3747 Support for VFP instructions
3748 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3749 (cp_address_required_here): New argument wb_ok. When false, do not
3750 accept write-back forms of addressing. Change all callers.
3751 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3752 (FPU_VFP_EXT_V2): Define.
3753 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3754 Define in terms of above.
3755 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3756 (vfp_reg): New struct.
3757 (vfp_regs): New array of registers.
3758 (insns): Add VFP instructions.
3759 (sn_table): New array of VFP single-precision register names.
3760 (dn_table): New array of VFP double-precision register names.
3761 (all_reg_maps): Add the new register tables.
3762 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
3763 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3764 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3765 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3766 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3767 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3768 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3769 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3770 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3771 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3772 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3773 (do_vfp_sp_dp_cvt): New functions.
3774 (md_begin): Set soft-float flag for appropriate VFP work.
3775 (md_atof): Handle VFP-format doubles.
3776 (md_parse_option): Handle VFP command-line options.
3777 (md_show_usage): Display VFP command-line options.
3779 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3781 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3782 various command line options.
3784 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3786 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3788 (xstormy16_md_apply_fix3): Do not return a value.
3790 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3792 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3793 the -EL/-EB option that matches the target's endianness.
3794 (md_parse_option): Likewise.
3796 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3798 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3799 is not dependent on ARM_BI_ENDIAN.
3801 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3803 * tc-arm.c (all error messages): Normalize capitalization of messages.
3805 * tc-arm.h (md_operand): Delete define.
3806 * tc-arm.c (in_my_get_expression): New static variable.
3807 (my_get_expression): Set and clear it.
3808 (md_operand): New function. If called from my_get_expression
3809 put the error in inst.error.
3810 (output_inst): Now takes argument of instruction being assembled.
3811 Print it out with any error message.
3812 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3814 (end_of_line): Don't update inst.error if it is already set.
3816 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3818 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
3819 op that can be translated into a mvn instruction.
3821 2002-01-11 Steve Ellcey <sje@cup.hp.com>
3823 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3824 setting default md.flags.
3825 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3826 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3827 * gas/config/tc-ia64.c (setup_unwind_header): Add support
3828 for 32 bit unwind info blocks.
3829 (generate_unwind_image): Add support for different types
3830 of unwind images (32 bits and/or big-endian).
3831 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3832 (ia64_target_format): Add support for hpux target formats.
3833 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3834 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3835 SHT_FINI_ARRAY elf section types.
3837 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
3839 * tc-arm.c (struct reg_entry): Move before prototypes.
3840 (int_register, cp_register, fp_register): Delete.
3841 (reg_table): Delete. Replaced with ...
3842 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3843 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3844 (mav_dspsc_table): ... one table per register set.
3845 (arm_reg_hsh): Delete.
3846 (struct reg_map): New structure.
3847 (all_reg_maps): New array.
3848 (enum arm_reg_type): New enums.
3849 (build_reg_hsh): New function.
3850 (insert_reg_alias): Use hash table passed by caller. Adjust all
3852 (create_register_alias): New function, split out from ...
3853 (md_assemble): ... here.
3854 (md_begin): Build new register hash tables.
3855 (arm_reg_parse): New argument for the hash table to search. Adjust all
3857 (arm_reg_parse_any): New function.
3858 (co_proc_number): Look up the processor number in the processor hash
3860 (cirrus_regtype): Delete.
3861 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3862 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3863 (ARM_EXT_MAVERICKsc_register): Delete.
3864 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3865 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3867 (do_c_triple_4, do_c_triple_5): Delete.
3868 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3869 (do_c_quad_6): Delete.
3870 (do_c_quad_6[ab]): New functions.
3871 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3872 arguments to use new register parsing methods.
3873 (cirrus_reg_required_here): Likewise.
3874 (insns): Reclassify cirrus maverick worker functions.
3875 (cirrus_valid_reg): Delete.
3877 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3879 * configure.in (sh*le): Set cpu_type=sh and endian=little.
3880 (sh*-*-netbsdelf*): New target.
3881 * configure: Regenerate.
3882 * tc-sh.h: Update copyright years.
3883 (TARGET_FORMAT): Add version for TE_NetBSD.
3885 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3887 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
3890 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3892 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
3893 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
3895 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
3897 * tc-mips.c (mips_cprestore_valid): New flag.
3898 (mips_frame_reg_valid): New flag.
3899 (macro) [M_JAL_2]: Check both flags.
3900 [M_JAL_A]: Likewise.
3901 (s_cprestore): Set mips_cprestore_valid.
3902 (tc_get_register): If setting mips_frame_reg, set
3903 mips_frame_reg_valid and clear mips_cprestore_valid.
3904 (s_mips_ent): Clear both flags.
3905 (s_mips_end): Clear both flags.
3907 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3909 * write.c (write_object_file): Make use of bfd_section_list_remove.
3910 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
3911 * config/tc-mmix.c (mmix_frob_file): Likewise.
3913 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3915 * configure.in (i386-*-netbsdelf*): Collapse target into...
3916 (i386-*-netbsd*): ...this. Add support for x86-64.
3917 * configure: Regenerated.
3919 2002-01-03 matthew green <mrg@redhat.com>
3921 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3923 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3925 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
3928 For older changes see ChangeLog-0001
3934 version-control: never