1 2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com>
2 Bernardo Innocenti <bernie@develer.com>
4 * config/tc-m68k.c: Add MCF528x (MCFv4) support.
5 * config/m68k-parse.h: Likewise.
6 * NEWS: Mention the new support.
7 * doc/c-m68k.texi: Document new processor selection switch.
9 2003-10-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
11 * config/tc-mips.c (normalize_constant_expr): New function to fix sign
12 extensions broken by gas' expression evaluation of constants.
13 (check_absolute_expr): Use it.
16 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
18 Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
19 * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
21 * config/tc-mmix.c: Include limits.h. Expand on mmix_relax_table
23 (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
24 (pushj_stubs): New variable.
25 (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
26 (PUSHJSTUB_MAX): New macros.
27 (md_longopts): New options "--no-pushj-stubs" and synonym
29 (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
30 (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
31 (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
32 PUSHJ stub relaxation.
33 (md_convert_frag): Handle STATE_PUSHJSTUB.
34 (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
35 (tc_gen_reloc): Ditto.
36 (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
37 * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
38 (struct mmix_segment_info_type): New.
40 2003-10-17 Paul Dale <pauli@snapgear.com>
41 Bernardo Innocenti <bernie@develer.com>
43 * config/tc-m68k.c (make_pcrel_absolute): Enforce
44 PC-relative jumps with --pcrel.
45 (md_convert_frag_1): Likewise.
46 (md_create_long_jump): Likewise.
48 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
50 * config/tc-h8300.c (PSIZE): Correct for Normal mode.
51 (get_operand): Accept both 16 bit 32 bit registers as pointer
52 registers, when operating in Normal mode.
53 (fix_operand_size): Make default address size 16 for Normal mode.
55 2003-10-17 Ian Lance Taylor <ian@wasabisystems.com>
57 * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
59 (do_iwmmxt_word_addr): With a control register, reject conditional
60 execution and reject a non-word size.
62 2003-10-16 Peter Bergner <bergner@vnet.ibm.com>
64 * configure.in: Set em=linux for ppc-*-linux-gnu* target.
65 * configure: Regenerate.
67 2003-10-15 Alan Modra <amodra@bigpond.net.au>
69 * doc/as.texinfo (Align): Correct list of byte targets.
71 2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
73 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
74 Fix indentation. Better error message.
76 2003-10-14 Bob Wilson <bob.wilson@acm.org>
78 * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
79 argument in call to xtensa_get_property_section_name. Formatting.
81 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
83 * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
86 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
88 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
90 * config/tc-sh.h: Likewise.
91 * config/tc-sh64.c: Likewise.
92 * config/tc-sh64.h: Likewise.
94 2003-10-08 Dave Brolley <brolley@redhat.com>
96 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
97 (fr550_check_acc_range): New function.
98 (md_assemble): Call fr550_check_acc_range.
100 2003-10-08 Dave Brolley <brolley@redhat.com>
102 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
103 (md_parse_option): Handle OPTION_CPU==fr550.
104 (md_show_usage): Document fr550.
106 2003-10-08 Philippe De Muyter <phdm@macqel.be>
108 * as.c (use_gnu_debug_info_extensions) : New variable.
109 (parse_args) : Accept new --gstabs+ option, and set
110 `use_gnu_debug_info_extensions'.
111 (show_usage) : Document --gstabs+ option.
112 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
113 * stabs.c (stabs_generate_asm_file) : If
114 `use_gnu_debug_info_extensions' is set, add the compilation
115 directory to the stabs debug info.
116 * doc/as.texinfo : Document --gstabs+ option.
117 * NEWS: Mention new feature.
119 2003-10-06 Matt Thomas <matt@3am-software.com>
121 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
124 * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
125 register names. Change all "defined (TE_LINUX)" to
126 "(defined (TE_LINUX) || defined (TE_NETBSD))".
128 * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
129 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
131 2003-10-06 Robert Millan <robertmh@gnu.org>
133 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
134 * configure: Regenerate.
136 2003-10-05 Nick Clifton <nickc@redhat.com>
138 * as.c (parse_args): Revert patch to change handling of -f
139 option. Its behaviour is mandated by the POSIX 2 spec.
141 2003-10-04 Christian Groessler <chris@groessler.org>
143 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
144 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
145 (md_pcrel_from): This function now gets called. Supply return
148 2003-10-04 Nick Clifton <nickc@redhat.com>
150 * as.c: Convert to ISO C90.
152 2003-10-04 Nick Clifton <nickc@redhat.com>
154 * as.c (std_shortopts): Remove 'f'.
155 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
156 acecpted as an alias for -f.
158 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
160 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
161 Make 'r' mean readonly data.
163 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
165 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
166 Unbreak overflow checks.
168 2003-10-01 Chris Demetriou <cgd@broadcom.com>
170 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
172 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
174 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
176 (load_register): Likewise.
179 2003-09-30 Chris Demetriou <cgd@broadcom.com>
181 * config/tc-mips.c (mips_ip): Capitalize first word of
182 existing condition code warning, and add condition code
183 warnings for .ps instructions, and for bc1any[24][tf].
185 2003-09-30 Chris Demetriou <cgd@broadcom.com>
187 * NEWS: Mention support for MIPS64 Release 2.
189 2003-09-30 Chris Demetriou <cgd@broadcom.com>
191 * NEWS: Add an indication of the cutoff for 2.14.
193 2003-09-30 Chris Demetriou <cgd@broadcom.com>
195 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
196 * configure: Regenerate.
197 * config/tc-mips.c (imm2_expr): New variable.
198 (md_assemble, mips16_ip): Initialize imm2_expr.
199 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
200 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
201 (macro): Handle M_DEXT and M_DINS.
202 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
204 (OPTION_MIPS64R2): New define.
205 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
206 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
207 (md_parse_option): Handle OPTION_MIPS64R2.
208 (s_mipsset): Handle setting "mips64r2" ISA.
209 (mips_cpu_info_table): Add mips64r2.
210 (md_show_usage): Document -mips64r2 option.
211 * doc/as.texinfo: Docuemnt -mips64r2 option.
212 * doc/c-mips.texi: Likewise.
214 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
216 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
218 2003-09-26 Matt Thomas <matt@3am-software.com>
220 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
221 (OPTION_PIC): Define.
222 (md_longopts): Add "pic" option.
223 (md_parse_option): Change 'K' to OPTION_PIC.
225 2003-09-23 Alan Modra <alan@modra.org>
227 * config/obj-elf.c (obj_elf_change_section): Adjust for
228 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
229 to be set when defaults are not. Don't set attr from defaults if
232 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
234 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
235 truncate values which won't fit im 32 bits.
236 (load_register): Likewise.
239 2003-09-17 Dmitry Diky <diwil@mail.ru>
241 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
242 (msp430_operands): Remove redundant l2[16] within switch-case.
244 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
246 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
247 * configure: Regenerate.
249 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
251 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
252 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
253 the function prototype.
254 (load_register): Likewise. Simplify the checks for sign-extended
256 (macro): Likewise. Fix code generation for 64-bit address constants
257 outside the 32-bit compatibility space. Adjust
258 macro_build_ldst_constoffset calls.
259 (s_cprestore): Adjust macro_build_ldst_constoffset call.
261 2003-09-11 Bob Wilson <bob.wilson@acm.org>
263 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
264 literal_syms): New global variables.
265 (xtensa_define_label, add_target_symbol, xtensa_find_label,
266 map_over_defined_symbols, is_loop_target_label,
267 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
268 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
269 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
270 from insn_labels to saved_insn_labels when entering a literal region.
271 (xtensa_end_directive): Call md_flush_pending_output. Restore
272 insn_labels list when leaving a literal region.
273 (xtensa_literal_position): Call xtensa_clear_insn_labels.
274 (xtensa_literal_pseudo): Add check to disallow .literal inside a
275 literal region. Move insn_labels to saved_insn_labels and then restore
277 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
278 code to set is_loop_target or is_branch_target flag on the symbol
279 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
280 (xtensa_add_literal_sym, xtensa_add_insn_label,
281 xtensa_clear_insn_labels): New functions.
282 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
283 loops_ok argument. Rewrite to use insn_labels list instead of
284 calling xtensa_find_label and to check the is_loop_target flag on
285 symbols when loops_ok is false.
286 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
287 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
288 call to xtensa_move_labels. Propagate is_branch_target and
289 is_loop_target flags from symbols to frags.
290 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
291 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
292 aligning a loop instruction. Adjust call to xtensa_move_labels for
293 aligning entry instructions. Add call to xtensa_clear_insn_labels.
294 (xtensa_end): Remove call to xtensa_mark_target_fragments.
295 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
296 code to use new literal_syms list.
297 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
298 is_branch_target flags.
300 2003-09-09 Bob Wilson <bob.wilson@acm.org>
302 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
303 "move_labels" argument and corresponding call to xtensa_move_labels.
304 (md_assemble): Add a separate call to xtensa_move_labels and remove
305 argument for call to xtensa_mark_literal_pool_location.
306 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
307 calls to xtensa_mark_literal_pool_location.
308 (xtensa_create_local_symbol): Delete and inline the code into...
309 (xtensa_create_literal_symbol): ...here.
310 (xtensa_frob_label): Combine conditionals.
311 (expression_maybe_register, xtensa_symbol_new_hook,
312 fix_new_exp_in_seg): Use symbol_get_tc.
314 2003-09-09 Bob Wilson <bob.wilson@acm.org>
316 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
317 combining identical literals.
318 (expression_maybe_register): Remove call to find_lit_sym_translation.
319 (is_duplicate_expression, cache_literal, is_duplicate_literal,
320 add_lit_sym_translation, find_lit_sym_translation): Delete.
322 2003-09-07 Nick Clifton <nickc@redhat.com>
324 * doc/as.texinfo (Comments): Comment character for PPC is #.
326 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
329 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
332 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
334 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
336 2003-09-04 Nick Clifton <nickc@redhat.com>
338 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
339 (md_pseudo_table): Add .v850e1 pseudo op.
340 (md_show_usage): Document -mv850e1 switch.
341 (md_parse_option): Accept -mv850e1 switch.
342 (md_begin): Allow TARGET_CPU to be v850e1.
343 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
344 * NEWS: Mention support for v850e1.
346 2003-09-04 Alan Modra <amodra@bigpond.net.au>
348 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
349 ppc_cpu selection rather than replacing.
350 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
351 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
353 2003-09-03 Robert Millan <robertmh@gnu.org>
355 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
357 * configure: Regenerate.
359 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
361 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
362 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
363 Specify AC_CONFIG_AUX_DIR.
364 * aclocal.m4: Regenerated with aclocal-1.7.
365 * configure: Regenerated with autoconf 2.57.
366 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
368 2003-08-29 Jakub Jelinek <jakub@redhat.com>
370 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
371 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
372 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
373 nor tc_cfi_emit_pcrel_expr are defined.
374 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
375 DIFF_EXPR_OK is not defined.
376 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
377 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
378 tc_cfi_emit_pcrel_expr): Define.
379 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
380 sparc_cfi_emit_pcrel_expr): New prototypes.
381 (sparc_cie_data_alignment): New decl.
382 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
383 * config/tc-sparc.c: Include dw2gencfi.h.
384 (sparc_cie_data_alignment): New variable.
385 (md_begin): Initialize it.
386 (sparc_cfi_frame_initial_instructions): New function.
387 (sparc_regname_to_dw2regnum): Likewise.
388 (sparc_cfi_emit_pcrel_expr): Likewise.
389 * doc/as.texinfo: Document .cfi_window_save.
391 * config/tc-sparc.c (s_common): Cast last argument to long and
392 change format string to shut up warning.
394 2003-08-25 Jason Eckhardt <jle@rice.edu>
396 * doc/c-i860.texi: Update text about relocatable address expansions.
398 2003-08-24 Jason Eckhardt <jle@rice.edu>
400 * config/tc-i860.c (md_assemble): Use isrc2 from the original
401 instruction when expanding E_ADDR.
403 2003-08-21 Nick Clifton <nickc@redhat.com>
405 * po/tr.po: Updated Turkish translation.
407 2003-08-20 Alan Modra <amodra@bigpond.net.au>
409 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
410 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
412 2003-08-19 Nick Clifton <nickc@redhat.com>
414 * config/tc-arm.c (cp_address_required_here): Add code to handle
415 unindexed addressing mode.
417 2003-08-19 Alan Modra <amodra@bigpond.net.au>
419 * config/tc-ppc.c (md_parse_option): Handle -m440.
420 (md_show_usage): Add -m440.
421 (md_apply_fix3): Warning fix.
422 * doc/c-ppc.texi: Document -m440.
424 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
426 * read.c (s_print): Check for NULL.
428 2003-08-16 Alan Modra <amodra@bigpond.net.au>
430 * write.c (fixup_segment): When handling an expression involving
431 the subtraction of two symbols in the same segment, don't clear
432 fx_pcrel except for TC_M68K.
434 2003-08-14 Alan Modra <amodra@bigpond.net.au>
436 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
438 * config/tc-i386.c: Likewise.
439 (RELOC_ENUM): Don't define. Replace throughout with enum.
441 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
442 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
444 * Makefile.in: Regenerate.
446 2003-08-08 Andreas Schwab <schwab@suse.de>
448 * config/tc-m68k.h (TARGET_USE_CFIPOP)
449 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
450 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
452 * config/tc-m68k.c: Include "dw2gencfi.h".
453 (tc_m68k_regname_to_dw2regnum)
454 (tc_m68k_frame_initial_instructions): New functions.
456 2003-08-08 Dmitry Diky <diwil@mail.ru>
458 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
459 according to gcc order.
461 2003-08-07 Jason Eckhardt <jle@rice.edu>
463 * config/tc-i860.c (i860_check_label): New function.
464 * config/tc-i860.h (i860_check_label): New prototype.
465 (tc_check_label): Define macro as i860_check_label.
467 2003-08-06 Jason Eckhardt <jle@rice.edu>
469 * config/tc-i860.c (s_align_wrapper): New function and prototype.
470 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
471 surrounding OBJ_ELF ifdef, and re-format slightly.
472 * doc/c-i860.texi: Document the special .align syntax available
475 2003-08-06 Jason Eckhardt <jle@rice.edu>
477 * config/tc-i860.c (i860_handle_align): New function.
478 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
479 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
481 2003-08-06 Jason Eckhardt <jle@rice.edu>
483 * config/tc-i860.c (i860_process_insn): Check that instructions
484 with their dual-bit set are 8-byte aligned.
486 2003-08-06 Nick Clifton <nickc@redhat.com>
488 * po/fr.po: Updated French translation.
490 2003-08-05 Jason Eckhardt <jle@rice.edu>
492 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
493 setting during flop argument parsing. Instead, do it after
494 instruction is fully parsed.
496 2003-08-05 Jason Eckhardt <jle@rice.edu>
498 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
499 directives are only available in Intel syntax mode.
501 2003-08-05 Jason Eckhardt <jle@rice.edu>
503 * config/tc-i860.c (s_dual): Accept .dual directive only in
504 the Intel syntax mode.
505 (s_enddual): Likewise for .enddual.
506 (s_atmp): Likewise for .atmp.
508 2003-08-04 Alan Modra <amodra@bigpond.net.au>
510 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
511 for memory operands. Pass the full operand_string to i386_index_check.
513 2003-08-01 Jason Eckhardt <jle@rice.edu>
515 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
516 (target_intel_syntax): Declare variable.
517 (OPTION_INTEL_SYNTAX): Declare macro.
518 (md_longopts): Add option -mintel-syntax.
519 (md_parse_option): Set target_intel_syntax.
520 (md_show_usage): Add -mintel-syntax usage.
521 (md_begin): Set reg_prefix based on target_intel_syntax.
522 (i860_process_insn): Skip register prefix only if there is one.
523 Parse relocatable expressions in either Intel or AT&T syntax based
524 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
525 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
526 about the differences in syntax.
528 2003-08-01 Dmitry Diky <diwil@mail.ru>
530 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
533 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
535 * config/tc-sh.c (md_assemble): For branches, check & update
538 2003-07-30 Jason Eckhardt <jle@rice.edu>
540 * config/tc-i860.c: Convert to ISO C90.
542 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
544 * read.c (s_space): Revert 2003-07-28 change.
546 2003-07-30 Alan Modra <amodra@bigpond.net.au>
548 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
550 2003-07-29 Alan Modra <amodra@bigpond.net.au>
552 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
554 2003-07-29 Jakub Jelinek <jakub@redhat.com>
556 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
558 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
560 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
562 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
564 * read.c (s_space): Don't warn about .space 0.
566 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
568 * config/tc-mips.c (mips_flag_pdr): Define.
569 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
570 (s_mips_end) [OBJ_ELF]: Likewise.
571 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
572 (md_parse_option) [OBJ_ELF]: Handle them.
573 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
575 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
576 * doc/as.texinfo (Overview) [MIPS]: Likewise.
578 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
580 * config/obj-elf.c (obj_elf_change_section): Update
581 elf_section_type and elf_section_flags only when they are
584 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
586 * config/obj-elf.c (obj_elf_change_section): Always set section
589 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
591 * config/obj-elf.c (special_sections): Removed.
592 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
593 elf_section_type and elf_section_flags.
594 (elf_frob_file): Set SHT_GROUP.
596 * config/obj-elf.h (obj_sec_set_private_data): New.
598 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
599 * config/tc-ia64.h: Likewise.
600 * config/tc-m32r.h: Likewise.
601 * config/tc-m68hc11.h: Likewise.
602 * config/tc-mcore.h: Likewise.
603 * config/tc-mips.h: Likewise.
604 * config/tc-ppc.h: Likewise.
605 * config/tc-sh64.h: Likewise.
606 * config/tc-v850.h: Likewise.
607 * config/tc-xtensa.h: Likewise.
609 * config/tc-v850.h (SHF_V850_GPREL): Removed.
610 (SHF_V850_EPREL): Likewise.
611 (SHF_V850_R0REL): Likewise.
613 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
616 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
618 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
619 debugging symbols so that we handle page memory correctly.
621 2003-07-24 Nick Clifton <nickc@redhat.com>
623 * po/fr.po: Updated French translation.
625 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
627 * config/tc-arm.c (arm_archs): Add iwmmxt.
629 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
631 * read.c (do_parse_cons_expression): Mark nbytes unused to
634 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
636 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
639 * config/tc-h8300.c (md_assemble): Make sure characters after
640 slash and dot are lower-case.
642 2003-07-17 Nick Clifton <nickc@redhat.com>
644 * po/es.po: New Spanish translation.
645 * po/tr.po: New Turkish translation.
646 * po/opcodes.pot: Regenerate.
648 2003-07-16 Alan Modra <amodra@bigpond.net.au>
650 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
651 (generic_dwarf2_emit_offset): Don't define function when
652 TC__DWARF2_EMIT_OFFSET is defined.
654 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
656 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
657 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
658 * doc/c-mips.texi: Document -march=rm9000.
660 2003-07-15 Alan Modra <amodra@bigpond.net.au>
662 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
663 only for V850_OPERAND_DISP operands.
665 2003-07-15 Alan Modra <amodra@bigpond.net.au>
667 * frags.c (frag_more): Move segment checks to..
668 (frag_alloc_check): ..here. New function.
669 (frag_append_1_char): Call frag_alloc_check.
671 2003-07-14 Nick Clifton <nickc@redhat.com>
673 * po/tr.po: Update with latest version.
674 * po/POTFILES.in: Regenerate.
675 * po/gas.pot: Regenerate.
676 * configure: Regenerate.
678 2003-07-14 Nick Clifton <nickc@redhat.com>
680 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
681 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
682 "safe-ctype.h" and update use of macros.
683 * Makefile.am: Update dependencies.
684 * Makefile.in: Regenerate.
686 2003-07-11 Alan Modra <amodra@bigpond.net.au>
688 * po/gas.pot: Regenerate.
690 2003-07-10 Jakub Jelinek <jakub@redhat.com>
692 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
693 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
694 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
695 DWARF2_CIE_DATA_ALIGNMENT): Define.
696 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
698 (ppc_cie_data_alignment): Declare.
699 * config/tc-ppc.c: Include dw2gencfi.h.
700 (ppc_cie_data_alignment): Define.
701 (md_begin): Initialize ppc_cie_data_alignment.
702 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
704 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
705 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
706 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
707 DWARF2_CIE_DATA_ALIGNMENT): Define.
708 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
710 (s390_cie_data_alignment): Declare.
711 * config/tc-s390.c: Include dw2gencfi.h.
712 (s390_cie_data_alignment): Define.
713 (md_begin): Initialize s390_cie_data_alignment.
714 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
717 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
719 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
720 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
721 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
722 * configure.in (am33_2.0, mn10300-*-linux*): Added.
723 * configure: Rebuilt.
724 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
726 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
729 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
731 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
732 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
733 for subtracts from GLOBAL_OFFSET_TABLE that could not be
735 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
736 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
737 could not be simplified.
738 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
739 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
740 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
741 BDF_RELOC_MN10300_GOT32.
742 * config/tc-mn10300.c (mn10300_fix_adjustable): If
743 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
744 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
745 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
746 symbol if we know its value.
747 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
748 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
749 duplicate underscore prefix.
750 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
751 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
752 type in X_md, not X_add_number. Zero X_add_number.
753 (mn10300_check_fixup): Extract relocation type from X_md.
754 * config/tc-mn10300.h: Update comment.
755 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
756 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
758 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
759 (mn10300_check_fixup): Likewise.
760 (mn10300_parse_name): Set X_add_number to relocation type.
761 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
762 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
763 O_GOTOFF, O_PLT, O_GOT): Define.
764 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
765 (mn10300_check_fixup): New fn.
766 (md_assemble): Call it. Check for PIC-related relocs.
767 (mn10300_cons_fix_new): Likewise. New fn.
768 (mn10300_end_of_match): New fn.
769 (mn10300_md_parse_name_cont): New fn.
771 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
773 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
774 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
776 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
777 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
778 md_assemble, md_estimate_size_before_relax): Handle fbCC.
779 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
780 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
782 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
783 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
784 (HAVE_AM33): Match AM33_2 too.
785 (HAVE_AM33_2): New macro.
786 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
787 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
788 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
789 (float_registers, double_registers): New variables.
790 (float_register_name, double_register_name): New functions.
791 (md_assemble): Recognize FP registers. Implement FMT_D3.
792 (mn10300_insert_operand): Support FP registers.
794 2003-07-08 Chris Demetriou <cgd@broadcom.com>
796 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
797 target being a global symbol if not compiling SVR4 PIC code.
799 2003-07-07 Nick Clifton <nickc@redhat.com>
801 * doc/c-m32r.texi (M32R-Directives): New node. Document the
802 .high, .shigh and .low directives.
804 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
806 * config/tc-h8300.c (h8300sxnmode): Add prototype.
808 (parse_exp): Replace expressionS argument with a h8_op. Parse the
809 operand size as well.
810 (skip_colonthing): Remove unused expression argument. Tighten checks
812 (colonmod24): Remove.
813 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
814 (get_operand): Likewise. Use the standard code to read the size of
815 pc-relative operands.
816 (fix_operand_size): Include the size-guessing logic that used to be
817 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
818 offsets with a symbolic component.
820 2003-07-04 Nick Clifton <nickc@redhat.com>
822 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
823 macro to compute size of selected register name array.
825 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
827 * config/tc-s390.c (md_parse_option): Add cpu type z990.
828 (md_begin): Add minimal cpu type logic for instructions with different
829 binary format depending on the cpu.
830 (md_assemble): Remove check for minimal cpu.
831 (s390_insert_operand): Add support for long displacements.
832 (md_gather_operands): Likewise.
833 (tc_s390_fix_adjustable): Likewise.
834 (tc_s390_force_relocation): Likewise.
835 (md_apply_fix3): Likewise.
837 2003-06-30 Chris Demetriou <cgd@broadcom.com>
839 * config/tc-mips.c (s_mipsset): Implement -march= handling
842 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
844 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
845 prototypes and casts. Replace PTR with void *. Reformat.
846 * config/tc-mips.h: Likewise.
848 2003-06-30 Alan Modra <amodra@bigpond.net.au>
850 * config/tc-ia64.c (note_register_values): Warning fix.
851 * config/tc-mips.c (append_insn): Likewise.
853 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
855 * config/tc-mips.c (mips_set_options,mips_opts): Support for
857 (file_mips_arch): Rename mips_arch.
858 (mips_arch_info,mips_tune_info): Remove.
859 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
860 (mips_cpu_info_from_arch): New function.
861 (md_begin): Use file_mips_arch.
862 (macro_build,macro,mips_ip): Use mips_opts.arch.
863 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
864 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
866 (s_mipsset): Support for .set arch=FOO.
867 (mips_cpu_info_table): Fix typo.
869 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
871 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
873 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
875 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
876 unsigned 8-bit operands.
878 2003-06-24 Nick Clifton <nickc@redhat.com>
880 * read.c (s_comm): Change error message to assume an unsigned size
881 has been passed to .comm.
882 * config/tc-sparc.c (s_common): Likewise.
883 * write.c (write_contents): Replace 'unsigned long' with
884 'addressT' and 'long' with offsetT in order to allow computations
885 with very large values to work for 64-bit addressed targets.
886 (relax_and_size_all_segments): Likewise.
887 (relax_frag): Likewise.
888 (relax_segment): Likewise.
890 2003-06-23 Mark Mitchell <mark@codesourcery.com>
892 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
894 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
896 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
899 * gas/config/tc-i386.h (CpuPNI): New.
900 (CpuUnknownFlags): Add CpuPNI.
902 2003-06-23 <davidm@hpl.hp.com>
904 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
905 freebsd, openvms, and nsk (non-stop kernel).
907 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
909 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
910 all locals have been declared.
912 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
914 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
915 special handling for n32 ABI.
918 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
920 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
923 2003-06-19 Christian Groessler <chris@groessler.org>
925 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
926 now, not only a warning. Add some more checks to detect invalid
928 (get_operand): For CLASS_IR remember register size in mode struct.
929 (get_specific): Handle new CLASS_IRO type. Add register size
930 checks for CLASS_IR and CLASS_IRO.
931 (md_apply_fix3): Fix undefined usage of buf.
933 2003-06-19 Alan Modra <amodra@bigpond.net.au>
935 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
936 (ppc_change_csect): Add align param. Align frag at start of csect.
937 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
938 (ppc_frob_section): Align vma.
940 2003-06-18 Jakub Jelinek <jakub@redhat.com>
942 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
943 (output_cie): Don't pad.
944 (output_fde): Add align argument. Pad to align if not 0.
945 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
946 Pad just last FDE to EH_FRAME_ALIGNMENT.
948 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
950 * config/tc-s390.c (init_default_arch): Make current_mode_mask
951 dependent on s390_arch_size and current_cpu dependent on
954 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
956 * configure.in: Add c4x as an architecture variant to tic4x.
957 * configure: Regenerate.
958 * Makefile.in: Regenerate.
959 * doc/Makefile.in: Regenerate.
961 2003-06-18 Alan Modra <amodra@bigpond.net.au>
963 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
964 ".TOC." from PPC64_TOC relocs.
966 2003-06-17 Alan Modra <amodra@bigpond.net.au>
968 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
970 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
972 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
973 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
974 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
975 s_cprestore,s_cpadd): Use them.
977 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
979 * configure.in: Add specific case for cris-*-linux-gnu* with
981 * configure: Regenerate.
982 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
983 if TE_LINUX defined, else FALSE.
984 (bfd_boolean demand_register_prefix): Set default from
985 DEFAULT_CRIS_AXIS_LINUX_GNU.
986 (symbols_have_leading_underscore): Similar.
987 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
989 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
991 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
992 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
993 FPU_ARCH_FPA for AOUT.
994 (md_begin): Don't try to guess the floating point architecture from
995 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
997 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
999 * configure.in: Add i386-netbsd-gnu target.
1000 * configure: Regenerate.
1002 2003-06-12 Tom Tromey <tromey@redhat.com>
1004 * doc/as.texinfo (Comm): Added @node. Moved before CFI
1007 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
1009 * config/tc-mips.c (append_insn): In a compound relocation, take the
1010 field width from the final (outermost) operator.
1012 2003-06-11 Richard Henderson <rth@redhat.com>
1014 * dw2gencfi.c (struct cfi_escape_data): New.
1015 (cfi_add_CFA_nop): Remove.
1016 (CFI_escape, dot_cfi_escape): New.
1017 (dot_cfi): Remove nop.
1018 (cfi_pseudo_table): Remove nop; add escape.
1019 (output_cfi_insn): Likewise.
1020 (select_cie_for_fde): Stop on escape.
1021 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1022 * read.c, read.h (do_parse_cons_expression): New.
1023 * doc/as.texinfo (.cfi_escape): New.
1025 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1027 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1028 (s_cprestore): Likewise.
1029 (s_cpreturn): Likewise.
1031 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1033 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1036 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1038 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1039 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1040 exceptions from size assert. Remove most of the addend fixup
1041 specialcasing. Remove value, use valP directly. simplify fx_addnumber
1042 handling. Remove zero addend specialcases.
1043 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1044 the addend fixup specialcase.
1045 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1047 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1049 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1050 in the RELOC_EXPANSION_POSSIBLE case.
1052 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1054 * config/tc-i960.c (line_comment_chars): Add '#'.
1055 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1057 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
1059 * po/Make-in (DESTDIR): New.
1060 (install-data-yes): Support $(DESTDIR).
1061 (uninstall): Likewise.
1063 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1065 * Makefile.am: Run "make dep-am".
1066 * Makefile.in: Regenerate.
1067 * po/POTFILES.in: Regenerate.
1069 2003-06-10 Doug Evans <dje@sebabeach.org>
1071 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1073 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1074 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1075 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1077 2003-06-10 Alan Modra <amodra@bigpond.net.au>
1078 Gary Hade <garyhade@us.ibm.com>
1080 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1081 (md_apply_fix3): Special case lq insn.
1083 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1085 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1086 lists. Allow single-register ranges.
1088 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1090 * config/tc-h8300.c (h8300sxnmode): New.
1091 (md_pseudo_table): Add .h8300sxn entry.
1093 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1095 * NEWS: Updated for the new -n option for the i386 assembler.
1097 * config/tc-i386.c (optimize_align_code): New.
1098 (md_shortopts): Add 'n'.
1099 (md_parse_option): Handle 'n'.
1100 (md_show_usage): Add '-n'.
1102 * config/tc-i386.h (optimize_align_code): Declared.
1103 (md_do_align): Optimize code alignment only if optimize_align_code
1106 * doc/as.texinfo: Add the new -n option.
1108 * doc/c-i386.texi: Document the new -n option.
1110 2003-06-07 Richard Henderson <rth@redhat.com>
1112 * doc/as.texinfo: Document .cfi_rel_offset.
1114 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1115 (cfi_add_CFA_offset): Detect invalid offsets.
1116 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1117 (cfi_add_CFA_restore_state): Restore it.
1118 (CFI_rel_offset): New.
1119 (cfi_pseudo_table): Add it.
1120 (dot_cfi): Handle it.
1122 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1124 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1127 2003-06-05 Michael Snyder <msnyder@redhat.com>
1129 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1130 (build_bytes): Ditto.
1132 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1134 * config/tc-h8sx.c (DMODE): Remove.
1135 (colonmod24): Don't choose a default if the operand is a 16-bit
1137 (fix_operand_size): New function.
1138 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1139 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1141 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1143 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1144 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1145 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1146 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1147 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1148 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1149 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1150 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1151 (cfi_pseudo_table): New directives .cfi_return_column,
1152 .cfi_restore, .cfi_undefined, .cfi_same_value,
1153 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1154 (dot_cfi, output_cfi_insn): Handle new directives.
1155 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1156 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1157 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1159 2003-06-04 Richard Henderson <rth@redhat.com>
1161 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1163 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1165 2003-06-04 Richard Henderson <rth@redhat.com>
1167 * config/tc-alpha.c (s_alpha_usepv): New.
1168 (md_pseudo_table): Add it.
1169 (alpha_cfi_frame_initial_instructions): New.
1170 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1171 (tc_cfi_frame_initial_instructions): New.
1172 * doc/c-alpha.texi: Document .usepv.
1174 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1176 * as.c (show_usage): Document --execstack and --noexecstack.
1177 (parse_args): Add --execstack and --noexecstack.
1178 (main): Create .note.GNU-stack section if --execstack or
1179 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1180 * as.h (flag_execstack, flag_noexecstack): New.
1182 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1184 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1185 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1186 (OPTION_MISC_BASE): New defines.
1187 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1188 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1189 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1190 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1191 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1192 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1193 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1194 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1195 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1196 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1197 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1198 (OPTION_TRAP): Redefine in terms of new defines.
1199 (md_longopts): Reorder entries.
1201 2003-05-14 Michael Snyder <msnyder@redhat.com>
1202 From Bernd Schmidt <bernds@redhat.com>
1203 and Michael Snyder <msnyder@redhat.com>
1204 and Alexandre Oliva <aoliva@redhat.com>
1205 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1206 * config/tc-h8300.h: Ditto.
1208 2003-06-03 Nick Clifton <nickc@redhat.com>
1210 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1211 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1212 before calling bfd_reloc_type_lookup.
1214 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1216 * read.c (emit_expr): Set dot_value.
1217 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1219 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1221 * macro.c (sub_actual): Don't lose string if it turns out that
1222 &string wasn't an arg.
1224 2003-05-31 Richard Henderson <rth@redhat.com>
1226 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1227 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1229 2003-05-29 Richard Henderson <rth@redhat.com>
1231 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1232 (all_frame_data, plast_frame_data, cur_frame_data): New.
1233 (s_alpha_ent): Record data for dwarf2 cfi.
1234 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1235 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1236 * config/tc-alpha.h (md_end): New.
1237 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1238 (DWARF2_CIE_DATA_ALIGNMENT): New.
1240 2003-05-29 Nick Clifton <nickc@redhat.com>
1242 * configure.in: Add i386-*-freebsd* entry.
1243 * configure: Regenerate.
1245 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1247 * config/tc-m32r.c: Amend comment to refer to Renesas
1249 2003-05-27 Richard Henderson <rth@redhat.com>
1251 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1253 (current_location): Use symbol_temp_new_now.
1254 * stabs.c (s_stab_generic): Use symbol_temp_new.
1255 * symbols.c (temp_label_name): Remove.
1256 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1258 2003-05-27 Richard Henderson <rth@redhat.com>
1260 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1261 * as.c (main): Always call cfi_finish.
1262 * config/tc-i386.c (x86_dwarf2_return_column): New.
1263 (x86_cie_data_alignment): New.
1264 (md_begin): Set them.
1265 (tc_x86_cfi_init): Remove.
1266 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1267 return int, not unsigned long; don't as_bad here.
1268 (tc_x86_frame_initial_instructions): Streamline; use
1270 * config/tc-i386.h (tc_cfi_init): Remove.
1271 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1272 (DWARF2_CIE_DATA_ALIGNMENT): New.
1274 2003-05-27 Richard Henderson <rth@redhat.com>
1276 * symbols.c (temp_label_name): New.
1277 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1278 (symbol_set_value_now): New.
1279 * symbols.h: Prototype them.
1280 * dwarf2dbg.c: Use them.
1281 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1283 2003-05-23 Jason Eckhardt <jle@rice.edu>
1285 * config/tc-i860.c (target_xp): Declare variable.
1286 (OPTION_XP): Declare macro.
1287 (md_longopts): Add option -mxp.
1288 (md_parse_option): Set target_xp.
1289 (md_show_usage): Add -mxp usage.
1290 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1291 (md_assemble): Don't try expansions if XP_ONLY is set.
1292 * doc/c-i860.texi: Document -mxp option and i860XP support.
1294 2003-05-23 Eric Christopher <echristo@redhat.com>
1296 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1298 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1300 * config/tc-mips.c (append_insn): Use actual relocation size for new
1301 fixp's. Don't relax overflow checking for partial_inplace relocations.
1302 Use the actual relocation type in combined relocs, not just the type
1304 (macro_build_jalr): Use actual relocation size for new fix.
1305 (s_cpsetup, s_gpdword): Likewise.
1307 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1309 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1311 2003-05-22 Nick Clifton <nickc@redhat.com>
1313 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1314 section relative offsets for relocs that will not be based on the
1316 (xstormy16_md_apply_fix3): Remove previous patch to this
1319 2003-05-07 Eric Christopher <echristo@redhat.com>
1321 * config/tc-mips.c (mips_abicalls): New variable.
1322 (md_parse_option): Use.
1324 (s_abicalls): Ditto.
1325 (mips_elf_final_processing): Set EF_MIPS_PIC and
1326 EF_MIPS_CPIC dependent on above.
1328 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1330 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1332 2003-05-21 Nick Clifton <nickc@redhat.com>
1334 * config/obj-elf.c: Include dwarf2dbg.h.
1335 (elf_pseudo_tab): Add .file and .loc.
1336 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1337 * config/tc-arm.c: Likewise.
1338 * config/tc-h8300.c: Likewise.
1339 * config/tc-hppa.c: Likewise.
1340 * config/tc-ia64.c: Likewise.
1341 * config/tc-m68hc11.c: Likewise.
1342 * config/tc-m68k.c: Likewise.
1343 * config/tc-mmix.c: Likewise.
1344 * config/tc-mn10300.c: Likewise.
1345 * config/tc-ppc.c: Likewise.
1346 * config/tc-sh.c: Likewise.
1347 * config/tc-sparc.c: Likewise.
1348 * config/tc-v850.c: Likewise.
1349 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1351 * config/tc-ip2k.c: Likewise.
1352 * config/tc-iq2000.c: Likewise.
1353 * config/tc-xstormy16.c: Likewise.
1354 * config/tc-xtensa.c: Likewise.
1355 * Makefile.am: Regenerate dependencies.
1356 * Makefile.in: Regenerate.
1357 * aclocal.m4: Regenerate.
1358 * config.in: Regenerate.
1359 * configure: Regenerate.
1360 * po/POTFILES.in: Regenerate.
1361 * po/gas.pot: Regenerate.
1363 2003-05-21 Nick Clifton <nickc@redhat.com>
1365 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1366 BFD_ASSEMBLER targets.
1367 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1368 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1369 defining BFD_ASSEMBLER.
1371 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1373 * as.c (main): Remove tc_cfi_init().
1374 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1376 (cfi_pseudo_table): Add "cfi_register" entry.
1377 (cfi_make_insn): Handle CFA_register.
1378 (cfi_output_insn): Ditto.
1380 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1381 (dot_cfi_endproc): Reuse already emitted CIEs.
1382 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1383 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1385 2003-05-20 Nick Clifton <nickc@redhat.com>
1387 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1388 (md_pseudo_table): Add entries for .loc and .line.
1390 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1392 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1394 (dot_cfi_endproc): Avoid C99 construct.
1396 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1398 * dw2gencfi.c, dw2gencfi.h: New files.
1399 * config/tc-i386.c (tc_x86_cfi_init): New function.
1400 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1401 * as.c (parse_args): Set verbose flag on --verbose.
1402 (main): Call tc_cfi_init()/cfi_finish().
1403 * as.h (verbose): New external variable.
1404 * read.c (pobegin): Insert CFI pops to the list.
1405 * symbols.c (local_symbol_make): Make symbol external.
1406 * symbols.h (local_symbol_make): New prototype.
1407 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1408 * Makefile.in: Regenerate.
1409 * doc/as.texinfo: Added node "CFI directives" with description of
1410 all implemented .cfi_* directives.
1411 * doc/Makefile.in: Regenerate.
1412 * po/POTFILES.in: Regenerate.
1414 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1416 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1418 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1420 2003-05-18 Jason Eckhardt <jle@rice.edu>
1422 * config/tc-i860.c (i860_process_insn): Initialize fc after
1423 each opcode mismatch.
1425 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1427 * configure.in: Accept i[3-7]86 variants.
1428 * configure: Regenerate.
1430 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1432 * config/tc-mips.h: Fix comment formatting.
1434 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1436 * read.c (old_buffer, old_input, old_limit): Remove variables.
1437 (read_a_source_file): Delete label contin.
1438 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1439 input as with macros, instead of in separate old_* variables.
1440 Zero-terminate string being scrubbed.
1442 2003-05-12 Nick Clifton <nickc@redhat.com>
1444 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1445 (md_assemble): Reset skipping_fptr.
1446 (md_operand): If @fptr() is followed by a minus sign, set
1447 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1448 @fptr is detected, ignore it and reset skipping_fptr.
1450 2003-05-11 Jason Eckhardt <jle@rice.edu>
1452 * config/tc-i860.c (MAX_FIXUPS): Define.
1453 (struct i860_fi fi[]): New struct.
1454 (struct i860_it the_insn): Add above as member and move fields
1455 exp, reloc, pcrel and fup into i860_fi.
1456 (md_assemble): Replace all instances of exp, reloc, pcrel
1457 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1458 Add a loop to possibly emit multiple fix-ups for each insn.
1459 (i860_process_insn): Likewise.
1460 (i860_get_expression): Likewise.
1461 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1463 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1465 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1467 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1469 * config/tc-ia64.c (alias_hash): New.
1470 (alias_name_hash): New.
1471 (secalias_hash): New.
1472 (secalias_name_hash): New.
1473 (md_pseudo_table): Add "secalias".
1474 (md_begin): Initialize alias_hash, alias_name_hash,
1475 secalias_hash and secalias_name_hash.
1476 (struct alias): New.
1477 (dot_alias): Implement .alias and .secalias directives.
1479 (ia64_adjust_symtab): New.
1481 (ia64_frob_file): New.
1483 * config/tc-ia64.h (ia64_adjust_symtab): New.
1484 (tc_adjust_symtab): Defined.
1485 (ia64_frob_file): New.
1486 (tc_frob_file): Defined.
1488 2003-05-07 Dmitry Diky <diwil@mail.ru>
1490 * tc-msp430.c: Add missing lines to known cpus list.
1492 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1494 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1495 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1496 * config.in, configure: Rebuilt.
1498 2003-05-05 H.J. Lu <hjl@gnu.org>
1500 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1501 howto->partial_inplace is false.
1503 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1505 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1506 symbol_used_in_reloc_p check.
1507 (md_apply_fix3): Remove check for howto->pcrel_offset.
1509 2003-05-03 H.J. Lu <hjl@gnu.org>
1511 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1512 fatal error for unknown section attribute.
1514 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1515 unknown section attribute.
1516 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1517 * config/tc-ppc.c (ppc_section_letter): Likewise.
1519 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1520 (ia64_elf_section_type): Accept "unwind".
1522 2003-05-02 H.J. Lu <hjl@gnu.org>
1524 * read.h (demand_copy_string): New.
1526 * config/tc-alpha.c (demand_copy_string): Removed.
1528 2003-05-02 Michael Snyder <msnyder@redhat.com>
1530 * write.h (FAKE_LABEL_NAME): Allow override
1531 (for targets that like eg. a leading dot in a local label).
1533 2003-05-02 Nick Clifton <nickc@redhat.com>
1535 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1536 addend with the symbol's value for pc-relative relocations against
1537 a defined symbol - this will be done automatically.
1539 2003-05-01 H.J. Lu <hjl@gnu.org>
1541 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1544 2003-05-01 H.J. Lu <hjl@gnu.org>
1546 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1548 * config/obj-elf.c (obj_elf_section_name): Call
1549 tc_canonicalize_section_name if it is defined.
1551 2003-05-01 H.J. Lu <hjl@gnu.org>
1553 * config/tc-ia64.c (ia64_check_label): New.
1554 * config/tc-ia64.h (tc_check_label): New.
1556 * read.c (read_a_source_file): Call tc_check_label after
1557 creating a user-defined label if defined.
1559 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1561 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1562 -be and split strings to below 509 bytes in length.
1564 2003-05-01 Christian Groessler <chris@groessler.org>
1566 * expr.h: Fix comments in operatorT typedef.
1567 * config/tc-z8k.c: Add 2003 to copyright message.
1568 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1569 decides by the parameter.
1570 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1571 command line argument was given to select the intended
1573 (get_interrupt_operand): Warn if NOP type code is emitted.
1574 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1575 (apply_fix): Call newfix with additional 'size' parameter.
1576 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1577 4 bit immediate arguments.
1578 (md_longopts): Add 'linkrelax' option.
1579 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1580 variable when 'linkrelax' command line option is specified.
1581 (md_show_usage): Display 'linkrelax' option.
1582 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1583 R_CALLR and R_REL16.
1584 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1586 2003-04-30 H.J. Lu <hjl@gnu.org>
1588 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1589 (ia64_float_to_chars): Likewise.
1590 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1591 and ia64_float_to_chars by tc_segment_info_data.endian from
1592 the current segment if byteorder == -1.
1593 (md_begin): Call dot_byteorder to set target_big_endian.
1594 (md_atof): Call ia64_float_to_chars to convert floating point.
1595 (ia64_float_to_chars_bigendian): New function.
1596 (ia64_float_to_chars_littleendian): Likewise.
1597 (ia64_elf_section_change_hook): Likewise.
1599 * config/tc-ia64.h (ia64_number_to_chars): New.
1600 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1601 (ia64_elf_section_change_hook): New.
1602 (md_elf_section_change_hook): Defined.
1603 (ia64_segment_info_type): New struct.
1604 (TC_SEGMENT_INFO_TYPE): Defined.
1606 2003-04-30 H.J. Lu <hjl@gnu.org>
1608 * config/tc-ia64.c (md_section_align): Deleted.
1610 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1611 (md_section_align): New.
1613 2003-04-30 H.J. Lu <hjl@gnu.org>
1615 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1617 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1619 (md_atof): Add 6 byte padding of zero for real16.
1621 2003-04-29 Nick Clifton <nickc@redhat.com>
1623 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1624 start of a version name.
1626 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1628 * configure.in (mips-*-*n*bsd*): Replace with...
1629 (mips-*-netbsd*, mips-*-openbsd*): These.
1630 * configure: Regenerate.
1632 2003-04-28 H.J. Lu <hjl@gnu.org>
1634 * config/tc-hppa.c (hppa_symbol_chars): New.
1635 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1637 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1639 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1641 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1643 * NEWS: Belatedly mention support for MIPS32 Release 2.
1645 2003-04-24 Eric Christopher <echristo@redhat.com>
1647 * config/tc-mips.c (nopic_need_relax): Revert previous
1650 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1652 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1653 * config/tc-h8300.c (dwarf2dbg.h): Include
1654 (md_pseudo_table): Handle .loc and .file
1655 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1656 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1657 * Makefile.in: Regenerate.
1659 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1661 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1662 (md_pseudo_table): Add h8300hn, h8300sn.
1663 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1664 * doc/c-h8300.texi : Add documentation for new machine directives.
1666 2003-04-24 Nick Clifton <nickc@redhat.com>
1668 * config/tc-ppc.c (ppc_symbol_chars): Define.
1669 * config/tc-ppc.h (tc_symbol_chars): Define.
1671 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1673 * config/tc-sh.c: Amend comment to refer to SuperH.
1674 * config/tc-sh.h: Likewise.
1675 (LISTING_HEADER): Amend to refer to SuperH.
1676 * config/tc-sh64.c: Change comment to refer to SuperH.
1677 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1678 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1679 * doc/c-sh.texi: Amend to refer to SuperH.
1680 Add SuperH architecture documentation references.
1681 * doc/c-sh64.texi: Change to refer to SuperH.
1683 2003-04-23 H.J. Lu <hjl@gnu.org>
1685 * app.c (do_scrub_chars): More checks for valid labels.
1687 2003-04-22 H.J. Lu <hjl@gnu.org>
1689 * app.c (do_scrub_chars): Check for valid label.
1691 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1693 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1694 references to Renesas M32R.
1695 * doc/c-m32r.texi: Likewise.
1697 2003-04-21 Richard Henderson <rth@redhat.com>
1699 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1700 (out_file_list): Assign non-null filename after generating error.
1702 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1704 * ehopt.c (check_eh_frame): For aug_size == 0
1705 in state_seeing_aug_size state skip the state_skipping_aug
1708 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1710 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1712 * doc/c-h8500.texi: Likewise.
1713 * doc/c-sh.texi: Likewise.
1714 * doc/c-sh64.texi: Likewise.
1715 * doc/h8.texi: Likewise.
1716 * config/tc-h8300.c: Likewise.
1717 * config/tc-h8300.h: Likewise.
1718 * config/tc-h8500.c: Likewise.
1719 * config/tc-h8500.h: Likewise.
1720 * config/tc-sh.c: Likewise.
1721 * config/tc-sh.h: Likewise.
1722 * config/tc-sh64.c: Likewise.
1723 * config/tc-sh64.h: Likewise.
1725 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1727 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1728 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1729 (append_insn): When filling delay slots with instructions
1730 that have fixups that tc_gen_reloc might consider modifyable
1731 in variant frags, start a new frag.
1732 (load_address): Generate GOT_DISP with of without offset
1733 depending on whether symbol is local. For -xgot, use
1734 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1735 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1736 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1737 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1738 <ld_st>: In NewABI with small got, always use
1739 GOT_PAGE/GOT_OFST, with the latter in the load/store
1740 instruction. With big got, use GOT_HI16/GOT_LO16 or
1742 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1743 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1744 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1745 (md_convert_frag): Use memmove for safe copying of overlapping
1748 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1750 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1751 -mlong, -mshort-double and -mlong-double options; use table @code.
1752 (M68HC11-Syntax): Update to document 68HC12 operands.
1753 (M68HC11-Modifiers): New section for operand modifiers.
1754 (M68HC11-Directives): New section for specific assembler directives.
1755 (M68HC11-Branch): Fix Overfull hbox error.
1757 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1759 * config/tc-mips.c (macro): Add comments explaining the rationale
1762 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1764 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1765 constant address that Alexandre took out by accident. Reject
1766 64-bit addresses that are not sign extensions of 32 bits only if
1767 we don't support 64-bit address constants.
1769 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1771 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1773 2003-04-08 Nick Clifton <nickc@redhat.com>
1775 * as.c (perform_an_assembly_pass): If using cgen, call
1777 * cgen.c (gas_cgen_begin): New function. If
1778 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1779 otherwise call cgen_clear_signed_overflow_ok.
1780 * cgen.h: Prototype gas_cgen_begin.
1782 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1784 * write.c (write_relocs): Remove unused variable.
1786 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1788 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1789 (macro): Use new macro to decide whether to emit constant address
1790 as 32 or 64 bits if addresses are 32-bit wide but registers are
1793 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1795 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1796 (M6811_OP_PAGE_ADDR): New internal define.
1797 (get_operand): New modifier %page and %addr to obtain page and
1798 address part of a far-function.
1799 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1800 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1802 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1803 (find_opcode): Add comment.
1804 (md_estimate_size_before_relax): Force relocation of
1805 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1806 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1807 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1808 on the symbol itself so that DWARF2 strings are merged correctly.
1810 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1812 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1813 default tic4x target format to 'coff2-tic4x'.
1814 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1816 * config/tc-tic4x.h: Ditto
1818 2003-04-03 Nick Clifton <nickc@redhat.com>
1820 * NEWS: Mention support for Xtensa architecture.
1822 2003-04-02 Philip Blundell <philb@gnu.org>
1824 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1826 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1828 * config/tc-mips.c (macro2): Adjust implementation of
1829 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1830 in the case where the source and destination registers
1833 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1835 * Makefile.am (CPU_TYPES): Add xtensa.
1836 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1837 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1838 (xtensa-relax.o): New target.
1840 * Makefile.in: Regenerate.
1841 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1842 extra_objects for xtensa targets.
1843 * configure: Regenerate.
1844 * write.c (write_object_file): Add new md_post_relax_hook.
1845 * config/tc-xtensa.c: New file.
1846 * config/tc-xtensa.h: Likewise.
1847 * config/xtensa-istack.h: Likewise.
1848 * config/xtensa-relax.c: Likewise.
1849 * config/xtensa-relax.h: Likewise.
1850 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1851 * doc/Makefile.in: Regenerate.
1852 * doc/all.texi: Set new XTENSA variable.
1853 * doc/as.texinfo: Set new Xtensa variable. Describe
1854 Xtensa-specific options. Define line comment character for
1855 Xtensa. Add Xtensa processors to list of ELF targets where
1856 alignment is specified in bytes. Add new Xtensa-Dependent node.
1857 Add acknowledgements for those contributing to the Xtensa port.
1858 * doc/internals.texi: Describe new md_post_relax_hook.
1859 * doc/c-xtensa.texi: New file.
1861 2003-04-01 Nick Clifton <nickc@redhat.com>
1862 Richard Earnshaw <rearnsha@arm.com>
1864 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1865 (ARM_ARCH_IWMMXT): Simplify.
1866 (insns): Place iwmmx instructions in correct place in table.
1867 (arm_add_note): New function: Add a note entry to a .note section.
1868 (md_begin): Make the default architecture be unknown.
1869 Suppress the creation of an arm note section.
1871 2003-03-26 Eric Christopher <echristo@redhat.com>
1873 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1875 2003-03-25 Stan Cox <scox@redhat.com>
1876 Nick Clifton <nickc@redhat.com>
1878 Contribute support for Intel's iWMMXt chip - an ARM variant:
1880 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1881 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1882 (enum wreg_type, enum iwmmxt_insn_type): New types.
1883 (wr_register, wc_register, wcg_register): New macros.
1884 (iwmmxt_table): New variable.
1885 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1886 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1887 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1888 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1889 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1890 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1891 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1892 cp_byte_address_offset, cp_byte_address_required_here,
1893 check_iwmmxt_insn): New functions.
1894 (asm_opcode_insns): Add iWMMXt instructions.
1895 (md_begin): Set the mach value for iWMMXt targets. Create a note
1896 section to identify iwmmxt binaries.
1897 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1898 * doc/c-arm.texi: Document the support for the iWMMXt.
1899 * NEWS: Mention new support.
1901 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1903 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1904 * doc/all.texi: Likewise.
1905 * doc/c-tic54x.texi: Likewise.
1907 2003-03-21 Andreas Schwab <schwab@suse.de>
1909 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1910 avoid aliasing issue.
1912 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1914 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1915 (current_arch_mask): Rename to current_mode_mask.
1916 (current_arch_requested): Remove variable.
1917 (current_cpu): New variable.
1918 (init_default_arch): Set defaults values for s390_arch_size,
1919 current_mode_mask and current_cpu.
1920 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1921 (md_begin): Replace current_arch_mask by current_cpu.
1922 (md_assemble): Adapt check and error message to current_mode_mask and
1925 2003-03-09 James E Wilson <wilson@tuliptree.org>
1927 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1928 * read.c (get_line_sb): Return end of line character or '\n' if
1929 it is zero or non-existent.
1931 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1933 * config/tc-mips.c (mips_validate_fix): New function.
1934 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1935 (mips_validate_fix): Declare.
1937 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1939 * Reverted 2003-03-02's patch.
1941 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1943 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1944 (TC_DWARF2_EMIT_OFFSET): Provide default.
1945 (out_debug_aranges, out_debug_info): Use it.
1946 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1947 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1948 (ia64_gen_real_reloc_type): ... here.
1949 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1951 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1953 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1954 (s_mips_ent): Likewise.
1956 2003-03-04 Dmitry Diky <diwil@mail.ru>
1958 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1959 and x1123 devices, add missed x437.
1960 (md_show_usage): Sort device list.
1962 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1964 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1965 (md_begin): Use preset_target_arch.
1966 (md_longopts): Make isa option unconditional.
1967 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1968 set preset_target_arch.
1969 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1970 by -S_GET_VALUE (fixP->fx_subsy).
1971 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1972 and the addend is 0.
1973 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1974 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1976 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1978 * config/tc-mips.c (append_insn): Add handling of
1979 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1980 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1981 misaligned address and reange overflow.
1982 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1983 earlier warnings about misaligned address and reange overflow.
1984 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1985 (md_apply_fix): Likewise. Fix warning output.
1986 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1987 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1988 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1990 2003-02-21 Nick Clifton <nickc@redhat.com>
1992 * NEWS: Mention availability of test generator program.
1994 2003-02-21 Miles Bader <miles@gnu.org>
1996 * config/tc-v850.c (system_registers): Add v850e debug registers.
1997 (system_register_name): Accept up to 27 (the last v850e sys register).
1999 2003-02-21 Bob Wilson <bob.wilson@acm.org>
2001 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2002 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
2003 Capitalize section headings consistently. Format index entries more
2004 consistently. Unconditionalize text about whether text and data
2005 sections are alterable. Use @ifnottex for alternatives to @tex output
2006 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
2007 .size and .type directives. Be more polite about bad bug reports.
2008 Move FDL into a separate file.
2009 * doc/fdl.texi: New file.
2011 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
2013 * config/tc-mips.c (prev_reloc_op_frag): New variable.
2014 (macro): Check it to decide whether a new frag is needed.
2015 (my_getSmallExpression): Set it.
2017 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2019 * cgen.c: Fix typo: intial -> initial.
2021 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
2023 * app.c (do_scrub_chars): Handle '||' in two states.
2025 2003-02-13 Alan Modra <amodra@bigpond.net.au>
2027 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2028 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2030 2003-02-11 Uwe Stieber <uwe@wwws.de>
2032 * configure.in: Add support for kaOS as cross build target system.
2033 * configure: Regenerated.
2035 2003-02-10 Nick Clifton <nickc@redhat.com>
2037 * config/tc-arm.c (md_begin): If the Maverick co-processor is
2038 selected, set the EF_ARM_MAVERICK_FLOAT flag and
2039 bfd_mach_arm_ep9312 machine number.
2041 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
2043 * config/tc-mips.c (reloc_needs_lo_p): New function.
2044 (fixup_has_matching_lo_p): New function.
2045 (append_insn): Use reloc_needs_lo_p to check whether a relocation
2046 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
2047 if that fixup already has a matching %lo(). Don't call frag_wane here.
2048 (macro): Call frag_wane here if the last unmatched hi was in the
2050 (pic_need_relax): New function, split out from...
2051 (md_estimate_size_before_relax): ...here.
2052 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
2053 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2055 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
2057 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2059 2003-02-06 Alan Modra <amodra@bigpond.net.au>
2061 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2064 2003-02-05 Alan Modra <amodra@bigpond.net.au>
2066 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2067 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2068 accept x@got+off etc.
2069 (md_assemble): Handle TLS relocs.
2070 (ppc_force_relocation): Force for all TLS relocs.
2071 (ppc_fix_adjustable): Likewise.
2072 (md_apply_fix3): Handle TLS relocs.
2074 2003-02-04 Alan Modra <amodra@bigpond.net.au>
2076 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2077 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2079 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
2081 * config/tc-mips.c (enum small_ex_type): Remove.
2082 (imm_unmatched_hi): Remove.
2083 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
2084 argument from calls to append_insn.
2085 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2087 (macro_build): Update append_insn calls.
2088 (mips16_macro_build, macro_build_lui): Likewise.
2089 (mips_ip): Rework handling of small expressions. Move explicit
2090 relocation handling into my_getSmallExpression. Assume that the
2091 value of 'o' operands is zero if there is only one bracketed
2093 (percent_op): Make constant. Record the BFD relocation code
2094 associated with each operator.
2095 (my_getSmallParser, my_getPercentOp): Remove.
2096 (parse_relocation): New function.
2097 (my_getSamllExpression): Rework. Fill in relocations here
2098 rather than in mips_ip.
2100 2003-01-29 Nick Clifton <nickc@redhat.com>
2102 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2103 assembler's handling of # <linenum> "<filename>" directives work.
2105 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2107 * dwarf2dbg.c: Include filenames.h.
2108 (struct file_entry): Make filename const char *.
2109 (dirs, dirs_in_use, dirs_allocated): New variables.
2110 (get_filenum): Add NUM argument. Build directory table.
2111 (dwarf2_where): Adjust caller.
2112 (dwarf2_directive_file): Use get_filenum to allocate
2113 slot in file and directory tables.
2114 (dwarf2_directive_loc): Recreate full filename from
2115 directory and filename part if needed for listing.
2116 (out_file_list): Output directory table.
2117 Output main source file dirname before its filename.
2119 2003-01-28 Dmitry Diky <diwil@mail.ru>
2121 * config/tc-msp430.c: Replace occurences of 'tolower' with
2124 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2126 * config/tc-ia64.c (dot_vframesp): Correct error message.
2127 (dot_vframepsp): Ditto.
2129 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2131 * configure.in (em): Set to irix on all Irix systems.
2132 * configure: Rebuilt.
2133 * config/te-irix.h: New file.
2134 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2135 whether to use Irix-specific 64-bit format.
2137 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2139 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2141 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2143 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2144 (tc_gen_reloc): Handle TLS relocs.
2145 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2146 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2148 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2149 (obj_elf_type): Handle tls_object.
2151 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2153 * config/tc-s390.c (s390_tls_suffix): New function.
2154 (elf_suffix_type): Add suffix enums for TLS relocations.
2155 (s390_elf_suffix): Add suffix strings for TLS relocations.
2156 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2158 (md_gather_operands): Map new instruction operand/elf suffix
2159 combinations for TLS to bfd relocations.
2160 (tc_s390_fix_adjustable): Add new TLS relocations.
2161 (tc_s390_force_relocation): Likewise.
2162 (md_apply_fix3): Likewise.
2164 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2166 * as.h: Update copyright date.
2167 * symbols.c: Likewise.
2168 * config/tc-d10v.h: Likewise.
2169 * config/tc-fr30.h: Likewise.
2170 * config/tc-i960.h: Likewise.
2171 * config/tc-mips.h: Likewise.
2173 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2174 (MD_APPLY_SYM_VALUE): Move.
2176 2003-01-23 Nick Clifton <nickc@redhat.com>
2178 * NEWS: Announce sh2e support.
2181 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2182 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2183 (sh_elf_final_processing): Handle arch_sh2e.
2185 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2187 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2188 * symbols.h (S_FORCE_RELOC): Likewise.
2189 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2190 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2191 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2192 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2193 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2194 * write.c (generic_force_reloc): New function.
2195 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2196 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2197 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2198 * as.h (generic_force_reloc): Declare.
2199 * doc/internals.texi (S_FORCE_RELOC): Update.
2200 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2202 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2203 generic_force_reloc.
2204 (alpha_fix_adjustable): Likewise.
2205 * config/tc-arm.c (arm_force_relocation): Likewise.
2206 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2207 * config/tc-frv.c (frv_force_relocation): Likewise.
2208 * config/tc-i386.c (md_apply_fix3): Likewise.
2209 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2210 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2211 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2212 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2213 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2214 * config/tc-mips.c (mips_force_relocation): Likewise.
2215 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2216 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2217 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2218 * config/tc-sh.c (sh_force_relocation): Likewise.
2219 (md_pcrel_from_section): Likewise.
2220 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2221 * config/tc-v850.c (v850_force_relocation): Likewise.
2222 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2223 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2224 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2225 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2227 * config/tc-d10v.c (d10v_force_relocation): Delete.
2228 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2229 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2230 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2231 * config/tc-fr30.c (fr30_force_relocation): Delete.
2232 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2233 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2234 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2235 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2236 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2237 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2238 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2239 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2240 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2241 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2242 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2243 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2244 * config/tc-i386.c (i386_force_relocation): Delete.
2245 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2247 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2248 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2249 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2250 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2252 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2253 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2255 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2257 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2258 sh64_elf_section_data.
2259 * config/tc-sh64.h: Include elf32-sh64.h.
2260 * config/tc-m68hc11.c: Don't include stdio.h.
2261 (md_show_usage): Fix missing continuation.
2262 * Makefile.am: Run "make dep-am".
2263 * Makefile.in: Regenerate.
2265 2003-01-22 Nick Clifton <nickc@redhat.com>
2267 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2269 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2271 * configure.in: Handle *-*-aros*.
2272 * configure: Regenerated from configure.in.
2274 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2276 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2277 gotplt and pltoff relocations.
2278 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2279 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2280 gotplt and pltoff to bfd relocations.
2281 (md_gather_operands): Map new instruction operand/elf suffix
2282 combinations to bfd relocations.
2283 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2284 to the list of unadjustable relocations.
2285 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2286 and pltoff relocations.
2287 (md_apply_fix3): Add the new relocations.
2289 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2291 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2292 with a subsy symbol.
2294 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2296 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2297 of relocs for memory bank addressing.
2299 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2301 * config/tc-m68hc11.c (md_show_usage): Update usage.
2302 (md_parse_option): Recognize -m68hcs12.
2303 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2305 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2307 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2309 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2311 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2313 * Makefile.am: Run "make dep-am".
2314 * Makefile.in: Regenerate.
2315 * po/POTFILES.in: Regenerate.
2317 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2319 * read.c (get_absolute_expr): New, split out from..
2320 (get_absolute_expression): ..here.
2321 * read.h (get_absolute_expr): Declare.
2322 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2323 Trim size to arch bits_per_address, and test for negative input
2324 via get_absolute_expr.
2326 2003-01-07 DJ Delorie <dj@redhat.com>
2328 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2330 (xstormy16_md_apply_fix3): Use adjustment.
2332 2003-01-02 Ben Elliston <bje@redhat.com>
2334 * configure.in: Add iq2000-elf target.
2335 * configure: Regenerate.
2336 * config/tc-iq2000.c: New file.
2337 * config/tc-iq2000.h: Likewise.
2338 * po/gas.pot: Regenerate.
2340 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2342 * config/tc-mips.c: Update copyright years to include 2003.
2343 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2344 Additionally, clean up their code slightly and clean up their
2347 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2349 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2351 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2353 * doc/Makefile.in: Regenerate.
2355 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2357 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2358 of .init and .fini sections for array initializers and finalizers.
2360 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2362 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2363 the "+D" operand, which will be used only by the disassembler.
2365 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2367 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2369 * configure: Regenerate.
2370 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2371 (macro_build): Handle "K" operand.
2372 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2373 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2374 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2375 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2376 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2377 (validate_mips_insn): Implement "+" as a way to extend the
2378 allowed operands, and implement "K", "+A", "+B", and "+C"
2380 (OPTION_MIPS32R2): New define.
2381 (md_longopts): Add entry for OPTION_MIPS32R2.
2382 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2383 (md_parse_option): Handle OPTION_MIPS32R2.
2384 (s_mipsset): Reimplement handling of ".set mipsN" options
2385 and add support for ".set mips32r2".
2386 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2387 (md_show_usage): Document "-mips32r2" option.
2388 * doc/as.texinfo: Document "-mips32r2" option.
2389 * doc/c-mips.texi: Likewise.
2391 2002-12-30 Dmitry Diky <diwil@mail.ru>
2393 * configure.in: Add msp430 target.
2394 * configure: Regenerate.
2395 * Makefile.am: Add msp430 target.
2396 * Makefile.in: Regenerate.
2397 * config/tc-msp430.c: New file: msp430 assembler.
2398 * config/tc-msp430.h: New file: target macros for msp430.
2399 * doc/Makefile.am: Add msp430 target.
2400 * doc/Makefile.in: Regenerate.
2401 * doc/as.texinfo: Include msp430 documenation.
2402 * doc/all.texi: Enable msp430 documentation.
2403 * doc/c-msp430.texi: New file: document msp430 specific features
2406 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2408 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2409 (dwarf2_finish): Use it.
2410 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2411 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2413 2002-12-20 DJ Delorie <dj@redhat.com>
2415 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2416 BFD_RELOC_XSTORMY16_12.
2418 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2420 * doc/as.texinfo (Invoking): Typo fix.
2421 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2423 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2425 * doc/c-alpha.texi: Fix typos.
2426 * doc/c-arm.texi: Likewise.
2427 * doc/c-d10v.texi: Likewise.
2428 * doc/c-i370.texi: Likewise.
2429 * doc/c-i960.texi: Likewise.
2430 * doc/c-ia64.texi: Likewise.
2431 * doc/c-mmix.texi: Likewise.
2432 * doc/c-ns32k.texi: Likewise.
2433 * doc/c-pdp11.texi: Likewise.
2434 * doc/c-pj.texi: Likewise.
2435 * doc/c-sh64.texi: Likewise.
2436 * doc/c-sparc.texi: Likewise.
2437 * doc/c-tic54x.texi: Likewise.
2438 * doc/c-v850.texi: Likewise.
2439 * doc/c-vax.texi: Likewise.
2440 * doc/internals.texi: Likewise.
2442 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2444 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2445 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2446 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2447 arrange not to issue warnings about use of AT when AT is not
2450 2002-12-17 Nick Clifton <nickc@redhat.com>
2452 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2453 prevent it being confused with -k.
2455 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2457 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2458 has already been set up, use it.
2460 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2462 * ChangeLog-9295: Fix a typo.
2464 * config/tc-d10v.c: Fix a comment typo.
2465 * config/tc-dlx.c: Likewise.
2466 * config/tc-h8300.h: Likewise.
2467 * config/tc-h8500.h: Likewise.
2468 * config/tc-mips.c: Likewise.
2469 * config/tc-s390.c: Likewise.
2470 * config/tc-sh.h: Likewise.
2471 * config/tc-tic80.h: Likewise.
2472 * config/tc-w65.h: Likewise.
2473 * config/tc-z8k.c: Likewise.
2474 * config/tc-z8k.h: Likewise.
2475 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2477 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2479 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2480 Simplify sign extension. Remove redundant unsigned < 0 test.
2481 * config/tc-i960.c (md_ri_to_chars): Prototype.
2482 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2483 (dump_literals): Init brarsym, and test later instead of isforce.
2485 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2486 (parse): Constify line and lineptr.
2487 (md_begin): Calculate endop here.
2489 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2491 * config/obj-vms.c: Formatting. Include fnctl.h.
2492 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2493 (Object_Record_Offset): Make it a size_t.
2494 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2495 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2496 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2497 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2498 (vms_fixup_data_section <data_size>): Add here instead.
2499 * config/e-criself.c: Fix typo in last change.
2501 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2503 * write.c (write_object_file): Fix signed/unsigned warning.
2504 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2505 * config/e-criself.c (criself_bfd_name): Prototype.
2506 * config/obj-aout.c (s_sect): Remove unused function.
2507 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2508 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2509 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2510 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2511 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2512 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2513 (vms_fixup_text_section <text_siz>): Likewise.
2514 (synthesize_data_segment <data_size>): Likewise.
2515 (vms_fixup_xtors_section <sect_no>): Likewise.
2516 (structure_count): Don't use implicit int type.
2517 * config/tc-a29k.c (insert_sreg): Prototype.
2518 (define_some_regs): Prototype, make static.
2519 (parse_operand): Likewise.
2520 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2521 (md_show_usage <stream>): Likewise.
2522 (md_section_align <segment>): Likewise.
2523 (md_convert_frag <all args>): Likewise.
2524 (md_estimate_size_before_relax <all args>): Likewise.
2525 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2526 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2527 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2528 (md_undefined_symbol <name>): Likewise.
2529 (md_convert_frag <all args>): Likewise.
2530 (write_long <opcode>): Likewise.
2531 (tc_gen_reloc <seg>): Likewise.
2532 (md_estimate_size_before_relax <all args>): Likewise.
2533 (md_apply_fix3 <seg>): Likewise.
2534 (s_d30v_align <ignore>): Likewise.
2535 (build_insn): Correct format string.
2536 (md_apply_fix3): Likewise.
2537 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2538 (md_undefined_symbol <name>): Likewise.
2539 (md_convert_frag <all args>): Likewise.
2540 (md_cgen_lookup_reloc <insn>): Likewise.
2541 (md_begin): Delete unused vars.
2542 (md_assemble): Likewise.
2543 (md_estimate_size_before_relax): Likewise.
2544 (fr30_relax_frag): #if 0 out, seems unused.
2545 (md_atof): Remove declaration of atof_ieee.
2546 (restore_colon): Prototype.
2547 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2548 (frv_find_in_vliw): Likewise.
2549 (frv_debug_tomcat): Likewise.
2550 (frv_adjust_vliw_count): Likewise.
2551 (frv_tomcat_shuffle): Likewise.
2552 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2553 frv_find_in_vliw call.
2554 (md_atof): Remove declaration of atof_ieee.
2555 * config/tc-h8500.c (cons): Delete declaration.
2556 (md_begin <opcode>): Constify.
2557 (displacement_size, immediate_size, absolute_size): Remove.
2558 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2559 (tc_crawl_symbol_chain <headers>): Likewise.
2560 (md_undefined_symbol <name>): Likewise.
2561 (tc_headers_hook <headers>): Likewise.
2562 (md_parse_option <c,arg>): Likewise.
2563 (md_show_usage <stream>): Likewise.
2564 (md_convert_frag <headers, seg>): Likewise.
2565 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2566 (md_atof): Remove declaration of atof_ieee.
2567 (tc_aout_fix_to_chars): Remove unused function.
2568 (parse_reg): Prototype.
2569 (parse_exp): Prototype.
2570 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2571 (parse_reglist): Prototype.
2572 (get_operand): Prototype.
2573 (get_operands): Prototype.
2574 (get_specific): Prototype. Make "this_index" signed.
2575 (check): Prototype, make static.
2577 (build_relaxable_instruction): Prototype, make static.
2578 (build_bytes): Prototype.
2579 (wordify_scb): Prototype.
2580 * config/tc-h8500.h (start_label): Declare.
2581 (tc_coff_sizemachdep): Declare.
2582 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2583 (i370_rmode <unused>): Likewise.
2584 (i370_csect <unused>): Likewise.
2585 (i370_dc <unused>): Likewise.
2586 (i370_ds <unused>): Likewise.
2587 (i370_elf_lcomm <unused>): Likewise.
2588 (i370_ltorg <ignore>): Likewise.
2589 (i370_using <ignore>): Likewise.
2590 (i370_drop <ignore>): Likewise.
2591 (i370_byte <ignore>): Likewise.
2592 (i370_tc <ignore>): Likewise.
2593 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2594 (md_convert_frag <all args>): Likewise.
2595 (md_undefined_symbol <name>): Likewise.
2596 (md_pcrel_from_section <sec>): Likewise.
2597 (tc_gen_reloc <seg>): Likewise.
2598 (i370_section_letter): #if 0 unused functions.
2599 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2600 (symbol_locate): Prototype.
2601 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2602 (md_number_to_disp, md_number_to_field): Remove.
2603 (md_apply_fix3): Correct format string and cast "fup".
2604 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2605 (s_endian <ignore>): Likewise.
2606 (md_undefined_symbol <name>): Likewise.
2607 (tc_crawl_symbol_chain <headers>): Likewise.
2608 (tc_set_bal_of_call): Likewise.
2609 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2610 (i960_handle_align <fragp>): Likewise.
2611 (i960_validate_fix <this_segment_type>): Likewise
2612 (tc_gen_reloc <section>): Likewise.
2613 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2614 (struct memS, struct regop): Forward declare.
2615 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2616 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2617 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2618 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2619 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2620 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2621 (md_number_to_field): Likewise.
2622 (md_number_to_disp): Remove unused function.
2623 (md_atof): Remove declaration of atof_ieee.
2624 (md_apply_fix3): Correct md_number_to_imm call.
2625 * config/tc-ip2k.c (md_assemble): Warning fix.
2626 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2627 (fill_insn <ignore>): Likewise.
2628 (debug_sym <ignore>): Likewise.
2629 (md_undefined_symbol <name>): Likewise.
2630 (m32r_scomm <ignore>): Likewise.
2631 (md_convert_frag <abfd>): Likewise.
2632 (md_cgen_lookup_reloc <insn>): Likewise.
2633 (m32r_record_hi16 <seg>): Likewise.
2634 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2635 (allow_m32rx): Prototype.
2636 (first_writes_to_seconds_operands): Prototype.
2637 (writes_to_pc): Prototype.
2638 (can_make_parallel): Prototype.
2639 (make_parallel): Prototype.
2640 (target_make_parallel): Prototype.
2641 (assemble_two_insns): Prototype.
2642 (m32r_record_hi16): Prototype.
2643 (md_atof): Remove declaration of atof_ieee.
2644 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2645 (m32r_force_relocation): Prototype.
2646 (m32r_elf_section_change_hook): Prototype.
2647 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2648 (md_show_usage): Fix signed/unsigned warning.
2649 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2650 (calcop): Ditto for reg_prefix var.
2651 (hexval): Add cast to fix signed/unsigned warning.
2652 (md_number_to_disp): Delete unused function.
2653 (md_number_to_field): Likewise.
2654 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2655 (match_name): Prototype.
2656 (get_bf2): Prototype.
2657 (get_bf_offset_expression): Prototype.
2658 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2659 (md_undefined_symbol <ignore>): Likewise.
2660 (md_create_short_jump <all args>): Likewise.
2661 (md_create_long_jump <all args>): Likewise.
2662 (md_convert_frag <abfd, sec>): Likewise.
2663 (md_apply_fix3 <segment>): Likewise.
2664 (md_section_align <segment>): Likewise.
2665 (md_pcrel_from_section <sec>): Likewise.
2666 (tc_gen_reloc <section>): Likewise.
2667 (reg_m, reg_n, immediate): Delete unused vars.
2668 (dump_literals): Fix signed/unsigned warning.
2669 (enter_literal): Likewise.
2670 (parse_imm): Likewise. Also fix format string.
2671 (parse_mem): Remove unused var.
2672 (md_assemble <LS>): Abort on unexpected inst.
2673 (md_atof): Remove declaration of atof_ieee.
2674 (md_parse_option): Remove unused vars.
2675 (md_apply_fix3): Fix format strings, cast args.
2676 (tc_gen_reloc): Delete unused var.
2677 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2678 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2679 (md_undefined_symbol <name>): Likewise.
2680 (md_convert_frag <abfd>): Likewise.
2681 (tc_gen_reloc <seg>): Likewise.
2682 (check_operand <insn>): Likewise.
2683 (md_convert_frag): Fix format strings.
2684 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2685 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2686 (md_atof): Remove declaration of atof_ieee.
2687 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2688 (md_apply_fix3): Fix bogus >>='s.
2689 (md_undefined_symbol): Delete unused var.
2690 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2691 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2692 (fake_opcode): Adjust for pj_opc_int_t change.
2693 (md_begin): Likewise.
2694 (md_assemble): Likewise.
2695 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2696 instead of non-existent third arg of parse_exp_save_ilp.
2697 (md_parse_option): Correct "little" and "big" calls.
2698 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2699 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2700 (tc_gen_reloc <section>): Likewise.
2701 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2702 (debug): Rewrite using VA_* macros.
2703 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2704 (md_convert_frag): Likewise.
2705 (md_parse_option): Likewise.
2706 (md_show_usage): Likewise.
2707 (md_undefined_symbol): Likewise.
2708 (tc_gen_reloc): Likewise.
2709 (md_operand): Likewise.
2710 (tc_aout_pre_write_hook): Delete.
2711 (struct tic30_insn): Make "operands" unsigned.
2712 (struct tic30_par_insn): Likewise.
2713 (md_assemble): Likewise for "count", "i" and "numops".
2714 (tic30_parallel_insn): Likewise for vars here.
2715 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2716 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2717 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2718 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2719 (md_undefined_symbol): Likewise.
2720 (md_parse_option): Likewise.
2721 (md_convert_frag): Likewise.
2722 (tc_coff_symbol_emit_hook): Likewise.
2723 (md_atof): Remove declaration of atof_ieee.
2724 (const_overflow): Warning fixes, tidy.
2725 (get_operands): Delete unused vars.
2726 (internal_error_a): Adjust format string to expect a long for arg.
2727 (find_opcode): Warning fixes, simplify.
2728 (build_insn): Cast internal_error_a arg.
2729 (md_begin): Likewise.
2730 (md_apply_fix3): Likewise.
2731 (md_assemble): Delete unused var.
2732 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2733 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2734 (whatreg, parse_reg, parse_exp): Make static, prototype.
2735 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2736 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2737 (get_operand, get_operands, get_specific, newfix): Likewise.
2738 (apply_fix, build_bytes): Likewise.
2739 (md_atof): Remove declaration of atof_ieee.
2740 (tc_aout_fix_to_chars): Delete.
2741 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2743 (md_parse_option): Fix s_segm and s_unseg calls.
2745 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2747 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2749 (RELAX_BRANCH_RELOC_S2): Delete.
2750 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2751 Do not handle BFD_RELOC_16_PCREL.
2752 (macro_build, mips_ip): Likewise.
2753 (md_pcrel_from): Return 4 for undefined symbols regardless of
2755 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2756 Don't dereference howto if no such relocation is available.
2757 Do not apply hack for in-place zero addend in NEWABI.
2758 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2760 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2761 Alan Modra <amodra@bigpond.net.au>
2763 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2764 (TC_LINKRELAX_FIXUP): Add comments.
2766 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2768 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2770 (r_register_name, xr_register_name): Add prototype declarations.
2772 2002-12-08 H.J. Lu <hjl@gnu.org>
2774 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2775 copied from tc-i386.c.
2777 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2779 Fix Bug savannah/1825:
2780 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2781 (md_relax_table): Define specific relax for PC-rel offsets.
2782 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2783 (m68hc11_relax_frag): Handle the new relax code.
2784 (md_convert_frag): Likewise.
2785 (md_estimate_size_before_relax): Likewise.
2787 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2789 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2791 2002-12-05 Richard Henderson <rth@redhat.com>
2793 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2794 (ia64_gen_real_reloc_type): Handle it.
2795 (pseudo_func): Add @ltoffx.
2796 (md_begin): Build .<ltoffx>.
2797 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2799 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2801 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2802 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2803 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2804 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2805 COFF to call arm_force_relocation.
2807 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2809 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2811 (emit_one_bundle): Handle "hint" instruction.
2812 (operand_match): Match IA64_OPND_AR_CSD.
2814 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2816 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2819 2002-12-03 Nick Clifton <nickc@redhat.com>
2821 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2822 .PPC.EMB.apuinfo sections.
2824 2002-12-03 Richard Henderson <rth@redhat.com>
2826 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2828 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2830 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2831 (cons, s_align_bytes): Delete declaration.
2833 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2835 (dot): Delete unused function.
2836 (w65_expression): Remove unused arg.
2837 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2839 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2841 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2843 (check): Remove unused function.
2844 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2845 on unhandled switch case.
2846 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2848 (tc_crawl_symbol_chain): Delete unused function.
2849 (tc_headers_hook): Likewise.
2850 (tc_Nout_fix_to_chars): Likewise.
2851 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2852 (md_parse_option): Likewise.
2853 (md_convert_frag): Likewise.
2854 (tc_coff_symbol_emit_hook): Likewise.
2855 (md_show_usage): Likewise.
2856 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2857 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2858 (w65_expression): Declare.
2860 * po/POTFILES.in: Regenerate.
2862 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2863 and ARM_ADRL_IMMEDIATE.
2865 2002-12-02 Nick Clifton <nickc@redhat.com>
2867 * gasp.c: Delete. It has been deprecated.
2868 * NEWS: Mention that gasp has been removed.
2869 * Makefile.am: Remove references to gasp.
2870 * makefile.vms: Likewise.
2871 * mpw-make.sed: Likewise.
2872 * Makeile.in: Regenerate.
2873 * doc/gasp.texi: Delete.
2874 * doc/Makefile.am: Remove references to gasp.texi.
2875 * doc/Makefile.in: Regenerate.
2876 * macro.c: Delete references to gasp.
2877 Remove use of comment_char function parameter as it is no longer
2879 * macro.h: Update prototypes to remove comment_char parameter.
2881 * read.c (read_a_source_file, s_irp): Remove comment_char
2882 parameter from invocation of functions in macro.c
2884 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2886 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2888 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2890 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2891 (tc_gen_reloc): Mark section param as not used.
2893 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2895 Fix Bug savannah/1825:
2896 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2897 that are not pc-relative.
2898 (m68hc11_relax_frag): Declare.
2900 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2901 the offsetable indexed addressing modes (n,r).
2902 (build_insn): Cleanup some locals.
2903 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2904 relaxation of difference between two symbols of same section.
2905 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2906 only when this is a PC-relative operand and the offset is not absolute.
2907 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2908 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2909 be handled by m68hc11_relax_frag.
2911 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2913 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2914 (32-bit int, 64-bit double).
2915 (md_longopts): New options -mshort, -mlong, -mshort-double and
2916 -mlong-double to control the ABI.
2917 (md_show_usage): Update.
2918 (md_parse_option): Handle new options.
2919 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2921 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2923 * symbols.c (report_op_error): New function, broken out of ...
2924 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2927 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2929 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2930 for BFD_RELOC_32_PLT_PCREL.
2932 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2934 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2935 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2936 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2937 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2938 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2939 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2940 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2941 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2942 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2943 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2944 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2945 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2946 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2947 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2948 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2949 TRUE/FALSE. Formatting.
2951 2002-11-29 Nick Clifton <nickc@redhat.com>
2953 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2954 assume a value of zero.
2955 (do_bkpt): Likewise.
2957 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2959 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2960 for TLS relocations.
2962 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2964 * config/tc-ia64.c (md_apply_fix3): Add default case.
2966 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2968 * symbols.c (S_SET_THREAD_LOCAL): New function.
2969 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2970 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2971 for TLS relocations.
2972 * config/tc-ia64.c (md_apply_fix3): Likewise.
2973 * config/tc-alpha.c (md_apply_fix3): Likewise.
2975 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2977 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2980 2002-11-26 DJ Delorie <dj@redhat.com.
2982 * dwarf2dbg.c (scale_addr_delta): New.
2983 (size_inc_line_addr): Use it.
2984 (emit_inc_line_addr): Use it.
2986 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2988 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2989 (md_assemble): Don't pass on branches to constants as relaxable.
2992 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2994 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2996 2002-11-21 Randolph Chung <randolph@tausq.org>
2998 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2999 only if they have default visibility.
3001 2002-11-21 Richard Henderson <rth@redhat.com>
3003 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3006 2002-11-21 Alan Modra <amodra@bigpond.net.au>
3008 * config/tc-mcore.c (mcore_pool_count): New function.
3009 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3011 2002-11-20 Klee Dienes <kdienes@apple.com>
3013 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
3014 coalesce the name fields to use the same pointer.
3016 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
3017 the name fields to use the same pointer.
3018 (get_specific): Check for opcodes with the same name using strcmp
3019 as well as comparing the pointer.
3021 2002-11-20 Alan Modra <amodra@bigpond.net.au>
3023 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3026 2002-11-19 Richard Henderson <rth@redhat.com>
3028 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3029 visibility portion of st_other.
3031 2002-11-19 Klee Dienes <kdienes@apple.com>
3033 * config/tc-h8300.c (struct h8_instruction): New type, used to
3034 wrap h8_opcodes with length, noperands, idx, and size fields
3035 (computed at run-time).
3036 (h8_instructions): New variable.
3037 (md_begin): Allocate the storage for h8_instructions. Fill
3038 h8_instructions with pointers to the appropriate opcode and the
3039 correct value for the additional fields.
3040 (clever_message): Update to use h8_instructions instead of
3042 (build_bytes): Ditto.
3043 (get_specific): Ditto.
3044 (md_assemble): Ditto.
3046 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3048 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3049 adjustments to symbols in merge sections.
3051 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
3053 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3055 2002-11-18 Kevin Buettner <kevinb@redhat.com>
3057 * dwarf2dbg.h (dwarf2_format): New enum.
3058 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3059 (out_debug_line, out_debug_info): Add code for handling 64-bit
3061 * config/tc-mips.h (mips_dwarf2_format): Declare.
3062 * config/tc-mips.c (mips_dwarf2_format): New function.
3063 * doc/internals.texi (DWARF2_FORMAT): Document.
3065 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
3067 * config/tc-mips.c (s_change_section): Make sure input buffer
3068 is not accessed past the end. Don't hand
3069 obj_elf_change_section a pointer into the input buffer.
3071 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
3073 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3076 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3078 * config/tc-tic4x.c: Fixed proper commandline
3079 parameters. Added support for new opcode-list format. General
3080 error message fixups.
3081 (c4x_inst_add): Reject insn not for our CPU
3082 (md_begin): Added matrix for setting the proper opcode-level &
3083 device-flags according to cpu type and revision. Rewrite the
3085 (c4x_operand_parse): Fix opcode bug
3086 (c4x_operands_match): New function argument. Added dry-run
3087 mechanism, that is optional error generation. Added constraint 'i'
3089 (c4x_insn_check): Added new function for post-verification of the
3091 (md_assemble): Check all opcodes before croaking because of an
3092 argument mismatch. Need this to be able to fully support
3093 ortogonally arguments.
3094 (md_parse_options): Revised commandprompt swicthes and added new
3096 (md_show_usage): Complete rewrite of printout.
3098 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3100 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3101 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3102 warning when using constant direct bigger than 2^16. Add the new
3105 2002-11-11 Christopher Faylor <cgf@redhat.com>
3107 * configure.in: Use .gdbinit under Cygwin.
3108 * configure: Regenerate.
3110 2002-11-11 Christopher Faylor <cgf@redhat.com>
3112 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3115 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3117 * config/tc-tic4x.c: Declare as many functions as possible as
3118 static. Maintenance on the general indenting. Removed unnecessary
3119 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3120 function. Add support for new DSP, TMS320VC33. Fix bug for
3121 converting flonum constants.
3122 (c4x_do_align): Add proper align handling. Setup align to insert
3124 (c4x_gen_to_words): Support for extended TI type floats.
3125 (md_atof): Proper dumping of multiple-word littlenums.
3126 (c4x_atof): Added support for extended TI type floats.
3127 (c4x_stringer): Added new function to handle compact strings.
3128 (c4x_emit_char): Added new function argument to handle custom
3129 length inserts, like single-byte strings.
3130 * config/tc-tic4x.h: Add proper align handling with NOP's.
3131 * Makefile.am: Added tic4x dependecy
3132 * Makefile.in: Regenerate
3134 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3136 * macro.c (get_any_string): Correct logic for not going beyond end
3139 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3141 * config/tc-mmix.c (get_putget_operands): Mark both possible
3142 operands as invalid at beginning.
3144 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3145 Initialize target of fixup to zero.
3147 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3149 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3150 NEWABI, but we should still emit HI16_S for non-PIC n32.
3152 2002-11-06 Richard Henderson <rth@redhat.com>
3154 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3155 (alpha_fix_adjustable): ... here.
3156 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3158 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3160 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3163 2002-11-05 H.J. Lu <hjl@gnu.org>
3165 * config/tc-mips.c (support_64bit_objects): Check *l before it
3168 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3170 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3171 SEC_LOAD flags for sections marked as 's'.
3173 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3175 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3176 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3177 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3180 * dep-in.sed: Fix typo.
3182 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3184 * configure.in: Update ARM CPU patterns.
3185 * configure: Regenerated.
3187 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3189 * itbl-lex.l: Use #include <> for generated headers.
3190 * itbl-ops.c: Likewise.
3192 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3194 * doc/gasp.texi: Fix typo in deprecation note.
3196 2002-10-23 Nick Clifton <nickc@redhat.com>
3198 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3199 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3201 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3203 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3204 (tc_frob_file_before_adjust): Don't define.
3205 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3207 (mmix_frob_file_before_adjust): Remove ineffective function.
3209 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3211 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3212 (cris_relax_frag): New function.
3213 (md_estimate_size_before_relax) <case ENCODE_RELAX
3214 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3215 expressions that will become absolute expressions to relaxation.
3216 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3217 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3218 value, not distance to symbol.
3219 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3220 Ditto. Correct placement of fixup.
3221 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3223 * config/tc-cris.h (cris_relax_frag): Declare.
3224 (md_relax_frag): Define.
3226 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3228 * config/obj-elf.c (special_sections): Use correct types for init
3230 (obj_elf_change_section): Don't mess with init array section type.
3232 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3234 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3235 for relocs against symbols in a merged section.
3237 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3239 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3240 table as register names.
3242 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3244 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3247 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3249 * expr.c (operand): Add support for n.nn flonums.
3251 2002-10-17 Johannes Stezenbach <js@convergence.de>
3253 * itbl-parse.y (entry): Provide empty action.
3255 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3257 * configure.in (BFDVER_H): Set and subst.
3258 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3259 * Makefile.am: Run "make dep-am".
3261 * configure: Regenerate.
3262 * Makefile.in: Regenerate.
3263 * doc/Makefile.in: Regenerate.
3265 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3267 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3268 (MD_APPLY_SYM_VALUE): Define for PE too.
3270 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3272 * Makefile.am: Run "make dep-am".
3273 (CPU_OBJ_VALID): sh64 coff is invalid.
3274 * as.c: #include "bfdver.h".
3275 * Makefile.in: Regenerate.
3276 * config.in: Regenerate.
3278 2002-10-14 Momchil Velikov <velco@fadata.bg>
3280 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3282 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3284 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3285 * configure: Regenerate.
3287 2002-10-13 Eric Christopher <echristo@redhat.com>
3288 Alexandre Oliva <aoliva@redhat.com>
3290 * config/tc-mips.c (s_gpdword): New function.
3291 (mips_pseudo_table): Add .gpdword.
3292 (mips_need_elf_addend_fixup): never for NEWABI.
3293 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3295 (s_cpadd): Generate .cpadd on NEWABI.
3297 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3299 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3301 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3303 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3304 (md_relax_frag): Adjust macro.
3305 * config/tc-mips.c (mips_relax_branch): New variable.
3306 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3307 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3308 (RELAX_MIPS16_P): Adjust.
3309 (append_insn): Emit branch to non-constant in a frag_var if
3310 branch-relaxation is desirable and possible.
3311 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3312 (OPTION_ELF_BASE): Adjust.
3313 (md_parse_option): Handle new options.
3314 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3316 (relaxed_branch_length): New function.
3317 (md_estimate_size_before_relax): Handle branch frags.
3318 (mips_relax_frag): Likewise.
3319 (md_convert_frag): Handle branch frags. Warn if branch is
3322 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3324 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3326 (md_apply_fix3): Add TLS relocs.
3327 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3330 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3331 Alan Modra <amodra@bigpond.net.au>
3333 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3334 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3336 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3338 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3341 2002-10-09 Richard Shann <richard.shann@superh.com>
3342 Stephen Clarke <stephen.clarke@superh.com>
3344 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3347 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3349 * contig/tc-sh.c (sh_local_pcrel): New.
3350 (sh_force_relocation): Use sh_local_pcrel.
3351 (md_pcrel_from_section): Check the relocation type whether it
3352 should be resolved locally. Use S_FORCE_RELOC.
3354 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3356 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3357 (TC_FORCE_RELOCATION): Tidy arg.
3359 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3360 Ken Raeburn <raeburn@cygnus.com>
3361 Aldy Hernandez <aldyh@redhat.com>
3362 DJ Delorie <dj@redhat.com>
3363 Michael Meissner <meissner@redhat.com>
3364 Eric Christopher <echristo@redhat.com>
3365 Richard Sandiford <rsandifo@redhat.com>
3367 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3368 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3369 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3370 (hilo_interlocks): True for CPU_VR5500.
3371 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3372 (mips_fix_vr4122_bugs): New.
3373 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3374 (mips_emit_delays): Likewise.
3375 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3376 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3377 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3378 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3379 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3380 (OPTION_ELF_BASE): Bump.
3381 (md_parse_option): Handle the new options.
3382 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3385 2002-09-29 H.J. Lu <hjl@gnu.org>
3387 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3388 twice if howto->pcrel_offset is true.
3390 2002-09-28 Matt Thomas <matt@3am-software.com>
3391 Jason Thorpe <thorpej@wasabisystems.com>
3393 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3394 convert undefined references to GOT32/PLT32 if PIC code is
3395 requested. Fix comment.
3397 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3399 * config/tc-sh.c (sh_force_relocation): Return 0 for
3400 some PC relative relocations when not relaxing.
3402 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3404 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3405 Define them if not BFD_ASSEMBLER.
3406 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3408 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3409 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3410 (tc_gen_reloc): Handle x86-64 TLS relocs.
3412 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3414 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3415 fixups to current or absolute section.
3417 2002-09-26 Jim Wilson <wilson@redhat.com>
3419 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3422 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3424 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3425 capable configuration.
3426 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3428 (mips_ip): Likewise.
3430 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3432 * config/tc-mips.c (append_insn): Fix jump overflow check.
3434 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3436 * config/tc-i386.c (process_operands): Warn about "lea" segment
3439 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3441 * write.c: Delete set_segment_vma and prototype. Update all callers.
3443 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3445 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3446 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3447 Rename "fseg" to "sym_seg".
3448 * Makefile.am: Run "make dep-am".
3449 * Makefile.in: Regenerate.
3450 * doc/Makefile.in: Regenerate.
3452 2002-09-20 Nick Clifton <nickc@redhat.com>
3454 * symbols.c (colon): Do not allow symbols to be created in the
3455 absolute section if WORKING_DOT_WORD is not defined and
3456 new_broken_words would require a new frag to be created.
3458 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3460 * expr.c (expr): Simplify foo-foo here.
3461 (clean_up_expression): Remove O_subtract code.
3463 * write.h (struct fix): Add fx_dot_value.
3464 (dot_value): Declare.
3465 * write.c (dot_value): New var.
3466 (fix_new_internal): Save dot_value as fx_dot_value.
3467 (fixup_segment): Adjust fx_offset using fx_dot_value.
3468 * expr.c (expr): Update dot_value.
3470 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3472 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3473 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3474 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3476 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3477 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3478 BFD_RELOC_386_TLS_GOTIE.
3480 2002-09-19 Richard Henderson <rth@redhat.com>
3482 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3484 (alpha_force_relocation): Don't special-case branch type relocs.
3486 2002-09-19 Nick Clifton <nickc@redhat.com>
3488 * config/tc-m68k.c (select_control_regs): Handle situation where
3489 architecture has not yet been selected.
3491 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3493 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3494 (IS_SEXT_16BIT_NUM): New macro.
3495 (macro_build_ldst_constoffset): New function, to build a set of
3496 instructions to do a load or store from a constant offset relative
3497 to a given register.
3498 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3499 .cprestore pseudo-op.
3501 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3503 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3505 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3507 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3509 2002-09-17 Stan Cox <scox@redhat.com>
3511 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3512 (macro): Likewise for la. Likewise for ld.
3513 (mips_after_parse_args): Make -xgot optional, not the default.
3514 (md_apply_fix3): Allow composite relocation to set up gp.
3515 (tc_gen_reloc): Allow relaxing for newabi.
3516 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3517 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3519 2002-09-17 Nick Clifton <nickc@redhat.com>
3521 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3522 BFD_RELOC_ARM_IMMEDIATE has been done.
3523 (tc_gen_reloc): Do not issue reloc number of unimplemented
3524 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3525 their name is already in the error message - plus remove them
3526 from the default case.
3528 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3529 behavior of instructions.
3531 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3533 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3534 Convert functions to K&R format.
3536 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3538 * config/tc-mips.c (pdr_seg): Define only for ELF.
3539 (s_change_section): Remove unused variable. Don't use for nonELF.
3541 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3543 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3545 * config/obj-elf.h (obj_elf_change_section): Likewise.
3547 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3549 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3550 (out_debug_info): Likewise.
3552 2002-09-16 Bruno Haible <bruno@clisp.org>
3554 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3555 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3556 * config/tc-i386.c (i386_target_format): Likewise.
3557 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3558 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3560 2002-09-13 Nick Clifton <nickc@redhat.com>
3562 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3563 when deciding if any operands have been skipped.
3565 2002-09-11 Nick Clifton <nickc@redhat.com>
3567 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3569 * po/tr.po: Updated Turkish translation.
3571 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3573 * config/tc-i386.c (md_apply_fix3): Allow addend for
3574 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3575 BFD_RELOC_386_TLS_LE_32.
3577 2002-09-05 Jeff Law <law@redhat.com>
3579 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3580 marker relocations such as ENTRY/EXIT.
3581 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3582 to both OBJ_ELF and OBJ_SOM.
3584 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3586 * doc/internals.texi (md_apply_fix3): Expand.
3587 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3588 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3589 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3590 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3591 EXTERN_FORCE_RELOC): Document.
3592 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3593 * as.h: Don't include struc-symbol.h for arc.
3595 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3596 subtract absolute symbol.
3597 * obj.h (struct format_ops): Add frob_file_before_fix.
3598 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3599 * symbols.c (S_FORCE_RELOC): New function.
3600 * symbols.h (S_FORCE_RELOC): Declare.
3601 * write.c (TC_FORCE_RELOCATION): Change default.
3602 (TC_FORCE_RELOCATION_ABS): Define.
3603 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3604 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3605 (TC_FORCE_RELOCATION_SECTION): Don't define.
3606 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3607 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3608 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3609 (TC_VALIDATE_FIX_SUB): Define.
3610 (TC_FIX_ADJUSTABLE): Don't define.
3611 (MD_APPLY_SYM_VALUE): Define this instead.
3612 (abs_section_sym): New variable.
3613 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3614 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3615 Don't put the absolute section sym on fixups here.
3616 (fix_segment): New function.
3617 (write_relocs): Don't call fixup_segment from here.
3618 (write_object_file): Instead call tc_frob_file_before_fix,
3619 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3620 Don't output the absolute section symbol.
3621 (fixup_segment): Rewrite.
3622 * write.h (abs_section_sym): Declare.
3623 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3625 (aout_format_ops): Adjust to suit.
3626 * config/obj-aout.h (obj_frob_file): Don't define.
3627 (obj_frob_file_before_fix): Define.
3628 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3629 (S_FORCE_RELOC): Define.
3630 * config/obj-bout.h (S_FORCE_RELOC): Define.
3631 * config/obj-coff.c (coff_format_ops): Init new field.
3632 * config/obj-coff.h: Formatting fixes.
3633 (obj_sec_sym_ok_for_reloc): Define.
3634 (S_FORCE_RELOC): Define.
3635 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3636 (ecoff_frob_file): .. from here.
3637 (ecoff_format_ops): Add new function.
3638 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3639 (obj_frob_file_before_fix): Define.
3640 * config/obj-elf.c (elf_format_ops): Init new field.
3641 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3642 * config/obj-ieee.h: Formatting fixes.
3643 (S_FORCE_RELOC): Define.
3644 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3645 * config/obj-vms.h (S_FORCE_RELOC): Define.
3646 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3647 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3648 for BFD_RELOC_32 and BFD_RELOC_64.
3649 (alpha_fix_adjustable): Remove extern and weak tests.
3650 (alpha_before_fix): Rename from alpha_adjust_symtab.
3651 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3652 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3653 (TC_VALIDATE_FIX): Tweak param name.
3654 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3655 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3656 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3657 (MD_APPLY_SYM_VALUE): Define.
3658 (tc_adjust_symtab): Don't define.
3659 (alpha_adjust_symtab): Don't declare.
3660 (tc_frob_file_before_fix): Define.
3661 (alpha_before_fix): Declare.
3662 (TC_INIT_FIX_DATA): Tweak param names.
3663 * config/tc-arc.c: Include "struc-symbol.h".
3664 (md_pcrel_from): Remove undefined sym fudge.
3665 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3666 Don't set fx_addnumber.
3667 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3668 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3669 (EXTERN_FORCE_RELOC): Define.
3670 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3671 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3672 (arm_validate_fix): Return void.
3673 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3674 Add plt and got reloc tests.
3675 (arm_force_relocation): Call S_FORCE_RELOC.
3676 * config/tc-arm.h (struct fix): Forward declare.
3677 (TC_VALIDATE_FIX): No longer set add_symbolP.
3678 (arm_validate_fix): Adjust declaration.
3679 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3680 (TC_FORCE_RELOCATION): Tweak param name.
3681 (TC_INIT_FIX_DATA): Likewise.
3682 (obj_fix_adjustable): Don't define.
3683 (tc_fix_adjustable): Call arm_fix_adjustable.
3684 (TC_FIX_ADJUSTABLE): Don't define.
3685 (MD_APPLY_SYM_VALUE): Define.
3686 (EXTERN_FORCE_RELOC): Define.
3687 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3688 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3689 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3690 Remove *valP fudges and code to subtract abs sym. Don't set
3692 * config/tc-avr.h: Formatting.
3693 (EXTERN_FORCE_RELOC): Define.
3694 (MD_APPLY_SYM_VALUE): Define.
3695 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3696 (md_apply_fix3): Remove code to subtract abs sym.
3697 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3698 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3699 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3700 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3701 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3702 (tc_fix_adjustable): Remove extern, weak tests.
3703 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3704 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3705 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3706 and code to subtract abs sym.
3707 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3708 (d10v_force_relocation): Call S_FORCE_RELOC.
3709 * config/tc-d10v.h: Don't include write.h.
3710 (struct fix): Instead, forward declare.
3711 (MD_PCREL_FROM_SECTION): Tweak param names.
3712 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3713 (d10v_fix_adjustable): Likewise.
3714 (obj_fix_adjustable): Don't define.
3715 (tc_fix_adjustable): Define.
3716 (TC_FORCE_RELOCATION): Tweak param name.
3717 (MD_APPLY_SYM_VALUE): Define.
3718 (EXTERN_FORCE_RELOC): Define.
3719 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3720 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3721 and code to subtract abs sym.
3722 * config/tc-d30v.h: Don't include write.h.
3723 (struct fix): Instead, forward declare.
3724 (MD_PCREL_FROM_SECTION): Tweak param names.
3725 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3726 (MD_APPLY_SYM_VALUE): Define.
3727 (EXTERN_FORCE_RELOC): Define.
3728 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3729 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3730 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3731 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3732 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3733 Don't use fx_addnumber.
3734 * config/tc-dlx.h: Don't include write.h.
3735 (md_convert_frag): We're not alpha twice over.
3736 (EXTERN_FORCE_RELOC): Define.
3737 (obj_fix_adjustable): Don't define.
3738 (tc_fix_adjustable): Define.
3739 (TC_FIX_ADJUSTABLE): Don't define.
3740 (MD_APPLY_SYM_VALUE): Define.
3741 (LOCAL_LABELS_DOLLAR): Undef always.
3742 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3743 (fr30_fix_adjustable): Remove extern, weak tests.
3744 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3745 (obj_fix_adjustable): Don't define.
3746 (tc_fix_adjustable): Define.
3747 (struct fix): Forward declare.
3748 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3749 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3750 (frv_fix_adjustable): Don't do extern, weak tests.
3751 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3752 (TC_FIX_ADJUSTABLE): Don't define.
3753 (obj_fix_adjustable): Don't define.
3754 (tc_fix_adjustable): Define.
3755 (struct fix): Forward declare.
3756 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3757 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3758 * config/tc-h8300.h (struct fix): Forward declare.
3759 (EXTERN_FORCE_RELOC): Define.
3760 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3761 (hppa_fix_adjustable): Don't test extern or weak. Don't
3762 symbol_mark_used_in_reloc.
3763 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3765 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3766 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3767 (TC_FORCE_RELOCATION_SECTION): Don't define.
3768 (MD_APPLY_SYM_VALUE): Define.
3769 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3770 to subtract abs sym.
3771 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3772 (MD_APPLY_SYM_VALUE): Define.
3773 (MD_PCREL_FROM_SECTION): Tweak param name.
3774 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3775 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3776 (i386_force_relocation): New function.
3777 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3778 (TC_VALIDATE_FIX): Likewise.
3779 (TC_FIX_ADJUSTABLE): Don't define.
3780 (MD_APPLY_SYM_VALUE): Define.
3781 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3782 (i386_force_relocation): Declare.
3783 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3784 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3785 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3786 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3787 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3788 (EXTERN_FORCE_RELOC): Define.
3789 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3790 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3791 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3792 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3793 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3794 Remove #if 0 code. Invert return boolean.
3795 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3796 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3797 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3798 (tc_coff_sizemachdep): Prototype.
3799 (i960_handle_align): Likewise.
3800 (i960_validate_fix): Adjust declaration.
3801 (reloc_callj): Likewise.
3802 (EXTERN_FORCE_RELOC): Define.
3803 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3804 (TC_FORCE_RELOCATION_ABS): Define.
3805 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3806 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3807 (TC_FIX_ADJUSTABLE): Don't define.
3808 (MD_APPLY_SYM_VALUE): Define.
3809 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3810 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3811 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3812 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3813 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3814 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3815 (MD_APPLY_SYM_VALUE): Define.
3816 (EXTERN_FORCE_RELOC): Define.
3817 (TC_FORCE_RELOCATION): Tweak param name.
3818 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3819 (m32r_fix_adjustable): Don't test extern, weak.
3820 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3821 (MD_APPLY_SYM_VALUE): Define.
3822 (obj_fix_adjustable): Don't define.
3823 (tc_fix_adjustable): Define.
3824 (tc_frob_file): Don't define.
3825 (tc_frob_file_before_fix): Define.
3826 (EXTERN_FORCE_RELOC): Define.
3827 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3828 BFD_RELOC_VTABLE_ENTRY address.
3829 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3830 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3831 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3832 Remove duplicated fx_done code.
3833 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3834 (EXTERN_FORCE_RELOC): Define.
3835 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3837 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3838 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3839 (TC_FIX_ADJUSTABLE): Don't define.
3840 (EXTERN_FORCE_RELOC): Define.
3841 (MD_APPLY_SYM_VALUE): Define.
3842 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3843 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3844 Remove fx_addsy tests.
3845 (mcore_force_relocation): Call S_FORCE_RELOC.
3846 (mcore_fix_adjustable): Don't test fx_addsy.
3847 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3848 (EXTERN_FORCE_RELOC): Define.
3849 (obj_fix_adjustable): Don't define.
3850 (tc_fix_adjustable): Define.
3851 (MD_APPLY_SYM_VALUE): Define.
3852 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3853 (mips_pic): No longer static.
3854 (mips_force_relocation): Call S_FORCE_RELOC.
3855 (mips_fix_adjustable): Remove extern, weak tests.
3856 * config/tc-mips.h (enum mips_pic_level): Declare.
3857 (mips_pic): Declare.
3858 (tc_frob_file): Don't define.
3859 (tc_frob_file_before_fix): Define this instead.
3860 (EXTERN_FORCE_RELOC): Define.
3861 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3862 with reg_section tests. Set fx_done instead of calling
3863 symbol_clear_used_in_reloc on bad relocs.
3864 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3865 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3866 (mmix_adjust_symtab): Simplify list handling. Abort on any
3868 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3869 BFD_RELOC_MMIX_LOCAL.
3870 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3871 (EXTERN_FORCE_RELOC): Define.
3872 (MD_PCREL_FROM_SECTION): Tweak param name.
3873 (tc_frob_file): Don't define.
3874 (tc_frob_file_before_fix): Define this instead.
3875 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3876 Remove SEC_CODE checks.
3877 (mn10300_fix_adjustable): Remove extern and weak tests.
3878 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3879 (TC_FORCE_RELOCATION): Tweak param name.
3880 (obj_fix_adjustable): Don't define.
3881 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3882 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3883 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3884 (openrisc_fix_adjustable): Don't test fx_addsy.
3885 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3886 (obj_fix_adjustable): Don't define.
3887 (tc_fix_adjustable): Define this instead.
3888 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3889 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3890 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3891 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3892 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3893 (MD_APPLY_SYM_VALUE): Define.
3894 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3895 Don't subtract symbol value.
3896 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3897 (EXTERN_FORCE_RELOC): Define.
3898 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3899 (MD_APPLY_SYM_VALUE): Define.
3900 (obj_fix_adjustable): Don't define.
3901 (tc_fix_adjustable): Define this instead.
3902 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3904 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3905 (ppc_force_relocation <elf version>): New.
3906 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3907 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3908 comments. Don't subtract fx_subsy as that is already done.
3909 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3910 (MD_PCREL_FROM_SECTION): Likewise.
3911 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3912 ppc_force_relocation.
3913 (TC_FORCE_RELOCATION_SECTION): Delete.
3914 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3915 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3916 (MD_APPLY_SYM_VALUE): Define.
3917 * config/tc-s390.c: #include "dwarf2dbg.h".
3918 (s390_insn): Remove excess parens.
3919 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3920 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3921 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3922 non-NULL. Don't subtract off fx_addsy value.
3923 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3924 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3925 (TC_FIX_ADJUSTABLE): Don't define.
3926 (MD_APPLY_SYM_VALUE): Define.
3927 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3928 (SWITCH_TABLE): Likewise.
3929 (sh_force_relocation): Call S_FORCE_RELOC.
3930 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3931 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3932 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3933 fx_addnumber is zero on entry. Save val in fx_addnumber.
3934 (tc_gen_reloc): Don't subtract fx_subsy.
3935 * config/tc-sh.h (struct fix): Move.
3936 (obj_fix_adjustable): Don't define.
3937 (tc_fix_adjustable): Define this instead.
3938 (TC_FIX_ADJUSTABLE): Don't define.
3939 (MD_APPLY_SYM_VALUE): Define.
3940 (SWITCH_TABLE_CONS): Define.
3941 (SWITCH_TABLE): Define.
3942 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3943 (TC_VALIDATE_FIX_SUB): Define.
3944 (MD_PCREL_FROM_SECTION): Tweak param name.
3945 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3946 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3947 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3948 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3949 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3950 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3951 (TC_VALIDATE_FIX_SUB): Define.
3952 (MD_PCREL_FROM_SECTION): Tweak param name.
3953 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3954 (tc_gen_reloc): Use S_FORCE_RELOC.
3955 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3956 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3957 (TC_FORCE_RELOCATION_ABS): Define this instead.
3958 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3959 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3960 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3961 (MD_APPLY_SYM_VALUE): Define.
3962 (TC_FIX_DATA_PRINT): Tweak param name.
3963 * config/tc-tic30.c (USE_STDOUT): Don't define.
3964 (md_parse_option): Remove stupid debug code.
3965 (tc_gen_reloc): Don't use fx_addnumber.
3966 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3967 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3968 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3969 (tc_fix_adjustable): Define this instead.
3970 (TC_FIX_ADJUSTABLE): Don't define.
3971 (MD_APPLY_SYM_VALUE): Define this instead.
3972 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3973 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3974 (TC_FIX_ADJUSTABLE): Don't define.
3975 (MD_APPLY_SYM_VALUE): Define this instead.
3976 (tc_fix_adjustable): Remove extern and weak tests.
3977 * config/tc-w65.h (struct fix): Forward declare.
3978 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3980 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3981 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3982 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3984 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3985 (MD_APPLY_SYM_VALUE): Define.
3986 (obj_fix_adjustable): Don't define.
3987 (tc_fix_adjustable): Define this instead.
3988 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3990 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3992 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3993 (ppc_fix_adjustable <coff version>): Cleanup.
3995 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3996 (md_parse_option): No -a64 without BFD64.
3997 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3998 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4000 2002-09-04 Nick Clifton <nickc@redhat.com>
4002 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4003 instructions into the hash table if the target cpu is the BookE32.
4005 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
4007 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4010 2000-08-28 Catherine Moore <clm@redhat.com>
4012 * tc-v850.c (v850_relax): Declare.
4013 (v850_longcode): New routine.
4014 (v850_handle_align): New routine.
4015 (md_pseudo_table): Add longcall and longjump.
4016 (md_parse_option): Check for relax option.
4017 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4018 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4019 (md_apply_fix3): Likewise.
4020 (v850_force_relocation): Likewise.
4021 (v850_comm): Change the current section.
4022 (md_assemble): Ensure that the correct value is put in the
4024 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4025 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4026 Remove redundant v850ea support.
4027 * tc-v850.h (HANDLE_ALIGN): Define.
4028 (v850_handle_align): Declare.
4029 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4031 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
4033 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4034 * configure: Regenerate.
4035 * NEWS: Mention new port.
4037 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4039 * config/obj-coff.c: Add sdef definition.
4040 * config/obj-coff.h: Add tic4x include file and set
4042 * config/tc-tic4x.c: New file.
4043 * config/tc-tic4x.h: New file.
4045 2002-08-28 Alan Modra <amodra@bigpond.net.au>
4047 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4048 (TC_ADJUST_RELOC_COUNT): Tweak param name.
4049 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4050 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4051 (RELOC_ENUM): Define.
4052 (fix_new_internal): Use RELOC_ENUM.
4053 (fix_new, fix_new_exp): Likewise.
4054 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
4055 Replace gotos with continue.
4056 (write_relocs): Formatting. Avoid symbol loops in
4057 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
4058 errors, and error number in other cases.
4059 (fixup_segment): Remove param names from prototype. Rename
4060 "this_segment_type" to "this_segment". Update linkrelax comment.
4061 Remove "size, "place" and "where" local vars. Formatting. Update
4062 "no symbol" comment. Remove #if 0 and #if 1.
4064 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
4066 2002-08-27 Alan Modra <amodra@bigpond.net.au>
4068 * dwarf2dbg.c: Always include dwarf2dbg.h.
4069 (dwarf2_directive_file): Adjust dummy version args.
4070 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4071 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4072 when symbol values differ.
4073 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4074 (pseudo_set <O_subtract>): Remove unnecessary segment test.
4075 * config/obj-bout.c (obj_pseudo_table): Warning fix.
4077 2002-08-26 Alan Modra <amodra@bigpond.net.au>
4079 * config/tc-w65.c (md_section_align): Fix typo.
4080 (md_parse_option): Return 0, not 1.
4082 2002-08-22 Nick Clifton <nickc@redhat.com>
4084 * doc/as.texinfo (Section): Note that if '@' is a comment
4085 character then another symbol is used to prefix the section's
4088 2002-08-22 Christian Groessler <chris@groessler.org>
4090 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4093 2002-08-12 Graeme Peterson <gp@qnx.com>
4095 * configure.in: Add support for sh-**-nto* target.
4096 * configure: Regenerate.
4098 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4100 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4102 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4104 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4106 (ppc_apuinfo_section_add): Define only if format is ELF.
4107 (md_assemble): Emit APUinfo section only if format is ELF.
4110 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4112 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4113 * config/tc-frv.c: Likewise.
4114 * config/tc-hppa.c: Likewise.
4115 * config/tc-ia64.c: Likewise.
4116 * config/tc-ip2k.c: Likewise.
4117 * config/tc-m68hc11.c: Likewise.
4118 * config/tc-m68k.c: Likewise.
4119 * config/tc-mmix.c: Likewise.
4120 * config/tc-mn10300.c: Likewise.
4121 * config/tc-sh.c: Likewise.
4122 * config/tc-sparc.c: Likewise.
4123 * config/tc-v850.c: Likewise.
4125 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4127 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4130 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4132 From matthew green <mrg@redhat.com>
4134 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4135 PPC_OPCODE_PPC is, except for BookE architectures.
4136 (md_parse_option): Add support for -mspe.
4137 (md_show_usage): Add -mspe.
4138 (md_parse_option): Add support for -me500 and
4139 -me500x2 to generate code for Motorola e500 core complex.
4140 (md_show_usage): Add -me500 and -me500x2.
4142 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4143 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4144 PPC_APUINFO_BRLOCK): New macros.
4146 (ppc_cleanup): New function.
4147 (ppc_apuinfo_section_add): New function.
4149 (md_assemble): Collect info and write the APUinfo section.
4151 * config/tc-ppc.h (md_cleanup): Define.
4152 (ppc_cleanup): Export.
4153 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4155 2002-08-17 Stan Cox <scox@redhat.com>
4157 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4158 config/tc-mips.c (s_change_section): New function to support
4159 IRIX .section pseudo-op.
4161 2002-08-16 Nick Clifton <nickc@redhat.com>
4163 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4165 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4167 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4168 the fix-up against on the right frag.
4169 (s_cpsetup): Likewise. Parse third argument as expression, to
4170 handle global symbols and forward/backward labels correctly.
4172 2002-08-14 Nick Clifton <nickc@redhat.com>
4174 * read.c (stringer): Catch attempts to create strings in the abs
4177 * config/tc-alpha.c: Fix compiling for COFF targets.
4178 Some minor formatting tidyups.
4180 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4182 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4183 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4184 according to the reloc.
4185 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4186 (TC_FORCE_RELOCATION): Define.
4187 (tc_m68hc11_force_relocation): Declare.
4189 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4190 (s_m68hc11_relax): New function for relax group.
4191 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4192 beginning of jump instruction.
4193 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4194 address computation.
4195 (tc-gen_reloc): Update.
4196 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4198 (tc_m68hc11_force_relocation): New function, handle new relocs.
4199 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4200 reloc for the linker relax pass.
4201 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4204 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4206 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4207 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4208 (s_m68hc11_mode): New function for .mode pseudo op.
4209 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4211 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4212 (m68hc11_elf_final_processing): Declare.
4214 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4216 * config/tc-m68hc11.c (md_begin): Take into account additional
4217 page operand for call instruction.
4218 (print_opcode_format): Likewise.
4219 (check_range): Likewise for page range checking.
4220 (get_operand): Don't skip a possible comma in operands.
4221 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4222 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4223 (fixup24): New to handle call reloc.
4224 (build_insn): Handle missing page operand for call instruction.
4226 (md_apply_fix3): Take into account new relocs.
4227 (get_operand): Fix the mode for indexed indirect addressing.
4228 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4230 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4232 * config/tc-mips.c (mips_ip): Don't work out the value of
4233 constant %hi()s here.
4235 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4237 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4238 for ELF, and don't bother checking ELF relocs when non-ELF.
4239 (i386_immediate): Allow absolute_section expressions for aout.
4240 (i386_displacement): Likewise. Also test bfd_is_com_section.
4241 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4242 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4243 not when fx_addsy. Remove dead code.
4245 2002-08-09 Graeme Peterson <gp@qnx.com>
4247 * configure.in: Add support for ppc-*-nto* target.
4248 * configure: Regenerate.
4250 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4252 * config/tc-i386.h: Reorganize.
4254 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4256 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4257 immediate offset in "dla" and "la" expansions.
4259 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4261 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4262 Remove "bfd_gas=yes" from target table when covered later.
4263 Consolidate some entries.
4264 * configure: Regenerate
4266 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4268 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4269 at start of insn, pass it to output_disp and output_imm.
4270 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4271 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4273 (output_imm): Added arguments. Compute properly addend for
4275 (md_apply_fix3): Remove R_386_GOTPC handling.
4277 2002-08-06 George France <france@handhelds.org>
4279 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4280 and m21264b processor names and cpu types.
4281 * doc/c-alpha.texi: Documented new types.
4283 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4285 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4287 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4289 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4290 handling to BFD_RELOC_MIPS16_GPREL.
4292 2002-08-01 Nick Clifton <nickc@redhat.com>
4294 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4295 pool is computed using signed arithmetic so that proper sign
4296 extension is performed if X_add_number is a 64-bit integer.
4298 2002-08-01 H.J. Lu <hjl@gnu.org>
4299 Daniel Jacobowitz <drow@mvista.com>
4301 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4302 .debug_line section unless it has line information.
4304 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4306 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4307 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4308 Allow default displacement size to be an option "--disp-size-default".
4309 (md_number_to_disp): Make error messages include value. Use %d to
4310 print integers, not %s.
4311 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4312 get duplicate messages sometimes.
4313 (convert_iif): Grow frag to max possible instruction size. Avoid
4314 creating unnecessary fixes.
4315 (md_number_to_field) Add prototype.
4316 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4317 prototypes and make static.
4318 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4319 (evaluate_expr): Use resultP argument instead of exprP global.
4320 (get_addr_mode): Quiten compiler warnings.
4321 (encode_operand): eliminate unused variables. Quiten compiler
4322 warnings. Eliminate nul character in format strings.
4323 (parse): argc is unsigned.
4324 (reloc): Type cast index to quieten compiler.
4325 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4326 (md_convert_frag): Note unused parameters. Remove unused
4328 (md_create_long_jump, md_create_short_jump,
4329 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4332 2002-07-31 Nick Clifton <nickc@redhat.com>
4334 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4335 of the PDP-11 and 2.11BSD a.out support.
4337 2002-07-31 Momchil Velikov <velco@fadata.bg>
4339 * config/tc-v850.c (md_assemble): Fix range check for immediate
4342 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4344 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4345 to Broadcom SB-1 core support.
4347 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4349 * config/tc-mips.c (mips_target_format): Fix formatting.
4350 Add recognition of n32 ABI formats.
4352 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4354 * tc-mips.c (load_address): Don't clobber $at when loading a
4355 64-bit address in non-PIC code if noat is in effect.
4358 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4360 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4361 used in division/multiply macro expansions similarly to how they
4362 are used in the variants with break instructions.
4365 2002-07-30 Graeme Peterson <gp@qnx.com>
4367 * configure.in: Add support for arm-*-nto target.
4368 * configure: Regenerate.
4370 2002-07-30 Nick Clifton <nickc@redhat.com>
4372 * config/tc-arm.c (struct literal_pool): Add fields to allow
4373 multiple literal pools to be maintained.
4374 (find_literal_pool): New function.
4375 (find_or_make_literal_pool): New function.
4376 (add_to_literal_pool): Use find_or_make_literal_pool.
4377 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4379 (s_ltorg): Use find_literal_pool.
4380 (arm_cleanup): Dump all literal pools.
4381 * doc/c-arm.texi: Document new behaviour of only dumping literal
4384 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4386 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4387 rather than PPC_OPCODE_32 for powerpc64*.
4389 2002-07-25 Nick Clifton <nickc@redhat.com>
4391 * po/es.po: Updated Spanish translation.
4392 * po/fr.po: Updated French translation.
4394 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4396 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4397 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4398 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4399 * configure, config.in: Regenerate.
4400 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4401 (mips_set_options): Remove "abi" field.
4402 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4405 (mips_arch_string, mips_arch_info): New vars.
4406 (mips_tune_string, mips_tune_info): New vars.
4407 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4408 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4409 (mips_isa_to_str, mips_cpu_to_str): Remove.
4410 (mips_ip): If the selected architecture is a generic ISA rather
4411 than a processor, only mention the ISA level in error messages.
4412 (OPTION_MCPU): Remove.
4414 (md_longopts): Add -mfp64, remove -mcpu.
4415 (mips_set_option_string): New fn.
4416 (md_parse_option): Make -mipsN update file_mips_isa rather than
4417 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4418 Don't let -mgp32 and -mfp32 change the ABI.
4419 (show): Move to end of file. Constify string argument.
4420 (md_show_usage): Move to the end of the file. Read available
4421 architectures from mips_cpu_info_table.
4422 (mips_set_architecture): New fn.
4423 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4424 is an alias for -march=mipsN. Don't change the ABI based on other
4425 flags. Infer the register size from the ABI as well as the
4426 architecture. Complain about more conflicting arguments.
4427 Unify logic with GCC.
4428 (s_mipsset): Don't change the ABI.
4429 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4430 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4431 "mipsN"-type entries. Remove entries that vary only in the
4432 manufacturer's prefix, or that have "000" replaced by "k".
4433 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4434 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4435 (mips_parse_cpu): New fn.
4436 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4437 (mips_cpu_info_from_isa): Minor formatting tweak.
4439 2002-07-24 Nick Clifton <nickc@redhat.com>
4441 * po/sv.po: Updated Swedish translation.
4442 * po/es.po: Updated Spanish translation.
4444 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4446 * Makefile.am: Run "make dep-am".
4447 * Makefile.in: Regenerate.
4448 * doc/Makefile.in: Regenerate.
4449 * config.in: Regenerate.
4450 * po/POTFILES.in: Regenerate.
4452 2002-07-23 Nick Clifton <nickc@redhat.com>
4454 * po/fr.po: Updated French translation.
4456 2002-07-23 Nick Clifton <nickc@redhat.com>
4458 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4461 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4463 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4464 instead of S_IS_EXTERN.
4465 (md_estimate_size_before_relax): Likewise.
4466 (mips_fix_adjustable): Likewise.
4468 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4470 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4472 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4473 Nick Clifton <nickc@redhat.com>
4475 * cond.c (s_ifdef): Treat a referenced but not yet defined
4476 symbol as if it were undefined, in exactly the same way as
4479 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4480 consider referenced bug not yet defined symbols to be
4483 2002-07-18 Denis Chertykov <denisc@overta.ru>
4484 Frank Ch. Eigler <fche@redhat.com>
4485 Alan Lehotsky <alehotsky@cygnus.com>
4486 John Healy <jhealy@redhat.com>
4487 Jeff Johnston <jjohnstn@redhat.com>
4489 * configure.in: Add ip2k configuraton.
4490 * configure: Regenerate.
4491 * Makefile.am: Add ip2k configuraton.
4492 * Makefile.in: Regenerate.
4493 * configure: Regenerate.
4494 * Makefile.in: Regenerate.
4495 * config/tc-ip2k.c: New file.
4496 * config/tc-ip2k.h: New files.
4497 * NEWS: Mention new support.
4498 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4499 * doc/Makefile.in: Regenerate.
4500 * doc/all.texi: Set IP2K
4501 * doc/as.texinfo: Add IP2K description.
4502 * doc/c-ip2k.texi: New file.
4504 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4506 * NEWS: Reformat to match style of other NEWS files.
4508 2002-07-17 Jan Hubicka <jh@suse.cz>
4510 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4512 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4514 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4516 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4518 * NEWS: Add 'Changes in 2.13'.
4520 2002-07-15 Matt Fredette <fredette@netbsd.org>
4522 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4524 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4526 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4527 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4530 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4532 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4533 (ppc_frob_file_before_adjust): New function.
4534 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4535 (ppc_elf_frob_symbol): Don't declare.
4536 (tc_frob_file_before_adjust): Define.
4537 (ppc_frob_file_before_adjust): Declare.
4539 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4540 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4543 (ppc_xcoff64): Rename to ppc_obj64.
4544 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4545 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4546 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4548 (ppc_target_format): Use ppc_obj64 to select format.
4549 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4550 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4551 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4552 (tc_frob_symbol): Likewise.
4553 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4554 BFD_DEFAULT_TARGET_SIZE.
4556 (ppc_is_toc_sym): Likewise.
4557 (md_apply_fix3): Likewise.
4558 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4559 BFD_DEFAULT_TARGET_SIZE.
4560 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4561 (tc_frob_symbol): Likewise.
4563 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4565 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4566 (mips_ip): Likewise.
4568 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4570 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4571 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4572 (md_apply_fix3): Formatting. Remove redundant test.
4573 (tc_gen_reloc): Remove redundant code.
4574 (tc_i386_force_relocation): Delete. Movy body of function to..
4575 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4577 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4579 * configure.in: Add hppa-*-openbsd* target, change
4580 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4582 * configure: Regenerate.
4584 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4586 * config/tc-mips.c (macro): Shift the 32-bit address range
4587 accessible with a lone "lui" down by 32768.
4589 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4591 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4592 instead of "dadd" in address calculations.
4595 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4597 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4599 (md_assemble): Instead, zap the suffix here.
4601 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4603 * NEWS: Remove next release number until the release is actually
4606 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4608 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4610 * Makefile.in: Regenerate.
4612 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4614 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4615 to symbols in merge sections, even non pc-relative ones.
4617 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4619 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4621 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4623 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4624 .softregs and .eeprom.
4626 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4628 * NEWS: Note the next release is 2.13.
4630 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4632 * po/tr.po: New translation imported.
4634 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4636 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4637 (ecoff_directive_def): Likewise.
4638 (ecoff_directive_tag): Likewise.
4639 * listing.c (file_info): Likewise.
4640 * hash.c (what): Likewise.
4642 2002-06-25 H.J. Lu <hjl@gnu.org>
4644 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4645 * Makefile.in: Regenerated.
4647 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4649 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4650 (assemble_ppi): Generate warning if the same register is used
4651 twice as destination in the same padd / pmuls instruction.
4653 2002-06-18 Dave Brolley <brolley@redhat.com>
4655 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4656 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4657 * configure.in: Support frv-*-*.
4658 * Makefile.am (CPU_TYPES): Add frv.
4659 (TARGET_CPU_CFILES): Add tc-frv.c.
4660 (TARGET_CPU_HFILES): Add tc-frv.h.
4661 (DEPTC_frv_coff): New variable.
4662 (DEPTC_frv_elf): New variable.
4663 (DEPOBJ_frv_coff): New variable.
4664 (DEPOBJ_frv_elf): New variable.
4665 (DEP_frv_coff): New variable.
4666 (DEP_frv_elf): New variable.
4667 * tc-frv.c: New file.
4668 * tc-frv.h: New file.
4670 2002-06-17 Catherine Moore <clm@redhat.com>
4672 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4674 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4676 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4678 2002-06-17 Tom Rix <trix@redhat.com>
4680 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4682 2002-06-14 H.J. Lu <hjl@gnu.org>
4683 Daniel Jacobowitz <drow@mvista.com>
4685 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4686 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4687 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4688 and new_logical_line for the first .file directive.
4689 * read.c (s_app_file_string): New function.
4690 (s_app_file): Call it.
4691 * read.h (s_app_file_string): Add declaration.
4693 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4695 * configure.in: Remove MIPS_STABS_ELF.
4696 * configure: Regenerated.
4697 * config.in: Regenerated.
4698 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4700 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4702 (pdr_seg): Declare unconditionally.
4703 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4704 (s_mips_end): Likewise. Generate stabs function markers.
4705 (s_mips_ent): Generate stabs function markers.
4706 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4708 (s_mips_mask): Likewise.
4709 (mips_flag_mdebug): New.
4710 (md_longopts): Add "mdebug" and "no-mdebug".
4711 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4712 (mips_after_parse_args): Set mips_flag_mdebug.
4713 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4715 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4717 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4718 value twice for RELA relocations.
4720 2002-06-12 Ben Elliston <bje@redhat.com>
4722 * symbols.c (resolve_symbol_value): Initialise final_val.
4724 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4726 2002-06-11 Tom Rix <trix@redhat.com>
4728 * config/tc-ppc.c (ppc_subseg_align): Delete.
4729 (ppc_change_csect): Default csect align is 2.
4730 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4732 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4734 * config/tc-avr.c (mcu_types): Update.
4736 2002-06-08 Matt Thomas <matt@3am-software.com>
4738 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4739 (vax-*-netbsd*): New targets.
4740 * configure: Regenerate.
4741 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4742 * config/tc-vax.c: Add support for ELF and PIC.
4743 (flag_want_pic): New flag.
4744 (float_cons): Fix prototype.
4745 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4746 (md_assemble): Introduce a new is_absolute local, and use it
4747 rather than repeating the test. Make fatal errors actually
4748 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4749 Add support for ELF. Add support for PIC.
4750 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4751 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4753 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4754 optional for a.out, and not allowed for VMS. Adjust all callers.
4755 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4756 (md_create_long_jump): Likewise.
4757 (md_undefined_symbol): Likewise.
4758 (md_section_align): Likewise.
4759 (md_shortopts): Allow -k and -K for ELF.
4760 (md_parse_option): Set flag_want_pic if -k or -K.
4761 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4762 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4763 * config/tc-vax.h (tc_headers_hook): Remove.
4764 (TARGET_FORMAT): Set according to object format and target
4766 (BFD_ARCH, TARGET_ARCH): Define.
4767 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4768 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4769 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4770 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4772 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4774 * Makefile.am: Run "make dep-am".
4775 * Makefile.in: Regenerate.
4777 * as.c: Replace CONST with const.
4778 * write.c: Likewise.
4779 * config/obj-coff.c: Likewise.
4780 * config/tc-a29k.c: Likewise.
4781 * config/tc-arm.c: Likewise.
4782 * config/tc-dlx.c: Likewise.
4783 * config/tc-h8300.c: Likewise.
4784 * config/tc-h8500.c: Likewise.
4785 * config/tc-i370.c: Likewise.
4786 * config/tc-i860.c: Likewise.
4787 * config/tc-i960.c: Likewise.
4788 * config/tc-m68hc11.c: Likewise.
4789 * config/tc-m68k.c: Likewise.
4790 * config/tc-m88k.c: Likewise.
4791 * config/tc-mcore.c: Likewise.
4792 * config/tc-mips.c: Likewise.
4793 * config/tc-ns32k.c: Likewise.
4794 * config/tc-pdp11.c: Likewise.
4795 * config/tc-pj.c: Likewise.
4796 * config/tc-s390.c: Likewise.
4797 * config/tc-sh.c: Likewise.
4798 * config/tc-sparc.c: Likewise.
4799 * config/tc-tahoe.c: Likewise.
4800 * config/tc-tic80.c: Likewise.
4801 * config/tc-v850.c: Likewise.
4802 * config/tc-vax.c: Likewise.
4803 * config/tc-w65.c: Likewise.
4804 * config/tc-z8k.c: Likewise.
4806 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4808 Based on patch from Matt Green:
4809 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4810 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4811 (s_mips_loc): New function.
4812 (mips_nonecoff_pseudo_table): Call them.
4813 (append_insn): Call dwarf2_emit_insn.
4815 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4817 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4819 (file_ase_mips16): New veriable.
4820 (mips_eabi64): Remove.
4821 (CPU_HAS_MIPS16): New define.
4822 (CPU_HAS_MDMX): Fix data type.
4823 (md_begin): Code cleanup. Use file_ase_mips16.
4824 (mips_elf_final_processing): Handle mips16 header flag.
4825 Handle EABI flag without intermediate variable.
4827 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4829 * doc/as.texinfo: Update MIPS documentation.
4831 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4833 * config/tc-mips.c: Add define for $zero register.
4834 (md_begin): Add $zero as alias name for $0.
4835 (insn_uses_reg): Use ZERO define.
4836 (mips_ip): Add $zero as alias name for $0.
4837 (mips16_ip): Likewise.
4838 (s_cplocal): Demand empty rest of input line.
4839 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4840 names. Use ZERO define. Fix input_line_pointer progress.
4842 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4844 * symbols.c: Replace CONST by const throughout.
4845 (symbol_find_exact): Split out from..
4846 (symbol_find_base): ..here.
4847 * symbols.h: Replace CONST by const throughout.
4848 (symbol_find_exact): Declare.
4849 * config/obj-elf.c: #include "struc-symbol.h".
4850 (elf_frob_file): If group name matches an exported symbol, use that
4851 symbol for the signature and ".group" as the section name.
4853 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4855 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4858 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4860 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4861 and mips_opts.ase_mdmx if they are uninitialized.
4863 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4865 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4866 (hppa_force_relocation): Check if a stub just before the start symbol
4867 of the last call_info is reachable before forcing relocation. Fix
4870 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4872 * config/tc-mips.c (mips_after_parse_args): New function.
4873 (md_begin): Move processing of defaults to mips_after_parse_args.
4874 config/tc-mips.h (md_after_parse_args): Define.
4876 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4878 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4879 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4880 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4881 * configure: Regenerate.
4882 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4885 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4887 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4889 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4891 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4892 linkonce flag. Print all warnings.
4893 (obj_elf_section): Parse ",comdat" for groups.
4894 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4895 consistency of comdat flag.
4897 2002-06-02 Richard Henderson <rth@redhat.com>
4899 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4900 with LITERALs without sequence numbers.
4902 2002-06-01 Richard Henderson <rth@redhat.com>
4904 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4905 Rename them LITUSE_ALPHA_*.
4907 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4909 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4910 accept parentheses enclosed register lists.
4912 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4914 * Makefile.am: Run "make dep-am".
4915 * Makefile.in: Regenerate.
4916 * po/POTFILES.in: Regenerate.
4918 2002-05-31 Graeme Peterson <gp@qnx.com>
4920 * configure.in: Add i386-*-nto-qnx*.
4921 * configure: Regenerate.
4923 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4925 * config/tc-mips.c (mips_ip): Use unsigned long values for
4928 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4930 * config/tc-mips.c (s_cpsetup): Fix initialization of
4931 mips_cpreturn_register and mips_cpreturn_offset.
4933 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4935 * config/tc-mips.c (s_cpsetup): Fix comment.
4937 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4939 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4940 (mips_ip): Likewise.
4941 (mips16_ip): Likewise.
4942 (tc_get_register): Likewise.
4944 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4945 Ed Satterthwaite <ehs@broadcom.com>
4947 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4948 (mips_opts): Initialize "ase_mdmx" member.
4949 (file_ase_mdmx): New variable.
4950 (CPU_HAS_MDMX): New macro.
4951 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4952 based on command line options and configuration defaults.
4953 (macro_build): Note in comment that use of MDMX in macros is
4954 not currently allowed.
4955 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4956 "Z" MDMX operand types.
4957 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4958 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4960 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4961 Add support for "-mdmx" and "-no-mdmx" options.
4962 (OPTION_ELF_BASE): Move to accomodate new options.
4963 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4964 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4965 file_ase_mdmx was set.
4966 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4967 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4970 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4972 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4973 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4974 command line switch conforming to gcc conventions.
4975 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4977 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4979 * config/tc-mips.c (macro_build_jalr): New Function.
4980 (md_begin): NewABI uses big GOTs.
4981 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4982 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4983 (load_address): Add some NewABI PIC support.
4985 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4986 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4988 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4990 * config/tc-mips.c (load_address): Use mips_gp_register instead
4991 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4993 (macro): Use mips_gp_register instead of hardcoded value.
4995 2002-05-30 Richard Henderson <rth@redhat.com>
4997 * expr.h (operatorT): Add O_md17..O_md32.
4998 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4999 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5000 O_tprelhi, O_tprello, O_tprel): New.
5001 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5002 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5003 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5004 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5005 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
5006 (md_apply_fix3): Handle TLS relocations.
5007 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5008 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5009 associated TLS reloc. Check lituse_tls relocs match up.
5010 (emit_insn): Handle TLS relocations.
5013 * doc/c-alpha.texi: Add docs for tls relocations.
5015 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5017 * config/tc-mips.c (mips_gprel_offset): New variable.
5018 (s_gpvalue): Use it.
5020 2002-05-30 Diego Novillo <dnovillo@redhat.com>
5022 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5023 write-write conflicts.
5024 (md_assemble): Reformat introductory comment.
5025 (parallel_ok): Prevent packing only if the first
5026 instruction cannot be packed.
5028 2002-05-30 Jason Eckhardt <jle@redhat.com>
5029 Tom Rix <trix@redhat.com>
5031 * config/tc-d10v.c (build_insn): Check for immediates.
5033 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5035 * config/tc-mips.c: Replace GP in comments by $gp.
5036 (mips_big_got): Initialize.
5037 (mips_trap): Initialize.
5038 (load_address): Use mips_gp_register instead of hardcoded value.
5039 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5040 (macro): Use mips_gp_register instead of hardcoded value.
5041 (macro2): Change load_address calls.
5042 (md_pcrel_from): Comment formatting.
5043 (s_cpload): Use mips_gp_register instead of hardcoded value.
5044 (s_cprestore): Likewise. Comment formatting.
5045 (s_gpword): Fix data type.
5046 (s_cpadd): Use mips_gp_register instead of hardcoded value.
5047 (nopic_need_relax): Replace GP in comments by $gp.
5048 (mips_elf_final_processing): Better comment.
5050 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
5052 * configure.in: Add DLX configuraton
5053 * Makefile.am: Add DLX configuraton
5054 * configure: Regenerate.
5055 * Makefile.in: Regenerate.
5056 * config/tc-dlx.c: New file.
5057 * config/tc-dlx.h: New files.
5058 * NEWS: Mention new support.
5060 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
5062 * config/obj-coff.c (write_object_file): Add missing semicolon.
5064 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5066 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5067 by the define. Remove superfluous check of mips_opts.mips16.
5068 (append_insn): Likewise. Canonicalize variable increments.
5069 (macro_build): Canonicalize variable increments.
5070 (macro_build_lui): Likewise.
5071 (load_register): Likewise.
5072 (load_address): Move pointer initialization.
5073 (macro): Move pointer to a more local scope. Canonicalize variable
5074 increments. Better comments. Replace magic constant for RA by the
5076 (macro2): Replace magic constant for RA by the define. Canonicalize
5077 variable increments.
5078 (mips_ip): Canonicalize variable increments.
5079 (mips16_ip): Replace magic constant for RA by the define.
5080 (my_getSmallParser): Canonicalize variable increments/decrements.
5081 (my_getPercentOp): Likewise.
5082 (my_getSmallExpression): Likewise.
5083 (s_align): Likewise.
5084 (s_mipsset): Likewise.
5085 (s_cpsetup): Likewise.
5086 (s_insn): Remove superfluous check of mips_opts.mips16.
5087 (s_mips_stab): Likewise.
5088 (mips_handle_align): Canonicalize variable increments.
5089 (s_mips_ent): Likewise.
5090 (s_mips_end): Add comment.
5092 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5094 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5095 * configure: Regenerate.
5097 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5099 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5100 * Makefile.in: Regenerate.
5101 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5102 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5103 * configure: Regenerate.
5104 * as.h: Use #include "" instead of <> for local header files.
5105 * flonum-konst.c: Likewise.
5106 * flonum-mult.c: Likewise.
5108 * listing.c: Likewise.
5109 * config/tc-ia64.h: Likewise.
5110 * config/tc-v850.h: Likewise.
5112 2002-05-24 TAMURA Kent <kent@netbsd.org>
5114 * configure.in: Add a target for i386-netbsdpe.
5115 * configure: Regenerate.
5117 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5119 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5120 (obj_elf_common): Call elf_common.
5121 (obj_elf_tls_common): New function.
5122 (elf_pseudo_tab): Support .tls_common.
5123 (special_sections): Add .tdata and .tbss.
5124 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5126 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5127 (obj_elf_parse_section_letters): Include T in error message.
5128 * config/tc-ppc.c (ppc_section_letter): Likewise.
5129 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5130 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5132 * config/tc-sparc.c (md_apply_fix3): Likewise.
5133 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5134 Define them if not BFD_ASSEMBLER.
5135 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5137 (md_apply_fix3): Add TLS relocs.
5138 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5139 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5140 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5141 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5142 (ia64_elf_section_letter): Include T in error message.
5143 (md_begin): Support TLS operators.
5144 (md_operand): Likewise.
5145 (ia64_gen_real_reloc_type): Support TLS relocs.
5146 * write.c (adjust_reloc_syms): Don't change symbols in
5147 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5149 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5151 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5152 round the relocation up rather than down.
5154 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5156 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5158 * doc/as.texinfo: Document that the COFF version of .section
5159 ignores the 'a' flag.
5161 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5163 * config/tc-alpha.c (assemble_tokens): Protect use of
5164 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5166 * write.c (size_seg): Check adjustment to last frag.
5167 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5169 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5170 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5171 (write_object_file): Invoke md_do_align if available, and use
5172 frag_align_code on text sections.
5173 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5174 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5175 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5176 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5177 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5180 2002-05-22 H.J. Lu <hjl@gnu.org>
5182 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5185 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5187 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5190 2002-05-22 H.J. Lu <hjl@gnu.org>
5192 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5193 for one .loc for compiler.
5195 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5197 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5200 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5202 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5203 Optimize the rotate by zero case.
5205 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5207 * configure.in: Remove accidental enabling of bfd_gas=yes for
5209 * configure: Regenerate.
5211 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5213 * app.c: Fix formatting.
5215 * ehopt.c: Likewise.
5217 * input-file.c: Likewise.
5218 * listing.c: Likewise.
5219 * macro.h: Likewise.
5220 * stabs.c: Likewise.
5221 * symbols.c: Likewise.
5223 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5225 * config/obj-generic.c: Delete file.
5226 * config/obj-generic.h: Likewise.
5228 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5230 * config/tc-avr.c (mcu_types): Update for new devices.
5232 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5234 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5236 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5238 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5239 worked sometimes by accident. Fix copy&paste comment.
5241 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5243 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5244 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5245 (mips_elf_final_processing): Let n32 use .reginfo.
5247 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5249 * config/tc-mips.c (append_insn): Fix too small range of variable.
5251 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5253 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5254 listing_prev_line().
5256 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5258 * config/tc-arm.c (md_assemble): Remove redundant call to
5261 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5264 * stabs.c (s_stab_generic): Fix grammatical error in warning
5267 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5269 * write.c (subsegs_finish): Don't specially align last subseg.
5271 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5273 * stabs.c (s_stab_generic): Warn about a description field that is
5276 * config/obj-coff.c: Fix compile time warnings when compiling
5277 without BFD_ASSEMBLER defined.
5280 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5282 (md_pcrel_from_section): Use md_pcrel_from().
5284 2002-05-11 Bruno Haible <bruno@clisp.org>
5286 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5287 by dwarf2_directive_loc, instead of calling dwarf2_where.
5289 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5291 * config/obj-coff.h: Fix formatting.
5292 * config/tc-mcore.c: Likewise.
5293 * config/tc-mn10300.c: Likewise.
5294 * config/tc-openrisc.c: Likewise.
5295 * config/tc-or32.c: Likewise.
5296 * config/tc-pdp11.c: Likewise.
5297 * config/tc-ppc.c: Likewise.
5298 * config/tc-ppc.h: Likewise.
5299 * config/tc-sh64.c: Likewise.
5300 * config/tc-sh.c: Likewise.
5301 * config/tc-tic54x.c: Likewise.
5302 * config/tc-xstormy16.c: Likewise.
5303 * config/tc-xstormy16.h: Likewise.
5305 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5307 * config/obj-coff.c: Fix formatting.
5308 * config/obj-elf.c: Likewise.
5309 * config/tc-alpha.c: Likewise.
5310 * config/tc-arm.c: Likewise.
5311 * config/tc-d10v.c: Likewise.
5312 * config/tc-d30v.c: Likewise.
5313 * config/tc-h8300.c: Likewise.
5314 * config/tc-hppa.c: Likewise.
5316 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5318 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5319 reloc when no_cond_jump_promotion.
5321 2002-05-08 Jim Wilson <wilson@redhat.com>
5323 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5324 current variable part of frag.
5326 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5328 * config/tc-mmix.c: Fix formatting.
5329 * config/tc-mmix.h: Likewise.
5331 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5333 * configure: Regenerate.
5335 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5337 * config/tc-m68k.c: Fix formatting.
5339 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5341 * Makefile.am: Honour DESTDIR.
5342 * Makefile.in: Regenerate.
5344 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5346 * config/tc-ia64.c: Fix formatting.
5347 * config/tc-ia64.h: Likewise.
5349 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5351 * config/tc-mips.c: Fix formatting.
5352 * config/tc-s390.c: Likewise.
5353 * config/tc-s390.h: Likewise.
5355 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5357 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5358 information for instructions.
5360 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5362 * as.h: Fix formatting.
5365 * dwarf2dbg.c: Likewise.
5366 * frags.h: Likewise.
5368 * macro.c: Likewise.
5370 * stabs.c: Likewise.
5371 * symbols.c: Likewise.
5373 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5375 * app.c (mri_pseudo): Only declare for TC_M68K.
5377 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5378 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5379 BFD_RELOC_16_BASEREL.
5380 (md_assemble): Likewise.
5381 (md_apply_fix3): Likewise.
5383 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5385 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5386 zero into an add of zero - it is not the same.
5388 2002-05-01 Arati Dikey <aratid@kpit.com>
5390 * tc-sh.c (get_specific): Generate warning if the same
5391 destination register is used in parallel instructions.
5393 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5395 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5397 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5399 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5400 backwards to prevent cascading errors.
5402 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5404 * configure.in: Add support for powerpc-*-windiss.
5405 * configure: Regenerated.
5407 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5409 * config/tc-s390.c (md_parse_option): Formatting.
5411 * config/tc-i386.c: Formatting fixes, add missing space in error
5414 2002-04-24 Christian Groessler <chris@groessler.org>
5416 * config/tc-z8k.c (build_bytes): Add support for new cases:
5417 CLASS_IGNORE and ARG_NIM4.
5418 (md_assemble): Prevent destruction of input_line_pointer if
5419 get_operands returns failure.
5421 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5423 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5424 instructions to be generated by macros.
5426 2002-04-24 Andreas Schwab <schwab@suse.de>
5428 * config/tc-i386.c (output_jump, output_disp)
5429 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5431 (md_apply_fix3): Remember addend value for rela relocations.
5432 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5434 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5436 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5437 from previous change.
5439 2002-04-22 Eric Christopher <echristo@redhat.com>
5441 * config/tc-mips.c (macro_build): Add warning if macro instructions
5442 are expanded into a branch delay slot.
5444 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5446 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5447 numbers, gdb relies on them to detect the start of the prologue.
5449 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5451 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5452 symbols in merge sections.
5454 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5456 * as.c (main): Don't reference _bfd_chunksize.
5458 2002-04-15 Tom Rix <trix@redhat.com>
5460 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5461 symbols in merge sections.
5463 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5465 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5466 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5467 argument for the precision.
5468 (gen_to_words): Update accordingly.
5470 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5472 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5473 BFD_VERSION_STRING unavailable.
5474 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5476 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5478 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5479 symbol_used_in_reloc_p is true.
5481 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5484 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5486 * dep-in.sed: Cope with absolute paths.
5487 * Makefile.am (dep.sed): Subst TOPDIR.
5489 * Makefile.in: Regenerate.
5491 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5493 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5494 (mips_ip): Remove unused variable.
5495 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5496 unsigned char with bfd_byte.
5497 (s_file): Remove unused variable.
5498 (s_mips_ent): Likewise.
5500 2002-04-03 Tom Rix <trix@redhat.com>
5502 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5504 (find_opcode): Fix warning in as_warn.
5505 * config/tc-d10v.h: Update Copyright.
5507 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5508 Tom Rix <trix@redhat.com>
5510 From Jeff Knaggs <jknaggs@redhat.com>
5511 * config/tc-d10v.c (check_resource_conflict): New function to
5512 check for resource conflicts.
5514 From Jason Eckhardt <jle@redhat.com>
5515 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5517 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5518 reserved control registers is used.
5519 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5522 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5523 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5524 instruction cannot be packed.
5526 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5527 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5528 write-write conflicts.
5529 (md_assemble): Reformat introductory comment.
5530 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5533 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5535 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5536 O_logical_not>): Derive final_seg from add_symbol.
5537 <O_multiply..O_logical_or>: More final_seg twiddles.
5539 2002-04-01 Jessica Han <jessica@cup.hp.com>
5541 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5544 2002-03-27 Andreas Schwab <schwab@suse.de>
5546 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5547 field for pc-relative fixups.
5548 (output_disp): Likewise.
5549 (md_estimate_size_before_relax): Likewise.
5550 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5551 pc-relative fixups in 64bit mode.
5553 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5555 * config/te-aix5.h: Typo fix.
5557 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5559 * Makefile.am: Run "make dep-am".
5560 * Makefile.in: Regenerate.
5561 * doc/Makefile.in: Regenerate.
5563 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5565 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5566 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5568 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5570 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5571 the EXTENDED bit here; report the estimate according to the
5574 2002-03-18 Tom Rix <trix@redhat.com>
5576 * configure.in: Add AIX 5 support.
5577 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5578 * config/te-aix5.h: New file. AIX 5 support.
5579 * configure: Regenerate.
5581 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5583 * po/fr.po: Updated version.
5585 2002-03-16 Andreas Jaeger <aj@suse.de>
5587 * doc/c-mips.texi (Machine Dependencies): Add new node.
5589 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5591 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5592 (mips_opts): Initialize "ase_mips3d" member.
5593 (file_ase_mips3d): New variable.
5594 (CPU_HAS_MIPS3D): New macro.
5595 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5596 based on command line options and configuration defaults.
5597 (macro_build, mips_ip): Accept MIPS-3D instructions if
5598 mips_opts.ase_mips3d is set.
5599 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5600 Add support for "-mips3d" and "-no-mips3d" options.
5601 (OPTION_ELF_BASE): Move to accomodate new options.
5602 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5603 (mips_elf_final_processing): Add a comment indicating that a
5604 MIPS-3D ASE ELF header flag should be set, when one exists.
5605 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5606 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5607 nomips3d" directives.
5609 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5611 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5612 a weak symbol in same section to be within reach.
5614 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5616 * po/fr.po: Updated version.
5618 2002-03-12 Andreas Schwab <schwab@suse.de>
5620 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5621 body record so that an error is given for misplaced .save
5624 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5626 * config/tc-i386.h (REX_OPCODE): Define.
5627 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5628 (rex_byte): typedef to int.
5629 * config/tc-i386.c: Group prototypes and vars together.
5630 Formatting fixes. Remove occurrences of "register" keyword.
5633 (mode_from_disp_size): Add INLINE keyword to prototype.
5634 (fits_in_signed_byte): Likewise.
5635 (fits_in_unsigned_byte): Likewise.
5636 (fits_in_unsigned_word): Likewise.
5637 (fits_in_signed_word): Likewise.
5638 (fits_in_unsigned_long): Likewise.
5639 (fits_in_signed_long): Likewise.
5640 (type_names): Constify.
5641 (intel_float_operand): Constify param.
5642 (add_prefix): Use REX_OPCODE.
5643 (md_assemble): Likewise. Modify for changed rex_byte.
5644 (parse_insn): Split out of md_assemble.
5645 (parse_operands): Likewise.
5646 (swap_operands): Likewise.
5647 (optimize_imm): Likewise.
5648 (optimize_disp): Likewise.
5649 (match_template): Likewise.
5650 (check_string): Likewise.
5651 (process_suffix): Likewise.
5652 (check_byte_reg): Likewise.
5653 (check_long_reg): Likewise.
5654 (check_qword_reg): Likewise.
5655 (check_word_reg): Likewise.
5656 (finalize_imm): Likewise.
5657 (process_operands): Likewise.
5658 (build_modrm_byte): Likewise.
5659 (output_insn): Likewise.
5660 (output_branch): Likewise.
5661 (output_jump): Likewise.
5662 (output_interseg_jump): Likewise.
5663 (output_disp): Likewise.
5664 (output_imm): Likewise.
5666 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5668 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5670 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5672 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5673 relocs except when BFD64.
5675 * write.c (number_to_chars_bigendian): Don't abort when N is
5676 larger than sizeof (VAL).
5677 (number_to_chars_littleendian): Likewise.
5679 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5681 * config/tc-hppa.c (md_apply_fix3): Add cast.
5682 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5685 2002-03-05 Paul Koning <pkoning@equallogic.com>
5687 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5688 (parse_ac5): New function for parsing float regs in float operand.
5689 (parse_expression): Remove attempt to make literals be octal.
5690 (parse_op_no_deferred): Support float literals.
5691 (parse_op): Reject attempts to refer to float regs.
5692 (parse_fop): New function, like parse_op but for float operand.
5693 (md_assemble): Add cases to parse float operands. Also fix
5694 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5696 2002-03-04 H.J. Lu <hjl@gnu.org>
5698 * config/obj-elf.c (special_section): Add .init_array,
5699 .fini_array and .preinit_array.
5701 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5702 .init_array and .fini_array.
5704 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5706 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5708 (obj_frob_symbol): Copy visibility.
5710 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5712 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5714 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5716 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5718 * po/es.po: Updated.
5720 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5722 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5723 only, undo the changes made on 2001-06-08, with the
5724 effect being that common or extern symbols are
5725 adjusted for embedded-PIC, but weak symbols are not.
5726 (md_estimate_size_before_relax: Likewise, with the effect
5727 that extern symbols are treated the same as weak symbols
5728 only if not embedded-PIC.
5729 (mips_fix_adjustable) Likewise, with the effect that
5730 weak or extern symbols are not adjusted for embedded-PIC.
5731 (md_apply_fix3): Tweak so that the case where value is zero
5732 is handled more correctly for embedded-PIC code.
5734 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5736 * doc/as.texinfo (Overview): Add missing @ifset IA64
5738 * configure.in (LINGUAS): Add es.po.
5739 * configure: Regenerate.
5740 * po/es.po: New file.
5742 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5744 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5745 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5746 and NO_PIC cases. Code cleanup.
5747 (macro2): Fix handling of 64bit register loads.
5749 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5751 * doc/as.texinfo: Add entry for IA64.
5752 * doc/c-ia64.texi: New file.
5754 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5756 * config/tc-hppa.c: Update copyright date.
5758 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5759 Remove references to chip manufacturers.
5760 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5762 (md_show_usage): Remove references to chip manufacturers. Mention
5764 (md_begin): Test power4 opcode flag bits.
5766 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5768 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5769 count exceeds prologue count.
5770 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5771 (unwind.label_prologue_count): New member.
5773 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5775 (get_saved_prologue_count): New function.
5776 (save_prologue_count): New function.
5777 (free_saved_prologue_count): New function.
5778 (dot_label_state): Record state label by calling save_prologue_count().
5779 (dot_copy_state): Restore prologue count by calling
5780 get_saved_prologue_count().
5781 (generate_unwind_image): Free up list of saved prologue
5782 counts by calling free_saved_prologue_counts().
5784 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5786 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5787 function declarations.
5789 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5791 * NEWS: Note that GASP is now deprecated.
5792 * Makefile.am: Do not build gasp-new by default.
5793 * Makefile.in: Regenerate.
5794 * doc/Makefile.am: Do not install gasp.info.
5795 * doc/Makefile.in: Regenerate.
5796 * gas/gasp.texi: Note that gasp is now deprecated.
5798 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5800 * NEWS: Mark 2.12 branch.
5802 2002-02-19 Tom Tromey <tromey@redhat.com>
5804 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5806 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5808 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5811 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5813 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5814 Make bit size independent of architecture switch.
5815 (md_begin): Add warning for -m64 with -Aesa.
5816 (s390_md_end): Use renamed architecture defines.
5818 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5820 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5822 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5824 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5827 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5829 * config/tc-mips.c (md_estimate_size_before_relax): Really
5830 make sure we treat weak like extern only for ELF. (Fixes
5831 patch from 2001-07-25.)
5833 2002-02-15 Ben Elliston <bje@redhat.com>
5835 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5838 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5840 * NEWS: Mention support for MMIX.
5842 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5844 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5845 a sequence of indpendent 'if' statements for easier debugging
5846 and future modification.
5848 2002-02-13 Matt Fredette <fredette@netbsd.org>
5850 * config/tc-m68k.c (md_show_usage): No longer display a
5851 hard-coded "68020" for the default CPU, instead display the
5852 canonical name of the true, configured default CPU.
5853 (m68k_elf_final_processing): Mark objects for sub-68020
5854 CPUs with the new EF_M68000 flag.
5856 2002-02-13 Andreas Schwab <schwab@suse.de>
5858 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5859 pc-relative relocations to merge sections in 64-bit mode.
5861 2002-02-13 Ben Elliston <bje@redhat.com>
5863 * NEWS: Document floating point number handling in gasp.
5864 * gasp.c: Include <assert.h> and "xregex.h".
5865 (is_flonum): New function.
5866 (chew_flownum): Likewise.
5867 (change_base): Consume flonums from the input, where possible.
5868 * doc/gasp.texi (Constants): Document floating point numbers.
5870 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5872 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5873 that implicitly use LR and RR selectors.
5875 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5877 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5878 and `epsw' as available on AM33 and above only.
5879 (other_register_name): Add logic to handle machine type encoded in
5882 2002-02-11 Tom Rix <trix@redhat.com>
5884 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5887 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5889 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5892 2002-02-11 Jan Hubicka <jh@suse.cz>
5894 * i386.c (md_assemble): Support 32bit address prefix.
5895 (i386_displacement): Likewise.
5896 (i386_index_check): Accept 32bit addressing in 64bit mode.
5898 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5900 * config/tc-sh.c (dot): Removed unused function.
5902 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5904 * Makefile.am: "make dep-am".
5905 * Makefile.in: Regenerate.
5906 * aclocal.m4: Regenerate.
5907 * config.in: Regenerate.
5908 * configure: Regenerate.
5909 * doc/Makefile.in: Regenerate.
5911 2002-02-10 Richard Henderson <rth@redhat.com>
5913 * doc/c-alpha.texi: New file.
5914 * doc/Makefile.am (CPU_DOCS): Add it.
5915 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5917 2002-02-09 Richard Henderson <rth@redhat.com>
5919 * config/tc-alpha.c (O_samegp): New.
5920 (USER_RELOC_P): Include it.
5921 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5922 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5923 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5924 (alpha_validate_fix): New.
5925 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5927 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5929 * doc/c-cris.texi: New.
5930 * doc/all.texi: @set CRIS.
5931 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5932 Include c-cris.texi.
5933 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5934 * doc/Makefile.in: Regenerate.
5936 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5938 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5939 determine if a number is a sign-extended 32-bit number.
5940 (load_register): Use IS_SEXT_32BIT_NUM.
5941 (macro): Check if load/store macro handling is using a
5942 constant 32-bit address on 64-bit address systems, and if
5943 so optimize the generation of that address.
5945 2002-02-08 Richard Henderson <rth@redhat.com>
5947 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5948 we've eliminated all foreign relocation types yet.
5949 (alpha_fix_adjustable): Likewise.
5951 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5953 Contribute sh64-elf.
5954 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5955 Stephen Clarke <Stephen.Clarke@st.com>
5956 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5957 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5958 * config/tc-sh.c (md_relax_table): Added default sizes for
5959 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5960 MOVI_16, MOVI_32 and MOVI_48.
5961 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5962 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5964 (shmedia_md_estimate_size_before_relax): Remove redundant
5965 blocks. Set fragP->fr_var even if relaxation type unchanged.
5966 Retain UNDEF_MOVI until expression decays to number.
5967 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5968 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5969 relocation types. Take fixP->fx_addnumber into account too.
5970 (shmedia_md_apply_fix): Likewise.
5971 (shmedia_md_convert_frag): Likewise.
5972 (shmedia_build_Mytes): Likewise.
5973 (sh64_consume_datalabel): Complain about nested datalabel.
5974 Support PIC relocs. Call sh_parse_name.
5975 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5976 in tc-sh.h to SHmedia reloc types.
5977 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5978 MOVI_GOTPC): New relaxation constants.
5979 (md_relax_table): Introduce relaxation directives for PIC-related
5981 (sh_PIC_related_p): Handle datalabel.
5982 (sh_check_fixup): Choose SH5 PIC relocations.
5983 (sh_cons_fix_new): Added BDF_RELOC_64.
5984 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5985 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5986 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5987 current ISA is SHmedia, get 7 bytes.
5988 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5989 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5991 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5992 shmedia_apply_fix3 and make void.
5993 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5994 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5996 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5997 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5998 2001-03-14 DJ Delorie <dj@redhat.com>
5999 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6000 * doc/Makefile.in(CPU_DOCS): Ditto.
6001 * doc/c-sh64.texi: New file.
6002 * doc/as.texinfo: Add SH64 support.
6003 2001-03-13 DJ Delorie <dj@redhat.com>
6004 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6005 A_REUSE_PREV so that its purpose is more obvious.
6006 (shmedia_build_Mytes): Ditto.
6007 2001-03-07 DJ Delorie <dj@redhat.com>
6008 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6010 (sh64_vtable_inherit): Ditto.
6011 (strip_datalabels): New, strip "datalabel" from given line.
6012 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6014 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
6015 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6017 (shmedia_build_Mytes): ... to here.
6018 2001-03-06 DJ Delorie <dj@redhat.com>
6019 * config/tc-sh.c: Remove sh64-specific uaquad now that there
6021 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
6022 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6023 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6024 address by one in call to dwarf2_emit_insn.
6025 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
6026 Implement ".abi" pseudo and correct .cranges descriptors. Correct
6027 alignment handling broken by imported changes.
6028 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6029 (sh64_handle_align): Declare.
6030 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6031 (sh64_max_mem_for_rs_align_code): Declare.
6032 (enum sh64_isa_values): Moved here from tc-sh64.c.
6033 (md_do_align): Define.
6034 (sh64_do_align): Declare.
6035 (struct sh64_tc_frag_data): New.
6036 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
6038 (TC_FRAG_INIT): Change to set new datatype.
6039 (struct sh64_segment_info_type): Rename member
6040 last_flushed_location to last_contents_mark. All users changed.
6041 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6042 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6043 * config/tc-sh.c (md_pseudo_table): Add ".abi".
6044 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6045 of unsetting seen_insn.
6046 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6047 call sh64_update_contents_mark.
6048 (sh_handle_align): Remove HAVE_SH64-conditioned code.
6049 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6050 enum sh64_isa_values.
6051 (sh64_set_contents_type): Drop segT parameter. All callers changed.
6052 (emitting_crange): Boolean guard moved to file scope from function
6053 scope in sh64_set_contents_type.
6055 (sh64_update_contents_mark): New; most split out from
6056 sh64_flush_pending_output.
6057 (shmedia_md_end): Call sh64_update_contents_mark. Set
6058 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6059 (sh64_do_align): New function.
6060 (sh64_max_mem_for_rs_align_code): New function.
6061 (sh64_handle_align): Rename from shmedia_do_align. Make
6062 non-static. Add head comment. Emit zero bytes for n bytes modulo
6063 four. Change return-type to void.
6064 (shmedia_elf_new_section): Remove.
6065 (shmedia_md_assemble): Call sh64_update_contents_mark.
6066 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
6067 new frag. Call sh64_update_contents_mark after making the new
6069 (sh64_flush_pending_output): Just call sh64_update_contents_mark
6070 and sh_flush_pending_output.
6071 (sh64_flag_output): Also call md_flush_pending_output, but add
6072 condition on not emitting_crange.
6073 (sh64_tc_cons_fix_new): Remove.
6074 2001-01-12 Nick Clifton <nickc@redhat.com>
6075 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6076 alignment handling scheme imported from sourceware.
6077 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
6078 * config/tc-sh64.h (TARGET_FORMAT): Define.
6079 (sh64_target_format): Prototype.
6080 * config/tc-sh64.c (sh64_target_mach): New function.
6081 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
6082 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6083 zero_address_frag instead of copying the frag of the symbol.
6084 (shmedia_frob_file_before_adjust): Ditto.
6085 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6086 to valueT to remove signedness.
6087 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6088 headers to output_bfd. Do not evaluate symbols if final is false;
6090 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6091 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6092 to the current frag, call shmedia_md_convert_frag to emit fixups
6093 and make frag_wane neutralize the frag. Update comments.
6094 * config/tc-sh.c (md_convert_frag): Change caller of
6095 shmedia_md_convert_frag.
6096 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6097 * config/tc-sh64.h: Tweak comments and correct formatting.
6098 * config/tc-sh64.c: Ditto.
6099 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6100 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6101 for the no-relocation case.
6102 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6103 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6105 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6107 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6108 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6110 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6112 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6113 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6114 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6115 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6116 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6117 if reloc is emitted.
6118 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6119 New options plus bugfixes.
6120 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6122 (md_parse_option): Handle new options.
6123 (md_show_usage): Add blurb for new options.
6124 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6125 (sh64_expand, sh64_pt32): New variables.
6126 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6127 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6128 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6129 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6130 <resolved previously-pc-relative relocs>: Handle
6131 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6132 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6133 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6134 points to SHcompact code.
6135 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6136 SH64PCREL16)>: Check that ISA of what operand points at and
6137 PTA/PTB matches, or emit error.
6138 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6139 SHMEDIA_BFD_RELOC_PT.
6140 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6142 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6143 condition for MOVI expansion.
6144 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6145 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6147 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6149 (sh64_target_format): Error-check setting of sh64_pt32 and
6150 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6151 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6152 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6153 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6154 * config/tc-sh64.c: Improve comments.
6155 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6156 not say the linker will check correctness of PTA/PTB expansion.
6157 (shmedia_md_end): Make non-static.
6158 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6160 * config/tc-sh.c (sh_finalize): Remove.
6161 * config/tc-sh.h (md_end): Do not define.
6162 Remove prototype for sh_finalize.
6163 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6164 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6165 sh64_section_data container when storing section type in tdata
6166 field in elf_section_data.
6167 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6169 * Makefile.am: Update dependencies.
6170 * Makefile.in: Regenerate.
6171 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6172 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6173 dwarf2_emit_insn call with test on debug_type.
6174 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6175 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6176 CRT_SH5_ISA32 sticky for 64-bit.
6177 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6178 Generate .crange sections when switching ISA mode or emitting
6179 constants in same section as code.
6180 * config/tc-sh64.c: Reformat structure definitions.
6181 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6183 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6184 to emit a .cranges descriptor when contents type changes. Only
6185 emit error if changing contents type and -no-mix is in effect.
6186 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6187 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6188 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6189 sh64_flush_last_crange over sections.
6190 When checking main symbol of datalabel symbol, check for
6191 STO_SH5_ISA32, not ISA type of section in definition.
6192 (shmedia_frob_file_before_adjust): Check main symbol for
6193 STO_SH5_ISA32; don't check ISA type of section in definition.
6194 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6195 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6196 .cranges entries have been output.
6197 (shmedia_elf_new_section): Just call md_flush_pending_output.
6198 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6199 fix. Do not set tc_segment_info_data.in_code for section. Call
6200 sh64_set_contents_type for SHmedia code.
6201 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6202 false. Call md_flush_pending_output.
6203 (sh64_target_format): Check that -no-mix and
6204 -shcompact-const-crange are used in sane combination with other
6206 (shmedia_md_pcrel_from_section): Check type of fix for how to
6208 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6209 not ISA type of section in definition.
6210 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6211 hold contents-type state.
6212 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6213 (sh64_flush_pending_output): Declare.
6214 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6215 (sh64_tc_cons_fix_new): Declare.
6216 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6217 call sh64_flag_output.
6218 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6219 call sh64_set_contents_type to mark SHcompact code and set
6221 (md_longopts): New options "-no-mix" and
6222 "-shcompact-const-crange".
6223 (md_parse_option): Handle new options.
6224 (md_show_usage): Add blurb for new options.
6225 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6226 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6227 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6228 (sh64_last_insn_frag): New.
6229 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6230 to get frag for insn opcode for generating fixups; do not assume it
6232 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6234 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6236 (TC_FRAG_TYPE): Define as fragS *.
6237 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6238 (sh64_last_insn_frag): Declare.
6239 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6240 not == NULL before dereferencing.
6241 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6242 Get rid of BFD section flag and EF_SH64_ABI64.
6243 * config/tc-sh64.c (shmedia_frob_section_type): Use
6244 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6245 communicate the section as containing SHmedia code. Describe why.
6246 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6247 EF_SH64 regardless of ABI.
6248 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6249 in error message. Handle resolved expressions for
6250 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6251 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6252 (shmedia_check_limits): Handle BFD_RELOC_64.
6253 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6254 a STO_SH5_ISA32 symbol, only the BFD value.
6255 2000-12-11 Ben Elliston <bje@redhat.com>
6256 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6257 dwarf2_generate_asm_lineno.
6258 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6259 Handle PC-relative MOVI expansions with assembler relaxation.
6260 Generate PC-relative relocs from 16-bit PC-relative expressions.
6261 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6262 (shmedia_md_pcrel_from_section): ...here.
6263 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6264 turned completely resolved. Adjust relocation type for 16-bit
6265 immediate operands that has turned PC-relative. Adjust back for
6266 MD_PCREL_FROM_SECTION being applied twice.
6267 (shmedia_md_convert_frag): Always emit reloc for expression with
6268 global or weak symbol. Handle relaxation result for PC-relative
6270 (shmedia_md_estimate_size_before_relax): An expression with a weak
6271 or global symbol can not be relaxed. Break out tests for
6272 relaxable symbol into variable sym_relaxable.
6273 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6274 UNDEF_MOVI)>: Break out any PC-relative expression and change
6276 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6278 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6279 MOVI expansion. If X_op_symbol of the immediate expression is
6280 set, make an expression symbol for the argument to frag_var.
6281 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6283 (END): Adjust for new relaxations.
6284 (md_relax_table): Add entries for new relaxations.
6285 2000-12-07 Ben Elliston <bje@redhat.com>
6286 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6287 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6288 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6289 SHORI operand offsets in PT/PTA/PTB expansions.
6290 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6291 Implement DataLabel semantics.
6292 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6293 shmedia_frob_file_before_adjust.
6294 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6295 (DATALABEL_SUFFIX): Define.
6296 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6297 symbol list to update "datalabel" symbols to their main symbol
6299 (shmedia_frob_file_before_adjust): New.
6300 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6301 undefined and set STT_DATALABEL.
6302 (sh64_frob_label): Initialize TC symbol field.
6303 (sh64_consume_datalabel): Actually implement semantics. New
6304 parameter operandf, call it instead of expression.
6305 (sh64_exclude_symbol): New.
6306 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6307 to sh64_consume_datalabel.
6308 (tc_symbol_new_hook): Define to tc_frob_symbol.
6309 (TC_SYMFIELD_TYPE): Define to symbolS *.
6310 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6311 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6312 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6314 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6315 generating dwarf2 debug information.
6316 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6317 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6318 elf64-sh64 for the 64-bit ABI.
6319 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6321 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6322 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6324 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6325 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6326 (enum sh64_abi_values): New type.
6327 (enum sh64_isa_values): New type.
6328 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6329 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6330 (sh64_abi): Replace shmedia_64.
6331 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6332 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6333 (s_sh64_mode): Check validity for this target.
6334 (sh64_target_format): Initialize defaults for ISA and ABI.
6335 Fallback to old object format if no SH64 ISA or ABI has been
6337 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6338 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6339 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6340 * config/tc-sh64.h: Fix typo in comment.
6341 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6342 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6343 <PT fixups for absolute values>: Size will be longest, not
6345 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6346 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6347 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6348 and l1 to hold lowercase of two first characters. Change all
6349 remaining TO_LOWER to tolower.
6350 * config/tc-sh64.c (TO_LOWER): Delete.
6351 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6352 (md_parse_name): Define.
6353 (sh64_consume_datalabel): Declare.
6354 (DOLLAR_DOT): Define.
6355 * config/tc-sh64.c (shmedia_parse_exp): New.
6356 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6357 (shmedia_parse_reg): Remove const from src
6359 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6360 (shmedia_md_assemble): Ditto for op_end variable.
6361 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6362 Use shmedia_parse_exp, not parse_exp.
6363 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6364 parameter. All callers changed.
6365 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6367 (shmedia_parse_reg): Put first two character in local variables.
6368 Use tolower, not TO_LOWER. If no register is found and argtype
6369 indicates a control register, scan shmedia_creg_table
6371 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6372 * Makefile.am (CPU_TYPES): Add sh64.
6373 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6374 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6375 Regenerate dependencies.
6376 * Makefile.in: Regenerate.
6377 * configure.in: Add support for sh64-*-elf*.
6378 * configure: Regenerate.
6379 * config/tc-sh64.h: New.
6380 * config/tc-sh64.c: New.
6381 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6382 .mode, .isa and .uaquad.
6383 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6384 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6385 [HAVE_SH64] (END): Define as 10.
6386 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6387 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6389 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6390 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6391 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6392 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6394 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6395 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6396 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6397 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6398 SHmedia instructions. Handle state-change after switching to
6400 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6401 (md_parse_option) [HAVE_SH64]: Parse new options.
6402 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6403 (md_convert_frag) [HAVE_SH64] <default>: Call
6404 shmedia_md_convert_frag instead of abort.
6405 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6406 BFD_RELOC_SH_SHMEDIA_CODE.
6407 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6408 SHcompact or SHmedia code.
6409 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6410 shmedia_md_apply_fix instead of abort.
6411 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6412 result from calling shmedia_md_estimate_size_before_relax instead
6414 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6416 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6417 shmedia_init_reloc and do nothing more if it returns non-zero.
6418 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6419 * po/POTFILES.in: Regenerate.
6420 * po/gas.pot: Regenerate.
6422 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6424 * config/tc-sh.c (parse_at): Install the correct version of
6427 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6428 assume fixP->fx_subsy is non-NULL.
6430 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6432 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6433 A_DISP_PC_ABS, and adjust it by -4.
6434 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6436 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6437 the operand type is not A_DISP_PC_ABS.
6439 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6441 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6442 common and weak symbols. Handle common and weak symbols as
6443 undefined symbols with regards to GREG handling and merging.
6444 (mmix_frob_file): Ditto.
6446 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6448 * configure.in (hppa-*-netbsd*): New target.
6449 * configure: Regenerate.
6450 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6452 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6454 * config/tc-v850.c: Add missing prototypes amd use old-style
6455 function definitions.
6456 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6457 (sdata_section tdata_section, zdata_section, sbss_section,
6458 tbss_section, zbss_section, rosdata_section, rozdata_section,
6459 scommon_section, tcommon_section, zcommon_section,
6460 call_table_data_section, call_table_text_section): Delete.
6461 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6462 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6463 v850_call_table_data, v850_call_table_text): Delete.
6464 (struct v850_seg_entry): New.
6465 (v850_seg_table): New.
6466 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6467 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6468 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6469 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6472 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6473 recording of alignment.
6474 (md_pseudo_table): Use v850_seg.
6475 (md_begin): Don't init .call_table_data and .call_table_text here.
6476 Set v850_seg_table bss entry.
6478 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6480 Support on-demand global register allocation by passing on
6481 base-plus-offset relocs to the linker.
6482 * config/tc-mmix.c: Tweak and fix typos in comments.
6483 (allocate_undefined_gregs_in_linker): New variable.
6484 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6485 (md_longopts): Add --linker-allocated-gregs.
6486 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6487 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6488 (md_show_usage): Update text for -x. Add text for
6489 --linker-allocated-gregs.
6490 (tc_gen_reloc): Derive default value for addend from val and
6491 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6492 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6493 GREG if allocate_undefined_gregs_in_linker.
6494 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6495 --linker-allocated-gregs.
6496 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6497 --linker-allocated-gregs. Mention that it's implied by -x.
6498 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6499 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6501 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6503 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6505 * Makefile.am: Run "make dep-am"
6506 * Makefile.in: Regenerate.
6508 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6510 * config/tc-or32.c: New file.
6511 * config/tc-or32.h: New file.
6512 * configure.in: Add support for or32 targets.
6513 * configure: Regenerate.
6514 * config/obj-coff.c: Add support for or32 targets.
6515 * config/obj-coff.h: Add support for or32 targets.
6516 * Makefile.am: Add support for or32 targets.
6517 * Makefile.in: Regenerate.
6518 * NEWS: Mention support for OpenRISC.
6519 * doc/Makefile.in: Regenerate.
6520 * po/POTFILES.in: Regenerate.
6521 * po/gas.pot: Regenerate.
6523 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6525 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6528 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6530 * config/tc-mips.c (tc_gen_reloc): Arrange for
6531 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6532 their LO16 parts, even for ELF.
6534 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6536 * config/tc-i386.c: Protect definitions of true and false
6539 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6541 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6542 made because of .weak, if they are neither defined nor used in any
6545 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6547 * configure: Regenerated.
6549 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6551 * doc/Makefile.am (install): Depend on install-info.
6552 * doc/Makefile.in: Regenerate.
6554 2002-01-26 Nick Clifton <nick@redhat.com>
6556 * po/fr.po: Updated version
6558 2002-01-24 Kazu Hirata <kazu@hxi.com>
6560 * config/tc-h8300.c (check_operand): Don't print a warning
6561 when a valid 24-bit address is given to a 16-bit address
6564 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6566 * config/tc-sh.c (sh_elf_suffix): Removed.
6567 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6568 sh_end_of_match, sh_parse_name): New functions.
6569 (sh_elf_cons): Simplify.
6570 (parse_exp): Reject misplaced PIC operands.
6571 (md_undefined_symbol): Simplify.
6572 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6573 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6574 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6575 Complain if subsy remains at the end.
6576 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6577 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6579 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6581 * config/tc-mn10300.c (xr_registers): Move `pc'...
6582 (other_registers): ... here.
6584 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6586 * Makefile.am: Run "make dep-am".
6587 * Makefile.in: Regenerate.
6588 * gas/po/POTFILES.in: Regenerate.
6590 2002-01-21 DJ Delorie <dj@redhat.com>
6592 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6593 stabstr_name allocation permanent, as it will be referenced from
6596 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6598 * configure.in (ia64-*-netbsd*): New target.
6599 * configure: Regenerate.
6601 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6603 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6605 <Detailed description, ARM options>: Ditto.
6606 * doc/c-arm.texi (ARM Options): Ditto.
6608 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6610 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6611 do_mia, do_mar and do_mra respectively.
6612 (do_mav_*): Renamed from do_c_*.
6613 (mav_reg_required_here, mav_parse_offset): Renamed from
6614 cirrus_reg_required_here and cirrus_parse_offset respectively.
6615 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6617 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6618 Keith Walker <keith.walker@arm.com>
6620 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6621 (insns): Add pattern for bxj instruction.
6622 (do_bxj): New function.
6623 (arm_cpus): Add arm926ej.
6624 (arm_archs): Add armv5tej.
6626 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6628 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6630 2002-01-19 Keith Walker <keith.walker@arm.com>
6632 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6634 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6636 * NEWS: Mention new ARM command-line options and VFP support.
6638 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6640 (ARM_CEXT_MAVERICK): Similarly.
6641 (ARM_ANY): Now means any core instruction.
6642 (CPU_DEFAULT): Default to ARM_ANY.
6643 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6644 (pic_code): Declare for all object types. Make type int.
6645 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6646 (march_fpu_opt, mfpu_opt): Declare.
6647 (md_longopts): Tidy up conditional definitions.
6648 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6649 (arm_long_opts): New tables.
6650 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6651 (arm_parse_extension): New function.
6652 (md_parse_option): Rewrite using new table-driven system.
6653 (md_show_usage): Use new table-driven system.
6654 (md_begin): Calculate cpu_variant from command line option data.
6655 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6656 command-line options.
6657 * doc/c-arm.texi: Likewise.
6659 2002-01-18 Andreas Jaeger <aj@suse.de>
6661 * as.c (parse_args): Update year.
6663 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6665 * config/tc-tic54x.c (encode_address): Add a more informative
6666 warning about incorrect syntax.
6668 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6670 * po/gas.pot: Regenerate.
6672 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6674 * macro.c (get_any_string): Add no-c-format comment to prevent
6675 confusion when translating string.
6676 * gasp.c (get_any_string): Add no-c-format comment to prevent
6677 confusion when translating string.
6679 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6680 Johannes Stezenbach <js@convergence.de>
6681 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6682 matched before the shorter ones.
6683 (my_getSmallParser): Fix handling of nested parentheses in
6684 percent_op's. Code cleanup.
6685 (my_getPercentOp): New function, code from my_getSmallParser.
6686 (my_getSmallExpression): Fix handling of closing parentheses.
6687 Code cleanup. Better comments.
6689 2002-01-16 Nick Clifton <nickc@redhat.com>
6691 po/tr.po: New file: Turkish translation.
6692 configure.in (LINGUAS): Add "tr".
6693 configure: Regenerate.
6695 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6697 Support for VFP instructions
6698 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6699 (cp_address_required_here): New argument wb_ok. When false, do not
6700 accept write-back forms of addressing. Change all callers.
6701 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6702 (FPU_VFP_EXT_V2): Define.
6703 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6704 Define in terms of above.
6705 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6706 (vfp_reg): New struct.
6707 (vfp_regs): New array of registers.
6708 (insns): Add VFP instructions.
6709 (sn_table): New array of VFP single-precision register names.
6710 (dn_table): New array of VFP double-precision register names.
6711 (all_reg_maps): Add the new register tables.
6712 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6713 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6714 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6715 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6716 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6717 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6718 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6719 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6720 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6721 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6722 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6723 (do_vfp_sp_dp_cvt): New functions.
6724 (md_begin): Set soft-float flag for appropriate VFP work.
6725 (md_atof): Handle VFP-format doubles.
6726 (md_parse_option): Handle VFP command-line options.
6727 (md_show_usage): Display VFP command-line options.
6729 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6731 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6732 various command line options.
6734 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6736 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6738 (xstormy16_md_apply_fix3): Do not return a value.
6740 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6742 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6743 the -EL/-EB option that matches the target's endianness.
6744 (md_parse_option): Likewise.
6746 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6748 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6749 is not dependent on ARM_BI_ENDIAN.
6751 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6753 * tc-arm.c (all error messages): Normalize capitalization of messages.
6755 * tc-arm.h (md_operand): Delete define.
6756 * tc-arm.c (in_my_get_expression): New static variable.
6757 (my_get_expression): Set and clear it.
6758 (md_operand): New function. If called from my_get_expression
6759 put the error in inst.error.
6760 (output_inst): Now takes argument of instruction being assembled.
6761 Print it out with any error message.
6762 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6764 (end_of_line): Don't update inst.error if it is already set.
6766 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6768 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6769 op that can be translated into a mvn instruction.
6771 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6773 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6774 setting default md.flags.
6775 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6776 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6777 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6778 for 32 bit unwind info blocks.
6779 (generate_unwind_image): Add support for different types
6780 of unwind images (32 bits and/or big-endian).
6781 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6782 (ia64_target_format): Add support for hpux target formats.
6783 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6784 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6785 SHT_FINI_ARRAY elf section types.
6787 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6789 * tc-arm.c (struct reg_entry): Move before prototypes.
6790 (int_register, cp_register, fp_register): Delete.
6791 (reg_table): Delete. Replaced with ...
6792 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6793 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6794 (mav_dspsc_table): ... one table per register set.
6795 (arm_reg_hsh): Delete.
6796 (struct reg_map): New structure.
6797 (all_reg_maps): New array.
6798 (enum arm_reg_type): New enums.
6799 (build_reg_hsh): New function.
6800 (insert_reg_alias): Use hash table passed by caller. Adjust all
6802 (create_register_alias): New function, split out from ...
6803 (md_assemble): ... here.
6804 (md_begin): Build new register hash tables.
6805 (arm_reg_parse): New argument for the hash table to search. Adjust all
6807 (arm_reg_parse_any): New function.
6808 (co_proc_number): Look up the processor number in the processor hash
6810 (cirrus_regtype): Delete.
6811 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6812 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6813 (ARM_EXT_MAVERICKsc_register): Delete.
6814 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6815 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6817 (do_c_triple_4, do_c_triple_5): Delete.
6818 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6819 (do_c_quad_6): Delete.
6820 (do_c_quad_6[ab]): New functions.
6821 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6822 arguments to use new register parsing methods.
6823 (cirrus_reg_required_here): Likewise.
6824 (insns): Reclassify cirrus maverick worker functions.
6825 (cirrus_valid_reg): Delete.
6827 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6829 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6830 (sh*-*-netbsdelf*): New target.
6831 * configure: Regenerate.
6832 * tc-sh.h: Update copyright years.
6833 (TARGET_FORMAT): Add version for TE_NetBSD.
6835 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6837 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6840 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6842 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6843 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6845 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6847 * tc-mips.c (mips_cprestore_valid): New flag.
6848 (mips_frame_reg_valid): New flag.
6849 (macro) [M_JAL_2]: Check both flags.
6850 [M_JAL_A]: Likewise.
6851 (s_cprestore): Set mips_cprestore_valid.
6852 (tc_get_register): If setting mips_frame_reg, set
6853 mips_frame_reg_valid and clear mips_cprestore_valid.
6854 (s_mips_ent): Clear both flags.
6855 (s_mips_end): Clear both flags.
6857 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6859 * write.c (write_object_file): Make use of bfd_section_list_remove.
6860 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6861 * config/tc-mmix.c (mmix_frob_file): Likewise.
6863 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6865 * configure.in (i386-*-netbsdelf*): Collapse target into...
6866 (i386-*-netbsd*): ...this. Add support for x86-64.
6867 * configure: Regenerated.
6869 2002-01-03 matthew green <mrg@redhat.com>
6871 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6873 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6875 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6878 For older changes see ChangeLog-0001
6884 version-control: never