1 2003-10-15 Alan Modra <amodra@bigpond.net.au>
3 * doc/as.texinfo (Align): Correct list of byte targets.
5 2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
8 Fix indentation. Better error message.
10 2003-10-14 Bob Wilson <bob.wilson@acm.org>
12 * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
13 argument in call to xtensa_get_property_section_name. Formatting.
15 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
17 * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
20 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
22 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
24 * config/tc-sh.h: Likewise.
25 * config/tc-sh64.c: Likewise.
26 * config/tc-sh64.h: Likewise.
28 2003-10-08 Dave Brolley <brolley@redhat.com>
30 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
31 (fr550_check_acc_range): New function.
32 (md_assemble): Call fr550_check_acc_range.
34 2003-10-08 Dave Brolley <brolley@redhat.com>
36 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
37 (md_parse_option): Handle OPTION_CPU==fr550.
38 (md_show_usage): Document fr550.
40 2003-10-08 Philippe De Muyter <phdm@macqel.be>
42 * as.c (use_gnu_debug_info_extensions) : New variable.
43 (parse_args) : Accept new --gstabs+ option, and set
44 `use_gnu_debug_info_extensions'.
45 (show_usage) : Document --gstabs+ option.
46 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
47 * stabs.c (stabs_generate_asm_file) : If
48 `use_gnu_debug_info_extensions' is set, add the compilation
49 directory to the stabs debug info.
50 * doc/as.texinfo : Document --gstabs+ option.
51 * NEWS: Mention new feature.
53 2003-10-06 Matt Thomas <matt@3am-software.com>
55 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
58 * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
59 register names. Change all "defined (TE_LINUX)" to
60 "(defined (TE_LINUX) || defined (TE_NETBSD))".
62 * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
63 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
65 2003-10-06 Robert Millan <robertmh@gnu.org>
67 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
68 * configure: Regenerate.
70 2003-10-05 Nick Clifton <nickc@redhat.com>
72 * as.c (parse_args): Revert patch to change handling of -f
73 option. Its behaviour is mandated by the POSIX 2 spec.
75 2003-10-04 Christian Groessler <chris@groessler.org>
77 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
78 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
79 (md_pcrel_from): This function now gets called. Supply return
82 2003-10-04 Nick Clifton <nickc@redhat.com>
84 * as.c: Convert to ISO C90.
86 2003-10-04 Nick Clifton <nickc@redhat.com>
88 * as.c (std_shortopts): Remove 'f'.
89 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
90 acecpted as an alias for -f.
92 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
94 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
95 Make 'r' mean readonly data.
97 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
99 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
100 Unbreak overflow checks.
102 2003-10-01 Chris Demetriou <cgd@broadcom.com>
104 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
106 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
108 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
110 (load_register): Likewise.
113 2003-09-30 Chris Demetriou <cgd@broadcom.com>
115 * config/tc-mips.c (mips_ip): Capitalize first word of
116 existing condition code warning, and add condition code
117 warnings for .ps instructions, and for bc1any[24][tf].
119 2003-09-30 Chris Demetriou <cgd@broadcom.com>
121 * NEWS: Mention support for MIPS64 Release 2.
123 2003-09-30 Chris Demetriou <cgd@broadcom.com>
125 * NEWS: Add an indication of the cutoff for 2.14.
127 2003-09-30 Chris Demetriou <cgd@broadcom.com>
129 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
130 * configure: Regenerate.
131 * config/tc-mips.c (imm2_expr): New variable.
132 (md_assemble, mips16_ip): Initialize imm2_expr.
133 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
134 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
135 (macro): Handle M_DEXT and M_DINS.
136 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
138 (OPTION_MIPS64R2): New define.
139 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
140 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
141 (md_parse_option): Handle OPTION_MIPS64R2.
142 (s_mipsset): Handle setting "mips64r2" ISA.
143 (mips_cpu_info_table): Add mips64r2.
144 (md_show_usage): Document -mips64r2 option.
145 * doc/as.texinfo: Docuemnt -mips64r2 option.
146 * doc/c-mips.texi: Likewise.
148 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
150 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
152 2003-09-26 Matt Thomas <matt@3am-software.com>
154 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
155 (OPTION_PIC): Define.
156 (md_longopts): Add "pic" option.
157 (md_parse_option): Change 'K' to OPTION_PIC.
159 2003-09-23 Alan Modra <alan@modra.org>
161 * config/obj-elf.c (obj_elf_change_section): Adjust for
162 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
163 to be set when defaults are not. Don't set attr from defaults if
166 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
168 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
169 truncate values which won't fit im 32 bits.
170 (load_register): Likewise.
173 2003-09-17 Dmitry Diky <diwil@mail.ru>
175 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
176 (msp430_operands): Remove redundant l2[16] within switch-case.
178 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
180 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
181 * configure: Regenerate.
183 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
185 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
186 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
187 the function prototype.
188 (load_register): Likewise. Simplify the checks for sign-extended
190 (macro): Likewise. Fix code generation for 64-bit address constants
191 outside the 32-bit compatibility space. Adjust
192 macro_build_ldst_constoffset calls.
193 (s_cprestore): Adjust macro_build_ldst_constoffset call.
195 2003-09-11 Bob Wilson <bob.wilson@acm.org>
197 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
198 literal_syms): New global variables.
199 (xtensa_define_label, add_target_symbol, xtensa_find_label,
200 map_over_defined_symbols, is_loop_target_label,
201 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
202 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
203 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
204 from insn_labels to saved_insn_labels when entering a literal region.
205 (xtensa_end_directive): Call md_flush_pending_output. Restore
206 insn_labels list when leaving a literal region.
207 (xtensa_literal_position): Call xtensa_clear_insn_labels.
208 (xtensa_literal_pseudo): Add check to disallow .literal inside a
209 literal region. Move insn_labels to saved_insn_labels and then restore
211 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
212 code to set is_loop_target or is_branch_target flag on the symbol
213 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
214 (xtensa_add_literal_sym, xtensa_add_insn_label,
215 xtensa_clear_insn_labels): New functions.
216 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
217 loops_ok argument. Rewrite to use insn_labels list instead of
218 calling xtensa_find_label and to check the is_loop_target flag on
219 symbols when loops_ok is false.
220 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
221 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
222 call to xtensa_move_labels. Propagate is_branch_target and
223 is_loop_target flags from symbols to frags.
224 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
225 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
226 aligning a loop instruction. Adjust call to xtensa_move_labels for
227 aligning entry instructions. Add call to xtensa_clear_insn_labels.
228 (xtensa_end): Remove call to xtensa_mark_target_fragments.
229 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
230 code to use new literal_syms list.
231 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
232 is_branch_target flags.
234 2003-09-09 Bob Wilson <bob.wilson@acm.org>
236 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
237 "move_labels" argument and corresponding call to xtensa_move_labels.
238 (md_assemble): Add a separate call to xtensa_move_labels and remove
239 argument for call to xtensa_mark_literal_pool_location.
240 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
241 calls to xtensa_mark_literal_pool_location.
242 (xtensa_create_local_symbol): Delete and inline the code into...
243 (xtensa_create_literal_symbol): ...here.
244 (xtensa_frob_label): Combine conditionals.
245 (expression_maybe_register, xtensa_symbol_new_hook,
246 fix_new_exp_in_seg): Use symbol_get_tc.
248 2003-09-09 Bob Wilson <bob.wilson@acm.org>
250 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
251 combining identical literals.
252 (expression_maybe_register): Remove call to find_lit_sym_translation.
253 (is_duplicate_expression, cache_literal, is_duplicate_literal,
254 add_lit_sym_translation, find_lit_sym_translation): Delete.
256 2003-09-07 Nick Clifton <nickc@redhat.com>
258 * doc/as.texinfo (Comments): Comment character for PPC is #.
260 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
263 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
266 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
268 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
270 2003-09-04 Nick Clifton <nickc@redhat.com>
272 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
273 (md_pseudo_table): Add .v850e1 pseudo op.
274 (md_show_usage): Document -mv850e1 switch.
275 (md_parse_option): Accept -mv850e1 switch.
276 (md_begin): Allow TARGET_CPU to be v850e1.
277 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
278 * NEWS: Mention support for v850e1.
280 2003-09-04 Alan Modra <amodra@bigpond.net.au>
282 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
283 ppc_cpu selection rather than replacing.
284 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
285 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
287 2003-09-03 Robert Millan <robertmh@gnu.org>
289 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
291 * configure: Regenerate.
293 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
295 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
296 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
297 Specify AC_CONFIG_AUX_DIR.
298 * aclocal.m4: Regenerated with aclocal-1.7.
299 * configure: Regenerated with autoconf 2.57.
300 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
302 2003-08-29 Jakub Jelinek <jakub@redhat.com>
304 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
305 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
306 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
307 nor tc_cfi_emit_pcrel_expr are defined.
308 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
309 DIFF_EXPR_OK is not defined.
310 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
311 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
312 tc_cfi_emit_pcrel_expr): Define.
313 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
314 sparc_cfi_emit_pcrel_expr): New prototypes.
315 (sparc_cie_data_alignment): New decl.
316 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
317 * config/tc-sparc.c: Include dw2gencfi.h.
318 (sparc_cie_data_alignment): New variable.
319 (md_begin): Initialize it.
320 (sparc_cfi_frame_initial_instructions): New function.
321 (sparc_regname_to_dw2regnum): Likewise.
322 (sparc_cfi_emit_pcrel_expr): Likewise.
323 * doc/as.texinfo: Document .cfi_window_save.
325 * config/tc-sparc.c (s_common): Cast last argument to long and
326 change format string to shut up warning.
328 2003-08-25 Jason Eckhardt <jle@rice.edu>
330 * doc/c-i860.texi: Update text about relocatable address expansions.
332 2003-08-24 Jason Eckhardt <jle@rice.edu>
334 * config/tc-i860.c (md_assemble): Use isrc2 from the original
335 instruction when expanding E_ADDR.
337 2003-08-21 Nick Clifton <nickc@redhat.com>
339 * po/tr.po: Updated Turkish translation.
341 2003-08-20 Alan Modra <amodra@bigpond.net.au>
343 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
344 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
346 2003-08-19 Nick Clifton <nickc@redhat.com>
348 * config/tc-arm.c (cp_address_required_here): Add code to handle
349 unindexed addressing mode.
351 2003-08-19 Alan Modra <amodra@bigpond.net.au>
353 * config/tc-ppc.c (md_parse_option): Handle -m440.
354 (md_show_usage): Add -m440.
355 (md_apply_fix3): Warning fix.
356 * doc/c-ppc.texi: Document -m440.
358 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
360 * read.c (s_print): Check for NULL.
362 2003-08-16 Alan Modra <amodra@bigpond.net.au>
364 * write.c (fixup_segment): When handling an expression involving
365 the subtraction of two symbols in the same segment, don't clear
366 fx_pcrel except for TC_M68K.
368 2003-08-14 Alan Modra <amodra@bigpond.net.au>
370 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
372 * config/tc-i386.c: Likewise.
373 (RELOC_ENUM): Don't define. Replace throughout with enum.
375 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
376 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
378 * Makefile.in: Regenerate.
380 2003-08-08 Andreas Schwab <schwab@suse.de>
382 * config/tc-m68k.h (TARGET_USE_CFIPOP)
383 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
384 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
386 * config/tc-m68k.c: Include "dw2gencfi.h".
387 (tc_m68k_regname_to_dw2regnum)
388 (tc_m68k_frame_initial_instructions): New functions.
390 2003-08-08 Dmitry Diky <diwil@mail.ru>
392 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
393 according to gcc order.
395 2003-08-07 Jason Eckhardt <jle@rice.edu>
397 * config/tc-i860.c (i860_check_label): New function.
398 * config/tc-i860.h (i860_check_label): New prototype.
399 (tc_check_label): Define macro as i860_check_label.
401 2003-08-06 Jason Eckhardt <jle@rice.edu>
403 * config/tc-i860.c (s_align_wrapper): New function and prototype.
404 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
405 surrounding OBJ_ELF ifdef, and re-format slightly.
406 * doc/c-i860.texi: Document the special .align syntax available
409 2003-08-06 Jason Eckhardt <jle@rice.edu>
411 * config/tc-i860.c (i860_handle_align): New function.
412 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
413 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
415 2003-08-06 Jason Eckhardt <jle@rice.edu>
417 * config/tc-i860.c (i860_process_insn): Check that instructions
418 with their dual-bit set are 8-byte aligned.
420 2003-08-06 Nick Clifton <nickc@redhat.com>
422 * po/fr.po: Updated French translation.
424 2003-08-05 Jason Eckhardt <jle@rice.edu>
426 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
427 setting during flop argument parsing. Instead, do it after
428 instruction is fully parsed.
430 2003-08-05 Jason Eckhardt <jle@rice.edu>
432 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
433 directives are only available in Intel syntax mode.
435 2003-08-05 Jason Eckhardt <jle@rice.edu>
437 * config/tc-i860.c (s_dual): Accept .dual directive only in
438 the Intel syntax mode.
439 (s_enddual): Likewise for .enddual.
440 (s_atmp): Likewise for .atmp.
442 2003-08-04 Alan Modra <amodra@bigpond.net.au>
444 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
445 for memory operands. Pass the full operand_string to i386_index_check.
447 2003-08-01 Jason Eckhardt <jle@rice.edu>
449 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
450 (target_intel_syntax): Declare variable.
451 (OPTION_INTEL_SYNTAX): Declare macro.
452 (md_longopts): Add option -mintel-syntax.
453 (md_parse_option): Set target_intel_syntax.
454 (md_show_usage): Add -mintel-syntax usage.
455 (md_begin): Set reg_prefix based on target_intel_syntax.
456 (i860_process_insn): Skip register prefix only if there is one.
457 Parse relocatable expressions in either Intel or AT&T syntax based
458 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
459 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
460 about the differences in syntax.
462 2003-08-01 Dmitry Diky <diwil@mail.ru>
464 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
467 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
469 * config/tc-sh.c (md_assemble): For branches, check & update
472 2003-07-30 Jason Eckhardt <jle@rice.edu>
474 * config/tc-i860.c: Convert to ISO C90.
476 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
478 * read.c (s_space): Revert 2003-07-28 change.
480 2003-07-30 Alan Modra <amodra@bigpond.net.au>
482 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
484 2003-07-29 Alan Modra <amodra@bigpond.net.au>
486 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
488 2003-07-29 Jakub Jelinek <jakub@redhat.com>
490 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
492 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
494 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
496 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
498 * read.c (s_space): Don't warn about .space 0.
500 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
502 * config/tc-mips.c (mips_flag_pdr): Define.
503 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
504 (s_mips_end) [OBJ_ELF]: Likewise.
505 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
506 (md_parse_option) [OBJ_ELF]: Handle them.
507 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
509 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
510 * doc/as.texinfo (Overview) [MIPS]: Likewise.
512 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
514 * config/obj-elf.c (obj_elf_change_section): Update
515 elf_section_type and elf_section_flags only when they are
518 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
520 * config/obj-elf.c (obj_elf_change_section): Always set section
523 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
525 * config/obj-elf.c (special_sections): Removed.
526 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
527 elf_section_type and elf_section_flags.
528 (elf_frob_file): Set SHT_GROUP.
530 * config/obj-elf.h (obj_sec_set_private_data): New.
532 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
533 * config/tc-ia64.h: Likewise.
534 * config/tc-m32r.h: Likewise.
535 * config/tc-m68hc11.h: Likewise.
536 * config/tc-mcore.h: Likewise.
537 * config/tc-mips.h: Likewise.
538 * config/tc-ppc.h: Likewise.
539 * config/tc-sh64.h: Likewise.
540 * config/tc-v850.h: Likewise.
541 * config/tc-xtensa.h: Likewise.
543 * config/tc-v850.h (SHF_V850_GPREL): Removed.
544 (SHF_V850_EPREL): Likewise.
545 (SHF_V850_R0REL): Likewise.
547 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
550 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
552 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
553 debugging symbols so that we handle page memory correctly.
555 2003-07-24 Nick Clifton <nickc@redhat.com>
557 * po/fr.po: Updated French translation.
559 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
561 * config/tc-arm.c (arm_archs): Add iwmmxt.
563 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
565 * read.c (do_parse_cons_expression): Mark nbytes unused to
568 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
570 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
573 * config/tc-h8300.c (md_assemble): Make sure characters after
574 slash and dot are lower-case.
576 2003-07-17 Nick Clifton <nickc@redhat.com>
578 * po/es.po: New Spanish translation.
579 * po/tr.po: New Turkish translation.
580 * po/opcodes.pot: Regenerate.
582 2003-07-16 Alan Modra <amodra@bigpond.net.au>
584 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
585 (generic_dwarf2_emit_offset): Don't define function when
586 TC__DWARF2_EMIT_OFFSET is defined.
588 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
590 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
591 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
592 * doc/c-mips.texi: Document -march=rm9000.
594 2003-07-15 Alan Modra <amodra@bigpond.net.au>
596 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
597 only for V850_OPERAND_DISP operands.
599 2003-07-15 Alan Modra <amodra@bigpond.net.au>
601 * frags.c (frag_more): Move segment checks to..
602 (frag_alloc_check): ..here. New function.
603 (frag_append_1_char): Call frag_alloc_check.
605 2003-07-14 Nick Clifton <nickc@redhat.com>
607 * po/tr.po: Update with latest version.
608 * po/POTFILES.in: Regenerate.
609 * po/gas.pot: Regenerate.
610 * configure: Regenerate.
612 2003-07-14 Nick Clifton <nickc@redhat.com>
614 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
615 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
616 "safe-ctype.h" and update use of macros.
617 * Makefile.am: Update dependencies.
618 * Makefile.in: Regenerate.
620 2003-07-11 Alan Modra <amodra@bigpond.net.au>
622 * po/gas.pot: Regenerate.
624 2003-07-10 Jakub Jelinek <jakub@redhat.com>
626 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
627 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
628 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
629 DWARF2_CIE_DATA_ALIGNMENT): Define.
630 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
632 (ppc_cie_data_alignment): Declare.
633 * config/tc-ppc.c: Include dw2gencfi.h.
634 (ppc_cie_data_alignment): Define.
635 (md_begin): Initialize ppc_cie_data_alignment.
636 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
638 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
639 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
640 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
641 DWARF2_CIE_DATA_ALIGNMENT): Define.
642 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
644 (s390_cie_data_alignment): Declare.
645 * config/tc-s390.c: Include dw2gencfi.h.
646 (s390_cie_data_alignment): Define.
647 (md_begin): Initialize s390_cie_data_alignment.
648 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
651 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
653 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
654 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
655 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
656 * configure.in (am33_2.0, mn10300-*-linux*): Added.
657 * configure: Rebuilt.
658 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
660 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
663 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
665 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
666 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
667 for subtracts from GLOBAL_OFFSET_TABLE that could not be
669 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
670 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
671 could not be simplified.
672 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
673 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
674 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
675 BDF_RELOC_MN10300_GOT32.
676 * config/tc-mn10300.c (mn10300_fix_adjustable): If
677 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
678 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
679 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
680 symbol if we know its value.
681 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
682 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
683 duplicate underscore prefix.
684 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
685 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
686 type in X_md, not X_add_number. Zero X_add_number.
687 (mn10300_check_fixup): Extract relocation type from X_md.
688 * config/tc-mn10300.h: Update comment.
689 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
690 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
692 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
693 (mn10300_check_fixup): Likewise.
694 (mn10300_parse_name): Set X_add_number to relocation type.
695 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
696 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
697 O_GOTOFF, O_PLT, O_GOT): Define.
698 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
699 (mn10300_check_fixup): New fn.
700 (md_assemble): Call it. Check for PIC-related relocs.
701 (mn10300_cons_fix_new): Likewise. New fn.
702 (mn10300_end_of_match): New fn.
703 (mn10300_md_parse_name_cont): New fn.
705 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
707 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
708 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
710 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
711 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
712 md_assemble, md_estimate_size_before_relax): Handle fbCC.
713 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
714 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
716 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
717 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
718 (HAVE_AM33): Match AM33_2 too.
719 (HAVE_AM33_2): New macro.
720 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
721 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
722 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
723 (float_registers, double_registers): New variables.
724 (float_register_name, double_register_name): New functions.
725 (md_assemble): Recognize FP registers. Implement FMT_D3.
726 (mn10300_insert_operand): Support FP registers.
728 2003-07-08 Chris Demetriou <cgd@broadcom.com>
730 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
731 target being a global symbol if not compiling SVR4 PIC code.
733 2003-07-07 Nick Clifton <nickc@redhat.com>
735 * doc/c-m32r.texi (M32R-Directives): New node. Document the
736 .high, .shigh and .low directives.
738 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
740 * config/tc-h8300.c (h8300sxnmode): Add prototype.
742 (parse_exp): Replace expressionS argument with a h8_op. Parse the
743 operand size as well.
744 (skip_colonthing): Remove unused expression argument. Tighten checks
746 (colonmod24): Remove.
747 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
748 (get_operand): Likewise. Use the standard code to read the size of
749 pc-relative operands.
750 (fix_operand_size): Include the size-guessing logic that used to be
751 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
752 offsets with a symbolic component.
754 2003-07-04 Nick Clifton <nickc@redhat.com>
756 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
757 macro to compute size of selected register name array.
759 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
761 * config/tc-s390.c (md_parse_option): Add cpu type z990.
762 (md_begin): Add minimal cpu type logic for instructions with different
763 binary format depending on the cpu.
764 (md_assemble): Remove check for minimal cpu.
765 (s390_insert_operand): Add support for long displacements.
766 (md_gather_operands): Likewise.
767 (tc_s390_fix_adjustable): Likewise.
768 (tc_s390_force_relocation): Likewise.
769 (md_apply_fix3): Likewise.
771 2003-06-30 Chris Demetriou <cgd@broadcom.com>
773 * config/tc-mips.c (s_mipsset): Implement -march= handling
776 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
778 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
779 prototypes and casts. Replace PTR with void *. Reformat.
780 * config/tc-mips.h: Likewise.
782 2003-06-30 Alan Modra <amodra@bigpond.net.au>
784 * config/tc-ia64.c (note_register_values): Warning fix.
785 * config/tc-mips.c (append_insn): Likewise.
787 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
789 * config/tc-mips.c (mips_set_options,mips_opts): Support for
791 (file_mips_arch): Rename mips_arch.
792 (mips_arch_info,mips_tune_info): Remove.
793 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
794 (mips_cpu_info_from_arch): New function.
795 (md_begin): Use file_mips_arch.
796 (macro_build,macro,mips_ip): Use mips_opts.arch.
797 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
798 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
800 (s_mipsset): Support for .set arch=FOO.
801 (mips_cpu_info_table): Fix typo.
803 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
805 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
807 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
809 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
810 unsigned 8-bit operands.
812 2003-06-24 Nick Clifton <nickc@redhat.com>
814 * read.c (s_comm): Change error message to assume an unsigned size
815 has been passed to .comm.
816 * config/tc-sparc.c (s_common): Likewise.
817 * write.c (write_contents): Replace 'unsigned long' with
818 'addressT' and 'long' with offsetT in order to allow computations
819 with very large values to work for 64-bit addressed targets.
820 (relax_and_size_all_segments): Likewise.
821 (relax_frag): Likewise.
822 (relax_segment): Likewise.
824 2003-06-23 Mark Mitchell <mark@codesourcery.com>
826 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
828 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
830 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
833 * gas/config/tc-i386.h (CpuPNI): New.
834 (CpuUnknownFlags): Add CpuPNI.
836 2003-06-23 <davidm@hpl.hp.com>
838 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
839 freebsd, openvms, and nsk (non-stop kernel).
841 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
843 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
844 all locals have been declared.
846 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
848 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
849 special handling for n32 ABI.
852 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
854 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
857 2003-06-19 Christian Groessler <chris@groessler.org>
859 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
860 now, not only a warning. Add some more checks to detect invalid
862 (get_operand): For CLASS_IR remember register size in mode struct.
863 (get_specific): Handle new CLASS_IRO type. Add register size
864 checks for CLASS_IR and CLASS_IRO.
865 (md_apply_fix3): Fix undefined usage of buf.
867 2003-06-19 Alan Modra <amodra@bigpond.net.au>
869 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
870 (ppc_change_csect): Add align param. Align frag at start of csect.
871 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
872 (ppc_frob_section): Align vma.
874 2003-06-18 Jakub Jelinek <jakub@redhat.com>
876 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
877 (output_cie): Don't pad.
878 (output_fde): Add align argument. Pad to align if not 0.
879 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
880 Pad just last FDE to EH_FRAME_ALIGNMENT.
882 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
884 * config/tc-s390.c (init_default_arch): Make current_mode_mask
885 dependent on s390_arch_size and current_cpu dependent on
888 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
890 * configure.in: Add c4x as an architecture variant to tic4x.
891 * configure: Regenerate.
892 * Makefile.in: Regenerate.
893 * doc/Makefile.in: Regenerate.
895 2003-06-18 Alan Modra <amodra@bigpond.net.au>
897 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
898 ".TOC." from PPC64_TOC relocs.
900 2003-06-17 Alan Modra <amodra@bigpond.net.au>
902 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
904 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
906 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
907 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
908 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
909 s_cprestore,s_cpadd): Use them.
911 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
913 * configure.in: Add specific case for cris-*-linux-gnu* with
915 * configure: Regenerate.
916 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
917 if TE_LINUX defined, else FALSE.
918 (bfd_boolean demand_register_prefix): Set default from
919 DEFAULT_CRIS_AXIS_LINUX_GNU.
920 (symbols_have_leading_underscore): Similar.
921 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
923 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
925 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
926 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
927 FPU_ARCH_FPA for AOUT.
928 (md_begin): Don't try to guess the floating point architecture from
929 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
931 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
933 * configure.in: Add i386-netbsd-gnu target.
934 * configure: Regenerate.
936 2003-06-12 Tom Tromey <tromey@redhat.com>
938 * doc/as.texinfo (Comm): Added @node. Moved before CFI
941 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
943 * config/tc-mips.c (append_insn): In a compound relocation, take the
944 field width from the final (outermost) operator.
946 2003-06-11 Richard Henderson <rth@redhat.com>
948 * dw2gencfi.c (struct cfi_escape_data): New.
949 (cfi_add_CFA_nop): Remove.
950 (CFI_escape, dot_cfi_escape): New.
951 (dot_cfi): Remove nop.
952 (cfi_pseudo_table): Remove nop; add escape.
953 (output_cfi_insn): Likewise.
954 (select_cie_for_fde): Stop on escape.
955 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
956 * read.c, read.h (do_parse_cons_expression): New.
957 * doc/as.texinfo (.cfi_escape): New.
959 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
961 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
962 (s_cprestore): Likewise.
963 (s_cpreturn): Likewise.
965 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
967 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
970 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
972 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
973 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
974 exceptions from size assert. Remove most of the addend fixup
975 specialcasing. Remove value, use valP directly. simplify fx_addnumber
976 handling. Remove zero addend specialcases.
977 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
978 the addend fixup specialcase.
979 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
981 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
983 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
984 in the RELOC_EXPANSION_POSSIBLE case.
986 2003-06-11 Alan Modra <amodra@bigpond.net.au>
988 * config/tc-i960.c (line_comment_chars): Add '#'.
989 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
991 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
993 * po/Make-in (DESTDIR): New.
994 (install-data-yes): Support $(DESTDIR).
995 (uninstall): Likewise.
997 2003-06-11 Alan Modra <amodra@bigpond.net.au>
999 * Makefile.am: Run "make dep-am".
1000 * Makefile.in: Regenerate.
1001 * po/POTFILES.in: Regenerate.
1003 2003-06-10 Doug Evans <dje@sebabeach.org>
1005 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1007 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1008 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1009 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1011 2003-06-10 Alan Modra <amodra@bigpond.net.au>
1012 Gary Hade <garyhade@us.ibm.com>
1014 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1015 (md_apply_fix3): Special case lq insn.
1017 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1019 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1020 lists. Allow single-register ranges.
1022 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1024 * config/tc-h8300.c (h8300sxnmode): New.
1025 (md_pseudo_table): Add .h8300sxn entry.
1027 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1029 * NEWS: Updated for the new -n option for the i386 assembler.
1031 * config/tc-i386.c (optimize_align_code): New.
1032 (md_shortopts): Add 'n'.
1033 (md_parse_option): Handle 'n'.
1034 (md_show_usage): Add '-n'.
1036 * config/tc-i386.h (optimize_align_code): Declared.
1037 (md_do_align): Optimize code alignment only if optimize_align_code
1040 * doc/as.texinfo: Add the new -n option.
1042 * doc/c-i386.texi: Document the new -n option.
1044 2003-06-07 Richard Henderson <rth@redhat.com>
1046 * doc/as.texinfo: Document .cfi_rel_offset.
1048 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1049 (cfi_add_CFA_offset): Detect invalid offsets.
1050 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1051 (cfi_add_CFA_restore_state): Restore it.
1052 (CFI_rel_offset): New.
1053 (cfi_pseudo_table): Add it.
1054 (dot_cfi): Handle it.
1056 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1058 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1061 2003-06-05 Michael Snyder <msnyder@redhat.com>
1063 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1064 (build_bytes): Ditto.
1066 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1068 * config/tc-h8sx.c (DMODE): Remove.
1069 (colonmod24): Don't choose a default if the operand is a 16-bit
1071 (fix_operand_size): New function.
1072 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1073 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1075 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1077 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1078 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1079 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1080 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1081 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1082 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1083 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1084 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1085 (cfi_pseudo_table): New directives .cfi_return_column,
1086 .cfi_restore, .cfi_undefined, .cfi_same_value,
1087 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1088 (dot_cfi, output_cfi_insn): Handle new directives.
1089 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1090 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1091 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1093 2003-06-04 Richard Henderson <rth@redhat.com>
1095 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1097 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1099 2003-06-04 Richard Henderson <rth@redhat.com>
1101 * config/tc-alpha.c (s_alpha_usepv): New.
1102 (md_pseudo_table): Add it.
1103 (alpha_cfi_frame_initial_instructions): New.
1104 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1105 (tc_cfi_frame_initial_instructions): New.
1106 * doc/c-alpha.texi: Document .usepv.
1108 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1110 * as.c (show_usage): Document --execstack and --noexecstack.
1111 (parse_args): Add --execstack and --noexecstack.
1112 (main): Create .note.GNU-stack section if --execstack or
1113 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1114 * as.h (flag_execstack, flag_noexecstack): New.
1116 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1118 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1119 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1120 (OPTION_MISC_BASE): New defines.
1121 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1122 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1123 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1124 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1125 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1126 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1127 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1128 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1129 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1130 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1131 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1132 (OPTION_TRAP): Redefine in terms of new defines.
1133 (md_longopts): Reorder entries.
1135 2003-05-14 Michael Snyder <msnyder@redhat.com>
1136 From Bernd Schmidt <bernds@redhat.com>
1137 and Michael Snyder <msnyder@redhat.com>
1138 and Alexandre Oliva <aoliva@redhat.com>
1139 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1140 * config/tc-h8300.h: Ditto.
1142 2003-06-03 Nick Clifton <nickc@redhat.com>
1144 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1145 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1146 before calling bfd_reloc_type_lookup.
1148 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1150 * read.c (emit_expr): Set dot_value.
1151 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1153 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1155 * macro.c (sub_actual): Don't lose string if it turns out that
1156 &string wasn't an arg.
1158 2003-05-31 Richard Henderson <rth@redhat.com>
1160 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1161 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1163 2003-05-29 Richard Henderson <rth@redhat.com>
1165 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1166 (all_frame_data, plast_frame_data, cur_frame_data): New.
1167 (s_alpha_ent): Record data for dwarf2 cfi.
1168 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1169 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1170 * config/tc-alpha.h (md_end): New.
1171 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1172 (DWARF2_CIE_DATA_ALIGNMENT): New.
1174 2003-05-29 Nick Clifton <nickc@redhat.com>
1176 * configure.in: Add i386-*-freebsd* entry.
1177 * configure: Regenerate.
1179 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1181 * config/tc-m32r.c: Amend comment to refer to Renesas
1183 2003-05-27 Richard Henderson <rth@redhat.com>
1185 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1187 (current_location): Use symbol_temp_new_now.
1188 * stabs.c (s_stab_generic): Use symbol_temp_new.
1189 * symbols.c (temp_label_name): Remove.
1190 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1192 2003-05-27 Richard Henderson <rth@redhat.com>
1194 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1195 * as.c (main): Always call cfi_finish.
1196 * config/tc-i386.c (x86_dwarf2_return_column): New.
1197 (x86_cie_data_alignment): New.
1198 (md_begin): Set them.
1199 (tc_x86_cfi_init): Remove.
1200 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1201 return int, not unsigned long; don't as_bad here.
1202 (tc_x86_frame_initial_instructions): Streamline; use
1204 * config/tc-i386.h (tc_cfi_init): Remove.
1205 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1206 (DWARF2_CIE_DATA_ALIGNMENT): New.
1208 2003-05-27 Richard Henderson <rth@redhat.com>
1210 * symbols.c (temp_label_name): New.
1211 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1212 (symbol_set_value_now): New.
1213 * symbols.h: Prototype them.
1214 * dwarf2dbg.c: Use them.
1215 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1217 2003-05-23 Jason Eckhardt <jle@rice.edu>
1219 * config/tc-i860.c (target_xp): Declare variable.
1220 (OPTION_XP): Declare macro.
1221 (md_longopts): Add option -mxp.
1222 (md_parse_option): Set target_xp.
1223 (md_show_usage): Add -mxp usage.
1224 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1225 (md_assemble): Don't try expansions if XP_ONLY is set.
1226 * doc/c-i860.texi: Document -mxp option and i860XP support.
1228 2003-05-23 Eric Christopher <echristo@redhat.com>
1230 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1232 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1234 * config/tc-mips.c (append_insn): Use actual relocation size for new
1235 fixp's. Don't relax overflow checking for partial_inplace relocations.
1236 Use the actual relocation type in combined relocs, not just the type
1238 (macro_build_jalr): Use actual relocation size for new fix.
1239 (s_cpsetup, s_gpdword): Likewise.
1241 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1243 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1245 2003-05-22 Nick Clifton <nickc@redhat.com>
1247 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1248 section relative offsets for relocs that will not be based on the
1250 (xstormy16_md_apply_fix3): Remove previous patch to this
1253 2003-05-07 Eric Christopher <echristo@redhat.com>
1255 * config/tc-mips.c (mips_abicalls): New variable.
1256 (md_parse_option): Use.
1258 (s_abicalls): Ditto.
1259 (mips_elf_final_processing): Set EF_MIPS_PIC and
1260 EF_MIPS_CPIC dependent on above.
1262 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1264 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1266 2003-05-21 Nick Clifton <nickc@redhat.com>
1268 * config/obj-elf.c: Include dwarf2dbg.h.
1269 (elf_pseudo_tab): Add .file and .loc.
1270 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1271 * config/tc-arm.c: Likewise.
1272 * config/tc-h8300.c: Likewise.
1273 * config/tc-hppa.c: Likewise.
1274 * config/tc-ia64.c: Likewise.
1275 * config/tc-m68hc11.c: Likewise.
1276 * config/tc-m68k.c: Likewise.
1277 * config/tc-mmix.c: Likewise.
1278 * config/tc-mn10300.c: Likewise.
1279 * config/tc-ppc.c: Likewise.
1280 * config/tc-sh.c: Likewise.
1281 * config/tc-sparc.c: Likewise.
1282 * config/tc-v850.c: Likewise.
1283 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1285 * config/tc-ip2k.c: Likewise.
1286 * config/tc-iq2000.c: Likewise.
1287 * config/tc-xstormy16.c: Likewise.
1288 * config/tc-xtensa.c: Likewise.
1289 * Makefile.am: Regenerate dependencies.
1290 * Makefile.in: Regenerate.
1291 * aclocal.m4: Regenerate.
1292 * config.in: Regenerate.
1293 * configure: Regenerate.
1294 * po/POTFILES.in: Regenerate.
1295 * po/gas.pot: Regenerate.
1297 2003-05-21 Nick Clifton <nickc@redhat.com>
1299 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1300 BFD_ASSEMBLER targets.
1301 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1302 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1303 defining BFD_ASSEMBLER.
1305 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1307 * as.c (main): Remove tc_cfi_init().
1308 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1310 (cfi_pseudo_table): Add "cfi_register" entry.
1311 (cfi_make_insn): Handle CFA_register.
1312 (cfi_output_insn): Ditto.
1314 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1315 (dot_cfi_endproc): Reuse already emitted CIEs.
1316 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1317 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1319 2003-05-20 Nick Clifton <nickc@redhat.com>
1321 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1322 (md_pseudo_table): Add entries for .loc and .line.
1324 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1326 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1328 (dot_cfi_endproc): Avoid C99 construct.
1330 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1332 * dw2gencfi.c, dw2gencfi.h: New files.
1333 * config/tc-i386.c (tc_x86_cfi_init): New function.
1334 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1335 * as.c (parse_args): Set verbose flag on --verbose.
1336 (main): Call tc_cfi_init()/cfi_finish().
1337 * as.h (verbose): New external variable.
1338 * read.c (pobegin): Insert CFI pops to the list.
1339 * symbols.c (local_symbol_make): Make symbol external.
1340 * symbols.h (local_symbol_make): New prototype.
1341 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1342 * Makefile.in: Regenerate.
1343 * doc/as.texinfo: Added node "CFI directives" with description of
1344 all implemented .cfi_* directives.
1345 * doc/Makefile.in: Regenerate.
1346 * po/POTFILES.in: Regenerate.
1348 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1350 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1352 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1354 2003-05-18 Jason Eckhardt <jle@rice.edu>
1356 * config/tc-i860.c (i860_process_insn): Initialize fc after
1357 each opcode mismatch.
1359 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1361 * configure.in: Accept i[3-7]86 variants.
1362 * configure: Regenerate.
1364 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1366 * config/tc-mips.h: Fix comment formatting.
1368 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1370 * read.c (old_buffer, old_input, old_limit): Remove variables.
1371 (read_a_source_file): Delete label contin.
1372 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1373 input as with macros, instead of in separate old_* variables.
1374 Zero-terminate string being scrubbed.
1376 2003-05-12 Nick Clifton <nickc@redhat.com>
1378 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1379 (md_assemble): Reset skipping_fptr.
1380 (md_operand): If @fptr() is followed by a minus sign, set
1381 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1382 @fptr is detected, ignore it and reset skipping_fptr.
1384 2003-05-11 Jason Eckhardt <jle@rice.edu>
1386 * config/tc-i860.c (MAX_FIXUPS): Define.
1387 (struct i860_fi fi[]): New struct.
1388 (struct i860_it the_insn): Add above as member and move fields
1389 exp, reloc, pcrel and fup into i860_fi.
1390 (md_assemble): Replace all instances of exp, reloc, pcrel
1391 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1392 Add a loop to possibly emit multiple fix-ups for each insn.
1393 (i860_process_insn): Likewise.
1394 (i860_get_expression): Likewise.
1395 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1397 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1399 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1401 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1403 * config/tc-ia64.c (alias_hash): New.
1404 (alias_name_hash): New.
1405 (secalias_hash): New.
1406 (secalias_name_hash): New.
1407 (md_pseudo_table): Add "secalias".
1408 (md_begin): Initialize alias_hash, alias_name_hash,
1409 secalias_hash and secalias_name_hash.
1410 (struct alias): New.
1411 (dot_alias): Implement .alias and .secalias directives.
1413 (ia64_adjust_symtab): New.
1415 (ia64_frob_file): New.
1417 * config/tc-ia64.h (ia64_adjust_symtab): New.
1418 (tc_adjust_symtab): Defined.
1419 (ia64_frob_file): New.
1420 (tc_frob_file): Defined.
1422 2003-05-07 Dmitry Diky <diwil@mail.ru>
1424 * tc-msp430.c: Add missing lines to known cpus list.
1426 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1428 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1429 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1430 * config.in, configure: Rebuilt.
1432 2003-05-05 H.J. Lu <hjl@gnu.org>
1434 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1435 howto->partial_inplace is false.
1437 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1439 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1440 symbol_used_in_reloc_p check.
1441 (md_apply_fix3): Remove check for howto->pcrel_offset.
1443 2003-05-03 H.J. Lu <hjl@gnu.org>
1445 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1446 fatal error for unknown section attribute.
1448 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1449 unknown section attribute.
1450 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1451 * config/tc-ppc.c (ppc_section_letter): Likewise.
1453 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1454 (ia64_elf_section_type): Accept "unwind".
1456 2003-05-02 H.J. Lu <hjl@gnu.org>
1458 * read.h (demand_copy_string): New.
1460 * config/tc-alpha.c (demand_copy_string): Removed.
1462 2003-05-02 Michael Snyder <msnyder@redhat.com>
1464 * write.h (FAKE_LABEL_NAME): Allow override
1465 (for targets that like eg. a leading dot in a local label).
1467 2003-05-02 Nick Clifton <nickc@redhat.com>
1469 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1470 addend with the symbol's value for pc-relative relocations against
1471 a defined symbol - this will be done automatically.
1473 2003-05-01 H.J. Lu <hjl@gnu.org>
1475 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1478 2003-05-01 H.J. Lu <hjl@gnu.org>
1480 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1482 * config/obj-elf.c (obj_elf_section_name): Call
1483 tc_canonicalize_section_name if it is defined.
1485 2003-05-01 H.J. Lu <hjl@gnu.org>
1487 * config/tc-ia64.c (ia64_check_label): New.
1488 * config/tc-ia64.h (tc_check_label): New.
1490 * read.c (read_a_source_file): Call tc_check_label after
1491 creating a user-defined label if defined.
1493 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1495 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1496 -be and split strings to below 509 bytes in length.
1498 2003-05-01 Christian Groessler <chris@groessler.org>
1500 * expr.h: Fix comments in operatorT typedef.
1501 * config/tc-z8k.c: Add 2003 to copyright message.
1502 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1503 decides by the parameter.
1504 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1505 command line argument was given to select the intended
1507 (get_interrupt_operand): Warn if NOP type code is emitted.
1508 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1509 (apply_fix): Call newfix with additional 'size' parameter.
1510 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1511 4 bit immediate arguments.
1512 (md_longopts): Add 'linkrelax' option.
1513 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1514 variable when 'linkrelax' command line option is specified.
1515 (md_show_usage): Display 'linkrelax' option.
1516 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1517 R_CALLR and R_REL16.
1518 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1520 2003-04-30 H.J. Lu <hjl@gnu.org>
1522 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1523 (ia64_float_to_chars): Likewise.
1524 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1525 and ia64_float_to_chars by tc_segment_info_data.endian from
1526 the current segment if byteorder == -1.
1527 (md_begin): Call dot_byteorder to set target_big_endian.
1528 (md_atof): Call ia64_float_to_chars to convert floating point.
1529 (ia64_float_to_chars_bigendian): New function.
1530 (ia64_float_to_chars_littleendian): Likewise.
1531 (ia64_elf_section_change_hook): Likewise.
1533 * config/tc-ia64.h (ia64_number_to_chars): New.
1534 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1535 (ia64_elf_section_change_hook): New.
1536 (md_elf_section_change_hook): Defined.
1537 (ia64_segment_info_type): New struct.
1538 (TC_SEGMENT_INFO_TYPE): Defined.
1540 2003-04-30 H.J. Lu <hjl@gnu.org>
1542 * config/tc-ia64.c (md_section_align): Deleted.
1544 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1545 (md_section_align): New.
1547 2003-04-30 H.J. Lu <hjl@gnu.org>
1549 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1551 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1553 (md_atof): Add 6 byte padding of zero for real16.
1555 2003-04-29 Nick Clifton <nickc@redhat.com>
1557 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1558 start of a version name.
1560 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1562 * configure.in (mips-*-*n*bsd*): Replace with...
1563 (mips-*-netbsd*, mips-*-openbsd*): These.
1564 * configure: Regenerate.
1566 2003-04-28 H.J. Lu <hjl@gnu.org>
1568 * config/tc-hppa.c (hppa_symbol_chars): New.
1569 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1571 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1573 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1575 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1577 * NEWS: Belatedly mention support for MIPS32 Release 2.
1579 2003-04-24 Eric Christopher <echristo@redhat.com>
1581 * config/tc-mips.c (nopic_need_relax): Revert previous
1584 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1586 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1587 * config/tc-h8300.c (dwarf2dbg.h): Include
1588 (md_pseudo_table): Handle .loc and .file
1589 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1590 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1591 * Makefile.in: Regenerate.
1593 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1595 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1596 (md_pseudo_table): Add h8300hn, h8300sn.
1597 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1598 * doc/c-h8300.texi : Add documentation for new machine directives.
1600 2003-04-24 Nick Clifton <nickc@redhat.com>
1602 * config/tc-ppc.c (ppc_symbol_chars): Define.
1603 * config/tc-ppc.h (tc_symbol_chars): Define.
1605 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1607 * config/tc-sh.c: Amend comment to refer to SuperH.
1608 * config/tc-sh.h: Likewise.
1609 (LISTING_HEADER): Amend to refer to SuperH.
1610 * config/tc-sh64.c: Change comment to refer to SuperH.
1611 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1612 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1613 * doc/c-sh.texi: Amend to refer to SuperH.
1614 Add SuperH architecture documentation references.
1615 * doc/c-sh64.texi: Change to refer to SuperH.
1617 2003-04-23 H.J. Lu <hjl@gnu.org>
1619 * app.c (do_scrub_chars): More checks for valid labels.
1621 2003-04-22 H.J. Lu <hjl@gnu.org>
1623 * app.c (do_scrub_chars): Check for valid label.
1625 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1627 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1628 references to Renesas M32R.
1629 * doc/c-m32r.texi: Likewise.
1631 2003-04-21 Richard Henderson <rth@redhat.com>
1633 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1634 (out_file_list): Assign non-null filename after generating error.
1636 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1638 * ehopt.c (check_eh_frame): For aug_size == 0
1639 in state_seeing_aug_size state skip the state_skipping_aug
1642 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1644 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1646 * doc/c-h8500.texi: Likewise.
1647 * doc/c-sh.texi: Likewise.
1648 * doc/c-sh64.texi: Likewise.
1649 * doc/h8.texi: Likewise.
1650 * config/tc-h8300.c: Likewise.
1651 * config/tc-h8300.h: Likewise.
1652 * config/tc-h8500.c: Likewise.
1653 * config/tc-h8500.h: Likewise.
1654 * config/tc-sh.c: Likewise.
1655 * config/tc-sh.h: Likewise.
1656 * config/tc-sh64.c: Likewise.
1657 * config/tc-sh64.h: Likewise.
1659 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1661 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1662 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1663 (append_insn): When filling delay slots with instructions
1664 that have fixups that tc_gen_reloc might consider modifyable
1665 in variant frags, start a new frag.
1666 (load_address): Generate GOT_DISP with of without offset
1667 depending on whether symbol is local. For -xgot, use
1668 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1669 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1670 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1671 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1672 <ld_st>: In NewABI with small got, always use
1673 GOT_PAGE/GOT_OFST, with the latter in the load/store
1674 instruction. With big got, use GOT_HI16/GOT_LO16 or
1676 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1677 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1678 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1679 (md_convert_frag): Use memmove for safe copying of overlapping
1682 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1684 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1685 -mlong, -mshort-double and -mlong-double options; use table @code.
1686 (M68HC11-Syntax): Update to document 68HC12 operands.
1687 (M68HC11-Modifiers): New section for operand modifiers.
1688 (M68HC11-Directives): New section for specific assembler directives.
1689 (M68HC11-Branch): Fix Overfull hbox error.
1691 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1693 * config/tc-mips.c (macro): Add comments explaining the rationale
1696 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1698 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1699 constant address that Alexandre took out by accident. Reject
1700 64-bit addresses that are not sign extensions of 32 bits only if
1701 we don't support 64-bit address constants.
1703 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1705 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1707 2003-04-08 Nick Clifton <nickc@redhat.com>
1709 * as.c (perform_an_assembly_pass): If using cgen, call
1711 * cgen.c (gas_cgen_begin): New function. If
1712 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1713 otherwise call cgen_clear_signed_overflow_ok.
1714 * cgen.h: Prototype gas_cgen_begin.
1716 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1718 * write.c (write_relocs): Remove unused variable.
1720 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1722 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1723 (macro): Use new macro to decide whether to emit constant address
1724 as 32 or 64 bits if addresses are 32-bit wide but registers are
1727 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1729 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1730 (M6811_OP_PAGE_ADDR): New internal define.
1731 (get_operand): New modifier %page and %addr to obtain page and
1732 address part of a far-function.
1733 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1734 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1736 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1737 (find_opcode): Add comment.
1738 (md_estimate_size_before_relax): Force relocation of
1739 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1740 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1741 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1742 on the symbol itself so that DWARF2 strings are merged correctly.
1744 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1746 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1747 default tic4x target format to 'coff2-tic4x'.
1748 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1750 * config/tc-tic4x.h: Ditto
1752 2003-04-03 Nick Clifton <nickc@redhat.com>
1754 * NEWS: Mention support for Xtensa architecture.
1756 2003-04-02 Philip Blundell <philb@gnu.org>
1758 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1760 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1762 * config/tc-mips.c (macro2): Adjust implementation of
1763 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1764 in the case where the source and destination registers
1767 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1769 * Makefile.am (CPU_TYPES): Add xtensa.
1770 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1771 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1772 (xtensa-relax.o): New target.
1774 * Makefile.in: Regenerate.
1775 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1776 extra_objects for xtensa targets.
1777 * configure: Regenerate.
1778 * write.c (write_object_file): Add new md_post_relax_hook.
1779 * config/tc-xtensa.c: New file.
1780 * config/tc-xtensa.h: Likewise.
1781 * config/xtensa-istack.h: Likewise.
1782 * config/xtensa-relax.c: Likewise.
1783 * config/xtensa-relax.h: Likewise.
1784 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1785 * doc/Makefile.in: Regenerate.
1786 * doc/all.texi: Set new XTENSA variable.
1787 * doc/as.texinfo: Set new Xtensa variable. Describe
1788 Xtensa-specific options. Define line comment character for
1789 Xtensa. Add Xtensa processors to list of ELF targets where
1790 alignment is specified in bytes. Add new Xtensa-Dependent node.
1791 Add acknowledgements for those contributing to the Xtensa port.
1792 * doc/internals.texi: Describe new md_post_relax_hook.
1793 * doc/c-xtensa.texi: New file.
1795 2003-04-01 Nick Clifton <nickc@redhat.com>
1796 Richard Earnshaw <rearnsha@arm.com>
1798 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1799 (ARM_ARCH_IWMMXT): Simplify.
1800 (insns): Place iwmmx instructions in correct place in table.
1801 (arm_add_note): New function: Add a note entry to a .note section.
1802 (md_begin): Make the default architecture be unknown.
1803 Suppress the creation of an arm note section.
1805 2003-03-26 Eric Christopher <echristo@redhat.com>
1807 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1809 2003-03-25 Stan Cox <scox@redhat.com>
1810 Nick Clifton <nickc@redhat.com>
1812 Contribute support for Intel's iWMMXt chip - an ARM variant:
1814 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1815 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1816 (enum wreg_type, enum iwmmxt_insn_type): New types.
1817 (wr_register, wc_register, wcg_register): New macros.
1818 (iwmmxt_table): New variable.
1819 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1820 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1821 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1822 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1823 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1824 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1825 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1826 cp_byte_address_offset, cp_byte_address_required_here,
1827 check_iwmmxt_insn): New functions.
1828 (asm_opcode_insns): Add iWMMXt instructions.
1829 (md_begin): Set the mach value for iWMMXt targets. Create a note
1830 section to identify iwmmxt binaries.
1831 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1832 * doc/c-arm.texi: Document the support for the iWMMXt.
1833 * NEWS: Mention new support.
1835 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1837 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1838 * doc/all.texi: Likewise.
1839 * doc/c-tic54x.texi: Likewise.
1841 2003-03-21 Andreas Schwab <schwab@suse.de>
1843 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1844 avoid aliasing issue.
1846 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1848 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1849 (current_arch_mask): Rename to current_mode_mask.
1850 (current_arch_requested): Remove variable.
1851 (current_cpu): New variable.
1852 (init_default_arch): Set defaults values for s390_arch_size,
1853 current_mode_mask and current_cpu.
1854 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1855 (md_begin): Replace current_arch_mask by current_cpu.
1856 (md_assemble): Adapt check and error message to current_mode_mask and
1859 2003-03-09 James E Wilson <wilson@tuliptree.org>
1861 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1862 * read.c (get_line_sb): Return end of line character or '\n' if
1863 it is zero or non-existent.
1865 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1867 * config/tc-mips.c (mips_validate_fix): New function.
1868 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1869 (mips_validate_fix): Declare.
1871 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1873 * Reverted 2003-03-02's patch.
1875 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1877 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1878 (TC_DWARF2_EMIT_OFFSET): Provide default.
1879 (out_debug_aranges, out_debug_info): Use it.
1880 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1881 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1882 (ia64_gen_real_reloc_type): ... here.
1883 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1885 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1887 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1888 (s_mips_ent): Likewise.
1890 2003-03-04 Dmitry Diky <diwil@mail.ru>
1892 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1893 and x1123 devices, add missed x437.
1894 (md_show_usage): Sort device list.
1896 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1898 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1899 (md_begin): Use preset_target_arch.
1900 (md_longopts): Make isa option unconditional.
1901 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1902 set preset_target_arch.
1903 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1904 by -S_GET_VALUE (fixP->fx_subsy).
1905 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1906 and the addend is 0.
1907 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1908 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1910 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1912 * config/tc-mips.c (append_insn): Add handling of
1913 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1914 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1915 misaligned address and reange overflow.
1916 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1917 earlier warnings about misaligned address and reange overflow.
1918 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1919 (md_apply_fix): Likewise. Fix warning output.
1920 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1921 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1922 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1924 2003-02-21 Nick Clifton <nickc@redhat.com>
1926 * NEWS: Mention availability of test generator program.
1928 2003-02-21 Miles Bader <miles@gnu.org>
1930 * config/tc-v850.c (system_registers): Add v850e debug registers.
1931 (system_register_name): Accept up to 27 (the last v850e sys register).
1933 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1935 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1936 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1937 Capitalize section headings consistently. Format index entries more
1938 consistently. Unconditionalize text about whether text and data
1939 sections are alterable. Use @ifnottex for alternatives to @tex output
1940 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1941 .size and .type directives. Be more polite about bad bug reports.
1942 Move FDL into a separate file.
1943 * doc/fdl.texi: New file.
1945 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1947 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1948 (macro): Check it to decide whether a new frag is needed.
1949 (my_getSmallExpression): Set it.
1951 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1953 * cgen.c: Fix typo: intial -> initial.
1955 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1957 * app.c (do_scrub_chars): Handle '||' in two states.
1959 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1961 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1962 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1964 2003-02-11 Uwe Stieber <uwe@wwws.de>
1966 * configure.in: Add support for kaOS as cross build target system.
1967 * configure: Regenerated.
1969 2003-02-10 Nick Clifton <nickc@redhat.com>
1971 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1972 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1973 bfd_mach_arm_ep9312 machine number.
1975 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1977 * config/tc-mips.c (reloc_needs_lo_p): New function.
1978 (fixup_has_matching_lo_p): New function.
1979 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1980 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1981 if that fixup already has a matching %lo(). Don't call frag_wane here.
1982 (macro): Call frag_wane here if the last unmatched hi was in the
1984 (pic_need_relax): New function, split out from...
1985 (md_estimate_size_before_relax): ...here.
1986 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1987 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1989 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1991 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1993 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1995 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1998 2003-02-05 Alan Modra <amodra@bigpond.net.au>
2000 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2001 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2002 accept x@got+off etc.
2003 (md_assemble): Handle TLS relocs.
2004 (ppc_force_relocation): Force for all TLS relocs.
2005 (ppc_fix_adjustable): Likewise.
2006 (md_apply_fix3): Handle TLS relocs.
2008 2003-02-04 Alan Modra <amodra@bigpond.net.au>
2010 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2011 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2013 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
2015 * config/tc-mips.c (enum small_ex_type): Remove.
2016 (imm_unmatched_hi): Remove.
2017 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
2018 argument from calls to append_insn.
2019 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2021 (macro_build): Update append_insn calls.
2022 (mips16_macro_build, macro_build_lui): Likewise.
2023 (mips_ip): Rework handling of small expressions. Move explicit
2024 relocation handling into my_getSmallExpression. Assume that the
2025 value of 'o' operands is zero if there is only one bracketed
2027 (percent_op): Make constant. Record the BFD relocation code
2028 associated with each operator.
2029 (my_getSmallParser, my_getPercentOp): Remove.
2030 (parse_relocation): New function.
2031 (my_getSamllExpression): Rework. Fill in relocations here
2032 rather than in mips_ip.
2034 2003-01-29 Nick Clifton <nickc@redhat.com>
2036 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2037 assembler's handling of # <linenum> "<filename>" directives work.
2039 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2041 * dwarf2dbg.c: Include filenames.h.
2042 (struct file_entry): Make filename const char *.
2043 (dirs, dirs_in_use, dirs_allocated): New variables.
2044 (get_filenum): Add NUM argument. Build directory table.
2045 (dwarf2_where): Adjust caller.
2046 (dwarf2_directive_file): Use get_filenum to allocate
2047 slot in file and directory tables.
2048 (dwarf2_directive_loc): Recreate full filename from
2049 directory and filename part if needed for listing.
2050 (out_file_list): Output directory table.
2051 Output main source file dirname before its filename.
2053 2003-01-28 Dmitry Diky <diwil@mail.ru>
2055 * config/tc-msp430.c: Replace occurences of 'tolower' with
2058 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2060 * config/tc-ia64.c (dot_vframesp): Correct error message.
2061 (dot_vframepsp): Ditto.
2063 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2065 * configure.in (em): Set to irix on all Irix systems.
2066 * configure: Rebuilt.
2067 * config/te-irix.h: New file.
2068 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2069 whether to use Irix-specific 64-bit format.
2071 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2073 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2075 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2077 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2078 (tc_gen_reloc): Handle TLS relocs.
2079 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2080 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2082 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2083 (obj_elf_type): Handle tls_object.
2085 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2087 * config/tc-s390.c (s390_tls_suffix): New function.
2088 (elf_suffix_type): Add suffix enums for TLS relocations.
2089 (s390_elf_suffix): Add suffix strings for TLS relocations.
2090 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2092 (md_gather_operands): Map new instruction operand/elf suffix
2093 combinations for TLS to bfd relocations.
2094 (tc_s390_fix_adjustable): Add new TLS relocations.
2095 (tc_s390_force_relocation): Likewise.
2096 (md_apply_fix3): Likewise.
2098 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2100 * as.h: Update copyright date.
2101 * symbols.c: Likewise.
2102 * config/tc-d10v.h: Likewise.
2103 * config/tc-fr30.h: Likewise.
2104 * config/tc-i960.h: Likewise.
2105 * config/tc-mips.h: Likewise.
2107 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2108 (MD_APPLY_SYM_VALUE): Move.
2110 2003-01-23 Nick Clifton <nickc@redhat.com>
2112 * NEWS: Announce sh2e support.
2115 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2116 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2117 (sh_elf_final_processing): Handle arch_sh2e.
2119 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2121 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2122 * symbols.h (S_FORCE_RELOC): Likewise.
2123 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2124 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2125 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2126 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2127 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2128 * write.c (generic_force_reloc): New function.
2129 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2130 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2131 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2132 * as.h (generic_force_reloc): Declare.
2133 * doc/internals.texi (S_FORCE_RELOC): Update.
2134 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2136 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2137 generic_force_reloc.
2138 (alpha_fix_adjustable): Likewise.
2139 * config/tc-arm.c (arm_force_relocation): Likewise.
2140 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2141 * config/tc-frv.c (frv_force_relocation): Likewise.
2142 * config/tc-i386.c (md_apply_fix3): Likewise.
2143 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2144 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2145 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2146 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2147 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2148 * config/tc-mips.c (mips_force_relocation): Likewise.
2149 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2150 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2151 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2152 * config/tc-sh.c (sh_force_relocation): Likewise.
2153 (md_pcrel_from_section): Likewise.
2154 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2155 * config/tc-v850.c (v850_force_relocation): Likewise.
2156 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2157 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2158 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2159 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2161 * config/tc-d10v.c (d10v_force_relocation): Delete.
2162 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2163 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2164 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2165 * config/tc-fr30.c (fr30_force_relocation): Delete.
2166 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2167 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2168 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2169 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2170 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2171 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2172 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2173 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2174 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2175 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2176 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2177 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2178 * config/tc-i386.c (i386_force_relocation): Delete.
2179 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2181 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2182 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2183 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2184 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2186 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2187 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2189 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2191 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2192 sh64_elf_section_data.
2193 * config/tc-sh64.h: Include elf32-sh64.h.
2194 * config/tc-m68hc11.c: Don't include stdio.h.
2195 (md_show_usage): Fix missing continuation.
2196 * Makefile.am: Run "make dep-am".
2197 * Makefile.in: Regenerate.
2199 2003-01-22 Nick Clifton <nickc@redhat.com>
2201 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2203 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2205 * configure.in: Handle *-*-aros*.
2206 * configure: Regenerated from configure.in.
2208 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2210 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2211 gotplt and pltoff relocations.
2212 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2213 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2214 gotplt and pltoff to bfd relocations.
2215 (md_gather_operands): Map new instruction operand/elf suffix
2216 combinations to bfd relocations.
2217 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2218 to the list of unadjustable relocations.
2219 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2220 and pltoff relocations.
2221 (md_apply_fix3): Add the new relocations.
2223 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2225 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2226 with a subsy symbol.
2228 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2230 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2231 of relocs for memory bank addressing.
2233 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2235 * config/tc-m68hc11.c (md_show_usage): Update usage.
2236 (md_parse_option): Recognize -m68hcs12.
2237 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2239 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2241 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2243 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2245 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2247 * Makefile.am: Run "make dep-am".
2248 * Makefile.in: Regenerate.
2249 * po/POTFILES.in: Regenerate.
2251 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2253 * read.c (get_absolute_expr): New, split out from..
2254 (get_absolute_expression): ..here.
2255 * read.h (get_absolute_expr): Declare.
2256 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2257 Trim size to arch bits_per_address, and test for negative input
2258 via get_absolute_expr.
2260 2003-01-07 DJ Delorie <dj@redhat.com>
2262 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2264 (xstormy16_md_apply_fix3): Use adjustment.
2266 2003-01-02 Ben Elliston <bje@redhat.com>
2268 * configure.in: Add iq2000-elf target.
2269 * configure: Regenerate.
2270 * config/tc-iq2000.c: New file.
2271 * config/tc-iq2000.h: Likewise.
2272 * po/gas.pot: Regenerate.
2274 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2276 * config/tc-mips.c: Update copyright years to include 2003.
2277 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2278 Additionally, clean up their code slightly and clean up their
2281 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2283 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2285 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2287 * doc/Makefile.in: Regenerate.
2289 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2291 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2292 of .init and .fini sections for array initializers and finalizers.
2294 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2296 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2297 the "+D" operand, which will be used only by the disassembler.
2299 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2301 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2303 * configure: Regenerate.
2304 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2305 (macro_build): Handle "K" operand.
2306 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2307 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2308 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2309 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2310 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2311 (validate_mips_insn): Implement "+" as a way to extend the
2312 allowed operands, and implement "K", "+A", "+B", and "+C"
2314 (OPTION_MIPS32R2): New define.
2315 (md_longopts): Add entry for OPTION_MIPS32R2.
2316 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2317 (md_parse_option): Handle OPTION_MIPS32R2.
2318 (s_mipsset): Reimplement handling of ".set mipsN" options
2319 and add support for ".set mips32r2".
2320 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2321 (md_show_usage): Document "-mips32r2" option.
2322 * doc/as.texinfo: Document "-mips32r2" option.
2323 * doc/c-mips.texi: Likewise.
2325 2002-12-30 Dmitry Diky <diwil@mail.ru>
2327 * configure.in: Add msp430 target.
2328 * configure: Regenerate.
2329 * Makefile.am: Add msp430 target.
2330 * Makefile.in: Regenerate.
2331 * config/tc-msp430.c: New file: msp430 assembler.
2332 * config/tc-msp430.h: New file: target macros for msp430.
2333 * doc/Makefile.am: Add msp430 target.
2334 * doc/Makefile.in: Regenerate.
2335 * doc/as.texinfo: Include msp430 documenation.
2336 * doc/all.texi: Enable msp430 documentation.
2337 * doc/c-msp430.texi: New file: document msp430 specific features
2340 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2342 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2343 (dwarf2_finish): Use it.
2344 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2345 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2347 2002-12-20 DJ Delorie <dj@redhat.com>
2349 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2350 BFD_RELOC_XSTORMY16_12.
2352 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2354 * doc/as.texinfo (Invoking): Typo fix.
2355 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2357 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2359 * doc/c-alpha.texi: Fix typos.
2360 * doc/c-arm.texi: Likewise.
2361 * doc/c-d10v.texi: Likewise.
2362 * doc/c-i370.texi: Likewise.
2363 * doc/c-i960.texi: Likewise.
2364 * doc/c-ia64.texi: Likewise.
2365 * doc/c-mmix.texi: Likewise.
2366 * doc/c-ns32k.texi: Likewise.
2367 * doc/c-pdp11.texi: Likewise.
2368 * doc/c-pj.texi: Likewise.
2369 * doc/c-sh64.texi: Likewise.
2370 * doc/c-sparc.texi: Likewise.
2371 * doc/c-tic54x.texi: Likewise.
2372 * doc/c-v850.texi: Likewise.
2373 * doc/c-vax.texi: Likewise.
2374 * doc/internals.texi: Likewise.
2376 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2378 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2379 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2380 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2381 arrange not to issue warnings about use of AT when AT is not
2384 2002-12-17 Nick Clifton <nickc@redhat.com>
2386 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2387 prevent it being confused with -k.
2389 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2391 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2392 has already been set up, use it.
2394 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2396 * ChangeLog-9295: Fix a typo.
2398 * config/tc-d10v.c: Fix a comment typo.
2399 * config/tc-dlx.c: Likewise.
2400 * config/tc-h8300.h: Likewise.
2401 * config/tc-h8500.h: Likewise.
2402 * config/tc-mips.c: Likewise.
2403 * config/tc-s390.c: Likewise.
2404 * config/tc-sh.h: Likewise.
2405 * config/tc-tic80.h: Likewise.
2406 * config/tc-w65.h: Likewise.
2407 * config/tc-z8k.c: Likewise.
2408 * config/tc-z8k.h: Likewise.
2409 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2411 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2413 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2414 Simplify sign extension. Remove redundant unsigned < 0 test.
2415 * config/tc-i960.c (md_ri_to_chars): Prototype.
2416 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2417 (dump_literals): Init brarsym, and test later instead of isforce.
2419 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2420 (parse): Constify line and lineptr.
2421 (md_begin): Calculate endop here.
2423 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2425 * config/obj-vms.c: Formatting. Include fnctl.h.
2426 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2427 (Object_Record_Offset): Make it a size_t.
2428 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2429 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2430 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2431 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2432 (vms_fixup_data_section <data_size>): Add here instead.
2433 * config/e-criself.c: Fix typo in last change.
2435 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2437 * write.c (write_object_file): Fix signed/unsigned warning.
2438 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2439 * config/e-criself.c (criself_bfd_name): Prototype.
2440 * config/obj-aout.c (s_sect): Remove unused function.
2441 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2442 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2443 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2444 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2445 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2446 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2447 (vms_fixup_text_section <text_siz>): Likewise.
2448 (synthesize_data_segment <data_size>): Likewise.
2449 (vms_fixup_xtors_section <sect_no>): Likewise.
2450 (structure_count): Don't use implicit int type.
2451 * config/tc-a29k.c (insert_sreg): Prototype.
2452 (define_some_regs): Prototype, make static.
2453 (parse_operand): Likewise.
2454 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2455 (md_show_usage <stream>): Likewise.
2456 (md_section_align <segment>): Likewise.
2457 (md_convert_frag <all args>): Likewise.
2458 (md_estimate_size_before_relax <all args>): Likewise.
2459 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2460 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2461 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2462 (md_undefined_symbol <name>): Likewise.
2463 (md_convert_frag <all args>): Likewise.
2464 (write_long <opcode>): Likewise.
2465 (tc_gen_reloc <seg>): Likewise.
2466 (md_estimate_size_before_relax <all args>): Likewise.
2467 (md_apply_fix3 <seg>): Likewise.
2468 (s_d30v_align <ignore>): Likewise.
2469 (build_insn): Correct format string.
2470 (md_apply_fix3): Likewise.
2471 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2472 (md_undefined_symbol <name>): Likewise.
2473 (md_convert_frag <all args>): Likewise.
2474 (md_cgen_lookup_reloc <insn>): Likewise.
2475 (md_begin): Delete unused vars.
2476 (md_assemble): Likewise.
2477 (md_estimate_size_before_relax): Likewise.
2478 (fr30_relax_frag): #if 0 out, seems unused.
2479 (md_atof): Remove declaration of atof_ieee.
2480 (restore_colon): Prototype.
2481 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2482 (frv_find_in_vliw): Likewise.
2483 (frv_debug_tomcat): Likewise.
2484 (frv_adjust_vliw_count): Likewise.
2485 (frv_tomcat_shuffle): Likewise.
2486 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2487 frv_find_in_vliw call.
2488 (md_atof): Remove declaration of atof_ieee.
2489 * config/tc-h8500.c (cons): Delete declaration.
2490 (md_begin <opcode>): Constify.
2491 (displacement_size, immediate_size, absolute_size): Remove.
2492 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2493 (tc_crawl_symbol_chain <headers>): Likewise.
2494 (md_undefined_symbol <name>): Likewise.
2495 (tc_headers_hook <headers>): Likewise.
2496 (md_parse_option <c,arg>): Likewise.
2497 (md_show_usage <stream>): Likewise.
2498 (md_convert_frag <headers, seg>): Likewise.
2499 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2500 (md_atof): Remove declaration of atof_ieee.
2501 (tc_aout_fix_to_chars): Remove unused function.
2502 (parse_reg): Prototype.
2503 (parse_exp): Prototype.
2504 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2505 (parse_reglist): Prototype.
2506 (get_operand): Prototype.
2507 (get_operands): Prototype.
2508 (get_specific): Prototype. Make "this_index" signed.
2509 (check): Prototype, make static.
2511 (build_relaxable_instruction): Prototype, make static.
2512 (build_bytes): Prototype.
2513 (wordify_scb): Prototype.
2514 * config/tc-h8500.h (start_label): Declare.
2515 (tc_coff_sizemachdep): Declare.
2516 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2517 (i370_rmode <unused>): Likewise.
2518 (i370_csect <unused>): Likewise.
2519 (i370_dc <unused>): Likewise.
2520 (i370_ds <unused>): Likewise.
2521 (i370_elf_lcomm <unused>): Likewise.
2522 (i370_ltorg <ignore>): Likewise.
2523 (i370_using <ignore>): Likewise.
2524 (i370_drop <ignore>): Likewise.
2525 (i370_byte <ignore>): Likewise.
2526 (i370_tc <ignore>): Likewise.
2527 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2528 (md_convert_frag <all args>): Likewise.
2529 (md_undefined_symbol <name>): Likewise.
2530 (md_pcrel_from_section <sec>): Likewise.
2531 (tc_gen_reloc <seg>): Likewise.
2532 (i370_section_letter): #if 0 unused functions.
2533 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2534 (symbol_locate): Prototype.
2535 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2536 (md_number_to_disp, md_number_to_field): Remove.
2537 (md_apply_fix3): Correct format string and cast "fup".
2538 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2539 (s_endian <ignore>): Likewise.
2540 (md_undefined_symbol <name>): Likewise.
2541 (tc_crawl_symbol_chain <headers>): Likewise.
2542 (tc_set_bal_of_call): Likewise.
2543 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2544 (i960_handle_align <fragp>): Likewise.
2545 (i960_validate_fix <this_segment_type>): Likewise
2546 (tc_gen_reloc <section>): Likewise.
2547 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2548 (struct memS, struct regop): Forward declare.
2549 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2550 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2551 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2552 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2553 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2554 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2555 (md_number_to_field): Likewise.
2556 (md_number_to_disp): Remove unused function.
2557 (md_atof): Remove declaration of atof_ieee.
2558 (md_apply_fix3): Correct md_number_to_imm call.
2559 * config/tc-ip2k.c (md_assemble): Warning fix.
2560 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2561 (fill_insn <ignore>): Likewise.
2562 (debug_sym <ignore>): Likewise.
2563 (md_undefined_symbol <name>): Likewise.
2564 (m32r_scomm <ignore>): Likewise.
2565 (md_convert_frag <abfd>): Likewise.
2566 (md_cgen_lookup_reloc <insn>): Likewise.
2567 (m32r_record_hi16 <seg>): Likewise.
2568 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2569 (allow_m32rx): Prototype.
2570 (first_writes_to_seconds_operands): Prototype.
2571 (writes_to_pc): Prototype.
2572 (can_make_parallel): Prototype.
2573 (make_parallel): Prototype.
2574 (target_make_parallel): Prototype.
2575 (assemble_two_insns): Prototype.
2576 (m32r_record_hi16): Prototype.
2577 (md_atof): Remove declaration of atof_ieee.
2578 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2579 (m32r_force_relocation): Prototype.
2580 (m32r_elf_section_change_hook): Prototype.
2581 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2582 (md_show_usage): Fix signed/unsigned warning.
2583 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2584 (calcop): Ditto for reg_prefix var.
2585 (hexval): Add cast to fix signed/unsigned warning.
2586 (md_number_to_disp): Delete unused function.
2587 (md_number_to_field): Likewise.
2588 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2589 (match_name): Prototype.
2590 (get_bf2): Prototype.
2591 (get_bf_offset_expression): Prototype.
2592 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2593 (md_undefined_symbol <ignore>): Likewise.
2594 (md_create_short_jump <all args>): Likewise.
2595 (md_create_long_jump <all args>): Likewise.
2596 (md_convert_frag <abfd, sec>): Likewise.
2597 (md_apply_fix3 <segment>): Likewise.
2598 (md_section_align <segment>): Likewise.
2599 (md_pcrel_from_section <sec>): Likewise.
2600 (tc_gen_reloc <section>): Likewise.
2601 (reg_m, reg_n, immediate): Delete unused vars.
2602 (dump_literals): Fix signed/unsigned warning.
2603 (enter_literal): Likewise.
2604 (parse_imm): Likewise. Also fix format string.
2605 (parse_mem): Remove unused var.
2606 (md_assemble <LS>): Abort on unexpected inst.
2607 (md_atof): Remove declaration of atof_ieee.
2608 (md_parse_option): Remove unused vars.
2609 (md_apply_fix3): Fix format strings, cast args.
2610 (tc_gen_reloc): Delete unused var.
2611 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2612 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2613 (md_undefined_symbol <name>): Likewise.
2614 (md_convert_frag <abfd>): Likewise.
2615 (tc_gen_reloc <seg>): Likewise.
2616 (check_operand <insn>): Likewise.
2617 (md_convert_frag): Fix format strings.
2618 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2619 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2620 (md_atof): Remove declaration of atof_ieee.
2621 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2622 (md_apply_fix3): Fix bogus >>='s.
2623 (md_undefined_symbol): Delete unused var.
2624 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2625 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2626 (fake_opcode): Adjust for pj_opc_int_t change.
2627 (md_begin): Likewise.
2628 (md_assemble): Likewise.
2629 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2630 instead of non-existent third arg of parse_exp_save_ilp.
2631 (md_parse_option): Correct "little" and "big" calls.
2632 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2633 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2634 (tc_gen_reloc <section>): Likewise.
2635 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2636 (debug): Rewrite using VA_* macros.
2637 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2638 (md_convert_frag): Likewise.
2639 (md_parse_option): Likewise.
2640 (md_show_usage): Likewise.
2641 (md_undefined_symbol): Likewise.
2642 (tc_gen_reloc): Likewise.
2643 (md_operand): Likewise.
2644 (tc_aout_pre_write_hook): Delete.
2645 (struct tic30_insn): Make "operands" unsigned.
2646 (struct tic30_par_insn): Likewise.
2647 (md_assemble): Likewise for "count", "i" and "numops".
2648 (tic30_parallel_insn): Likewise for vars here.
2649 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2650 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2651 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2652 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2653 (md_undefined_symbol): Likewise.
2654 (md_parse_option): Likewise.
2655 (md_convert_frag): Likewise.
2656 (tc_coff_symbol_emit_hook): Likewise.
2657 (md_atof): Remove declaration of atof_ieee.
2658 (const_overflow): Warning fixes, tidy.
2659 (get_operands): Delete unused vars.
2660 (internal_error_a): Adjust format string to expect a long for arg.
2661 (find_opcode): Warning fixes, simplify.
2662 (build_insn): Cast internal_error_a arg.
2663 (md_begin): Likewise.
2664 (md_apply_fix3): Likewise.
2665 (md_assemble): Delete unused var.
2666 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2667 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2668 (whatreg, parse_reg, parse_exp): Make static, prototype.
2669 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2670 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2671 (get_operand, get_operands, get_specific, newfix): Likewise.
2672 (apply_fix, build_bytes): Likewise.
2673 (md_atof): Remove declaration of atof_ieee.
2674 (tc_aout_fix_to_chars): Delete.
2675 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2677 (md_parse_option): Fix s_segm and s_unseg calls.
2679 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2681 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2683 (RELAX_BRANCH_RELOC_S2): Delete.
2684 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2685 Do not handle BFD_RELOC_16_PCREL.
2686 (macro_build, mips_ip): Likewise.
2687 (md_pcrel_from): Return 4 for undefined symbols regardless of
2689 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2690 Don't dereference howto if no such relocation is available.
2691 Do not apply hack for in-place zero addend in NEWABI.
2692 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2694 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2695 Alan Modra <amodra@bigpond.net.au>
2697 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2698 (TC_LINKRELAX_FIXUP): Add comments.
2700 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2702 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2704 (r_register_name, xr_register_name): Add prototype declarations.
2706 2002-12-08 H.J. Lu <hjl@gnu.org>
2708 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2709 copied from tc-i386.c.
2711 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2713 Fix Bug savannah/1825:
2714 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2715 (md_relax_table): Define specific relax for PC-rel offsets.
2716 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2717 (m68hc11_relax_frag): Handle the new relax code.
2718 (md_convert_frag): Likewise.
2719 (md_estimate_size_before_relax): Likewise.
2721 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2723 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2725 2002-12-05 Richard Henderson <rth@redhat.com>
2727 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2728 (ia64_gen_real_reloc_type): Handle it.
2729 (pseudo_func): Add @ltoffx.
2730 (md_begin): Build .<ltoffx>.
2731 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2733 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2735 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2736 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2737 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2738 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2739 COFF to call arm_force_relocation.
2741 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2743 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2745 (emit_one_bundle): Handle "hint" instruction.
2746 (operand_match): Match IA64_OPND_AR_CSD.
2748 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2750 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2753 2002-12-03 Nick Clifton <nickc@redhat.com>
2755 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2756 .PPC.EMB.apuinfo sections.
2758 2002-12-03 Richard Henderson <rth@redhat.com>
2760 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2762 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2764 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2765 (cons, s_align_bytes): Delete declaration.
2767 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2769 (dot): Delete unused function.
2770 (w65_expression): Remove unused arg.
2771 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2773 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2775 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2777 (check): Remove unused function.
2778 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2779 on unhandled switch case.
2780 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2782 (tc_crawl_symbol_chain): Delete unused function.
2783 (tc_headers_hook): Likewise.
2784 (tc_Nout_fix_to_chars): Likewise.
2785 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2786 (md_parse_option): Likewise.
2787 (md_convert_frag): Likewise.
2788 (tc_coff_symbol_emit_hook): Likewise.
2789 (md_show_usage): Likewise.
2790 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2791 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2792 (w65_expression): Declare.
2794 * po/POTFILES.in: Regenerate.
2796 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2797 and ARM_ADRL_IMMEDIATE.
2799 2002-12-02 Nick Clifton <nickc@redhat.com>
2801 * gasp.c: Delete. It has been deprecated.
2802 * NEWS: Mention that gasp has been removed.
2803 * Makefile.am: Remove references to gasp.
2804 * makefile.vms: Likewise.
2805 * mpw-make.sed: Likewise.
2806 * Makeile.in: Regenerate.
2807 * doc/gasp.texi: Delete.
2808 * doc/Makefile.am: Remove references to gasp.texi.
2809 * doc/Makefile.in: Regenerate.
2810 * macro.c: Delete references to gasp.
2811 Remove use of comment_char function parameter as it is no longer
2813 * macro.h: Update prototypes to remove comment_char parameter.
2815 * read.c (read_a_source_file, s_irp): Remove comment_char
2816 parameter from invocation of functions in macro.c
2818 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2820 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2822 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2824 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2825 (tc_gen_reloc): Mark section param as not used.
2827 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2829 Fix Bug savannah/1825:
2830 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2831 that are not pc-relative.
2832 (m68hc11_relax_frag): Declare.
2834 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2835 the offsetable indexed addressing modes (n,r).
2836 (build_insn): Cleanup some locals.
2837 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2838 relaxation of difference between two symbols of same section.
2839 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2840 only when this is a PC-relative operand and the offset is not absolute.
2841 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2842 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2843 be handled by m68hc11_relax_frag.
2845 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2847 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2848 (32-bit int, 64-bit double).
2849 (md_longopts): New options -mshort, -mlong, -mshort-double and
2850 -mlong-double to control the ABI.
2851 (md_show_usage): Update.
2852 (md_parse_option): Handle new options.
2853 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2855 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2857 * symbols.c (report_op_error): New function, broken out of ...
2858 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2861 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2863 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2864 for BFD_RELOC_32_PLT_PCREL.
2866 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2868 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2869 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2870 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2871 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2872 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2873 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2874 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2875 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2876 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2877 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2878 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2879 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2880 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2881 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2882 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2883 TRUE/FALSE. Formatting.
2885 2002-11-29 Nick Clifton <nickc@redhat.com>
2887 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2888 assume a value of zero.
2889 (do_bkpt): Likewise.
2891 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2893 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2894 for TLS relocations.
2896 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2898 * config/tc-ia64.c (md_apply_fix3): Add default case.
2900 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2902 * symbols.c (S_SET_THREAD_LOCAL): New function.
2903 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2904 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2905 for TLS relocations.
2906 * config/tc-ia64.c (md_apply_fix3): Likewise.
2907 * config/tc-alpha.c (md_apply_fix3): Likewise.
2909 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2911 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2914 2002-11-26 DJ Delorie <dj@redhat.com.
2916 * dwarf2dbg.c (scale_addr_delta): New.
2917 (size_inc_line_addr): Use it.
2918 (emit_inc_line_addr): Use it.
2920 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2922 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2923 (md_assemble): Don't pass on branches to constants as relaxable.
2926 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2928 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2930 2002-11-21 Randolph Chung <randolph@tausq.org>
2932 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2933 only if they have default visibility.
2935 2002-11-21 Richard Henderson <rth@redhat.com>
2937 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2940 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2942 * config/tc-mcore.c (mcore_pool_count): New function.
2943 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2945 2002-11-20 Klee Dienes <kdienes@apple.com>
2947 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2948 coalesce the name fields to use the same pointer.
2950 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2951 the name fields to use the same pointer.
2952 (get_specific): Check for opcodes with the same name using strcmp
2953 as well as comparing the pointer.
2955 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2957 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2960 2002-11-19 Richard Henderson <rth@redhat.com>
2962 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2963 visibility portion of st_other.
2965 2002-11-19 Klee Dienes <kdienes@apple.com>
2967 * config/tc-h8300.c (struct h8_instruction): New type, used to
2968 wrap h8_opcodes with length, noperands, idx, and size fields
2969 (computed at run-time).
2970 (h8_instructions): New variable.
2971 (md_begin): Allocate the storage for h8_instructions. Fill
2972 h8_instructions with pointers to the appropriate opcode and the
2973 correct value for the additional fields.
2974 (clever_message): Update to use h8_instructions instead of
2976 (build_bytes): Ditto.
2977 (get_specific): Ditto.
2978 (md_assemble): Ditto.
2980 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2982 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2983 adjustments to symbols in merge sections.
2985 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2987 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2989 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2991 * dwarf2dbg.h (dwarf2_format): New enum.
2992 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2993 (out_debug_line, out_debug_info): Add code for handling 64-bit
2995 * config/tc-mips.h (mips_dwarf2_format): Declare.
2996 * config/tc-mips.c (mips_dwarf2_format): New function.
2997 * doc/internals.texi (DWARF2_FORMAT): Document.
2999 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
3001 * config/tc-mips.c (s_change_section): Make sure input buffer
3002 is not accessed past the end. Don't hand
3003 obj_elf_change_section a pointer into the input buffer.
3005 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
3007 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3010 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3012 * config/tc-tic4x.c: Fixed proper commandline
3013 parameters. Added support for new opcode-list format. General
3014 error message fixups.
3015 (c4x_inst_add): Reject insn not for our CPU
3016 (md_begin): Added matrix for setting the proper opcode-level &
3017 device-flags according to cpu type and revision. Rewrite the
3019 (c4x_operand_parse): Fix opcode bug
3020 (c4x_operands_match): New function argument. Added dry-run
3021 mechanism, that is optional error generation. Added constraint 'i'
3023 (c4x_insn_check): Added new function for post-verification of the
3025 (md_assemble): Check all opcodes before croaking because of an
3026 argument mismatch. Need this to be able to fully support
3027 ortogonally arguments.
3028 (md_parse_options): Revised commandprompt swicthes and added new
3030 (md_show_usage): Complete rewrite of printout.
3032 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3034 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3035 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3036 warning when using constant direct bigger than 2^16. Add the new
3039 2002-11-11 Christopher Faylor <cgf@redhat.com>
3041 * configure.in: Use .gdbinit under Cygwin.
3042 * configure: Regenerate.
3044 2002-11-11 Christopher Faylor <cgf@redhat.com>
3046 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3049 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3051 * config/tc-tic4x.c: Declare as many functions as possible as
3052 static. Maintenance on the general indenting. Removed unnecessary
3053 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3054 function. Add support for new DSP, TMS320VC33. Fix bug for
3055 converting flonum constants.
3056 (c4x_do_align): Add proper align handling. Setup align to insert
3058 (c4x_gen_to_words): Support for extended TI type floats.
3059 (md_atof): Proper dumping of multiple-word littlenums.
3060 (c4x_atof): Added support for extended TI type floats.
3061 (c4x_stringer): Added new function to handle compact strings.
3062 (c4x_emit_char): Added new function argument to handle custom
3063 length inserts, like single-byte strings.
3064 * config/tc-tic4x.h: Add proper align handling with NOP's.
3065 * Makefile.am: Added tic4x dependecy
3066 * Makefile.in: Regenerate
3068 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3070 * macro.c (get_any_string): Correct logic for not going beyond end
3073 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3075 * config/tc-mmix.c (get_putget_operands): Mark both possible
3076 operands as invalid at beginning.
3078 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3079 Initialize target of fixup to zero.
3081 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3083 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3084 NEWABI, but we should still emit HI16_S for non-PIC n32.
3086 2002-11-06 Richard Henderson <rth@redhat.com>
3088 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3089 (alpha_fix_adjustable): ... here.
3090 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3092 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3094 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3097 2002-11-05 H.J. Lu <hjl@gnu.org>
3099 * config/tc-mips.c (support_64bit_objects): Check *l before it
3102 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3104 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3105 SEC_LOAD flags for sections marked as 's'.
3107 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3109 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3110 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3111 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3114 * dep-in.sed: Fix typo.
3116 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3118 * configure.in: Update ARM CPU patterns.
3119 * configure: Regenerated.
3121 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3123 * itbl-lex.l: Use #include <> for generated headers.
3124 * itbl-ops.c: Likewise.
3126 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3128 * doc/gasp.texi: Fix typo in deprecation note.
3130 2002-10-23 Nick Clifton <nickc@redhat.com>
3132 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3133 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3135 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3137 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3138 (tc_frob_file_before_adjust): Don't define.
3139 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3141 (mmix_frob_file_before_adjust): Remove ineffective function.
3143 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3145 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3146 (cris_relax_frag): New function.
3147 (md_estimate_size_before_relax) <case ENCODE_RELAX
3148 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3149 expressions that will become absolute expressions to relaxation.
3150 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3151 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3152 value, not distance to symbol.
3153 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3154 Ditto. Correct placement of fixup.
3155 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3157 * config/tc-cris.h (cris_relax_frag): Declare.
3158 (md_relax_frag): Define.
3160 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3162 * config/obj-elf.c (special_sections): Use correct types for init
3164 (obj_elf_change_section): Don't mess with init array section type.
3166 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3168 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3169 for relocs against symbols in a merged section.
3171 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3173 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3174 table as register names.
3176 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3178 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3181 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3183 * expr.c (operand): Add support for n.nn flonums.
3185 2002-10-17 Johannes Stezenbach <js@convergence.de>
3187 * itbl-parse.y (entry): Provide empty action.
3189 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3191 * configure.in (BFDVER_H): Set and subst.
3192 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3193 * Makefile.am: Run "make dep-am".
3195 * configure: Regenerate.
3196 * Makefile.in: Regenerate.
3197 * doc/Makefile.in: Regenerate.
3199 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3201 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3202 (MD_APPLY_SYM_VALUE): Define for PE too.
3204 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3206 * Makefile.am: Run "make dep-am".
3207 (CPU_OBJ_VALID): sh64 coff is invalid.
3208 * as.c: #include "bfdver.h".
3209 * Makefile.in: Regenerate.
3210 * config.in: Regenerate.
3212 2002-10-14 Momchil Velikov <velco@fadata.bg>
3214 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3216 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3218 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3219 * configure: Regenerate.
3221 2002-10-13 Eric Christopher <echristo@redhat.com>
3222 Alexandre Oliva <aoliva@redhat.com>
3224 * config/tc-mips.c (s_gpdword): New function.
3225 (mips_pseudo_table): Add .gpdword.
3226 (mips_need_elf_addend_fixup): never for NEWABI.
3227 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3229 (s_cpadd): Generate .cpadd on NEWABI.
3231 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3233 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3235 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3237 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3238 (md_relax_frag): Adjust macro.
3239 * config/tc-mips.c (mips_relax_branch): New variable.
3240 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3241 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3242 (RELAX_MIPS16_P): Adjust.
3243 (append_insn): Emit branch to non-constant in a frag_var if
3244 branch-relaxation is desirable and possible.
3245 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3246 (OPTION_ELF_BASE): Adjust.
3247 (md_parse_option): Handle new options.
3248 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3250 (relaxed_branch_length): New function.
3251 (md_estimate_size_before_relax): Handle branch frags.
3252 (mips_relax_frag): Likewise.
3253 (md_convert_frag): Handle branch frags. Warn if branch is
3256 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3258 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3260 (md_apply_fix3): Add TLS relocs.
3261 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3264 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3265 Alan Modra <amodra@bigpond.net.au>
3267 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3268 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3270 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3272 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3275 2002-10-09 Richard Shann <richard.shann@superh.com>
3276 Stephen Clarke <stephen.clarke@superh.com>
3278 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3281 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3283 * contig/tc-sh.c (sh_local_pcrel): New.
3284 (sh_force_relocation): Use sh_local_pcrel.
3285 (md_pcrel_from_section): Check the relocation type whether it
3286 should be resolved locally. Use S_FORCE_RELOC.
3288 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3290 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3291 (TC_FORCE_RELOCATION): Tidy arg.
3293 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3294 Ken Raeburn <raeburn@cygnus.com>
3295 Aldy Hernandez <aldyh@redhat.com>
3296 DJ Delorie <dj@redhat.com>
3297 Michael Meissner <meissner@redhat.com>
3298 Eric Christopher <echristo@redhat.com>
3299 Richard Sandiford <rsandifo@redhat.com>
3301 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3302 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3303 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3304 (hilo_interlocks): True for CPU_VR5500.
3305 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3306 (mips_fix_vr4122_bugs): New.
3307 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3308 (mips_emit_delays): Likewise.
3309 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3310 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3311 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3312 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3313 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3314 (OPTION_ELF_BASE): Bump.
3315 (md_parse_option): Handle the new options.
3316 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3319 2002-09-29 H.J. Lu <hjl@gnu.org>
3321 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3322 twice if howto->pcrel_offset is true.
3324 2002-09-28 Matt Thomas <matt@3am-software.com>
3325 Jason Thorpe <thorpej@wasabisystems.com>
3327 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3328 convert undefined references to GOT32/PLT32 if PIC code is
3329 requested. Fix comment.
3331 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3333 * config/tc-sh.c (sh_force_relocation): Return 0 for
3334 some PC relative relocations when not relaxing.
3336 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3338 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3339 Define them if not BFD_ASSEMBLER.
3340 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3342 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3343 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3344 (tc_gen_reloc): Handle x86-64 TLS relocs.
3346 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3348 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3349 fixups to current or absolute section.
3351 2002-09-26 Jim Wilson <wilson@redhat.com>
3353 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3356 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3358 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3359 capable configuration.
3360 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3362 (mips_ip): Likewise.
3364 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3366 * config/tc-mips.c (append_insn): Fix jump overflow check.
3368 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3370 * config/tc-i386.c (process_operands): Warn about "lea" segment
3373 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3375 * write.c: Delete set_segment_vma and prototype. Update all callers.
3377 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3379 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3380 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3381 Rename "fseg" to "sym_seg".
3382 * Makefile.am: Run "make dep-am".
3383 * Makefile.in: Regenerate.
3384 * doc/Makefile.in: Regenerate.
3386 2002-09-20 Nick Clifton <nickc@redhat.com>
3388 * symbols.c (colon): Do not allow symbols to be created in the
3389 absolute section if WORKING_DOT_WORD is not defined and
3390 new_broken_words would require a new frag to be created.
3392 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3394 * expr.c (expr): Simplify foo-foo here.
3395 (clean_up_expression): Remove O_subtract code.
3397 * write.h (struct fix): Add fx_dot_value.
3398 (dot_value): Declare.
3399 * write.c (dot_value): New var.
3400 (fix_new_internal): Save dot_value as fx_dot_value.
3401 (fixup_segment): Adjust fx_offset using fx_dot_value.
3402 * expr.c (expr): Update dot_value.
3404 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3406 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3407 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3408 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3410 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3411 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3412 BFD_RELOC_386_TLS_GOTIE.
3414 2002-09-19 Richard Henderson <rth@redhat.com>
3416 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3418 (alpha_force_relocation): Don't special-case branch type relocs.
3420 2002-09-19 Nick Clifton <nickc@redhat.com>
3422 * config/tc-m68k.c (select_control_regs): Handle situation where
3423 architecture has not yet been selected.
3425 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3427 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3428 (IS_SEXT_16BIT_NUM): New macro.
3429 (macro_build_ldst_constoffset): New function, to build a set of
3430 instructions to do a load or store from a constant offset relative
3431 to a given register.
3432 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3433 .cprestore pseudo-op.
3435 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3437 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3439 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3441 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3443 2002-09-17 Stan Cox <scox@redhat.com>
3445 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3446 (macro): Likewise for la. Likewise for ld.
3447 (mips_after_parse_args): Make -xgot optional, not the default.
3448 (md_apply_fix3): Allow composite relocation to set up gp.
3449 (tc_gen_reloc): Allow relaxing for newabi.
3450 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3451 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3453 2002-09-17 Nick Clifton <nickc@redhat.com>
3455 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3456 BFD_RELOC_ARM_IMMEDIATE has been done.
3457 (tc_gen_reloc): Do not issue reloc number of unimplemented
3458 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3459 their name is already in the error message - plus remove them
3460 from the default case.
3462 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3463 behavior of instructions.
3465 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3467 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3468 Convert functions to K&R format.
3470 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3472 * config/tc-mips.c (pdr_seg): Define only for ELF.
3473 (s_change_section): Remove unused variable. Don't use for nonELF.
3475 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3477 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3479 * config/obj-elf.h (obj_elf_change_section): Likewise.
3481 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3483 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3484 (out_debug_info): Likewise.
3486 2002-09-16 Bruno Haible <bruno@clisp.org>
3488 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3489 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3490 * config/tc-i386.c (i386_target_format): Likewise.
3491 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3492 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3494 2002-09-13 Nick Clifton <nickc@redhat.com>
3496 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3497 when deciding if any operands have been skipped.
3499 2002-09-11 Nick Clifton <nickc@redhat.com>
3501 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3503 * po/tr.po: Updated Turkish translation.
3505 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3507 * config/tc-i386.c (md_apply_fix3): Allow addend for
3508 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3509 BFD_RELOC_386_TLS_LE_32.
3511 2002-09-05 Jeff Law <law@redhat.com>
3513 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3514 marker relocations such as ENTRY/EXIT.
3515 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3516 to both OBJ_ELF and OBJ_SOM.
3518 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3520 * doc/internals.texi (md_apply_fix3): Expand.
3521 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3522 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3523 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3524 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3525 EXTERN_FORCE_RELOC): Document.
3526 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3527 * as.h: Don't include struc-symbol.h for arc.
3529 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3530 subtract absolute symbol.
3531 * obj.h (struct format_ops): Add frob_file_before_fix.
3532 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3533 * symbols.c (S_FORCE_RELOC): New function.
3534 * symbols.h (S_FORCE_RELOC): Declare.
3535 * write.c (TC_FORCE_RELOCATION): Change default.
3536 (TC_FORCE_RELOCATION_ABS): Define.
3537 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3538 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3539 (TC_FORCE_RELOCATION_SECTION): Don't define.
3540 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3541 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3542 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3543 (TC_VALIDATE_FIX_SUB): Define.
3544 (TC_FIX_ADJUSTABLE): Don't define.
3545 (MD_APPLY_SYM_VALUE): Define this instead.
3546 (abs_section_sym): New variable.
3547 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3548 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3549 Don't put the absolute section sym on fixups here.
3550 (fix_segment): New function.
3551 (write_relocs): Don't call fixup_segment from here.
3552 (write_object_file): Instead call tc_frob_file_before_fix,
3553 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3554 Don't output the absolute section symbol.
3555 (fixup_segment): Rewrite.
3556 * write.h (abs_section_sym): Declare.
3557 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3559 (aout_format_ops): Adjust to suit.
3560 * config/obj-aout.h (obj_frob_file): Don't define.
3561 (obj_frob_file_before_fix): Define.
3562 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3563 (S_FORCE_RELOC): Define.
3564 * config/obj-bout.h (S_FORCE_RELOC): Define.
3565 * config/obj-coff.c (coff_format_ops): Init new field.
3566 * config/obj-coff.h: Formatting fixes.
3567 (obj_sec_sym_ok_for_reloc): Define.
3568 (S_FORCE_RELOC): Define.
3569 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3570 (ecoff_frob_file): .. from here.
3571 (ecoff_format_ops): Add new function.
3572 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3573 (obj_frob_file_before_fix): Define.
3574 * config/obj-elf.c (elf_format_ops): Init new field.
3575 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3576 * config/obj-ieee.h: Formatting fixes.
3577 (S_FORCE_RELOC): Define.
3578 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3579 * config/obj-vms.h (S_FORCE_RELOC): Define.
3580 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3581 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3582 for BFD_RELOC_32 and BFD_RELOC_64.
3583 (alpha_fix_adjustable): Remove extern and weak tests.
3584 (alpha_before_fix): Rename from alpha_adjust_symtab.
3585 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3586 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3587 (TC_VALIDATE_FIX): Tweak param name.
3588 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3589 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3590 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3591 (MD_APPLY_SYM_VALUE): Define.
3592 (tc_adjust_symtab): Don't define.
3593 (alpha_adjust_symtab): Don't declare.
3594 (tc_frob_file_before_fix): Define.
3595 (alpha_before_fix): Declare.
3596 (TC_INIT_FIX_DATA): Tweak param names.
3597 * config/tc-arc.c: Include "struc-symbol.h".
3598 (md_pcrel_from): Remove undefined sym fudge.
3599 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3600 Don't set fx_addnumber.
3601 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3602 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3603 (EXTERN_FORCE_RELOC): Define.
3604 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3605 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3606 (arm_validate_fix): Return void.
3607 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3608 Add plt and got reloc tests.
3609 (arm_force_relocation): Call S_FORCE_RELOC.
3610 * config/tc-arm.h (struct fix): Forward declare.
3611 (TC_VALIDATE_FIX): No longer set add_symbolP.
3612 (arm_validate_fix): Adjust declaration.
3613 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3614 (TC_FORCE_RELOCATION): Tweak param name.
3615 (TC_INIT_FIX_DATA): Likewise.
3616 (obj_fix_adjustable): Don't define.
3617 (tc_fix_adjustable): Call arm_fix_adjustable.
3618 (TC_FIX_ADJUSTABLE): Don't define.
3619 (MD_APPLY_SYM_VALUE): Define.
3620 (EXTERN_FORCE_RELOC): Define.
3621 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3622 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3623 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3624 Remove *valP fudges and code to subtract abs sym. Don't set
3626 * config/tc-avr.h: Formatting.
3627 (EXTERN_FORCE_RELOC): Define.
3628 (MD_APPLY_SYM_VALUE): Define.
3629 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3630 (md_apply_fix3): Remove code to subtract abs sym.
3631 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3632 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3633 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3634 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3635 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3636 (tc_fix_adjustable): Remove extern, weak tests.
3637 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3638 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3639 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3640 and code to subtract abs sym.
3641 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3642 (d10v_force_relocation): Call S_FORCE_RELOC.
3643 * config/tc-d10v.h: Don't include write.h.
3644 (struct fix): Instead, forward declare.
3645 (MD_PCREL_FROM_SECTION): Tweak param names.
3646 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3647 (d10v_fix_adjustable): Likewise.
3648 (obj_fix_adjustable): Don't define.
3649 (tc_fix_adjustable): Define.
3650 (TC_FORCE_RELOCATION): Tweak param name.
3651 (MD_APPLY_SYM_VALUE): Define.
3652 (EXTERN_FORCE_RELOC): Define.
3653 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3654 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3655 and code to subtract abs sym.
3656 * config/tc-d30v.h: Don't include write.h.
3657 (struct fix): Instead, forward declare.
3658 (MD_PCREL_FROM_SECTION): Tweak param names.
3659 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3660 (MD_APPLY_SYM_VALUE): Define.
3661 (EXTERN_FORCE_RELOC): Define.
3662 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3663 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3664 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3665 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3666 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3667 Don't use fx_addnumber.
3668 * config/tc-dlx.h: Don't include write.h.
3669 (md_convert_frag): We're not alpha twice over.
3670 (EXTERN_FORCE_RELOC): Define.
3671 (obj_fix_adjustable): Don't define.
3672 (tc_fix_adjustable): Define.
3673 (TC_FIX_ADJUSTABLE): Don't define.
3674 (MD_APPLY_SYM_VALUE): Define.
3675 (LOCAL_LABELS_DOLLAR): Undef always.
3676 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3677 (fr30_fix_adjustable): Remove extern, weak tests.
3678 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3679 (obj_fix_adjustable): Don't define.
3680 (tc_fix_adjustable): Define.
3681 (struct fix): Forward declare.
3682 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3683 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3684 (frv_fix_adjustable): Don't do extern, weak tests.
3685 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3686 (TC_FIX_ADJUSTABLE): Don't define.
3687 (obj_fix_adjustable): Don't define.
3688 (tc_fix_adjustable): Define.
3689 (struct fix): Forward declare.
3690 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3691 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3692 * config/tc-h8300.h (struct fix): Forward declare.
3693 (EXTERN_FORCE_RELOC): Define.
3694 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3695 (hppa_fix_adjustable): Don't test extern or weak. Don't
3696 symbol_mark_used_in_reloc.
3697 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3699 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3700 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3701 (TC_FORCE_RELOCATION_SECTION): Don't define.
3702 (MD_APPLY_SYM_VALUE): Define.
3703 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3704 to subtract abs sym.
3705 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3706 (MD_APPLY_SYM_VALUE): Define.
3707 (MD_PCREL_FROM_SECTION): Tweak param name.
3708 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3709 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3710 (i386_force_relocation): New function.
3711 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3712 (TC_VALIDATE_FIX): Likewise.
3713 (TC_FIX_ADJUSTABLE): Don't define.
3714 (MD_APPLY_SYM_VALUE): Define.
3715 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3716 (i386_force_relocation): Declare.
3717 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3718 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3719 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3720 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3721 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3722 (EXTERN_FORCE_RELOC): Define.
3723 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3724 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3725 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3726 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3727 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3728 Remove #if 0 code. Invert return boolean.
3729 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3730 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3731 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3732 (tc_coff_sizemachdep): Prototype.
3733 (i960_handle_align): Likewise.
3734 (i960_validate_fix): Adjust declaration.
3735 (reloc_callj): Likewise.
3736 (EXTERN_FORCE_RELOC): Define.
3737 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3738 (TC_FORCE_RELOCATION_ABS): Define.
3739 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3740 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3741 (TC_FIX_ADJUSTABLE): Don't define.
3742 (MD_APPLY_SYM_VALUE): Define.
3743 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3744 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3745 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3746 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3747 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3748 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3749 (MD_APPLY_SYM_VALUE): Define.
3750 (EXTERN_FORCE_RELOC): Define.
3751 (TC_FORCE_RELOCATION): Tweak param name.
3752 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3753 (m32r_fix_adjustable): Don't test extern, weak.
3754 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3755 (MD_APPLY_SYM_VALUE): Define.
3756 (obj_fix_adjustable): Don't define.
3757 (tc_fix_adjustable): Define.
3758 (tc_frob_file): Don't define.
3759 (tc_frob_file_before_fix): Define.
3760 (EXTERN_FORCE_RELOC): Define.
3761 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3762 BFD_RELOC_VTABLE_ENTRY address.
3763 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3764 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3765 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3766 Remove duplicated fx_done code.
3767 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3768 (EXTERN_FORCE_RELOC): Define.
3769 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3771 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3772 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3773 (TC_FIX_ADJUSTABLE): Don't define.
3774 (EXTERN_FORCE_RELOC): Define.
3775 (MD_APPLY_SYM_VALUE): Define.
3776 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3777 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3778 Remove fx_addsy tests.
3779 (mcore_force_relocation): Call S_FORCE_RELOC.
3780 (mcore_fix_adjustable): Don't test fx_addsy.
3781 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3782 (EXTERN_FORCE_RELOC): Define.
3783 (obj_fix_adjustable): Don't define.
3784 (tc_fix_adjustable): Define.
3785 (MD_APPLY_SYM_VALUE): Define.
3786 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3787 (mips_pic): No longer static.
3788 (mips_force_relocation): Call S_FORCE_RELOC.
3789 (mips_fix_adjustable): Remove extern, weak tests.
3790 * config/tc-mips.h (enum mips_pic_level): Declare.
3791 (mips_pic): Declare.
3792 (tc_frob_file): Don't define.
3793 (tc_frob_file_before_fix): Define this instead.
3794 (EXTERN_FORCE_RELOC): Define.
3795 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3796 with reg_section tests. Set fx_done instead of calling
3797 symbol_clear_used_in_reloc on bad relocs.
3798 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3799 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3800 (mmix_adjust_symtab): Simplify list handling. Abort on any
3802 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3803 BFD_RELOC_MMIX_LOCAL.
3804 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3805 (EXTERN_FORCE_RELOC): Define.
3806 (MD_PCREL_FROM_SECTION): Tweak param name.
3807 (tc_frob_file): Don't define.
3808 (tc_frob_file_before_fix): Define this instead.
3809 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3810 Remove SEC_CODE checks.
3811 (mn10300_fix_adjustable): Remove extern and weak tests.
3812 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3813 (TC_FORCE_RELOCATION): Tweak param name.
3814 (obj_fix_adjustable): Don't define.
3815 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3816 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3817 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3818 (openrisc_fix_adjustable): Don't test fx_addsy.
3819 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3820 (obj_fix_adjustable): Don't define.
3821 (tc_fix_adjustable): Define this instead.
3822 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3823 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3824 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3825 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3826 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3827 (MD_APPLY_SYM_VALUE): Define.
3828 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3829 Don't subtract symbol value.
3830 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3831 (EXTERN_FORCE_RELOC): Define.
3832 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3833 (MD_APPLY_SYM_VALUE): Define.
3834 (obj_fix_adjustable): Don't define.
3835 (tc_fix_adjustable): Define this instead.
3836 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3838 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3839 (ppc_force_relocation <elf version>): New.
3840 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3841 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3842 comments. Don't subtract fx_subsy as that is already done.
3843 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3844 (MD_PCREL_FROM_SECTION): Likewise.
3845 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3846 ppc_force_relocation.
3847 (TC_FORCE_RELOCATION_SECTION): Delete.
3848 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3849 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3850 (MD_APPLY_SYM_VALUE): Define.
3851 * config/tc-s390.c: #include "dwarf2dbg.h".
3852 (s390_insn): Remove excess parens.
3853 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3854 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3855 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3856 non-NULL. Don't subtract off fx_addsy value.
3857 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3858 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3859 (TC_FIX_ADJUSTABLE): Don't define.
3860 (MD_APPLY_SYM_VALUE): Define.
3861 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3862 (SWITCH_TABLE): Likewise.
3863 (sh_force_relocation): Call S_FORCE_RELOC.
3864 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3865 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3866 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3867 fx_addnumber is zero on entry. Save val in fx_addnumber.
3868 (tc_gen_reloc): Don't subtract fx_subsy.
3869 * config/tc-sh.h (struct fix): Move.
3870 (obj_fix_adjustable): Don't define.
3871 (tc_fix_adjustable): Define this instead.
3872 (TC_FIX_ADJUSTABLE): Don't define.
3873 (MD_APPLY_SYM_VALUE): Define.
3874 (SWITCH_TABLE_CONS): Define.
3875 (SWITCH_TABLE): Define.
3876 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3877 (TC_VALIDATE_FIX_SUB): Define.
3878 (MD_PCREL_FROM_SECTION): Tweak param name.
3879 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3880 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3881 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3882 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3883 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3884 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3885 (TC_VALIDATE_FIX_SUB): Define.
3886 (MD_PCREL_FROM_SECTION): Tweak param name.
3887 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3888 (tc_gen_reloc): Use S_FORCE_RELOC.
3889 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3890 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3891 (TC_FORCE_RELOCATION_ABS): Define this instead.
3892 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3893 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3894 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3895 (MD_APPLY_SYM_VALUE): Define.
3896 (TC_FIX_DATA_PRINT): Tweak param name.
3897 * config/tc-tic30.c (USE_STDOUT): Don't define.
3898 (md_parse_option): Remove stupid debug code.
3899 (tc_gen_reloc): Don't use fx_addnumber.
3900 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3901 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3902 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3903 (tc_fix_adjustable): Define this instead.
3904 (TC_FIX_ADJUSTABLE): Don't define.
3905 (MD_APPLY_SYM_VALUE): Define this instead.
3906 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3907 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3908 (TC_FIX_ADJUSTABLE): Don't define.
3909 (MD_APPLY_SYM_VALUE): Define this instead.
3910 (tc_fix_adjustable): Remove extern and weak tests.
3911 * config/tc-w65.h (struct fix): Forward declare.
3912 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3914 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3915 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3916 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3918 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3919 (MD_APPLY_SYM_VALUE): Define.
3920 (obj_fix_adjustable): Don't define.
3921 (tc_fix_adjustable): Define this instead.
3922 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3924 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3926 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3927 (ppc_fix_adjustable <coff version>): Cleanup.
3929 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3930 (md_parse_option): No -a64 without BFD64.
3931 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3932 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3934 2002-09-04 Nick Clifton <nickc@redhat.com>
3936 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3937 instructions into the hash table if the target cpu is the BookE32.
3939 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3941 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3944 2000-08-28 Catherine Moore <clm@redhat.com>
3946 * tc-v850.c (v850_relax): Declare.
3947 (v850_longcode): New routine.
3948 (v850_handle_align): New routine.
3949 (md_pseudo_table): Add longcall and longjump.
3950 (md_parse_option): Check for relax option.
3951 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3952 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3953 (md_apply_fix3): Likewise.
3954 (v850_force_relocation): Likewise.
3955 (v850_comm): Change the current section.
3956 (md_assemble): Ensure that the correct value is put in the
3958 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3959 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3960 Remove redundant v850ea support.
3961 * tc-v850.h (HANDLE_ALIGN): Define.
3962 (v850_handle_align): Declare.
3963 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3965 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3967 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3968 * configure: Regenerate.
3969 * NEWS: Mention new port.
3971 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3973 * config/obj-coff.c: Add sdef definition.
3974 * config/obj-coff.h: Add tic4x include file and set
3976 * config/tc-tic4x.c: New file.
3977 * config/tc-tic4x.h: New file.
3979 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3981 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3982 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3983 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3984 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3985 (RELOC_ENUM): Define.
3986 (fix_new_internal): Use RELOC_ENUM.
3987 (fix_new, fix_new_exp): Likewise.
3988 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3989 Replace gotos with continue.
3990 (write_relocs): Formatting. Avoid symbol loops in
3991 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3992 errors, and error number in other cases.
3993 (fixup_segment): Remove param names from prototype. Rename
3994 "this_segment_type" to "this_segment". Update linkrelax comment.
3995 Remove "size, "place" and "where" local vars. Formatting. Update
3996 "no symbol" comment. Remove #if 0 and #if 1.
3998 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
4000 2002-08-27 Alan Modra <amodra@bigpond.net.au>
4002 * dwarf2dbg.c: Always include dwarf2dbg.h.
4003 (dwarf2_directive_file): Adjust dummy version args.
4004 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4005 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4006 when symbol values differ.
4007 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4008 (pseudo_set <O_subtract>): Remove unnecessary segment test.
4009 * config/obj-bout.c (obj_pseudo_table): Warning fix.
4011 2002-08-26 Alan Modra <amodra@bigpond.net.au>
4013 * config/tc-w65.c (md_section_align): Fix typo.
4014 (md_parse_option): Return 0, not 1.
4016 2002-08-22 Nick Clifton <nickc@redhat.com>
4018 * doc/as.texinfo (Section): Note that if '@' is a comment
4019 character then another symbol is used to prefix the section's
4022 2002-08-22 Christian Groessler <chris@groessler.org>
4024 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4027 2002-08-12 Graeme Peterson <gp@qnx.com>
4029 * configure.in: Add support for sh-**-nto* target.
4030 * configure: Regenerate.
4032 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4034 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4036 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4038 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4040 (ppc_apuinfo_section_add): Define only if format is ELF.
4041 (md_assemble): Emit APUinfo section only if format is ELF.
4044 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4046 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4047 * config/tc-frv.c: Likewise.
4048 * config/tc-hppa.c: Likewise.
4049 * config/tc-ia64.c: Likewise.
4050 * config/tc-ip2k.c: Likewise.
4051 * config/tc-m68hc11.c: Likewise.
4052 * config/tc-m68k.c: Likewise.
4053 * config/tc-mmix.c: Likewise.
4054 * config/tc-mn10300.c: Likewise.
4055 * config/tc-sh.c: Likewise.
4056 * config/tc-sparc.c: Likewise.
4057 * config/tc-v850.c: Likewise.
4059 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4061 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4064 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4066 From matthew green <mrg@redhat.com>
4068 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4069 PPC_OPCODE_PPC is, except for BookE architectures.
4070 (md_parse_option): Add support for -mspe.
4071 (md_show_usage): Add -mspe.
4072 (md_parse_option): Add support for -me500 and
4073 -me500x2 to generate code for Motorola e500 core complex.
4074 (md_show_usage): Add -me500 and -me500x2.
4076 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4077 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4078 PPC_APUINFO_BRLOCK): New macros.
4080 (ppc_cleanup): New function.
4081 (ppc_apuinfo_section_add): New function.
4083 (md_assemble): Collect info and write the APUinfo section.
4085 * config/tc-ppc.h (md_cleanup): Define.
4086 (ppc_cleanup): Export.
4087 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4089 2002-08-17 Stan Cox <scox@redhat.com>
4091 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4092 config/tc-mips.c (s_change_section): New function to support
4093 IRIX .section pseudo-op.
4095 2002-08-16 Nick Clifton <nickc@redhat.com>
4097 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4099 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4101 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4102 the fix-up against on the right frag.
4103 (s_cpsetup): Likewise. Parse third argument as expression, to
4104 handle global symbols and forward/backward labels correctly.
4106 2002-08-14 Nick Clifton <nickc@redhat.com>
4108 * read.c (stringer): Catch attempts to create strings in the abs
4111 * config/tc-alpha.c: Fix compiling for COFF targets.
4112 Some minor formatting tidyups.
4114 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4116 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4117 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4118 according to the reloc.
4119 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4120 (TC_FORCE_RELOCATION): Define.
4121 (tc_m68hc11_force_relocation): Declare.
4123 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4124 (s_m68hc11_relax): New function for relax group.
4125 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4126 beginning of jump instruction.
4127 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4128 address computation.
4129 (tc-gen_reloc): Update.
4130 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4132 (tc_m68hc11_force_relocation): New function, handle new relocs.
4133 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4134 reloc for the linker relax pass.
4135 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4138 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4140 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4141 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4142 (s_m68hc11_mode): New function for .mode pseudo op.
4143 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4145 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4146 (m68hc11_elf_final_processing): Declare.
4148 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4150 * config/tc-m68hc11.c (md_begin): Take into account additional
4151 page operand for call instruction.
4152 (print_opcode_format): Likewise.
4153 (check_range): Likewise for page range checking.
4154 (get_operand): Don't skip a possible comma in operands.
4155 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4156 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4157 (fixup24): New to handle call reloc.
4158 (build_insn): Handle missing page operand for call instruction.
4160 (md_apply_fix3): Take into account new relocs.
4161 (get_operand): Fix the mode for indexed indirect addressing.
4162 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4164 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4166 * config/tc-mips.c (mips_ip): Don't work out the value of
4167 constant %hi()s here.
4169 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4171 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4172 for ELF, and don't bother checking ELF relocs when non-ELF.
4173 (i386_immediate): Allow absolute_section expressions for aout.
4174 (i386_displacement): Likewise. Also test bfd_is_com_section.
4175 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4176 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4177 not when fx_addsy. Remove dead code.
4179 2002-08-09 Graeme Peterson <gp@qnx.com>
4181 * configure.in: Add support for ppc-*-nto* target.
4182 * configure: Regenerate.
4184 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4186 * config/tc-i386.h: Reorganize.
4188 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4190 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4191 immediate offset in "dla" and "la" expansions.
4193 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4195 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4196 Remove "bfd_gas=yes" from target table when covered later.
4197 Consolidate some entries.
4198 * configure: Regenerate
4200 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4202 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4203 at start of insn, pass it to output_disp and output_imm.
4204 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4205 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4207 (output_imm): Added arguments. Compute properly addend for
4209 (md_apply_fix3): Remove R_386_GOTPC handling.
4211 2002-08-06 George France <france@handhelds.org>
4213 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4214 and m21264b processor names and cpu types.
4215 * doc/c-alpha.texi: Documented new types.
4217 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4219 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4221 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4223 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4224 handling to BFD_RELOC_MIPS16_GPREL.
4226 2002-08-01 Nick Clifton <nickc@redhat.com>
4228 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4229 pool is computed using signed arithmetic so that proper sign
4230 extension is performed if X_add_number is a 64-bit integer.
4232 2002-08-01 H.J. Lu <hjl@gnu.org>
4233 Daniel Jacobowitz <drow@mvista.com>
4235 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4236 .debug_line section unless it has line information.
4238 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4240 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4241 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4242 Allow default displacement size to be an option "--disp-size-default".
4243 (md_number_to_disp): Make error messages include value. Use %d to
4244 print integers, not %s.
4245 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4246 get duplicate messages sometimes.
4247 (convert_iif): Grow frag to max possible instruction size. Avoid
4248 creating unnecessary fixes.
4249 (md_number_to_field) Add prototype.
4250 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4251 prototypes and make static.
4252 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4253 (evaluate_expr): Use resultP argument instead of exprP global.
4254 (get_addr_mode): Quiten compiler warnings.
4255 (encode_operand): eliminate unused variables. Quiten compiler
4256 warnings. Eliminate nul character in format strings.
4257 (parse): argc is unsigned.
4258 (reloc): Type cast index to quieten compiler.
4259 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4260 (md_convert_frag): Note unused parameters. Remove unused
4262 (md_create_long_jump, md_create_short_jump,
4263 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4266 2002-07-31 Nick Clifton <nickc@redhat.com>
4268 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4269 of the PDP-11 and 2.11BSD a.out support.
4271 2002-07-31 Momchil Velikov <velco@fadata.bg>
4273 * config/tc-v850.c (md_assemble): Fix range check for immediate
4276 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4278 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4279 to Broadcom SB-1 core support.
4281 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4283 * config/tc-mips.c (mips_target_format): Fix formatting.
4284 Add recognition of n32 ABI formats.
4286 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4288 * tc-mips.c (load_address): Don't clobber $at when loading a
4289 64-bit address in non-PIC code if noat is in effect.
4292 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4294 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4295 used in division/multiply macro expansions similarly to how they
4296 are used in the variants with break instructions.
4299 2002-07-30 Graeme Peterson <gp@qnx.com>
4301 * configure.in: Add support for arm-*-nto target.
4302 * configure: Regenerate.
4304 2002-07-30 Nick Clifton <nickc@redhat.com>
4306 * config/tc-arm.c (struct literal_pool): Add fields to allow
4307 multiple literal pools to be maintained.
4308 (find_literal_pool): New function.
4309 (find_or_make_literal_pool): New function.
4310 (add_to_literal_pool): Use find_or_make_literal_pool.
4311 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4313 (s_ltorg): Use find_literal_pool.
4314 (arm_cleanup): Dump all literal pools.
4315 * doc/c-arm.texi: Document new behaviour of only dumping literal
4318 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4320 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4321 rather than PPC_OPCODE_32 for powerpc64*.
4323 2002-07-25 Nick Clifton <nickc@redhat.com>
4325 * po/es.po: Updated Spanish translation.
4326 * po/fr.po: Updated French translation.
4328 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4330 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4331 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4332 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4333 * configure, config.in: Regenerate.
4334 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4335 (mips_set_options): Remove "abi" field.
4336 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4339 (mips_arch_string, mips_arch_info): New vars.
4340 (mips_tune_string, mips_tune_info): New vars.
4341 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4342 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4343 (mips_isa_to_str, mips_cpu_to_str): Remove.
4344 (mips_ip): If the selected architecture is a generic ISA rather
4345 than a processor, only mention the ISA level in error messages.
4346 (OPTION_MCPU): Remove.
4348 (md_longopts): Add -mfp64, remove -mcpu.
4349 (mips_set_option_string): New fn.
4350 (md_parse_option): Make -mipsN update file_mips_isa rather than
4351 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4352 Don't let -mgp32 and -mfp32 change the ABI.
4353 (show): Move to end of file. Constify string argument.
4354 (md_show_usage): Move to the end of the file. Read available
4355 architectures from mips_cpu_info_table.
4356 (mips_set_architecture): New fn.
4357 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4358 is an alias for -march=mipsN. Don't change the ABI based on other
4359 flags. Infer the register size from the ABI as well as the
4360 architecture. Complain about more conflicting arguments.
4361 Unify logic with GCC.
4362 (s_mipsset): Don't change the ABI.
4363 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4364 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4365 "mipsN"-type entries. Remove entries that vary only in the
4366 manufacturer's prefix, or that have "000" replaced by "k".
4367 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4368 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4369 (mips_parse_cpu): New fn.
4370 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4371 (mips_cpu_info_from_isa): Minor formatting tweak.
4373 2002-07-24 Nick Clifton <nickc@redhat.com>
4375 * po/sv.po: Updated Swedish translation.
4376 * po/es.po: Updated Spanish translation.
4378 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4380 * Makefile.am: Run "make dep-am".
4381 * Makefile.in: Regenerate.
4382 * doc/Makefile.in: Regenerate.
4383 * config.in: Regenerate.
4384 * po/POTFILES.in: Regenerate.
4386 2002-07-23 Nick Clifton <nickc@redhat.com>
4388 * po/fr.po: Updated French translation.
4390 2002-07-23 Nick Clifton <nickc@redhat.com>
4392 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4395 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4397 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4398 instead of S_IS_EXTERN.
4399 (md_estimate_size_before_relax): Likewise.
4400 (mips_fix_adjustable): Likewise.
4402 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4404 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4406 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4407 Nick Clifton <nickc@redhat.com>
4409 * cond.c (s_ifdef): Treat a referenced but not yet defined
4410 symbol as if it were undefined, in exactly the same way as
4413 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4414 consider referenced bug not yet defined symbols to be
4417 2002-07-18 Denis Chertykov <denisc@overta.ru>
4418 Frank Ch. Eigler <fche@redhat.com>
4419 Alan Lehotsky <alehotsky@cygnus.com>
4420 John Healy <jhealy@redhat.com>
4421 Jeff Johnston <jjohnstn@redhat.com>
4423 * configure.in: Add ip2k configuraton.
4424 * configure: Regenerate.
4425 * Makefile.am: Add ip2k configuraton.
4426 * Makefile.in: Regenerate.
4427 * configure: Regenerate.
4428 * Makefile.in: Regenerate.
4429 * config/tc-ip2k.c: New file.
4430 * config/tc-ip2k.h: New files.
4431 * NEWS: Mention new support.
4432 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4433 * doc/Makefile.in: Regenerate.
4434 * doc/all.texi: Set IP2K
4435 * doc/as.texinfo: Add IP2K description.
4436 * doc/c-ip2k.texi: New file.
4438 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4440 * NEWS: Reformat to match style of other NEWS files.
4442 2002-07-17 Jan Hubicka <jh@suse.cz>
4444 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4446 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4448 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4450 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4452 * NEWS: Add 'Changes in 2.13'.
4454 2002-07-15 Matt Fredette <fredette@netbsd.org>
4456 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4458 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4460 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4461 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4464 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4466 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4467 (ppc_frob_file_before_adjust): New function.
4468 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4469 (ppc_elf_frob_symbol): Don't declare.
4470 (tc_frob_file_before_adjust): Define.
4471 (ppc_frob_file_before_adjust): Declare.
4473 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4474 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4477 (ppc_xcoff64): Rename to ppc_obj64.
4478 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4479 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4480 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4482 (ppc_target_format): Use ppc_obj64 to select format.
4483 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4484 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4485 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4486 (tc_frob_symbol): Likewise.
4487 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4488 BFD_DEFAULT_TARGET_SIZE.
4490 (ppc_is_toc_sym): Likewise.
4491 (md_apply_fix3): Likewise.
4492 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4493 BFD_DEFAULT_TARGET_SIZE.
4494 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4495 (tc_frob_symbol): Likewise.
4497 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4499 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4500 (mips_ip): Likewise.
4502 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4504 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4505 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4506 (md_apply_fix3): Formatting. Remove redundant test.
4507 (tc_gen_reloc): Remove redundant code.
4508 (tc_i386_force_relocation): Delete. Movy body of function to..
4509 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4511 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4513 * configure.in: Add hppa-*-openbsd* target, change
4514 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4516 * configure: Regenerate.
4518 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4520 * config/tc-mips.c (macro): Shift the 32-bit address range
4521 accessible with a lone "lui" down by 32768.
4523 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4525 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4526 instead of "dadd" in address calculations.
4529 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4531 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4533 (md_assemble): Instead, zap the suffix here.
4535 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4537 * NEWS: Remove next release number until the release is actually
4540 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4542 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4544 * Makefile.in: Regenerate.
4546 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4548 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4549 to symbols in merge sections, even non pc-relative ones.
4551 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4553 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4555 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4557 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4558 .softregs and .eeprom.
4560 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4562 * NEWS: Note the next release is 2.13.
4564 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4566 * po/tr.po: New translation imported.
4568 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4570 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4571 (ecoff_directive_def): Likewise.
4572 (ecoff_directive_tag): Likewise.
4573 * listing.c (file_info): Likewise.
4574 * hash.c (what): Likewise.
4576 2002-06-25 H.J. Lu <hjl@gnu.org>
4578 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4579 * Makefile.in: Regenerated.
4581 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4583 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4584 (assemble_ppi): Generate warning if the same register is used
4585 twice as destination in the same padd / pmuls instruction.
4587 2002-06-18 Dave Brolley <brolley@redhat.com>
4589 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4590 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4591 * configure.in: Support frv-*-*.
4592 * Makefile.am (CPU_TYPES): Add frv.
4593 (TARGET_CPU_CFILES): Add tc-frv.c.
4594 (TARGET_CPU_HFILES): Add tc-frv.h.
4595 (DEPTC_frv_coff): New variable.
4596 (DEPTC_frv_elf): New variable.
4597 (DEPOBJ_frv_coff): New variable.
4598 (DEPOBJ_frv_elf): New variable.
4599 (DEP_frv_coff): New variable.
4600 (DEP_frv_elf): New variable.
4601 * tc-frv.c: New file.
4602 * tc-frv.h: New file.
4604 2002-06-17 Catherine Moore <clm@redhat.com>
4606 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4608 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4610 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4612 2002-06-17 Tom Rix <trix@redhat.com>
4614 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4616 2002-06-14 H.J. Lu <hjl@gnu.org>
4617 Daniel Jacobowitz <drow@mvista.com>
4619 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4620 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4621 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4622 and new_logical_line for the first .file directive.
4623 * read.c (s_app_file_string): New function.
4624 (s_app_file): Call it.
4625 * read.h (s_app_file_string): Add declaration.
4627 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4629 * configure.in: Remove MIPS_STABS_ELF.
4630 * configure: Regenerated.
4631 * config.in: Regenerated.
4632 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4634 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4636 (pdr_seg): Declare unconditionally.
4637 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4638 (s_mips_end): Likewise. Generate stabs function markers.
4639 (s_mips_ent): Generate stabs function markers.
4640 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4642 (s_mips_mask): Likewise.
4643 (mips_flag_mdebug): New.
4644 (md_longopts): Add "mdebug" and "no-mdebug".
4645 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4646 (mips_after_parse_args): Set mips_flag_mdebug.
4647 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4649 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4651 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4652 value twice for RELA relocations.
4654 2002-06-12 Ben Elliston <bje@redhat.com>
4656 * symbols.c (resolve_symbol_value): Initialise final_val.
4658 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4660 2002-06-11 Tom Rix <trix@redhat.com>
4662 * config/tc-ppc.c (ppc_subseg_align): Delete.
4663 (ppc_change_csect): Default csect align is 2.
4664 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4666 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4668 * config/tc-avr.c (mcu_types): Update.
4670 2002-06-08 Matt Thomas <matt@3am-software.com>
4672 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4673 (vax-*-netbsd*): New targets.
4674 * configure: Regenerate.
4675 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4676 * config/tc-vax.c: Add support for ELF and PIC.
4677 (flag_want_pic): New flag.
4678 (float_cons): Fix prototype.
4679 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4680 (md_assemble): Introduce a new is_absolute local, and use it
4681 rather than repeating the test. Make fatal errors actually
4682 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4683 Add support for ELF. Add support for PIC.
4684 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4685 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4687 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4688 optional for a.out, and not allowed for VMS. Adjust all callers.
4689 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4690 (md_create_long_jump): Likewise.
4691 (md_undefined_symbol): Likewise.
4692 (md_section_align): Likewise.
4693 (md_shortopts): Allow -k and -K for ELF.
4694 (md_parse_option): Set flag_want_pic if -k or -K.
4695 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4696 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4697 * config/tc-vax.h (tc_headers_hook): Remove.
4698 (TARGET_FORMAT): Set according to object format and target
4700 (BFD_ARCH, TARGET_ARCH): Define.
4701 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4702 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4703 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4704 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4706 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4708 * Makefile.am: Run "make dep-am".
4709 * Makefile.in: Regenerate.
4711 * as.c: Replace CONST with const.
4712 * write.c: Likewise.
4713 * config/obj-coff.c: Likewise.
4714 * config/tc-a29k.c: Likewise.
4715 * config/tc-arm.c: Likewise.
4716 * config/tc-dlx.c: Likewise.
4717 * config/tc-h8300.c: Likewise.
4718 * config/tc-h8500.c: Likewise.
4719 * config/tc-i370.c: Likewise.
4720 * config/tc-i860.c: Likewise.
4721 * config/tc-i960.c: Likewise.
4722 * config/tc-m68hc11.c: Likewise.
4723 * config/tc-m68k.c: Likewise.
4724 * config/tc-m88k.c: Likewise.
4725 * config/tc-mcore.c: Likewise.
4726 * config/tc-mips.c: Likewise.
4727 * config/tc-ns32k.c: Likewise.
4728 * config/tc-pdp11.c: Likewise.
4729 * config/tc-pj.c: Likewise.
4730 * config/tc-s390.c: Likewise.
4731 * config/tc-sh.c: Likewise.
4732 * config/tc-sparc.c: Likewise.
4733 * config/tc-tahoe.c: Likewise.
4734 * config/tc-tic80.c: Likewise.
4735 * config/tc-v850.c: Likewise.
4736 * config/tc-vax.c: Likewise.
4737 * config/tc-w65.c: Likewise.
4738 * config/tc-z8k.c: Likewise.
4740 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4742 Based on patch from Matt Green:
4743 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4744 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4745 (s_mips_loc): New function.
4746 (mips_nonecoff_pseudo_table): Call them.
4747 (append_insn): Call dwarf2_emit_insn.
4749 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4751 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4753 (file_ase_mips16): New veriable.
4754 (mips_eabi64): Remove.
4755 (CPU_HAS_MIPS16): New define.
4756 (CPU_HAS_MDMX): Fix data type.
4757 (md_begin): Code cleanup. Use file_ase_mips16.
4758 (mips_elf_final_processing): Handle mips16 header flag.
4759 Handle EABI flag without intermediate variable.
4761 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4763 * doc/as.texinfo: Update MIPS documentation.
4765 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4767 * config/tc-mips.c: Add define for $zero register.
4768 (md_begin): Add $zero as alias name for $0.
4769 (insn_uses_reg): Use ZERO define.
4770 (mips_ip): Add $zero as alias name for $0.
4771 (mips16_ip): Likewise.
4772 (s_cplocal): Demand empty rest of input line.
4773 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4774 names. Use ZERO define. Fix input_line_pointer progress.
4776 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4778 * symbols.c: Replace CONST by const throughout.
4779 (symbol_find_exact): Split out from..
4780 (symbol_find_base): ..here.
4781 * symbols.h: Replace CONST by const throughout.
4782 (symbol_find_exact): Declare.
4783 * config/obj-elf.c: #include "struc-symbol.h".
4784 (elf_frob_file): If group name matches an exported symbol, use that
4785 symbol for the signature and ".group" as the section name.
4787 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4789 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4792 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4794 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4795 and mips_opts.ase_mdmx if they are uninitialized.
4797 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4799 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4800 (hppa_force_relocation): Check if a stub just before the start symbol
4801 of the last call_info is reachable before forcing relocation. Fix
4804 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4806 * config/tc-mips.c (mips_after_parse_args): New function.
4807 (md_begin): Move processing of defaults to mips_after_parse_args.
4808 config/tc-mips.h (md_after_parse_args): Define.
4810 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4812 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4813 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4814 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4815 * configure: Regenerate.
4816 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4819 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4821 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4823 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4825 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4826 linkonce flag. Print all warnings.
4827 (obj_elf_section): Parse ",comdat" for groups.
4828 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4829 consistency of comdat flag.
4831 2002-06-02 Richard Henderson <rth@redhat.com>
4833 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4834 with LITERALs without sequence numbers.
4836 2002-06-01 Richard Henderson <rth@redhat.com>
4838 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4839 Rename them LITUSE_ALPHA_*.
4841 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4843 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4844 accept parentheses enclosed register lists.
4846 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4848 * Makefile.am: Run "make dep-am".
4849 * Makefile.in: Regenerate.
4850 * po/POTFILES.in: Regenerate.
4852 2002-05-31 Graeme Peterson <gp@qnx.com>
4854 * configure.in: Add i386-*-nto-qnx*.
4855 * configure: Regenerate.
4857 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4859 * config/tc-mips.c (mips_ip): Use unsigned long values for
4862 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4864 * config/tc-mips.c (s_cpsetup): Fix initialization of
4865 mips_cpreturn_register and mips_cpreturn_offset.
4867 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4869 * config/tc-mips.c (s_cpsetup): Fix comment.
4871 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4873 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4874 (mips_ip): Likewise.
4875 (mips16_ip): Likewise.
4876 (tc_get_register): Likewise.
4878 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4879 Ed Satterthwaite <ehs@broadcom.com>
4881 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4882 (mips_opts): Initialize "ase_mdmx" member.
4883 (file_ase_mdmx): New variable.
4884 (CPU_HAS_MDMX): New macro.
4885 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4886 based on command line options and configuration defaults.
4887 (macro_build): Note in comment that use of MDMX in macros is
4888 not currently allowed.
4889 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4890 "Z" MDMX operand types.
4891 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4892 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4894 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4895 Add support for "-mdmx" and "-no-mdmx" options.
4896 (OPTION_ELF_BASE): Move to accomodate new options.
4897 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4898 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4899 file_ase_mdmx was set.
4900 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4901 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4904 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4906 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4907 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4908 command line switch conforming to gcc conventions.
4909 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4911 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4913 * config/tc-mips.c (macro_build_jalr): New Function.
4914 (md_begin): NewABI uses big GOTs.
4915 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4916 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4917 (load_address): Add some NewABI PIC support.
4919 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4920 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4922 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4924 * config/tc-mips.c (load_address): Use mips_gp_register instead
4925 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4927 (macro): Use mips_gp_register instead of hardcoded value.
4929 2002-05-30 Richard Henderson <rth@redhat.com>
4931 * expr.h (operatorT): Add O_md17..O_md32.
4932 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4933 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4934 O_tprelhi, O_tprello, O_tprel): New.
4935 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4936 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4937 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4938 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4939 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4940 (md_apply_fix3): Handle TLS relocations.
4941 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4942 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4943 associated TLS reloc. Check lituse_tls relocs match up.
4944 (emit_insn): Handle TLS relocations.
4947 * doc/c-alpha.texi: Add docs for tls relocations.
4949 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4951 * config/tc-mips.c (mips_gprel_offset): New variable.
4952 (s_gpvalue): Use it.
4954 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4956 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4957 write-write conflicts.
4958 (md_assemble): Reformat introductory comment.
4959 (parallel_ok): Prevent packing only if the first
4960 instruction cannot be packed.
4962 2002-05-30 Jason Eckhardt <jle@redhat.com>
4963 Tom Rix <trix@redhat.com>
4965 * config/tc-d10v.c (build_insn): Check for immediates.
4967 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4969 * config/tc-mips.c: Replace GP in comments by $gp.
4970 (mips_big_got): Initialize.
4971 (mips_trap): Initialize.
4972 (load_address): Use mips_gp_register instead of hardcoded value.
4973 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4974 (macro): Use mips_gp_register instead of hardcoded value.
4975 (macro2): Change load_address calls.
4976 (md_pcrel_from): Comment formatting.
4977 (s_cpload): Use mips_gp_register instead of hardcoded value.
4978 (s_cprestore): Likewise. Comment formatting.
4979 (s_gpword): Fix data type.
4980 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4981 (nopic_need_relax): Replace GP in comments by $gp.
4982 (mips_elf_final_processing): Better comment.
4984 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4986 * configure.in: Add DLX configuraton
4987 * Makefile.am: Add DLX configuraton
4988 * configure: Regenerate.
4989 * Makefile.in: Regenerate.
4990 * config/tc-dlx.c: New file.
4991 * config/tc-dlx.h: New files.
4992 * NEWS: Mention new support.
4994 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4996 * config/obj-coff.c (write_object_file): Add missing semicolon.
4998 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5000 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5001 by the define. Remove superfluous check of mips_opts.mips16.
5002 (append_insn): Likewise. Canonicalize variable increments.
5003 (macro_build): Canonicalize variable increments.
5004 (macro_build_lui): Likewise.
5005 (load_register): Likewise.
5006 (load_address): Move pointer initialization.
5007 (macro): Move pointer to a more local scope. Canonicalize variable
5008 increments. Better comments. Replace magic constant for RA by the
5010 (macro2): Replace magic constant for RA by the define. Canonicalize
5011 variable increments.
5012 (mips_ip): Canonicalize variable increments.
5013 (mips16_ip): Replace magic constant for RA by the define.
5014 (my_getSmallParser): Canonicalize variable increments/decrements.
5015 (my_getPercentOp): Likewise.
5016 (my_getSmallExpression): Likewise.
5017 (s_align): Likewise.
5018 (s_mipsset): Likewise.
5019 (s_cpsetup): Likewise.
5020 (s_insn): Remove superfluous check of mips_opts.mips16.
5021 (s_mips_stab): Likewise.
5022 (mips_handle_align): Canonicalize variable increments.
5023 (s_mips_ent): Likewise.
5024 (s_mips_end): Add comment.
5026 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5028 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5029 * configure: Regenerate.
5031 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5033 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5034 * Makefile.in: Regenerate.
5035 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5036 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5037 * configure: Regenerate.
5038 * as.h: Use #include "" instead of <> for local header files.
5039 * flonum-konst.c: Likewise.
5040 * flonum-mult.c: Likewise.
5042 * listing.c: Likewise.
5043 * config/tc-ia64.h: Likewise.
5044 * config/tc-v850.h: Likewise.
5046 2002-05-24 TAMURA Kent <kent@netbsd.org>
5048 * configure.in: Add a target for i386-netbsdpe.
5049 * configure: Regenerate.
5051 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5053 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5054 (obj_elf_common): Call elf_common.
5055 (obj_elf_tls_common): New function.
5056 (elf_pseudo_tab): Support .tls_common.
5057 (special_sections): Add .tdata and .tbss.
5058 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5060 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5061 (obj_elf_parse_section_letters): Include T in error message.
5062 * config/tc-ppc.c (ppc_section_letter): Likewise.
5063 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5064 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5066 * config/tc-sparc.c (md_apply_fix3): Likewise.
5067 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5068 Define them if not BFD_ASSEMBLER.
5069 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5071 (md_apply_fix3): Add TLS relocs.
5072 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5073 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5074 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5075 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5076 (ia64_elf_section_letter): Include T in error message.
5077 (md_begin): Support TLS operators.
5078 (md_operand): Likewise.
5079 (ia64_gen_real_reloc_type): Support TLS relocs.
5080 * write.c (adjust_reloc_syms): Don't change symbols in
5081 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5083 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5085 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5086 round the relocation up rather than down.
5088 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5090 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5092 * doc/as.texinfo: Document that the COFF version of .section
5093 ignores the 'a' flag.
5095 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5097 * config/tc-alpha.c (assemble_tokens): Protect use of
5098 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5100 * write.c (size_seg): Check adjustment to last frag.
5101 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5103 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5104 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5105 (write_object_file): Invoke md_do_align if available, and use
5106 frag_align_code on text sections.
5107 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5108 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5109 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5110 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5111 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5114 2002-05-22 H.J. Lu <hjl@gnu.org>
5116 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5119 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5121 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5124 2002-05-22 H.J. Lu <hjl@gnu.org>
5126 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5127 for one .loc for compiler.
5129 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5131 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5134 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5136 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5137 Optimize the rotate by zero case.
5139 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5141 * configure.in: Remove accidental enabling of bfd_gas=yes for
5143 * configure: Regenerate.
5145 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5147 * app.c: Fix formatting.
5149 * ehopt.c: Likewise.
5151 * input-file.c: Likewise.
5152 * listing.c: Likewise.
5153 * macro.h: Likewise.
5154 * stabs.c: Likewise.
5155 * symbols.c: Likewise.
5157 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5159 * config/obj-generic.c: Delete file.
5160 * config/obj-generic.h: Likewise.
5162 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5164 * config/tc-avr.c (mcu_types): Update for new devices.
5166 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5168 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5170 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5172 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5173 worked sometimes by accident. Fix copy&paste comment.
5175 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5177 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5178 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5179 (mips_elf_final_processing): Let n32 use .reginfo.
5181 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5183 * config/tc-mips.c (append_insn): Fix too small range of variable.
5185 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5187 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5188 listing_prev_line().
5190 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5192 * config/tc-arm.c (md_assemble): Remove redundant call to
5195 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5198 * stabs.c (s_stab_generic): Fix grammatical error in warning
5201 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5203 * write.c (subsegs_finish): Don't specially align last subseg.
5205 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5207 * stabs.c (s_stab_generic): Warn about a description field that is
5210 * config/obj-coff.c: Fix compile time warnings when compiling
5211 without BFD_ASSEMBLER defined.
5214 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5216 (md_pcrel_from_section): Use md_pcrel_from().
5218 2002-05-11 Bruno Haible <bruno@clisp.org>
5220 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5221 by dwarf2_directive_loc, instead of calling dwarf2_where.
5223 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5225 * config/obj-coff.h: Fix formatting.
5226 * config/tc-mcore.c: Likewise.
5227 * config/tc-mn10300.c: Likewise.
5228 * config/tc-openrisc.c: Likewise.
5229 * config/tc-or32.c: Likewise.
5230 * config/tc-pdp11.c: Likewise.
5231 * config/tc-ppc.c: Likewise.
5232 * config/tc-ppc.h: Likewise.
5233 * config/tc-sh64.c: Likewise.
5234 * config/tc-sh.c: Likewise.
5235 * config/tc-tic54x.c: Likewise.
5236 * config/tc-xstormy16.c: Likewise.
5237 * config/tc-xstormy16.h: Likewise.
5239 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5241 * config/obj-coff.c: Fix formatting.
5242 * config/obj-elf.c: Likewise.
5243 * config/tc-alpha.c: Likewise.
5244 * config/tc-arm.c: Likewise.
5245 * config/tc-d10v.c: Likewise.
5246 * config/tc-d30v.c: Likewise.
5247 * config/tc-h8300.c: Likewise.
5248 * config/tc-hppa.c: Likewise.
5250 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5252 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5253 reloc when no_cond_jump_promotion.
5255 2002-05-08 Jim Wilson <wilson@redhat.com>
5257 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5258 current variable part of frag.
5260 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5262 * config/tc-mmix.c: Fix formatting.
5263 * config/tc-mmix.h: Likewise.
5265 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5267 * configure: Regenerate.
5269 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5271 * config/tc-m68k.c: Fix formatting.
5273 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5275 * Makefile.am: Honour DESTDIR.
5276 * Makefile.in: Regenerate.
5278 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5280 * config/tc-ia64.c: Fix formatting.
5281 * config/tc-ia64.h: Likewise.
5283 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5285 * config/tc-mips.c: Fix formatting.
5286 * config/tc-s390.c: Likewise.
5287 * config/tc-s390.h: Likewise.
5289 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5291 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5292 information for instructions.
5294 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5296 * as.h: Fix formatting.
5299 * dwarf2dbg.c: Likewise.
5300 * frags.h: Likewise.
5302 * macro.c: Likewise.
5304 * stabs.c: Likewise.
5305 * symbols.c: Likewise.
5307 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5309 * app.c (mri_pseudo): Only declare for TC_M68K.
5311 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5312 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5313 BFD_RELOC_16_BASEREL.
5314 (md_assemble): Likewise.
5315 (md_apply_fix3): Likewise.
5317 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5319 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5320 zero into an add of zero - it is not the same.
5322 2002-05-01 Arati Dikey <aratid@kpit.com>
5324 * tc-sh.c (get_specific): Generate warning if the same
5325 destination register is used in parallel instructions.
5327 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5329 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5331 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5333 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5334 backwards to prevent cascading errors.
5336 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5338 * configure.in: Add support for powerpc-*-windiss.
5339 * configure: Regenerated.
5341 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5343 * config/tc-s390.c (md_parse_option): Formatting.
5345 * config/tc-i386.c: Formatting fixes, add missing space in error
5348 2002-04-24 Christian Groessler <chris@groessler.org>
5350 * config/tc-z8k.c (build_bytes): Add support for new cases:
5351 CLASS_IGNORE and ARG_NIM4.
5352 (md_assemble): Prevent destruction of input_line_pointer if
5353 get_operands returns failure.
5355 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5357 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5358 instructions to be generated by macros.
5360 2002-04-24 Andreas Schwab <schwab@suse.de>
5362 * config/tc-i386.c (output_jump, output_disp)
5363 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5365 (md_apply_fix3): Remember addend value for rela relocations.
5366 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5368 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5370 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5371 from previous change.
5373 2002-04-22 Eric Christopher <echristo@redhat.com>
5375 * config/tc-mips.c (macro_build): Add warning if macro instructions
5376 are expanded into a branch delay slot.
5378 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5380 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5381 numbers, gdb relies on them to detect the start of the prologue.
5383 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5385 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5386 symbols in merge sections.
5388 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5390 * as.c (main): Don't reference _bfd_chunksize.
5392 2002-04-15 Tom Rix <trix@redhat.com>
5394 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5395 symbols in merge sections.
5397 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5399 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5400 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5401 argument for the precision.
5402 (gen_to_words): Update accordingly.
5404 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5406 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5407 BFD_VERSION_STRING unavailable.
5408 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5410 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5412 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5413 symbol_used_in_reloc_p is true.
5415 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5418 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5420 * dep-in.sed: Cope with absolute paths.
5421 * Makefile.am (dep.sed): Subst TOPDIR.
5423 * Makefile.in: Regenerate.
5425 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5427 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5428 (mips_ip): Remove unused variable.
5429 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5430 unsigned char with bfd_byte.
5431 (s_file): Remove unused variable.
5432 (s_mips_ent): Likewise.
5434 2002-04-03 Tom Rix <trix@redhat.com>
5436 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5438 (find_opcode): Fix warning in as_warn.
5439 * config/tc-d10v.h: Update Copyright.
5441 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5442 Tom Rix <trix@redhat.com>
5444 From Jeff Knaggs <jknaggs@redhat.com>
5445 * config/tc-d10v.c (check_resource_conflict): New function to
5446 check for resource conflicts.
5448 From Jason Eckhardt <jle@redhat.com>
5449 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5451 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5452 reserved control registers is used.
5453 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5456 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5457 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5458 instruction cannot be packed.
5460 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5461 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5462 write-write conflicts.
5463 (md_assemble): Reformat introductory comment.
5464 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5467 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5469 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5470 O_logical_not>): Derive final_seg from add_symbol.
5471 <O_multiply..O_logical_or>: More final_seg twiddles.
5473 2002-04-01 Jessica Han <jessica@cup.hp.com>
5475 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5478 2002-03-27 Andreas Schwab <schwab@suse.de>
5480 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5481 field for pc-relative fixups.
5482 (output_disp): Likewise.
5483 (md_estimate_size_before_relax): Likewise.
5484 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5485 pc-relative fixups in 64bit mode.
5487 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5489 * config/te-aix5.h: Typo fix.
5491 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5493 * Makefile.am: Run "make dep-am".
5494 * Makefile.in: Regenerate.
5495 * doc/Makefile.in: Regenerate.
5497 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5499 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5500 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5502 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5504 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5505 the EXTENDED bit here; report the estimate according to the
5508 2002-03-18 Tom Rix <trix@redhat.com>
5510 * configure.in: Add AIX 5 support.
5511 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5512 * config/te-aix5.h: New file. AIX 5 support.
5513 * configure: Regenerate.
5515 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5517 * po/fr.po: Updated version.
5519 2002-03-16 Andreas Jaeger <aj@suse.de>
5521 * doc/c-mips.texi (Machine Dependencies): Add new node.
5523 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5525 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5526 (mips_opts): Initialize "ase_mips3d" member.
5527 (file_ase_mips3d): New variable.
5528 (CPU_HAS_MIPS3D): New macro.
5529 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5530 based on command line options and configuration defaults.
5531 (macro_build, mips_ip): Accept MIPS-3D instructions if
5532 mips_opts.ase_mips3d is set.
5533 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5534 Add support for "-mips3d" and "-no-mips3d" options.
5535 (OPTION_ELF_BASE): Move to accomodate new options.
5536 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5537 (mips_elf_final_processing): Add a comment indicating that a
5538 MIPS-3D ASE ELF header flag should be set, when one exists.
5539 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5540 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5541 nomips3d" directives.
5543 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5545 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5546 a weak symbol in same section to be within reach.
5548 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5550 * po/fr.po: Updated version.
5552 2002-03-12 Andreas Schwab <schwab@suse.de>
5554 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5555 body record so that an error is given for misplaced .save
5558 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5560 * config/tc-i386.h (REX_OPCODE): Define.
5561 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5562 (rex_byte): typedef to int.
5563 * config/tc-i386.c: Group prototypes and vars together.
5564 Formatting fixes. Remove occurrences of "register" keyword.
5567 (mode_from_disp_size): Add INLINE keyword to prototype.
5568 (fits_in_signed_byte): Likewise.
5569 (fits_in_unsigned_byte): Likewise.
5570 (fits_in_unsigned_word): Likewise.
5571 (fits_in_signed_word): Likewise.
5572 (fits_in_unsigned_long): Likewise.
5573 (fits_in_signed_long): Likewise.
5574 (type_names): Constify.
5575 (intel_float_operand): Constify param.
5576 (add_prefix): Use REX_OPCODE.
5577 (md_assemble): Likewise. Modify for changed rex_byte.
5578 (parse_insn): Split out of md_assemble.
5579 (parse_operands): Likewise.
5580 (swap_operands): Likewise.
5581 (optimize_imm): Likewise.
5582 (optimize_disp): Likewise.
5583 (match_template): Likewise.
5584 (check_string): Likewise.
5585 (process_suffix): Likewise.
5586 (check_byte_reg): Likewise.
5587 (check_long_reg): Likewise.
5588 (check_qword_reg): Likewise.
5589 (check_word_reg): Likewise.
5590 (finalize_imm): Likewise.
5591 (process_operands): Likewise.
5592 (build_modrm_byte): Likewise.
5593 (output_insn): Likewise.
5594 (output_branch): Likewise.
5595 (output_jump): Likewise.
5596 (output_interseg_jump): Likewise.
5597 (output_disp): Likewise.
5598 (output_imm): Likewise.
5600 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5602 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5604 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5606 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5607 relocs except when BFD64.
5609 * write.c (number_to_chars_bigendian): Don't abort when N is
5610 larger than sizeof (VAL).
5611 (number_to_chars_littleendian): Likewise.
5613 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5615 * config/tc-hppa.c (md_apply_fix3): Add cast.
5616 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5619 2002-03-05 Paul Koning <pkoning@equallogic.com>
5621 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5622 (parse_ac5): New function for parsing float regs in float operand.
5623 (parse_expression): Remove attempt to make literals be octal.
5624 (parse_op_no_deferred): Support float literals.
5625 (parse_op): Reject attempts to refer to float regs.
5626 (parse_fop): New function, like parse_op but for float operand.
5627 (md_assemble): Add cases to parse float operands. Also fix
5628 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5630 2002-03-04 H.J. Lu <hjl@gnu.org>
5632 * config/obj-elf.c (special_section): Add .init_array,
5633 .fini_array and .preinit_array.
5635 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5636 .init_array and .fini_array.
5638 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5640 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5642 (obj_frob_symbol): Copy visibility.
5644 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5646 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5648 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5650 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5652 * po/es.po: Updated.
5654 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5656 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5657 only, undo the changes made on 2001-06-08, with the
5658 effect being that common or extern symbols are
5659 adjusted for embedded-PIC, but weak symbols are not.
5660 (md_estimate_size_before_relax: Likewise, with the effect
5661 that extern symbols are treated the same as weak symbols
5662 only if not embedded-PIC.
5663 (mips_fix_adjustable) Likewise, with the effect that
5664 weak or extern symbols are not adjusted for embedded-PIC.
5665 (md_apply_fix3): Tweak so that the case where value is zero
5666 is handled more correctly for embedded-PIC code.
5668 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5670 * doc/as.texinfo (Overview): Add missing @ifset IA64
5672 * configure.in (LINGUAS): Add es.po.
5673 * configure: Regenerate.
5674 * po/es.po: New file.
5676 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5678 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5679 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5680 and NO_PIC cases. Code cleanup.
5681 (macro2): Fix handling of 64bit register loads.
5683 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5685 * doc/as.texinfo: Add entry for IA64.
5686 * doc/c-ia64.texi: New file.
5688 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5690 * config/tc-hppa.c: Update copyright date.
5692 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5693 Remove references to chip manufacturers.
5694 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5696 (md_show_usage): Remove references to chip manufacturers. Mention
5698 (md_begin): Test power4 opcode flag bits.
5700 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5702 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5703 count exceeds prologue count.
5704 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5705 (unwind.label_prologue_count): New member.
5707 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5709 (get_saved_prologue_count): New function.
5710 (save_prologue_count): New function.
5711 (free_saved_prologue_count): New function.
5712 (dot_label_state): Record state label by calling save_prologue_count().
5713 (dot_copy_state): Restore prologue count by calling
5714 get_saved_prologue_count().
5715 (generate_unwind_image): Free up list of saved prologue
5716 counts by calling free_saved_prologue_counts().
5718 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5720 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5721 function declarations.
5723 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5725 * NEWS: Note that GASP is now deprecated.
5726 * Makefile.am: Do not build gasp-new by default.
5727 * Makefile.in: Regenerate.
5728 * doc/Makefile.am: Do not install gasp.info.
5729 * doc/Makefile.in: Regenerate.
5730 * gas/gasp.texi: Note that gasp is now deprecated.
5732 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5734 * NEWS: Mark 2.12 branch.
5736 2002-02-19 Tom Tromey <tromey@redhat.com>
5738 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5740 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5742 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5745 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5747 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5748 Make bit size independent of architecture switch.
5749 (md_begin): Add warning for -m64 with -Aesa.
5750 (s390_md_end): Use renamed architecture defines.
5752 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5754 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5756 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5758 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5761 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5763 * config/tc-mips.c (md_estimate_size_before_relax): Really
5764 make sure we treat weak like extern only for ELF. (Fixes
5765 patch from 2001-07-25.)
5767 2002-02-15 Ben Elliston <bje@redhat.com>
5769 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5772 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5774 * NEWS: Mention support for MMIX.
5776 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5778 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5779 a sequence of indpendent 'if' statements for easier debugging
5780 and future modification.
5782 2002-02-13 Matt Fredette <fredette@netbsd.org>
5784 * config/tc-m68k.c (md_show_usage): No longer display a
5785 hard-coded "68020" for the default CPU, instead display the
5786 canonical name of the true, configured default CPU.
5787 (m68k_elf_final_processing): Mark objects for sub-68020
5788 CPUs with the new EF_M68000 flag.
5790 2002-02-13 Andreas Schwab <schwab@suse.de>
5792 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5793 pc-relative relocations to merge sections in 64-bit mode.
5795 2002-02-13 Ben Elliston <bje@redhat.com>
5797 * NEWS: Document floating point number handling in gasp.
5798 * gasp.c: Include <assert.h> and "xregex.h".
5799 (is_flonum): New function.
5800 (chew_flownum): Likewise.
5801 (change_base): Consume flonums from the input, where possible.
5802 * doc/gasp.texi (Constants): Document floating point numbers.
5804 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5806 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5807 that implicitly use LR and RR selectors.
5809 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5811 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5812 and `epsw' as available on AM33 and above only.
5813 (other_register_name): Add logic to handle machine type encoded in
5816 2002-02-11 Tom Rix <trix@redhat.com>
5818 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5821 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5823 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5826 2002-02-11 Jan Hubicka <jh@suse.cz>
5828 * i386.c (md_assemble): Support 32bit address prefix.
5829 (i386_displacement): Likewise.
5830 (i386_index_check): Accept 32bit addressing in 64bit mode.
5832 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5834 * config/tc-sh.c (dot): Removed unused function.
5836 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5838 * Makefile.am: "make dep-am".
5839 * Makefile.in: Regenerate.
5840 * aclocal.m4: Regenerate.
5841 * config.in: Regenerate.
5842 * configure: Regenerate.
5843 * doc/Makefile.in: Regenerate.
5845 2002-02-10 Richard Henderson <rth@redhat.com>
5847 * doc/c-alpha.texi: New file.
5848 * doc/Makefile.am (CPU_DOCS): Add it.
5849 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5851 2002-02-09 Richard Henderson <rth@redhat.com>
5853 * config/tc-alpha.c (O_samegp): New.
5854 (USER_RELOC_P): Include it.
5855 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5856 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5857 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5858 (alpha_validate_fix): New.
5859 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5861 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5863 * doc/c-cris.texi: New.
5864 * doc/all.texi: @set CRIS.
5865 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5866 Include c-cris.texi.
5867 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5868 * doc/Makefile.in: Regenerate.
5870 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5872 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5873 determine if a number is a sign-extended 32-bit number.
5874 (load_register): Use IS_SEXT_32BIT_NUM.
5875 (macro): Check if load/store macro handling is using a
5876 constant 32-bit address on 64-bit address systems, and if
5877 so optimize the generation of that address.
5879 2002-02-08 Richard Henderson <rth@redhat.com>
5881 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5882 we've eliminated all foreign relocation types yet.
5883 (alpha_fix_adjustable): Likewise.
5885 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5887 Contribute sh64-elf.
5888 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5889 Stephen Clarke <Stephen.Clarke@st.com>
5890 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5891 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5892 * config/tc-sh.c (md_relax_table): Added default sizes for
5893 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5894 MOVI_16, MOVI_32 and MOVI_48.
5895 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5896 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5898 (shmedia_md_estimate_size_before_relax): Remove redundant
5899 blocks. Set fragP->fr_var even if relaxation type unchanged.
5900 Retain UNDEF_MOVI until expression decays to number.
5901 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5902 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5903 relocation types. Take fixP->fx_addnumber into account too.
5904 (shmedia_md_apply_fix): Likewise.
5905 (shmedia_md_convert_frag): Likewise.
5906 (shmedia_build_Mytes): Likewise.
5907 (sh64_consume_datalabel): Complain about nested datalabel.
5908 Support PIC relocs. Call sh_parse_name.
5909 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5910 in tc-sh.h to SHmedia reloc types.
5911 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5912 MOVI_GOTPC): New relaxation constants.
5913 (md_relax_table): Introduce relaxation directives for PIC-related
5915 (sh_PIC_related_p): Handle datalabel.
5916 (sh_check_fixup): Choose SH5 PIC relocations.
5917 (sh_cons_fix_new): Added BDF_RELOC_64.
5918 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5919 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5920 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5921 current ISA is SHmedia, get 7 bytes.
5922 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5923 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5925 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5926 shmedia_apply_fix3 and make void.
5927 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5928 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5930 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5931 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5932 2001-03-14 DJ Delorie <dj@redhat.com>
5933 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5934 * doc/Makefile.in(CPU_DOCS): Ditto.
5935 * doc/c-sh64.texi: New file.
5936 * doc/as.texinfo: Add SH64 support.
5937 2001-03-13 DJ Delorie <dj@redhat.com>
5938 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5939 A_REUSE_PREV so that its purpose is more obvious.
5940 (shmedia_build_Mytes): Ditto.
5941 2001-03-07 DJ Delorie <dj@redhat.com>
5942 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5944 (sh64_vtable_inherit): Ditto.
5945 (strip_datalabels): New, strip "datalabel" from given line.
5946 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5948 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5949 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5951 (shmedia_build_Mytes): ... to here.
5952 2001-03-06 DJ Delorie <dj@redhat.com>
5953 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5955 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5956 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5957 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5958 address by one in call to dwarf2_emit_insn.
5959 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5960 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5961 alignment handling broken by imported changes.
5962 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5963 (sh64_handle_align): Declare.
5964 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5965 (sh64_max_mem_for_rs_align_code): Declare.
5966 (enum sh64_isa_values): Moved here from tc-sh64.c.
5967 (md_do_align): Define.
5968 (sh64_do_align): Declare.
5969 (struct sh64_tc_frag_data): New.
5970 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5972 (TC_FRAG_INIT): Change to set new datatype.
5973 (struct sh64_segment_info_type): Rename member
5974 last_flushed_location to last_contents_mark. All users changed.
5975 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5976 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5977 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5978 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5979 of unsetting seen_insn.
5980 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5981 call sh64_update_contents_mark.
5982 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5983 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5984 enum sh64_isa_values.
5985 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5986 (emitting_crange): Boolean guard moved to file scope from function
5987 scope in sh64_set_contents_type.
5989 (sh64_update_contents_mark): New; most split out from
5990 sh64_flush_pending_output.
5991 (shmedia_md_end): Call sh64_update_contents_mark. Set
5992 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5993 (sh64_do_align): New function.
5994 (sh64_max_mem_for_rs_align_code): New function.
5995 (sh64_handle_align): Rename from shmedia_do_align. Make
5996 non-static. Add head comment. Emit zero bytes for n bytes modulo
5997 four. Change return-type to void.
5998 (shmedia_elf_new_section): Remove.
5999 (shmedia_md_assemble): Call sh64_update_contents_mark.
6000 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
6001 new frag. Call sh64_update_contents_mark after making the new
6003 (sh64_flush_pending_output): Just call sh64_update_contents_mark
6004 and sh_flush_pending_output.
6005 (sh64_flag_output): Also call md_flush_pending_output, but add
6006 condition on not emitting_crange.
6007 (sh64_tc_cons_fix_new): Remove.
6008 2001-01-12 Nick Clifton <nickc@redhat.com>
6009 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6010 alignment handling scheme imported from sourceware.
6011 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
6012 * config/tc-sh64.h (TARGET_FORMAT): Define.
6013 (sh64_target_format): Prototype.
6014 * config/tc-sh64.c (sh64_target_mach): New function.
6015 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
6016 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6017 zero_address_frag instead of copying the frag of the symbol.
6018 (shmedia_frob_file_before_adjust): Ditto.
6019 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6020 to valueT to remove signedness.
6021 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6022 headers to output_bfd. Do not evaluate symbols if final is false;
6024 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6025 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6026 to the current frag, call shmedia_md_convert_frag to emit fixups
6027 and make frag_wane neutralize the frag. Update comments.
6028 * config/tc-sh.c (md_convert_frag): Change caller of
6029 shmedia_md_convert_frag.
6030 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6031 * config/tc-sh64.h: Tweak comments and correct formatting.
6032 * config/tc-sh64.c: Ditto.
6033 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6034 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6035 for the no-relocation case.
6036 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6037 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6039 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6041 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6042 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6044 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6046 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6047 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6048 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6049 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6050 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6051 if reloc is emitted.
6052 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6053 New options plus bugfixes.
6054 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6056 (md_parse_option): Handle new options.
6057 (md_show_usage): Add blurb for new options.
6058 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6059 (sh64_expand, sh64_pt32): New variables.
6060 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6061 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6062 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6063 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6064 <resolved previously-pc-relative relocs>: Handle
6065 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6066 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6067 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6068 points to SHcompact code.
6069 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6070 SH64PCREL16)>: Check that ISA of what operand points at and
6071 PTA/PTB matches, or emit error.
6072 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6073 SHMEDIA_BFD_RELOC_PT.
6074 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6076 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6077 condition for MOVI expansion.
6078 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6079 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6081 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6083 (sh64_target_format): Error-check setting of sh64_pt32 and
6084 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6085 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6086 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6087 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6088 * config/tc-sh64.c: Improve comments.
6089 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6090 not say the linker will check correctness of PTA/PTB expansion.
6091 (shmedia_md_end): Make non-static.
6092 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6094 * config/tc-sh.c (sh_finalize): Remove.
6095 * config/tc-sh.h (md_end): Do not define.
6096 Remove prototype for sh_finalize.
6097 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6098 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6099 sh64_section_data container when storing section type in tdata
6100 field in elf_section_data.
6101 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6103 * Makefile.am: Update dependencies.
6104 * Makefile.in: Regenerate.
6105 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6106 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6107 dwarf2_emit_insn call with test on debug_type.
6108 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6109 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6110 CRT_SH5_ISA32 sticky for 64-bit.
6111 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6112 Generate .crange sections when switching ISA mode or emitting
6113 constants in same section as code.
6114 * config/tc-sh64.c: Reformat structure definitions.
6115 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6117 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6118 to emit a .cranges descriptor when contents type changes. Only
6119 emit error if changing contents type and -no-mix is in effect.
6120 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6121 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6122 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6123 sh64_flush_last_crange over sections.
6124 When checking main symbol of datalabel symbol, check for
6125 STO_SH5_ISA32, not ISA type of section in definition.
6126 (shmedia_frob_file_before_adjust): Check main symbol for
6127 STO_SH5_ISA32; don't check ISA type of section in definition.
6128 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6129 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6130 .cranges entries have been output.
6131 (shmedia_elf_new_section): Just call md_flush_pending_output.
6132 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6133 fix. Do not set tc_segment_info_data.in_code for section. Call
6134 sh64_set_contents_type for SHmedia code.
6135 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6136 false. Call md_flush_pending_output.
6137 (sh64_target_format): Check that -no-mix and
6138 -shcompact-const-crange are used in sane combination with other
6140 (shmedia_md_pcrel_from_section): Check type of fix for how to
6142 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6143 not ISA type of section in definition.
6144 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6145 hold contents-type state.
6146 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6147 (sh64_flush_pending_output): Declare.
6148 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6149 (sh64_tc_cons_fix_new): Declare.
6150 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6151 call sh64_flag_output.
6152 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6153 call sh64_set_contents_type to mark SHcompact code and set
6155 (md_longopts): New options "-no-mix" and
6156 "-shcompact-const-crange".
6157 (md_parse_option): Handle new options.
6158 (md_show_usage): Add blurb for new options.
6159 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6160 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6161 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6162 (sh64_last_insn_frag): New.
6163 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6164 to get frag for insn opcode for generating fixups; do not assume it
6166 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6168 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6170 (TC_FRAG_TYPE): Define as fragS *.
6171 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6172 (sh64_last_insn_frag): Declare.
6173 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6174 not == NULL before dereferencing.
6175 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6176 Get rid of BFD section flag and EF_SH64_ABI64.
6177 * config/tc-sh64.c (shmedia_frob_section_type): Use
6178 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6179 communicate the section as containing SHmedia code. Describe why.
6180 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6181 EF_SH64 regardless of ABI.
6182 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6183 in error message. Handle resolved expressions for
6184 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6185 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6186 (shmedia_check_limits): Handle BFD_RELOC_64.
6187 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6188 a STO_SH5_ISA32 symbol, only the BFD value.
6189 2000-12-11 Ben Elliston <bje@redhat.com>
6190 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6191 dwarf2_generate_asm_lineno.
6192 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6193 Handle PC-relative MOVI expansions with assembler relaxation.
6194 Generate PC-relative relocs from 16-bit PC-relative expressions.
6195 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6196 (shmedia_md_pcrel_from_section): ...here.
6197 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6198 turned completely resolved. Adjust relocation type for 16-bit
6199 immediate operands that has turned PC-relative. Adjust back for
6200 MD_PCREL_FROM_SECTION being applied twice.
6201 (shmedia_md_convert_frag): Always emit reloc for expression with
6202 global or weak symbol. Handle relaxation result for PC-relative
6204 (shmedia_md_estimate_size_before_relax): An expression with a weak
6205 or global symbol can not be relaxed. Break out tests for
6206 relaxable symbol into variable sym_relaxable.
6207 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6208 UNDEF_MOVI)>: Break out any PC-relative expression and change
6210 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6212 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6213 MOVI expansion. If X_op_symbol of the immediate expression is
6214 set, make an expression symbol for the argument to frag_var.
6215 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6217 (END): Adjust for new relaxations.
6218 (md_relax_table): Add entries for new relaxations.
6219 2000-12-07 Ben Elliston <bje@redhat.com>
6220 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6221 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6222 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6223 SHORI operand offsets in PT/PTA/PTB expansions.
6224 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6225 Implement DataLabel semantics.
6226 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6227 shmedia_frob_file_before_adjust.
6228 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6229 (DATALABEL_SUFFIX): Define.
6230 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6231 symbol list to update "datalabel" symbols to their main symbol
6233 (shmedia_frob_file_before_adjust): New.
6234 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6235 undefined and set STT_DATALABEL.
6236 (sh64_frob_label): Initialize TC symbol field.
6237 (sh64_consume_datalabel): Actually implement semantics. New
6238 parameter operandf, call it instead of expression.
6239 (sh64_exclude_symbol): New.
6240 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6241 to sh64_consume_datalabel.
6242 (tc_symbol_new_hook): Define to tc_frob_symbol.
6243 (TC_SYMFIELD_TYPE): Define to symbolS *.
6244 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6245 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6246 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6248 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6249 generating dwarf2 debug information.
6250 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6251 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6252 elf64-sh64 for the 64-bit ABI.
6253 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6255 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6256 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6258 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6259 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6260 (enum sh64_abi_values): New type.
6261 (enum sh64_isa_values): New type.
6262 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6263 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6264 (sh64_abi): Replace shmedia_64.
6265 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6266 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6267 (s_sh64_mode): Check validity for this target.
6268 (sh64_target_format): Initialize defaults for ISA and ABI.
6269 Fallback to old object format if no SH64 ISA or ABI has been
6271 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6272 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6273 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6274 * config/tc-sh64.h: Fix typo in comment.
6275 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6276 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6277 <PT fixups for absolute values>: Size will be longest, not
6279 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6280 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6281 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6282 and l1 to hold lowercase of two first characters. Change all
6283 remaining TO_LOWER to tolower.
6284 * config/tc-sh64.c (TO_LOWER): Delete.
6285 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6286 (md_parse_name): Define.
6287 (sh64_consume_datalabel): Declare.
6288 (DOLLAR_DOT): Define.
6289 * config/tc-sh64.c (shmedia_parse_exp): New.
6290 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6291 (shmedia_parse_reg): Remove const from src
6293 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6294 (shmedia_md_assemble): Ditto for op_end variable.
6295 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6296 Use shmedia_parse_exp, not parse_exp.
6297 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6298 parameter. All callers changed.
6299 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6301 (shmedia_parse_reg): Put first two character in local variables.
6302 Use tolower, not TO_LOWER. If no register is found and argtype
6303 indicates a control register, scan shmedia_creg_table
6305 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6306 * Makefile.am (CPU_TYPES): Add sh64.
6307 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6308 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6309 Regenerate dependencies.
6310 * Makefile.in: Regenerate.
6311 * configure.in: Add support for sh64-*-elf*.
6312 * configure: Regenerate.
6313 * config/tc-sh64.h: New.
6314 * config/tc-sh64.c: New.
6315 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6316 .mode, .isa and .uaquad.
6317 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6318 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6319 [HAVE_SH64] (END): Define as 10.
6320 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6321 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6323 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6324 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6325 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6326 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6328 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6329 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6330 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6331 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6332 SHmedia instructions. Handle state-change after switching to
6334 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6335 (md_parse_option) [HAVE_SH64]: Parse new options.
6336 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6337 (md_convert_frag) [HAVE_SH64] <default>: Call
6338 shmedia_md_convert_frag instead of abort.
6339 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6340 BFD_RELOC_SH_SHMEDIA_CODE.
6341 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6342 SHcompact or SHmedia code.
6343 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6344 shmedia_md_apply_fix instead of abort.
6345 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6346 result from calling shmedia_md_estimate_size_before_relax instead
6348 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6350 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6351 shmedia_init_reloc and do nothing more if it returns non-zero.
6352 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6353 * po/POTFILES.in: Regenerate.
6354 * po/gas.pot: Regenerate.
6356 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6358 * config/tc-sh.c (parse_at): Install the correct version of
6361 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6362 assume fixP->fx_subsy is non-NULL.
6364 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6366 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6367 A_DISP_PC_ABS, and adjust it by -4.
6368 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6370 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6371 the operand type is not A_DISP_PC_ABS.
6373 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6375 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6376 common and weak symbols. Handle common and weak symbols as
6377 undefined symbols with regards to GREG handling and merging.
6378 (mmix_frob_file): Ditto.
6380 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6382 * configure.in (hppa-*-netbsd*): New target.
6383 * configure: Regenerate.
6384 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6386 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6388 * config/tc-v850.c: Add missing prototypes amd use old-style
6389 function definitions.
6390 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6391 (sdata_section tdata_section, zdata_section, sbss_section,
6392 tbss_section, zbss_section, rosdata_section, rozdata_section,
6393 scommon_section, tcommon_section, zcommon_section,
6394 call_table_data_section, call_table_text_section): Delete.
6395 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6396 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6397 v850_call_table_data, v850_call_table_text): Delete.
6398 (struct v850_seg_entry): New.
6399 (v850_seg_table): New.
6400 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6401 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6402 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6403 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6406 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6407 recording of alignment.
6408 (md_pseudo_table): Use v850_seg.
6409 (md_begin): Don't init .call_table_data and .call_table_text here.
6410 Set v850_seg_table bss entry.
6412 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6414 Support on-demand global register allocation by passing on
6415 base-plus-offset relocs to the linker.
6416 * config/tc-mmix.c: Tweak and fix typos in comments.
6417 (allocate_undefined_gregs_in_linker): New variable.
6418 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6419 (md_longopts): Add --linker-allocated-gregs.
6420 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6421 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6422 (md_show_usage): Update text for -x. Add text for
6423 --linker-allocated-gregs.
6424 (tc_gen_reloc): Derive default value for addend from val and
6425 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6426 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6427 GREG if allocate_undefined_gregs_in_linker.
6428 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6429 --linker-allocated-gregs.
6430 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6431 --linker-allocated-gregs. Mention that it's implied by -x.
6432 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6433 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6435 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6437 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6439 * Makefile.am: Run "make dep-am"
6440 * Makefile.in: Regenerate.
6442 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6444 * config/tc-or32.c: New file.
6445 * config/tc-or32.h: New file.
6446 * configure.in: Add support for or32 targets.
6447 * configure: Regenerate.
6448 * config/obj-coff.c: Add support for or32 targets.
6449 * config/obj-coff.h: Add support for or32 targets.
6450 * Makefile.am: Add support for or32 targets.
6451 * Makefile.in: Regenerate.
6452 * NEWS: Mention support for OpenRISC.
6453 * doc/Makefile.in: Regenerate.
6454 * po/POTFILES.in: Regenerate.
6455 * po/gas.pot: Regenerate.
6457 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6459 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6462 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6464 * config/tc-mips.c (tc_gen_reloc): Arrange for
6465 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6466 their LO16 parts, even for ELF.
6468 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6470 * config/tc-i386.c: Protect definitions of true and false
6473 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6475 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6476 made because of .weak, if they are neither defined nor used in any
6479 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6481 * configure: Regenerated.
6483 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6485 * doc/Makefile.am (install): Depend on install-info.
6486 * doc/Makefile.in: Regenerate.
6488 2002-01-26 Nick Clifton <nick@redhat.com>
6490 * po/fr.po: Updated version
6492 2002-01-24 Kazu Hirata <kazu@hxi.com>
6494 * config/tc-h8300.c (check_operand): Don't print a warning
6495 when a valid 24-bit address is given to a 16-bit address
6498 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6500 * config/tc-sh.c (sh_elf_suffix): Removed.
6501 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6502 sh_end_of_match, sh_parse_name): New functions.
6503 (sh_elf_cons): Simplify.
6504 (parse_exp): Reject misplaced PIC operands.
6505 (md_undefined_symbol): Simplify.
6506 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6507 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6508 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6509 Complain if subsy remains at the end.
6510 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6511 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6513 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6515 * config/tc-mn10300.c (xr_registers): Move `pc'...
6516 (other_registers): ... here.
6518 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6520 * Makefile.am: Run "make dep-am".
6521 * Makefile.in: Regenerate.
6522 * gas/po/POTFILES.in: Regenerate.
6524 2002-01-21 DJ Delorie <dj@redhat.com>
6526 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6527 stabstr_name allocation permanent, as it will be referenced from
6530 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6532 * configure.in (ia64-*-netbsd*): New target.
6533 * configure: Regenerate.
6535 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6537 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6539 <Detailed description, ARM options>: Ditto.
6540 * doc/c-arm.texi (ARM Options): Ditto.
6542 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6544 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6545 do_mia, do_mar and do_mra respectively.
6546 (do_mav_*): Renamed from do_c_*.
6547 (mav_reg_required_here, mav_parse_offset): Renamed from
6548 cirrus_reg_required_here and cirrus_parse_offset respectively.
6549 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6551 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6552 Keith Walker <keith.walker@arm.com>
6554 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6555 (insns): Add pattern for bxj instruction.
6556 (do_bxj): New function.
6557 (arm_cpus): Add arm926ej.
6558 (arm_archs): Add armv5tej.
6560 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6562 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6564 2002-01-19 Keith Walker <keith.walker@arm.com>
6566 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6568 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6570 * NEWS: Mention new ARM command-line options and VFP support.
6572 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6574 (ARM_CEXT_MAVERICK): Similarly.
6575 (ARM_ANY): Now means any core instruction.
6576 (CPU_DEFAULT): Default to ARM_ANY.
6577 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6578 (pic_code): Declare for all object types. Make type int.
6579 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6580 (march_fpu_opt, mfpu_opt): Declare.
6581 (md_longopts): Tidy up conditional definitions.
6582 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6583 (arm_long_opts): New tables.
6584 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6585 (arm_parse_extension): New function.
6586 (md_parse_option): Rewrite using new table-driven system.
6587 (md_show_usage): Use new table-driven system.
6588 (md_begin): Calculate cpu_variant from command line option data.
6589 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6590 command-line options.
6591 * doc/c-arm.texi: Likewise.
6593 2002-01-18 Andreas Jaeger <aj@suse.de>
6595 * as.c (parse_args): Update year.
6597 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6599 * config/tc-tic54x.c (encode_address): Add a more informative
6600 warning about incorrect syntax.
6602 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6604 * po/gas.pot: Regenerate.
6606 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6608 * macro.c (get_any_string): Add no-c-format comment to prevent
6609 confusion when translating string.
6610 * gasp.c (get_any_string): Add no-c-format comment to prevent
6611 confusion when translating string.
6613 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6614 Johannes Stezenbach <js@convergence.de>
6615 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6616 matched before the shorter ones.
6617 (my_getSmallParser): Fix handling of nested parentheses in
6618 percent_op's. Code cleanup.
6619 (my_getPercentOp): New function, code from my_getSmallParser.
6620 (my_getSmallExpression): Fix handling of closing parentheses.
6621 Code cleanup. Better comments.
6623 2002-01-16 Nick Clifton <nickc@redhat.com>
6625 po/tr.po: New file: Turkish translation.
6626 configure.in (LINGUAS): Add "tr".
6627 configure: Regenerate.
6629 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6631 Support for VFP instructions
6632 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6633 (cp_address_required_here): New argument wb_ok. When false, do not
6634 accept write-back forms of addressing. Change all callers.
6635 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6636 (FPU_VFP_EXT_V2): Define.
6637 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6638 Define in terms of above.
6639 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6640 (vfp_reg): New struct.
6641 (vfp_regs): New array of registers.
6642 (insns): Add VFP instructions.
6643 (sn_table): New array of VFP single-precision register names.
6644 (dn_table): New array of VFP double-precision register names.
6645 (all_reg_maps): Add the new register tables.
6646 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6647 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6648 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6649 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6650 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6651 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6652 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6653 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6654 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6655 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6656 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6657 (do_vfp_sp_dp_cvt): New functions.
6658 (md_begin): Set soft-float flag for appropriate VFP work.
6659 (md_atof): Handle VFP-format doubles.
6660 (md_parse_option): Handle VFP command-line options.
6661 (md_show_usage): Display VFP command-line options.
6663 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6665 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6666 various command line options.
6668 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6670 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6672 (xstormy16_md_apply_fix3): Do not return a value.
6674 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6676 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6677 the -EL/-EB option that matches the target's endianness.
6678 (md_parse_option): Likewise.
6680 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6682 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6683 is not dependent on ARM_BI_ENDIAN.
6685 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6687 * tc-arm.c (all error messages): Normalize capitalization of messages.
6689 * tc-arm.h (md_operand): Delete define.
6690 * tc-arm.c (in_my_get_expression): New static variable.
6691 (my_get_expression): Set and clear it.
6692 (md_operand): New function. If called from my_get_expression
6693 put the error in inst.error.
6694 (output_inst): Now takes argument of instruction being assembled.
6695 Print it out with any error message.
6696 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6698 (end_of_line): Don't update inst.error if it is already set.
6700 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6702 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6703 op that can be translated into a mvn instruction.
6705 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6707 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6708 setting default md.flags.
6709 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6710 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6711 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6712 for 32 bit unwind info blocks.
6713 (generate_unwind_image): Add support for different types
6714 of unwind images (32 bits and/or big-endian).
6715 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6716 (ia64_target_format): Add support for hpux target formats.
6717 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6718 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6719 SHT_FINI_ARRAY elf section types.
6721 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6723 * tc-arm.c (struct reg_entry): Move before prototypes.
6724 (int_register, cp_register, fp_register): Delete.
6725 (reg_table): Delete. Replaced with ...
6726 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6727 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6728 (mav_dspsc_table): ... one table per register set.
6729 (arm_reg_hsh): Delete.
6730 (struct reg_map): New structure.
6731 (all_reg_maps): New array.
6732 (enum arm_reg_type): New enums.
6733 (build_reg_hsh): New function.
6734 (insert_reg_alias): Use hash table passed by caller. Adjust all
6736 (create_register_alias): New function, split out from ...
6737 (md_assemble): ... here.
6738 (md_begin): Build new register hash tables.
6739 (arm_reg_parse): New argument for the hash table to search. Adjust all
6741 (arm_reg_parse_any): New function.
6742 (co_proc_number): Look up the processor number in the processor hash
6744 (cirrus_regtype): Delete.
6745 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6746 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6747 (ARM_EXT_MAVERICKsc_register): Delete.
6748 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6749 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6751 (do_c_triple_4, do_c_triple_5): Delete.
6752 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6753 (do_c_quad_6): Delete.
6754 (do_c_quad_6[ab]): New functions.
6755 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6756 arguments to use new register parsing methods.
6757 (cirrus_reg_required_here): Likewise.
6758 (insns): Reclassify cirrus maverick worker functions.
6759 (cirrus_valid_reg): Delete.
6761 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6763 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6764 (sh*-*-netbsdelf*): New target.
6765 * configure: Regenerate.
6766 * tc-sh.h: Update copyright years.
6767 (TARGET_FORMAT): Add version for TE_NetBSD.
6769 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6771 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6774 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6776 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6777 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6779 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6781 * tc-mips.c (mips_cprestore_valid): New flag.
6782 (mips_frame_reg_valid): New flag.
6783 (macro) [M_JAL_2]: Check both flags.
6784 [M_JAL_A]: Likewise.
6785 (s_cprestore): Set mips_cprestore_valid.
6786 (tc_get_register): If setting mips_frame_reg, set
6787 mips_frame_reg_valid and clear mips_cprestore_valid.
6788 (s_mips_ent): Clear both flags.
6789 (s_mips_end): Clear both flags.
6791 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6793 * write.c (write_object_file): Make use of bfd_section_list_remove.
6794 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6795 * config/tc-mmix.c (mmix_frob_file): Likewise.
6797 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6799 * configure.in (i386-*-netbsdelf*): Collapse target into...
6800 (i386-*-netbsd*): ...this. Add support for x86-64.
6801 * configure: Regenerated.
6803 2002-01-03 matthew green <mrg@redhat.com>
6805 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6807 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6809 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6812 For older changes see ChangeLog-0001
6818 version-control: never