1 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
3 * config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
4 for .interp, .strtab and .symtab. Use specified section
7 2003-10-22 Andreas Schwab <schwab@suse.de>
8 H.J. Lu <hongjiu.lu@intel.com>
9 Jim Wilson <wilson@specifixinc.com>
11 * config/tc-ia64.c (update_qp_mutex): New.
12 (note_register_values): Properly handle one of PRs in compare
13 is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
14 Clear mutex relation for .none/.unc. Don't clear mutex relation
15 on predicated compare.
17 2003-10-21 Wouter van Heyst <wouter@vidicode.nl>
19 * config/tc-arm.c (all_reg_maps): Correct text describing Maverick
20 register requirements.
21 (md_begin): Remove F_SOFT_FLOAT if enabling MAVERICK FP.
23 2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com>
24 Bernardo Innocenti <bernie@develer.com>
26 * config/tc-m68k.c: Add MCF528x (MCFv4) support.
27 * config/m68k-parse.h: Likewise.
28 * NEWS: Mention the new support.
29 * doc/c-m68k.texi: Document new processor selection switch.
31 2003-10-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
33 * config/tc-mips.c (normalize_constant_expr): New function to fix sign
34 extensions broken by gas' expression evaluation of constants.
35 (check_absolute_expr): Use it.
38 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
40 Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
41 * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
43 * config/tc-mmix.c: Include limits.h. Expand on mmix_relax_table
45 (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
46 (pushj_stubs): New variable.
47 (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
48 (PUSHJSTUB_MAX): New macros.
49 (md_longopts): New options "--no-pushj-stubs" and synonym
51 (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
52 (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
53 (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
54 PUSHJ stub relaxation.
55 (md_convert_frag): Handle STATE_PUSHJSTUB.
56 (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
57 (tc_gen_reloc): Ditto.
58 (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
59 * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
60 (struct mmix_segment_info_type): New.
62 2003-10-17 Paul Dale <pauli@snapgear.com>
63 Bernardo Innocenti <bernie@develer.com>
65 * config/tc-m68k.c (make_pcrel_absolute): Enforce
66 PC-relative jumps with --pcrel.
67 (md_convert_frag_1): Likewise.
68 (md_create_long_jump): Likewise.
70 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
72 * config/tc-h8300.c (PSIZE): Correct for Normal mode.
73 (get_operand): Accept both 16 bit 32 bit registers as pointer
74 registers, when operating in Normal mode.
75 (fix_operand_size): Make default address size 16 for Normal mode.
77 2003-10-17 Ian Lance Taylor <ian@wasabisystems.com>
79 * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
81 (do_iwmmxt_word_addr): With a control register, reject conditional
82 execution and reject a non-word size.
84 2003-10-16 Peter Bergner <bergner@vnet.ibm.com>
86 * configure.in: Set em=linux for ppc-*-linux-gnu* target.
87 * configure: Regenerate.
89 2003-10-15 Alan Modra <amodra@bigpond.net.au>
91 * doc/as.texinfo (Align): Correct list of byte targets.
93 2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
95 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
96 Fix indentation. Better error message.
98 2003-10-14 Bob Wilson <bob.wilson@acm.org>
100 * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
101 argument in call to xtensa_get_property_section_name. Formatting.
103 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
105 * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
108 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
110 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
111 prototypes and casts.
112 * config/tc-sh.h: Likewise.
113 * config/tc-sh64.c: Likewise.
114 * config/tc-sh64.h: Likewise.
116 2003-10-08 Dave Brolley <brolley@redhat.com>
118 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
119 (fr550_check_acc_range): New function.
120 (md_assemble): Call fr550_check_acc_range.
122 2003-10-08 Dave Brolley <brolley@redhat.com>
124 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
125 (md_parse_option): Handle OPTION_CPU==fr550.
126 (md_show_usage): Document fr550.
128 2003-10-08 Philippe De Muyter <phdm@macqel.be>
130 * as.c (use_gnu_debug_info_extensions) : New variable.
131 (parse_args) : Accept new --gstabs+ option, and set
132 `use_gnu_debug_info_extensions'.
133 (show_usage) : Document --gstabs+ option.
134 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
135 * stabs.c (stabs_generate_asm_file) : If
136 `use_gnu_debug_info_extensions' is set, add the compilation
137 directory to the stabs debug info.
138 * doc/as.texinfo : Document --gstabs+ option.
139 * NEWS: Mention new feature.
141 2003-10-06 Matt Thomas <matt@3am-software.com>
143 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
146 * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
147 register names. Change all "defined (TE_LINUX)" to
148 "(defined (TE_LINUX) || defined (TE_NETBSD))".
150 * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
151 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
153 2003-10-06 Robert Millan <robertmh@gnu.org>
155 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
156 * configure: Regenerate.
158 2003-10-05 Nick Clifton <nickc@redhat.com>
160 * as.c (parse_args): Revert patch to change handling of -f
161 option. Its behaviour is mandated by the POSIX 2 spec.
163 2003-10-04 Christian Groessler <chris@groessler.org>
165 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
166 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
167 (md_pcrel_from): This function now gets called. Supply return
170 2003-10-04 Nick Clifton <nickc@redhat.com>
172 * as.c: Convert to ISO C90.
174 2003-10-04 Nick Clifton <nickc@redhat.com>
176 * as.c (std_shortopts): Remove 'f'.
177 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
178 acecpted as an alias for -f.
180 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
182 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
183 Make 'r' mean readonly data.
185 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
187 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
188 Unbreak overflow checks.
190 2003-10-01 Chris Demetriou <cgd@broadcom.com>
192 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
194 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
196 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
198 (load_register): Likewise.
201 2003-09-30 Chris Demetriou <cgd@broadcom.com>
203 * config/tc-mips.c (mips_ip): Capitalize first word of
204 existing condition code warning, and add condition code
205 warnings for .ps instructions, and for bc1any[24][tf].
207 2003-09-30 Chris Demetriou <cgd@broadcom.com>
209 * NEWS: Mention support for MIPS64 Release 2.
211 2003-09-30 Chris Demetriou <cgd@broadcom.com>
213 * NEWS: Add an indication of the cutoff for 2.14.
215 2003-09-30 Chris Demetriou <cgd@broadcom.com>
217 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
218 * configure: Regenerate.
219 * config/tc-mips.c (imm2_expr): New variable.
220 (md_assemble, mips16_ip): Initialize imm2_expr.
221 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
222 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
223 (macro): Handle M_DEXT and M_DINS.
224 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
226 (OPTION_MIPS64R2): New define.
227 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
228 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
229 (md_parse_option): Handle OPTION_MIPS64R2.
230 (s_mipsset): Handle setting "mips64r2" ISA.
231 (mips_cpu_info_table): Add mips64r2.
232 (md_show_usage): Document -mips64r2 option.
233 * doc/as.texinfo: Docuemnt -mips64r2 option.
234 * doc/c-mips.texi: Likewise.
236 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
238 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
240 2003-09-26 Matt Thomas <matt@3am-software.com>
242 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
243 (OPTION_PIC): Define.
244 (md_longopts): Add "pic" option.
245 (md_parse_option): Change 'K' to OPTION_PIC.
247 2003-09-23 Alan Modra <alan@modra.org>
249 * config/obj-elf.c (obj_elf_change_section): Adjust for
250 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
251 to be set when defaults are not. Don't set attr from defaults if
254 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
256 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
257 truncate values which won't fit im 32 bits.
258 (load_register): Likewise.
261 2003-09-17 Dmitry Diky <diwil@mail.ru>
263 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
264 (msp430_operands): Remove redundant l2[16] within switch-case.
266 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
268 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
269 * configure: Regenerate.
271 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
273 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
274 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
275 the function prototype.
276 (load_register): Likewise. Simplify the checks for sign-extended
278 (macro): Likewise. Fix code generation for 64-bit address constants
279 outside the 32-bit compatibility space. Adjust
280 macro_build_ldst_constoffset calls.
281 (s_cprestore): Adjust macro_build_ldst_constoffset call.
283 2003-09-11 Bob Wilson <bob.wilson@acm.org>
285 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
286 literal_syms): New global variables.
287 (xtensa_define_label, add_target_symbol, xtensa_find_label,
288 map_over_defined_symbols, is_loop_target_label,
289 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
290 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
291 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
292 from insn_labels to saved_insn_labels when entering a literal region.
293 (xtensa_end_directive): Call md_flush_pending_output. Restore
294 insn_labels list when leaving a literal region.
295 (xtensa_literal_position): Call xtensa_clear_insn_labels.
296 (xtensa_literal_pseudo): Add check to disallow .literal inside a
297 literal region. Move insn_labels to saved_insn_labels and then restore
299 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
300 code to set is_loop_target or is_branch_target flag on the symbol
301 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
302 (xtensa_add_literal_sym, xtensa_add_insn_label,
303 xtensa_clear_insn_labels): New functions.
304 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
305 loops_ok argument. Rewrite to use insn_labels list instead of
306 calling xtensa_find_label and to check the is_loop_target flag on
307 symbols when loops_ok is false.
308 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
309 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
310 call to xtensa_move_labels. Propagate is_branch_target and
311 is_loop_target flags from symbols to frags.
312 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
313 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
314 aligning a loop instruction. Adjust call to xtensa_move_labels for
315 aligning entry instructions. Add call to xtensa_clear_insn_labels.
316 (xtensa_end): Remove call to xtensa_mark_target_fragments.
317 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
318 code to use new literal_syms list.
319 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
320 is_branch_target flags.
322 2003-09-09 Bob Wilson <bob.wilson@acm.org>
324 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
325 "move_labels" argument and corresponding call to xtensa_move_labels.
326 (md_assemble): Add a separate call to xtensa_move_labels and remove
327 argument for call to xtensa_mark_literal_pool_location.
328 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
329 calls to xtensa_mark_literal_pool_location.
330 (xtensa_create_local_symbol): Delete and inline the code into...
331 (xtensa_create_literal_symbol): ...here.
332 (xtensa_frob_label): Combine conditionals.
333 (expression_maybe_register, xtensa_symbol_new_hook,
334 fix_new_exp_in_seg): Use symbol_get_tc.
336 2003-09-09 Bob Wilson <bob.wilson@acm.org>
338 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
339 combining identical literals.
340 (expression_maybe_register): Remove call to find_lit_sym_translation.
341 (is_duplicate_expression, cache_literal, is_duplicate_literal,
342 add_lit_sym_translation, find_lit_sym_translation): Delete.
344 2003-09-07 Nick Clifton <nickc@redhat.com>
346 * doc/as.texinfo (Comments): Comment character for PPC is #.
348 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
351 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
354 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
356 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
358 2003-09-04 Nick Clifton <nickc@redhat.com>
360 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
361 (md_pseudo_table): Add .v850e1 pseudo op.
362 (md_show_usage): Document -mv850e1 switch.
363 (md_parse_option): Accept -mv850e1 switch.
364 (md_begin): Allow TARGET_CPU to be v850e1.
365 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
366 * NEWS: Mention support for v850e1.
368 2003-09-04 Alan Modra <amodra@bigpond.net.au>
370 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
371 ppc_cpu selection rather than replacing.
372 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
373 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
375 2003-09-03 Robert Millan <robertmh@gnu.org>
377 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
379 * configure: Regenerate.
381 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
383 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
384 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
385 Specify AC_CONFIG_AUX_DIR.
386 * aclocal.m4: Regenerated with aclocal-1.7.
387 * configure: Regenerated with autoconf 2.57.
388 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
390 2003-08-29 Jakub Jelinek <jakub@redhat.com>
392 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
393 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
394 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
395 nor tc_cfi_emit_pcrel_expr are defined.
396 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
397 DIFF_EXPR_OK is not defined.
398 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
399 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
400 tc_cfi_emit_pcrel_expr): Define.
401 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
402 sparc_cfi_emit_pcrel_expr): New prototypes.
403 (sparc_cie_data_alignment): New decl.
404 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
405 * config/tc-sparc.c: Include dw2gencfi.h.
406 (sparc_cie_data_alignment): New variable.
407 (md_begin): Initialize it.
408 (sparc_cfi_frame_initial_instructions): New function.
409 (sparc_regname_to_dw2regnum): Likewise.
410 (sparc_cfi_emit_pcrel_expr): Likewise.
411 * doc/as.texinfo: Document .cfi_window_save.
413 * config/tc-sparc.c (s_common): Cast last argument to long and
414 change format string to shut up warning.
416 2003-08-25 Jason Eckhardt <jle@rice.edu>
418 * doc/c-i860.texi: Update text about relocatable address expansions.
420 2003-08-24 Jason Eckhardt <jle@rice.edu>
422 * config/tc-i860.c (md_assemble): Use isrc2 from the original
423 instruction when expanding E_ADDR.
425 2003-08-21 Nick Clifton <nickc@redhat.com>
427 * po/tr.po: Updated Turkish translation.
429 2003-08-20 Alan Modra <amodra@bigpond.net.au>
431 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
432 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
434 2003-08-19 Nick Clifton <nickc@redhat.com>
436 * config/tc-arm.c (cp_address_required_here): Add code to handle
437 unindexed addressing mode.
439 2003-08-19 Alan Modra <amodra@bigpond.net.au>
441 * config/tc-ppc.c (md_parse_option): Handle -m440.
442 (md_show_usage): Add -m440.
443 (md_apply_fix3): Warning fix.
444 * doc/c-ppc.texi: Document -m440.
446 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
448 * read.c (s_print): Check for NULL.
450 2003-08-16 Alan Modra <amodra@bigpond.net.au>
452 * write.c (fixup_segment): When handling an expression involving
453 the subtraction of two symbols in the same segment, don't clear
454 fx_pcrel except for TC_M68K.
456 2003-08-14 Alan Modra <amodra@bigpond.net.au>
458 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
460 * config/tc-i386.c: Likewise.
461 (RELOC_ENUM): Don't define. Replace throughout with enum.
463 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
464 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
466 * Makefile.in: Regenerate.
468 2003-08-08 Andreas Schwab <schwab@suse.de>
470 * config/tc-m68k.h (TARGET_USE_CFIPOP)
471 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
472 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
474 * config/tc-m68k.c: Include "dw2gencfi.h".
475 (tc_m68k_regname_to_dw2regnum)
476 (tc_m68k_frame_initial_instructions): New functions.
478 2003-08-08 Dmitry Diky <diwil@mail.ru>
480 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
481 according to gcc order.
483 2003-08-07 Jason Eckhardt <jle@rice.edu>
485 * config/tc-i860.c (i860_check_label): New function.
486 * config/tc-i860.h (i860_check_label): New prototype.
487 (tc_check_label): Define macro as i860_check_label.
489 2003-08-06 Jason Eckhardt <jle@rice.edu>
491 * config/tc-i860.c (s_align_wrapper): New function and prototype.
492 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
493 surrounding OBJ_ELF ifdef, and re-format slightly.
494 * doc/c-i860.texi: Document the special .align syntax available
497 2003-08-06 Jason Eckhardt <jle@rice.edu>
499 * config/tc-i860.c (i860_handle_align): New function.
500 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
501 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
503 2003-08-06 Jason Eckhardt <jle@rice.edu>
505 * config/tc-i860.c (i860_process_insn): Check that instructions
506 with their dual-bit set are 8-byte aligned.
508 2003-08-06 Nick Clifton <nickc@redhat.com>
510 * po/fr.po: Updated French translation.
512 2003-08-05 Jason Eckhardt <jle@rice.edu>
514 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
515 setting during flop argument parsing. Instead, do it after
516 instruction is fully parsed.
518 2003-08-05 Jason Eckhardt <jle@rice.edu>
520 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
521 directives are only available in Intel syntax mode.
523 2003-08-05 Jason Eckhardt <jle@rice.edu>
525 * config/tc-i860.c (s_dual): Accept .dual directive only in
526 the Intel syntax mode.
527 (s_enddual): Likewise for .enddual.
528 (s_atmp): Likewise for .atmp.
530 2003-08-04 Alan Modra <amodra@bigpond.net.au>
532 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
533 for memory operands. Pass the full operand_string to i386_index_check.
535 2003-08-01 Jason Eckhardt <jle@rice.edu>
537 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
538 (target_intel_syntax): Declare variable.
539 (OPTION_INTEL_SYNTAX): Declare macro.
540 (md_longopts): Add option -mintel-syntax.
541 (md_parse_option): Set target_intel_syntax.
542 (md_show_usage): Add -mintel-syntax usage.
543 (md_begin): Set reg_prefix based on target_intel_syntax.
544 (i860_process_insn): Skip register prefix only if there is one.
545 Parse relocatable expressions in either Intel or AT&T syntax based
546 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
547 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
548 about the differences in syntax.
550 2003-08-01 Dmitry Diky <diwil@mail.ru>
552 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
555 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
557 * config/tc-sh.c (md_assemble): For branches, check & update
560 2003-07-30 Jason Eckhardt <jle@rice.edu>
562 * config/tc-i860.c: Convert to ISO C90.
564 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
566 * read.c (s_space): Revert 2003-07-28 change.
568 2003-07-30 Alan Modra <amodra@bigpond.net.au>
570 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
572 2003-07-29 Alan Modra <amodra@bigpond.net.au>
574 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
576 2003-07-29 Jakub Jelinek <jakub@redhat.com>
578 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
580 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
582 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
584 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
586 * read.c (s_space): Don't warn about .space 0.
588 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
590 * config/tc-mips.c (mips_flag_pdr): Define.
591 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
592 (s_mips_end) [OBJ_ELF]: Likewise.
593 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
594 (md_parse_option) [OBJ_ELF]: Handle them.
595 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
597 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
598 * doc/as.texinfo (Overview) [MIPS]: Likewise.
600 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
602 * config/obj-elf.c (obj_elf_change_section): Update
603 elf_section_type and elf_section_flags only when they are
606 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
608 * config/obj-elf.c (obj_elf_change_section): Always set section
611 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
613 * config/obj-elf.c (special_sections): Removed.
614 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
615 elf_section_type and elf_section_flags.
616 (elf_frob_file): Set SHT_GROUP.
618 * config/obj-elf.h (obj_sec_set_private_data): New.
620 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
621 * config/tc-ia64.h: Likewise.
622 * config/tc-m32r.h: Likewise.
623 * config/tc-m68hc11.h: Likewise.
624 * config/tc-mcore.h: Likewise.
625 * config/tc-mips.h: Likewise.
626 * config/tc-ppc.h: Likewise.
627 * config/tc-sh64.h: Likewise.
628 * config/tc-v850.h: Likewise.
629 * config/tc-xtensa.h: Likewise.
631 * config/tc-v850.h (SHF_V850_GPREL): Removed.
632 (SHF_V850_EPREL): Likewise.
633 (SHF_V850_R0REL): Likewise.
635 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
638 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
640 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
641 debugging symbols so that we handle page memory correctly.
643 2003-07-24 Nick Clifton <nickc@redhat.com>
645 * po/fr.po: Updated French translation.
647 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
649 * config/tc-arm.c (arm_archs): Add iwmmxt.
651 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
653 * read.c (do_parse_cons_expression): Mark nbytes unused to
656 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
658 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
661 * config/tc-h8300.c (md_assemble): Make sure characters after
662 slash and dot are lower-case.
664 2003-07-17 Nick Clifton <nickc@redhat.com>
666 * po/es.po: New Spanish translation.
667 * po/tr.po: New Turkish translation.
668 * po/opcodes.pot: Regenerate.
670 2003-07-16 Alan Modra <amodra@bigpond.net.au>
672 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
673 (generic_dwarf2_emit_offset): Don't define function when
674 TC__DWARF2_EMIT_OFFSET is defined.
676 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
678 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
679 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
680 * doc/c-mips.texi: Document -march=rm9000.
682 2003-07-15 Alan Modra <amodra@bigpond.net.au>
684 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
685 only for V850_OPERAND_DISP operands.
687 2003-07-15 Alan Modra <amodra@bigpond.net.au>
689 * frags.c (frag_more): Move segment checks to..
690 (frag_alloc_check): ..here. New function.
691 (frag_append_1_char): Call frag_alloc_check.
693 2003-07-14 Nick Clifton <nickc@redhat.com>
695 * po/tr.po: Update with latest version.
696 * po/POTFILES.in: Regenerate.
697 * po/gas.pot: Regenerate.
698 * configure: Regenerate.
700 2003-07-14 Nick Clifton <nickc@redhat.com>
702 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
703 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
704 "safe-ctype.h" and update use of macros.
705 * Makefile.am: Update dependencies.
706 * Makefile.in: Regenerate.
708 2003-07-11 Alan Modra <amodra@bigpond.net.au>
710 * po/gas.pot: Regenerate.
712 2003-07-10 Jakub Jelinek <jakub@redhat.com>
714 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
715 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
716 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
717 DWARF2_CIE_DATA_ALIGNMENT): Define.
718 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
720 (ppc_cie_data_alignment): Declare.
721 * config/tc-ppc.c: Include dw2gencfi.h.
722 (ppc_cie_data_alignment): Define.
723 (md_begin): Initialize ppc_cie_data_alignment.
724 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
726 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
727 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
728 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
729 DWARF2_CIE_DATA_ALIGNMENT): Define.
730 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
732 (s390_cie_data_alignment): Declare.
733 * config/tc-s390.c: Include dw2gencfi.h.
734 (s390_cie_data_alignment): Define.
735 (md_begin): Initialize s390_cie_data_alignment.
736 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
739 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
741 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
742 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
743 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
744 * configure.in (am33_2.0, mn10300-*-linux*): Added.
745 * configure: Rebuilt.
746 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
748 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
751 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
753 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
754 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
755 for subtracts from GLOBAL_OFFSET_TABLE that could not be
757 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
758 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
759 could not be simplified.
760 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
761 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
762 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
763 BDF_RELOC_MN10300_GOT32.
764 * config/tc-mn10300.c (mn10300_fix_adjustable): If
765 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
766 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
767 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
768 symbol if we know its value.
769 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
770 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
771 duplicate underscore prefix.
772 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
773 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
774 type in X_md, not X_add_number. Zero X_add_number.
775 (mn10300_check_fixup): Extract relocation type from X_md.
776 * config/tc-mn10300.h: Update comment.
777 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
778 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
780 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
781 (mn10300_check_fixup): Likewise.
782 (mn10300_parse_name): Set X_add_number to relocation type.
783 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
784 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
785 O_GOTOFF, O_PLT, O_GOT): Define.
786 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
787 (mn10300_check_fixup): New fn.
788 (md_assemble): Call it. Check for PIC-related relocs.
789 (mn10300_cons_fix_new): Likewise. New fn.
790 (mn10300_end_of_match): New fn.
791 (mn10300_md_parse_name_cont): New fn.
793 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
795 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
796 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
798 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
799 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
800 md_assemble, md_estimate_size_before_relax): Handle fbCC.
801 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
802 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
804 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
805 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
806 (HAVE_AM33): Match AM33_2 too.
807 (HAVE_AM33_2): New macro.
808 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
809 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
810 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
811 (float_registers, double_registers): New variables.
812 (float_register_name, double_register_name): New functions.
813 (md_assemble): Recognize FP registers. Implement FMT_D3.
814 (mn10300_insert_operand): Support FP registers.
816 2003-07-08 Chris Demetriou <cgd@broadcom.com>
818 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
819 target being a global symbol if not compiling SVR4 PIC code.
821 2003-07-07 Nick Clifton <nickc@redhat.com>
823 * doc/c-m32r.texi (M32R-Directives): New node. Document the
824 .high, .shigh and .low directives.
826 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
828 * config/tc-h8300.c (h8300sxnmode): Add prototype.
830 (parse_exp): Replace expressionS argument with a h8_op. Parse the
831 operand size as well.
832 (skip_colonthing): Remove unused expression argument. Tighten checks
834 (colonmod24): Remove.
835 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
836 (get_operand): Likewise. Use the standard code to read the size of
837 pc-relative operands.
838 (fix_operand_size): Include the size-guessing logic that used to be
839 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
840 offsets with a symbolic component.
842 2003-07-04 Nick Clifton <nickc@redhat.com>
844 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
845 macro to compute size of selected register name array.
847 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
849 * config/tc-s390.c (md_parse_option): Add cpu type z990.
850 (md_begin): Add minimal cpu type logic for instructions with different
851 binary format depending on the cpu.
852 (md_assemble): Remove check for minimal cpu.
853 (s390_insert_operand): Add support for long displacements.
854 (md_gather_operands): Likewise.
855 (tc_s390_fix_adjustable): Likewise.
856 (tc_s390_force_relocation): Likewise.
857 (md_apply_fix3): Likewise.
859 2003-06-30 Chris Demetriou <cgd@broadcom.com>
861 * config/tc-mips.c (s_mipsset): Implement -march= handling
864 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
866 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
867 prototypes and casts. Replace PTR with void *. Reformat.
868 * config/tc-mips.h: Likewise.
870 2003-06-30 Alan Modra <amodra@bigpond.net.au>
872 * config/tc-ia64.c (note_register_values): Warning fix.
873 * config/tc-mips.c (append_insn): Likewise.
875 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
877 * config/tc-mips.c (mips_set_options,mips_opts): Support for
879 (file_mips_arch): Rename mips_arch.
880 (mips_arch_info,mips_tune_info): Remove.
881 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
882 (mips_cpu_info_from_arch): New function.
883 (md_begin): Use file_mips_arch.
884 (macro_build,macro,mips_ip): Use mips_opts.arch.
885 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
886 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
888 (s_mipsset): Support for .set arch=FOO.
889 (mips_cpu_info_table): Fix typo.
891 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
893 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
895 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
897 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
898 unsigned 8-bit operands.
900 2003-06-24 Nick Clifton <nickc@redhat.com>
902 * read.c (s_comm): Change error message to assume an unsigned size
903 has been passed to .comm.
904 * config/tc-sparc.c (s_common): Likewise.
905 * write.c (write_contents): Replace 'unsigned long' with
906 'addressT' and 'long' with offsetT in order to allow computations
907 with very large values to work for 64-bit addressed targets.
908 (relax_and_size_all_segments): Likewise.
909 (relax_frag): Likewise.
910 (relax_segment): Likewise.
912 2003-06-23 Mark Mitchell <mark@codesourcery.com>
914 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
916 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
918 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
921 * gas/config/tc-i386.h (CpuPNI): New.
922 (CpuUnknownFlags): Add CpuPNI.
924 2003-06-23 <davidm@hpl.hp.com>
926 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
927 freebsd, openvms, and nsk (non-stop kernel).
929 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
931 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
932 all locals have been declared.
934 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
936 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
937 special handling for n32 ABI.
940 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
942 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
945 2003-06-19 Christian Groessler <chris@groessler.org>
947 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
948 now, not only a warning. Add some more checks to detect invalid
950 (get_operand): For CLASS_IR remember register size in mode struct.
951 (get_specific): Handle new CLASS_IRO type. Add register size
952 checks for CLASS_IR and CLASS_IRO.
953 (md_apply_fix3): Fix undefined usage of buf.
955 2003-06-19 Alan Modra <amodra@bigpond.net.au>
957 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
958 (ppc_change_csect): Add align param. Align frag at start of csect.
959 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
960 (ppc_frob_section): Align vma.
962 2003-06-18 Jakub Jelinek <jakub@redhat.com>
964 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
965 (output_cie): Don't pad.
966 (output_fde): Add align argument. Pad to align if not 0.
967 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
968 Pad just last FDE to EH_FRAME_ALIGNMENT.
970 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
972 * config/tc-s390.c (init_default_arch): Make current_mode_mask
973 dependent on s390_arch_size and current_cpu dependent on
976 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
978 * configure.in: Add c4x as an architecture variant to tic4x.
979 * configure: Regenerate.
980 * Makefile.in: Regenerate.
981 * doc/Makefile.in: Regenerate.
983 2003-06-18 Alan Modra <amodra@bigpond.net.au>
985 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
986 ".TOC." from PPC64_TOC relocs.
988 2003-06-17 Alan Modra <amodra@bigpond.net.au>
990 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
992 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
994 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
995 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
996 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
997 s_cprestore,s_cpadd): Use them.
999 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
1001 * configure.in: Add specific case for cris-*-linux-gnu* with
1003 * configure: Regenerate.
1004 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
1005 if TE_LINUX defined, else FALSE.
1006 (bfd_boolean demand_register_prefix): Set default from
1007 DEFAULT_CRIS_AXIS_LINUX_GNU.
1008 (symbols_have_leading_underscore): Similar.
1009 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
1011 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1013 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
1014 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
1015 FPU_ARCH_FPA for AOUT.
1016 (md_begin): Don't try to guess the floating point architecture from
1017 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
1019 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
1021 * configure.in: Add i386-netbsd-gnu target.
1022 * configure: Regenerate.
1024 2003-06-12 Tom Tromey <tromey@redhat.com>
1026 * doc/as.texinfo (Comm): Added @node. Moved before CFI
1029 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
1031 * config/tc-mips.c (append_insn): In a compound relocation, take the
1032 field width from the final (outermost) operator.
1034 2003-06-11 Richard Henderson <rth@redhat.com>
1036 * dw2gencfi.c (struct cfi_escape_data): New.
1037 (cfi_add_CFA_nop): Remove.
1038 (CFI_escape, dot_cfi_escape): New.
1039 (dot_cfi): Remove nop.
1040 (cfi_pseudo_table): Remove nop; add escape.
1041 (output_cfi_insn): Likewise.
1042 (select_cie_for_fde): Stop on escape.
1043 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1044 * read.c, read.h (do_parse_cons_expression): New.
1045 * doc/as.texinfo (.cfi_escape): New.
1047 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1049 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1050 (s_cprestore): Likewise.
1051 (s_cpreturn): Likewise.
1053 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1055 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1058 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1060 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1061 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1062 exceptions from size assert. Remove most of the addend fixup
1063 specialcasing. Remove value, use valP directly. simplify fx_addnumber
1064 handling. Remove zero addend specialcases.
1065 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1066 the addend fixup specialcase.
1067 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1069 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1071 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1072 in the RELOC_EXPANSION_POSSIBLE case.
1074 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1076 * config/tc-i960.c (line_comment_chars): Add '#'.
1077 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1079 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
1081 * po/Make-in (DESTDIR): New.
1082 (install-data-yes): Support $(DESTDIR).
1083 (uninstall): Likewise.
1085 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1087 * Makefile.am: Run "make dep-am".
1088 * Makefile.in: Regenerate.
1089 * po/POTFILES.in: Regenerate.
1091 2003-06-10 Doug Evans <dje@sebabeach.org>
1093 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1095 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1096 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1097 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1099 2003-06-10 Alan Modra <amodra@bigpond.net.au>
1100 Gary Hade <garyhade@us.ibm.com>
1102 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1103 (md_apply_fix3): Special case lq insn.
1105 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1107 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1108 lists. Allow single-register ranges.
1110 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1112 * config/tc-h8300.c (h8300sxnmode): New.
1113 (md_pseudo_table): Add .h8300sxn entry.
1115 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1117 * NEWS: Updated for the new -n option for the i386 assembler.
1119 * config/tc-i386.c (optimize_align_code): New.
1120 (md_shortopts): Add 'n'.
1121 (md_parse_option): Handle 'n'.
1122 (md_show_usage): Add '-n'.
1124 * config/tc-i386.h (optimize_align_code): Declared.
1125 (md_do_align): Optimize code alignment only if optimize_align_code
1128 * doc/as.texinfo: Add the new -n option.
1130 * doc/c-i386.texi: Document the new -n option.
1132 2003-06-07 Richard Henderson <rth@redhat.com>
1134 * doc/as.texinfo: Document .cfi_rel_offset.
1136 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1137 (cfi_add_CFA_offset): Detect invalid offsets.
1138 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1139 (cfi_add_CFA_restore_state): Restore it.
1140 (CFI_rel_offset): New.
1141 (cfi_pseudo_table): Add it.
1142 (dot_cfi): Handle it.
1144 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1146 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1149 2003-06-05 Michael Snyder <msnyder@redhat.com>
1151 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1152 (build_bytes): Ditto.
1154 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1156 * config/tc-h8sx.c (DMODE): Remove.
1157 (colonmod24): Don't choose a default if the operand is a 16-bit
1159 (fix_operand_size): New function.
1160 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1161 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1163 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1165 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1166 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1167 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1168 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1169 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1170 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1171 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1172 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1173 (cfi_pseudo_table): New directives .cfi_return_column,
1174 .cfi_restore, .cfi_undefined, .cfi_same_value,
1175 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1176 (dot_cfi, output_cfi_insn): Handle new directives.
1177 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1178 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1179 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1181 2003-06-04 Richard Henderson <rth@redhat.com>
1183 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1185 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1187 2003-06-04 Richard Henderson <rth@redhat.com>
1189 * config/tc-alpha.c (s_alpha_usepv): New.
1190 (md_pseudo_table): Add it.
1191 (alpha_cfi_frame_initial_instructions): New.
1192 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1193 (tc_cfi_frame_initial_instructions): New.
1194 * doc/c-alpha.texi: Document .usepv.
1196 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1198 * as.c (show_usage): Document --execstack and --noexecstack.
1199 (parse_args): Add --execstack and --noexecstack.
1200 (main): Create .note.GNU-stack section if --execstack or
1201 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1202 * as.h (flag_execstack, flag_noexecstack): New.
1204 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1206 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1207 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1208 (OPTION_MISC_BASE): New defines.
1209 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1210 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1211 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1212 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1213 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1214 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1215 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1216 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1217 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1218 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1219 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1220 (OPTION_TRAP): Redefine in terms of new defines.
1221 (md_longopts): Reorder entries.
1223 2003-05-14 Michael Snyder <msnyder@redhat.com>
1224 From Bernd Schmidt <bernds@redhat.com>
1225 and Michael Snyder <msnyder@redhat.com>
1226 and Alexandre Oliva <aoliva@redhat.com>
1227 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1228 * config/tc-h8300.h: Ditto.
1230 2003-06-03 Nick Clifton <nickc@redhat.com>
1232 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1233 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1234 before calling bfd_reloc_type_lookup.
1236 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1238 * read.c (emit_expr): Set dot_value.
1239 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1241 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1243 * macro.c (sub_actual): Don't lose string if it turns out that
1244 &string wasn't an arg.
1246 2003-05-31 Richard Henderson <rth@redhat.com>
1248 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1249 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1251 2003-05-29 Richard Henderson <rth@redhat.com>
1253 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1254 (all_frame_data, plast_frame_data, cur_frame_data): New.
1255 (s_alpha_ent): Record data for dwarf2 cfi.
1256 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1257 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1258 * config/tc-alpha.h (md_end): New.
1259 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1260 (DWARF2_CIE_DATA_ALIGNMENT): New.
1262 2003-05-29 Nick Clifton <nickc@redhat.com>
1264 * configure.in: Add i386-*-freebsd* entry.
1265 * configure: Regenerate.
1267 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1269 * config/tc-m32r.c: Amend comment to refer to Renesas
1271 2003-05-27 Richard Henderson <rth@redhat.com>
1273 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1275 (current_location): Use symbol_temp_new_now.
1276 * stabs.c (s_stab_generic): Use symbol_temp_new.
1277 * symbols.c (temp_label_name): Remove.
1278 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1280 2003-05-27 Richard Henderson <rth@redhat.com>
1282 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1283 * as.c (main): Always call cfi_finish.
1284 * config/tc-i386.c (x86_dwarf2_return_column): New.
1285 (x86_cie_data_alignment): New.
1286 (md_begin): Set them.
1287 (tc_x86_cfi_init): Remove.
1288 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1289 return int, not unsigned long; don't as_bad here.
1290 (tc_x86_frame_initial_instructions): Streamline; use
1292 * config/tc-i386.h (tc_cfi_init): Remove.
1293 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1294 (DWARF2_CIE_DATA_ALIGNMENT): New.
1296 2003-05-27 Richard Henderson <rth@redhat.com>
1298 * symbols.c (temp_label_name): New.
1299 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1300 (symbol_set_value_now): New.
1301 * symbols.h: Prototype them.
1302 * dwarf2dbg.c: Use them.
1303 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1305 2003-05-23 Jason Eckhardt <jle@rice.edu>
1307 * config/tc-i860.c (target_xp): Declare variable.
1308 (OPTION_XP): Declare macro.
1309 (md_longopts): Add option -mxp.
1310 (md_parse_option): Set target_xp.
1311 (md_show_usage): Add -mxp usage.
1312 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1313 (md_assemble): Don't try expansions if XP_ONLY is set.
1314 * doc/c-i860.texi: Document -mxp option and i860XP support.
1316 2003-05-23 Eric Christopher <echristo@redhat.com>
1318 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1320 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1322 * config/tc-mips.c (append_insn): Use actual relocation size for new
1323 fixp's. Don't relax overflow checking for partial_inplace relocations.
1324 Use the actual relocation type in combined relocs, not just the type
1326 (macro_build_jalr): Use actual relocation size for new fix.
1327 (s_cpsetup, s_gpdword): Likewise.
1329 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1331 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1333 2003-05-22 Nick Clifton <nickc@redhat.com>
1335 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1336 section relative offsets for relocs that will not be based on the
1338 (xstormy16_md_apply_fix3): Remove previous patch to this
1341 2003-05-07 Eric Christopher <echristo@redhat.com>
1343 * config/tc-mips.c (mips_abicalls): New variable.
1344 (md_parse_option): Use.
1346 (s_abicalls): Ditto.
1347 (mips_elf_final_processing): Set EF_MIPS_PIC and
1348 EF_MIPS_CPIC dependent on above.
1350 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1352 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1354 2003-05-21 Nick Clifton <nickc@redhat.com>
1356 * config/obj-elf.c: Include dwarf2dbg.h.
1357 (elf_pseudo_tab): Add .file and .loc.
1358 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1359 * config/tc-arm.c: Likewise.
1360 * config/tc-h8300.c: Likewise.
1361 * config/tc-hppa.c: Likewise.
1362 * config/tc-ia64.c: Likewise.
1363 * config/tc-m68hc11.c: Likewise.
1364 * config/tc-m68k.c: Likewise.
1365 * config/tc-mmix.c: Likewise.
1366 * config/tc-mn10300.c: Likewise.
1367 * config/tc-ppc.c: Likewise.
1368 * config/tc-sh.c: Likewise.
1369 * config/tc-sparc.c: Likewise.
1370 * config/tc-v850.c: Likewise.
1371 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1373 * config/tc-ip2k.c: Likewise.
1374 * config/tc-iq2000.c: Likewise.
1375 * config/tc-xstormy16.c: Likewise.
1376 * config/tc-xtensa.c: Likewise.
1377 * Makefile.am: Regenerate dependencies.
1378 * Makefile.in: Regenerate.
1379 * aclocal.m4: Regenerate.
1380 * config.in: Regenerate.
1381 * configure: Regenerate.
1382 * po/POTFILES.in: Regenerate.
1383 * po/gas.pot: Regenerate.
1385 2003-05-21 Nick Clifton <nickc@redhat.com>
1387 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1388 BFD_ASSEMBLER targets.
1389 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1390 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1391 defining BFD_ASSEMBLER.
1393 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1395 * as.c (main): Remove tc_cfi_init().
1396 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1398 (cfi_pseudo_table): Add "cfi_register" entry.
1399 (cfi_make_insn): Handle CFA_register.
1400 (cfi_output_insn): Ditto.
1402 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1403 (dot_cfi_endproc): Reuse already emitted CIEs.
1404 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1405 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1407 2003-05-20 Nick Clifton <nickc@redhat.com>
1409 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1410 (md_pseudo_table): Add entries for .loc and .line.
1412 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1414 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1416 (dot_cfi_endproc): Avoid C99 construct.
1418 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1420 * dw2gencfi.c, dw2gencfi.h: New files.
1421 * config/tc-i386.c (tc_x86_cfi_init): New function.
1422 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1423 * as.c (parse_args): Set verbose flag on --verbose.
1424 (main): Call tc_cfi_init()/cfi_finish().
1425 * as.h (verbose): New external variable.
1426 * read.c (pobegin): Insert CFI pops to the list.
1427 * symbols.c (local_symbol_make): Make symbol external.
1428 * symbols.h (local_symbol_make): New prototype.
1429 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1430 * Makefile.in: Regenerate.
1431 * doc/as.texinfo: Added node "CFI directives" with description of
1432 all implemented .cfi_* directives.
1433 * doc/Makefile.in: Regenerate.
1434 * po/POTFILES.in: Regenerate.
1436 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1438 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1440 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1442 2003-05-18 Jason Eckhardt <jle@rice.edu>
1444 * config/tc-i860.c (i860_process_insn): Initialize fc after
1445 each opcode mismatch.
1447 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1449 * configure.in: Accept i[3-7]86 variants.
1450 * configure: Regenerate.
1452 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1454 * config/tc-mips.h: Fix comment formatting.
1456 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1458 * read.c (old_buffer, old_input, old_limit): Remove variables.
1459 (read_a_source_file): Delete label contin.
1460 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1461 input as with macros, instead of in separate old_* variables.
1462 Zero-terminate string being scrubbed.
1464 2003-05-12 Nick Clifton <nickc@redhat.com>
1466 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1467 (md_assemble): Reset skipping_fptr.
1468 (md_operand): If @fptr() is followed by a minus sign, set
1469 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1470 @fptr is detected, ignore it and reset skipping_fptr.
1472 2003-05-11 Jason Eckhardt <jle@rice.edu>
1474 * config/tc-i860.c (MAX_FIXUPS): Define.
1475 (struct i860_fi fi[]): New struct.
1476 (struct i860_it the_insn): Add above as member and move fields
1477 exp, reloc, pcrel and fup into i860_fi.
1478 (md_assemble): Replace all instances of exp, reloc, pcrel
1479 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1480 Add a loop to possibly emit multiple fix-ups for each insn.
1481 (i860_process_insn): Likewise.
1482 (i860_get_expression): Likewise.
1483 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1485 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1487 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1489 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1491 * config/tc-ia64.c (alias_hash): New.
1492 (alias_name_hash): New.
1493 (secalias_hash): New.
1494 (secalias_name_hash): New.
1495 (md_pseudo_table): Add "secalias".
1496 (md_begin): Initialize alias_hash, alias_name_hash,
1497 secalias_hash and secalias_name_hash.
1498 (struct alias): New.
1499 (dot_alias): Implement .alias and .secalias directives.
1501 (ia64_adjust_symtab): New.
1503 (ia64_frob_file): New.
1505 * config/tc-ia64.h (ia64_adjust_symtab): New.
1506 (tc_adjust_symtab): Defined.
1507 (ia64_frob_file): New.
1508 (tc_frob_file): Defined.
1510 2003-05-07 Dmitry Diky <diwil@mail.ru>
1512 * tc-msp430.c: Add missing lines to known cpus list.
1514 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1516 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1517 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1518 * config.in, configure: Rebuilt.
1520 2003-05-05 H.J. Lu <hjl@gnu.org>
1522 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1523 howto->partial_inplace is false.
1525 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1527 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1528 symbol_used_in_reloc_p check.
1529 (md_apply_fix3): Remove check for howto->pcrel_offset.
1531 2003-05-03 H.J. Lu <hjl@gnu.org>
1533 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1534 fatal error for unknown section attribute.
1536 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1537 unknown section attribute.
1538 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1539 * config/tc-ppc.c (ppc_section_letter): Likewise.
1541 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1542 (ia64_elf_section_type): Accept "unwind".
1544 2003-05-02 H.J. Lu <hjl@gnu.org>
1546 * read.h (demand_copy_string): New.
1548 * config/tc-alpha.c (demand_copy_string): Removed.
1550 2003-05-02 Michael Snyder <msnyder@redhat.com>
1552 * write.h (FAKE_LABEL_NAME): Allow override
1553 (for targets that like eg. a leading dot in a local label).
1555 2003-05-02 Nick Clifton <nickc@redhat.com>
1557 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1558 addend with the symbol's value for pc-relative relocations against
1559 a defined symbol - this will be done automatically.
1561 2003-05-01 H.J. Lu <hjl@gnu.org>
1563 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1566 2003-05-01 H.J. Lu <hjl@gnu.org>
1568 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1570 * config/obj-elf.c (obj_elf_section_name): Call
1571 tc_canonicalize_section_name if it is defined.
1573 2003-05-01 H.J. Lu <hjl@gnu.org>
1575 * config/tc-ia64.c (ia64_check_label): New.
1576 * config/tc-ia64.h (tc_check_label): New.
1578 * read.c (read_a_source_file): Call tc_check_label after
1579 creating a user-defined label if defined.
1581 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1583 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1584 -be and split strings to below 509 bytes in length.
1586 2003-05-01 Christian Groessler <chris@groessler.org>
1588 * expr.h: Fix comments in operatorT typedef.
1589 * config/tc-z8k.c: Add 2003 to copyright message.
1590 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1591 decides by the parameter.
1592 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1593 command line argument was given to select the intended
1595 (get_interrupt_operand): Warn if NOP type code is emitted.
1596 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1597 (apply_fix): Call newfix with additional 'size' parameter.
1598 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1599 4 bit immediate arguments.
1600 (md_longopts): Add 'linkrelax' option.
1601 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1602 variable when 'linkrelax' command line option is specified.
1603 (md_show_usage): Display 'linkrelax' option.
1604 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1605 R_CALLR and R_REL16.
1606 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1608 2003-04-30 H.J. Lu <hjl@gnu.org>
1610 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1611 (ia64_float_to_chars): Likewise.
1612 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1613 and ia64_float_to_chars by tc_segment_info_data.endian from
1614 the current segment if byteorder == -1.
1615 (md_begin): Call dot_byteorder to set target_big_endian.
1616 (md_atof): Call ia64_float_to_chars to convert floating point.
1617 (ia64_float_to_chars_bigendian): New function.
1618 (ia64_float_to_chars_littleendian): Likewise.
1619 (ia64_elf_section_change_hook): Likewise.
1621 * config/tc-ia64.h (ia64_number_to_chars): New.
1622 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1623 (ia64_elf_section_change_hook): New.
1624 (md_elf_section_change_hook): Defined.
1625 (ia64_segment_info_type): New struct.
1626 (TC_SEGMENT_INFO_TYPE): Defined.
1628 2003-04-30 H.J. Lu <hjl@gnu.org>
1630 * config/tc-ia64.c (md_section_align): Deleted.
1632 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1633 (md_section_align): New.
1635 2003-04-30 H.J. Lu <hjl@gnu.org>
1637 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1639 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1641 (md_atof): Add 6 byte padding of zero for real16.
1643 2003-04-29 Nick Clifton <nickc@redhat.com>
1645 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1646 start of a version name.
1648 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1650 * configure.in (mips-*-*n*bsd*): Replace with...
1651 (mips-*-netbsd*, mips-*-openbsd*): These.
1652 * configure: Regenerate.
1654 2003-04-28 H.J. Lu <hjl@gnu.org>
1656 * config/tc-hppa.c (hppa_symbol_chars): New.
1657 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1659 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1661 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1663 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1665 * NEWS: Belatedly mention support for MIPS32 Release 2.
1667 2003-04-24 Eric Christopher <echristo@redhat.com>
1669 * config/tc-mips.c (nopic_need_relax): Revert previous
1672 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1674 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1675 * config/tc-h8300.c (dwarf2dbg.h): Include
1676 (md_pseudo_table): Handle .loc and .file
1677 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1678 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1679 * Makefile.in: Regenerate.
1681 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1683 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1684 (md_pseudo_table): Add h8300hn, h8300sn.
1685 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1686 * doc/c-h8300.texi : Add documentation for new machine directives.
1688 2003-04-24 Nick Clifton <nickc@redhat.com>
1690 * config/tc-ppc.c (ppc_symbol_chars): Define.
1691 * config/tc-ppc.h (tc_symbol_chars): Define.
1693 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1695 * config/tc-sh.c: Amend comment to refer to SuperH.
1696 * config/tc-sh.h: Likewise.
1697 (LISTING_HEADER): Amend to refer to SuperH.
1698 * config/tc-sh64.c: Change comment to refer to SuperH.
1699 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1700 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1701 * doc/c-sh.texi: Amend to refer to SuperH.
1702 Add SuperH architecture documentation references.
1703 * doc/c-sh64.texi: Change to refer to SuperH.
1705 2003-04-23 H.J. Lu <hjl@gnu.org>
1707 * app.c (do_scrub_chars): More checks for valid labels.
1709 2003-04-22 H.J. Lu <hjl@gnu.org>
1711 * app.c (do_scrub_chars): Check for valid label.
1713 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1715 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1716 references to Renesas M32R.
1717 * doc/c-m32r.texi: Likewise.
1719 2003-04-21 Richard Henderson <rth@redhat.com>
1721 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1722 (out_file_list): Assign non-null filename after generating error.
1724 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1726 * ehopt.c (check_eh_frame): For aug_size == 0
1727 in state_seeing_aug_size state skip the state_skipping_aug
1730 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1732 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1734 * doc/c-h8500.texi: Likewise.
1735 * doc/c-sh.texi: Likewise.
1736 * doc/c-sh64.texi: Likewise.
1737 * doc/h8.texi: Likewise.
1738 * config/tc-h8300.c: Likewise.
1739 * config/tc-h8300.h: Likewise.
1740 * config/tc-h8500.c: Likewise.
1741 * config/tc-h8500.h: Likewise.
1742 * config/tc-sh.c: Likewise.
1743 * config/tc-sh.h: Likewise.
1744 * config/tc-sh64.c: Likewise.
1745 * config/tc-sh64.h: Likewise.
1747 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1749 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1750 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1751 (append_insn): When filling delay slots with instructions
1752 that have fixups that tc_gen_reloc might consider modifyable
1753 in variant frags, start a new frag.
1754 (load_address): Generate GOT_DISP with of without offset
1755 depending on whether symbol is local. For -xgot, use
1756 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1757 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1758 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1759 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1760 <ld_st>: In NewABI with small got, always use
1761 GOT_PAGE/GOT_OFST, with the latter in the load/store
1762 instruction. With big got, use GOT_HI16/GOT_LO16 or
1764 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1765 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1766 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1767 (md_convert_frag): Use memmove for safe copying of overlapping
1770 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1772 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1773 -mlong, -mshort-double and -mlong-double options; use table @code.
1774 (M68HC11-Syntax): Update to document 68HC12 operands.
1775 (M68HC11-Modifiers): New section for operand modifiers.
1776 (M68HC11-Directives): New section for specific assembler directives.
1777 (M68HC11-Branch): Fix Overfull hbox error.
1779 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1781 * config/tc-mips.c (macro): Add comments explaining the rationale
1784 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1786 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1787 constant address that Alexandre took out by accident. Reject
1788 64-bit addresses that are not sign extensions of 32 bits only if
1789 we don't support 64-bit address constants.
1791 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1793 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1795 2003-04-08 Nick Clifton <nickc@redhat.com>
1797 * as.c (perform_an_assembly_pass): If using cgen, call
1799 * cgen.c (gas_cgen_begin): New function. If
1800 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1801 otherwise call cgen_clear_signed_overflow_ok.
1802 * cgen.h: Prototype gas_cgen_begin.
1804 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1806 * write.c (write_relocs): Remove unused variable.
1808 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1810 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1811 (macro): Use new macro to decide whether to emit constant address
1812 as 32 or 64 bits if addresses are 32-bit wide but registers are
1815 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1817 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1818 (M6811_OP_PAGE_ADDR): New internal define.
1819 (get_operand): New modifier %page and %addr to obtain page and
1820 address part of a far-function.
1821 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1822 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1824 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1825 (find_opcode): Add comment.
1826 (md_estimate_size_before_relax): Force relocation of
1827 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1828 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1829 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1830 on the symbol itself so that DWARF2 strings are merged correctly.
1832 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1834 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1835 default tic4x target format to 'coff2-tic4x'.
1836 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1838 * config/tc-tic4x.h: Ditto
1840 2003-04-03 Nick Clifton <nickc@redhat.com>
1842 * NEWS: Mention support for Xtensa architecture.
1844 2003-04-02 Philip Blundell <philb@gnu.org>
1846 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1848 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1850 * config/tc-mips.c (macro2): Adjust implementation of
1851 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1852 in the case where the source and destination registers
1855 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1857 * Makefile.am (CPU_TYPES): Add xtensa.
1858 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1859 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1860 (xtensa-relax.o): New target.
1862 * Makefile.in: Regenerate.
1863 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1864 extra_objects for xtensa targets.
1865 * configure: Regenerate.
1866 * write.c (write_object_file): Add new md_post_relax_hook.
1867 * config/tc-xtensa.c: New file.
1868 * config/tc-xtensa.h: Likewise.
1869 * config/xtensa-istack.h: Likewise.
1870 * config/xtensa-relax.c: Likewise.
1871 * config/xtensa-relax.h: Likewise.
1872 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1873 * doc/Makefile.in: Regenerate.
1874 * doc/all.texi: Set new XTENSA variable.
1875 * doc/as.texinfo: Set new Xtensa variable. Describe
1876 Xtensa-specific options. Define line comment character for
1877 Xtensa. Add Xtensa processors to list of ELF targets where
1878 alignment is specified in bytes. Add new Xtensa-Dependent node.
1879 Add acknowledgements for those contributing to the Xtensa port.
1880 * doc/internals.texi: Describe new md_post_relax_hook.
1881 * doc/c-xtensa.texi: New file.
1883 2003-04-01 Nick Clifton <nickc@redhat.com>
1884 Richard Earnshaw <rearnsha@arm.com>
1886 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1887 (ARM_ARCH_IWMMXT): Simplify.
1888 (insns): Place iwmmx instructions in correct place in table.
1889 (arm_add_note): New function: Add a note entry to a .note section.
1890 (md_begin): Make the default architecture be unknown.
1891 Suppress the creation of an arm note section.
1893 2003-03-26 Eric Christopher <echristo@redhat.com>
1895 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1897 2003-03-25 Stan Cox <scox@redhat.com>
1898 Nick Clifton <nickc@redhat.com>
1900 Contribute support for Intel's iWMMXt chip - an ARM variant:
1902 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1903 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1904 (enum wreg_type, enum iwmmxt_insn_type): New types.
1905 (wr_register, wc_register, wcg_register): New macros.
1906 (iwmmxt_table): New variable.
1907 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1908 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1909 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1910 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1911 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1912 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1913 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1914 cp_byte_address_offset, cp_byte_address_required_here,
1915 check_iwmmxt_insn): New functions.
1916 (asm_opcode_insns): Add iWMMXt instructions.
1917 (md_begin): Set the mach value for iWMMXt targets. Create a note
1918 section to identify iwmmxt binaries.
1919 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1920 * doc/c-arm.texi: Document the support for the iWMMXt.
1921 * NEWS: Mention new support.
1923 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1925 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1926 * doc/all.texi: Likewise.
1927 * doc/c-tic54x.texi: Likewise.
1929 2003-03-21 Andreas Schwab <schwab@suse.de>
1931 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1932 avoid aliasing issue.
1934 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1936 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1937 (current_arch_mask): Rename to current_mode_mask.
1938 (current_arch_requested): Remove variable.
1939 (current_cpu): New variable.
1940 (init_default_arch): Set defaults values for s390_arch_size,
1941 current_mode_mask and current_cpu.
1942 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1943 (md_begin): Replace current_arch_mask by current_cpu.
1944 (md_assemble): Adapt check and error message to current_mode_mask and
1947 2003-03-09 James E Wilson <wilson@tuliptree.org>
1949 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1950 * read.c (get_line_sb): Return end of line character or '\n' if
1951 it is zero or non-existent.
1953 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1955 * config/tc-mips.c (mips_validate_fix): New function.
1956 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1957 (mips_validate_fix): Declare.
1959 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1961 * Reverted 2003-03-02's patch.
1963 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1965 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1966 (TC_DWARF2_EMIT_OFFSET): Provide default.
1967 (out_debug_aranges, out_debug_info): Use it.
1968 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1969 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1970 (ia64_gen_real_reloc_type): ... here.
1971 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1973 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1975 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1976 (s_mips_ent): Likewise.
1978 2003-03-04 Dmitry Diky <diwil@mail.ru>
1980 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1981 and x1123 devices, add missed x437.
1982 (md_show_usage): Sort device list.
1984 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1986 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1987 (md_begin): Use preset_target_arch.
1988 (md_longopts): Make isa option unconditional.
1989 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1990 set preset_target_arch.
1991 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1992 by -S_GET_VALUE (fixP->fx_subsy).
1993 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1994 and the addend is 0.
1995 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1996 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1998 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2000 * config/tc-mips.c (append_insn): Add handling of
2001 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
2002 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
2003 misaligned address and reange overflow.
2004 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
2005 earlier warnings about misaligned address and reange overflow.
2006 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2007 (md_apply_fix): Likewise. Fix warning output.
2008 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2009 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
2010 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2012 2003-02-21 Nick Clifton <nickc@redhat.com>
2014 * NEWS: Mention availability of test generator program.
2016 2003-02-21 Miles Bader <miles@gnu.org>
2018 * config/tc-v850.c (system_registers): Add v850e debug registers.
2019 (system_register_name): Accept up to 27 (the last v850e sys register).
2021 2003-02-21 Bob Wilson <bob.wilson@acm.org>
2023 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2024 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
2025 Capitalize section headings consistently. Format index entries more
2026 consistently. Unconditionalize text about whether text and data
2027 sections are alterable. Use @ifnottex for alternatives to @tex output
2028 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
2029 .size and .type directives. Be more polite about bad bug reports.
2030 Move FDL into a separate file.
2031 * doc/fdl.texi: New file.
2033 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
2035 * config/tc-mips.c (prev_reloc_op_frag): New variable.
2036 (macro): Check it to decide whether a new frag is needed.
2037 (my_getSmallExpression): Set it.
2039 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2041 * cgen.c: Fix typo: intial -> initial.
2043 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
2045 * app.c (do_scrub_chars): Handle '||' in two states.
2047 2003-02-13 Alan Modra <amodra@bigpond.net.au>
2049 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2050 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2052 2003-02-11 Uwe Stieber <uwe@wwws.de>
2054 * configure.in: Add support for kaOS as cross build target system.
2055 * configure: Regenerated.
2057 2003-02-10 Nick Clifton <nickc@redhat.com>
2059 * config/tc-arm.c (md_begin): If the Maverick co-processor is
2060 selected, set the EF_ARM_MAVERICK_FLOAT flag and
2061 bfd_mach_arm_ep9312 machine number.
2063 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
2065 * config/tc-mips.c (reloc_needs_lo_p): New function.
2066 (fixup_has_matching_lo_p): New function.
2067 (append_insn): Use reloc_needs_lo_p to check whether a relocation
2068 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
2069 if that fixup already has a matching %lo(). Don't call frag_wane here.
2070 (macro): Call frag_wane here if the last unmatched hi was in the
2072 (pic_need_relax): New function, split out from...
2073 (md_estimate_size_before_relax): ...here.
2074 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
2075 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2077 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
2079 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2081 2003-02-06 Alan Modra <amodra@bigpond.net.au>
2083 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2086 2003-02-05 Alan Modra <amodra@bigpond.net.au>
2088 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2089 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2090 accept x@got+off etc.
2091 (md_assemble): Handle TLS relocs.
2092 (ppc_force_relocation): Force for all TLS relocs.
2093 (ppc_fix_adjustable): Likewise.
2094 (md_apply_fix3): Handle TLS relocs.
2096 2003-02-04 Alan Modra <amodra@bigpond.net.au>
2098 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2099 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2101 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
2103 * config/tc-mips.c (enum small_ex_type): Remove.
2104 (imm_unmatched_hi): Remove.
2105 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
2106 argument from calls to append_insn.
2107 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2109 (macro_build): Update append_insn calls.
2110 (mips16_macro_build, macro_build_lui): Likewise.
2111 (mips_ip): Rework handling of small expressions. Move explicit
2112 relocation handling into my_getSmallExpression. Assume that the
2113 value of 'o' operands is zero if there is only one bracketed
2115 (percent_op): Make constant. Record the BFD relocation code
2116 associated with each operator.
2117 (my_getSmallParser, my_getPercentOp): Remove.
2118 (parse_relocation): New function.
2119 (my_getSamllExpression): Rework. Fill in relocations here
2120 rather than in mips_ip.
2122 2003-01-29 Nick Clifton <nickc@redhat.com>
2124 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2125 assembler's handling of # <linenum> "<filename>" directives work.
2127 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2129 * dwarf2dbg.c: Include filenames.h.
2130 (struct file_entry): Make filename const char *.
2131 (dirs, dirs_in_use, dirs_allocated): New variables.
2132 (get_filenum): Add NUM argument. Build directory table.
2133 (dwarf2_where): Adjust caller.
2134 (dwarf2_directive_file): Use get_filenum to allocate
2135 slot in file and directory tables.
2136 (dwarf2_directive_loc): Recreate full filename from
2137 directory and filename part if needed for listing.
2138 (out_file_list): Output directory table.
2139 Output main source file dirname before its filename.
2141 2003-01-28 Dmitry Diky <diwil@mail.ru>
2143 * config/tc-msp430.c: Replace occurences of 'tolower' with
2146 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2148 * config/tc-ia64.c (dot_vframesp): Correct error message.
2149 (dot_vframepsp): Ditto.
2151 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2153 * configure.in (em): Set to irix on all Irix systems.
2154 * configure: Rebuilt.
2155 * config/te-irix.h: New file.
2156 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2157 whether to use Irix-specific 64-bit format.
2159 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2161 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2163 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2165 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2166 (tc_gen_reloc): Handle TLS relocs.
2167 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2168 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2170 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2171 (obj_elf_type): Handle tls_object.
2173 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2175 * config/tc-s390.c (s390_tls_suffix): New function.
2176 (elf_suffix_type): Add suffix enums for TLS relocations.
2177 (s390_elf_suffix): Add suffix strings for TLS relocations.
2178 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2180 (md_gather_operands): Map new instruction operand/elf suffix
2181 combinations for TLS to bfd relocations.
2182 (tc_s390_fix_adjustable): Add new TLS relocations.
2183 (tc_s390_force_relocation): Likewise.
2184 (md_apply_fix3): Likewise.
2186 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2188 * as.h: Update copyright date.
2189 * symbols.c: Likewise.
2190 * config/tc-d10v.h: Likewise.
2191 * config/tc-fr30.h: Likewise.
2192 * config/tc-i960.h: Likewise.
2193 * config/tc-mips.h: Likewise.
2195 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2196 (MD_APPLY_SYM_VALUE): Move.
2198 2003-01-23 Nick Clifton <nickc@redhat.com>
2200 * NEWS: Announce sh2e support.
2203 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2204 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2205 (sh_elf_final_processing): Handle arch_sh2e.
2207 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2209 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2210 * symbols.h (S_FORCE_RELOC): Likewise.
2211 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2212 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2213 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2214 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2215 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2216 * write.c (generic_force_reloc): New function.
2217 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2218 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2219 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2220 * as.h (generic_force_reloc): Declare.
2221 * doc/internals.texi (S_FORCE_RELOC): Update.
2222 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2224 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2225 generic_force_reloc.
2226 (alpha_fix_adjustable): Likewise.
2227 * config/tc-arm.c (arm_force_relocation): Likewise.
2228 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2229 * config/tc-frv.c (frv_force_relocation): Likewise.
2230 * config/tc-i386.c (md_apply_fix3): Likewise.
2231 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2232 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2233 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2234 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2235 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2236 * config/tc-mips.c (mips_force_relocation): Likewise.
2237 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2238 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2239 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2240 * config/tc-sh.c (sh_force_relocation): Likewise.
2241 (md_pcrel_from_section): Likewise.
2242 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2243 * config/tc-v850.c (v850_force_relocation): Likewise.
2244 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2245 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2246 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2247 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2249 * config/tc-d10v.c (d10v_force_relocation): Delete.
2250 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2251 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2252 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2253 * config/tc-fr30.c (fr30_force_relocation): Delete.
2254 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2255 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2256 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2257 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2258 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2259 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2260 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2261 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2262 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2263 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2264 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2265 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2266 * config/tc-i386.c (i386_force_relocation): Delete.
2267 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2269 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2270 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2271 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2272 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2274 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2275 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2277 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2279 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2280 sh64_elf_section_data.
2281 * config/tc-sh64.h: Include elf32-sh64.h.
2282 * config/tc-m68hc11.c: Don't include stdio.h.
2283 (md_show_usage): Fix missing continuation.
2284 * Makefile.am: Run "make dep-am".
2285 * Makefile.in: Regenerate.
2287 2003-01-22 Nick Clifton <nickc@redhat.com>
2289 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2291 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2293 * configure.in: Handle *-*-aros*.
2294 * configure: Regenerated from configure.in.
2296 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2298 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2299 gotplt and pltoff relocations.
2300 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2301 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2302 gotplt and pltoff to bfd relocations.
2303 (md_gather_operands): Map new instruction operand/elf suffix
2304 combinations to bfd relocations.
2305 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2306 to the list of unadjustable relocations.
2307 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2308 and pltoff relocations.
2309 (md_apply_fix3): Add the new relocations.
2311 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2313 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2314 with a subsy symbol.
2316 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2318 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2319 of relocs for memory bank addressing.
2321 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2323 * config/tc-m68hc11.c (md_show_usage): Update usage.
2324 (md_parse_option): Recognize -m68hcs12.
2325 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2327 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2329 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2331 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2333 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2335 * Makefile.am: Run "make dep-am".
2336 * Makefile.in: Regenerate.
2337 * po/POTFILES.in: Regenerate.
2339 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2341 * read.c (get_absolute_expr): New, split out from..
2342 (get_absolute_expression): ..here.
2343 * read.h (get_absolute_expr): Declare.
2344 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2345 Trim size to arch bits_per_address, and test for negative input
2346 via get_absolute_expr.
2348 2003-01-07 DJ Delorie <dj@redhat.com>
2350 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2352 (xstormy16_md_apply_fix3): Use adjustment.
2354 2003-01-02 Ben Elliston <bje@redhat.com>
2356 * configure.in: Add iq2000-elf target.
2357 * configure: Regenerate.
2358 * config/tc-iq2000.c: New file.
2359 * config/tc-iq2000.h: Likewise.
2360 * po/gas.pot: Regenerate.
2362 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2364 * config/tc-mips.c: Update copyright years to include 2003.
2365 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2366 Additionally, clean up their code slightly and clean up their
2369 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2371 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2373 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2375 * doc/Makefile.in: Regenerate.
2377 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2379 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2380 of .init and .fini sections for array initializers and finalizers.
2382 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2384 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2385 the "+D" operand, which will be used only by the disassembler.
2387 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2389 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2391 * configure: Regenerate.
2392 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2393 (macro_build): Handle "K" operand.
2394 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2395 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2396 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2397 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2398 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2399 (validate_mips_insn): Implement "+" as a way to extend the
2400 allowed operands, and implement "K", "+A", "+B", and "+C"
2402 (OPTION_MIPS32R2): New define.
2403 (md_longopts): Add entry for OPTION_MIPS32R2.
2404 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2405 (md_parse_option): Handle OPTION_MIPS32R2.
2406 (s_mipsset): Reimplement handling of ".set mipsN" options
2407 and add support for ".set mips32r2".
2408 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2409 (md_show_usage): Document "-mips32r2" option.
2410 * doc/as.texinfo: Document "-mips32r2" option.
2411 * doc/c-mips.texi: Likewise.
2413 2002-12-30 Dmitry Diky <diwil@mail.ru>
2415 * configure.in: Add msp430 target.
2416 * configure: Regenerate.
2417 * Makefile.am: Add msp430 target.
2418 * Makefile.in: Regenerate.
2419 * config/tc-msp430.c: New file: msp430 assembler.
2420 * config/tc-msp430.h: New file: target macros for msp430.
2421 * doc/Makefile.am: Add msp430 target.
2422 * doc/Makefile.in: Regenerate.
2423 * doc/as.texinfo: Include msp430 documenation.
2424 * doc/all.texi: Enable msp430 documentation.
2425 * doc/c-msp430.texi: New file: document msp430 specific features
2428 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2430 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2431 (dwarf2_finish): Use it.
2432 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2433 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2435 2002-12-20 DJ Delorie <dj@redhat.com>
2437 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2438 BFD_RELOC_XSTORMY16_12.
2440 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2442 * doc/as.texinfo (Invoking): Typo fix.
2443 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2445 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2447 * doc/c-alpha.texi: Fix typos.
2448 * doc/c-arm.texi: Likewise.
2449 * doc/c-d10v.texi: Likewise.
2450 * doc/c-i370.texi: Likewise.
2451 * doc/c-i960.texi: Likewise.
2452 * doc/c-ia64.texi: Likewise.
2453 * doc/c-mmix.texi: Likewise.
2454 * doc/c-ns32k.texi: Likewise.
2455 * doc/c-pdp11.texi: Likewise.
2456 * doc/c-pj.texi: Likewise.
2457 * doc/c-sh64.texi: Likewise.
2458 * doc/c-sparc.texi: Likewise.
2459 * doc/c-tic54x.texi: Likewise.
2460 * doc/c-v850.texi: Likewise.
2461 * doc/c-vax.texi: Likewise.
2462 * doc/internals.texi: Likewise.
2464 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2466 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2467 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2468 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2469 arrange not to issue warnings about use of AT when AT is not
2472 2002-12-17 Nick Clifton <nickc@redhat.com>
2474 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2475 prevent it being confused with -k.
2477 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2479 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2480 has already been set up, use it.
2482 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2484 * ChangeLog-9295: Fix a typo.
2486 * config/tc-d10v.c: Fix a comment typo.
2487 * config/tc-dlx.c: Likewise.
2488 * config/tc-h8300.h: Likewise.
2489 * config/tc-h8500.h: Likewise.
2490 * config/tc-mips.c: Likewise.
2491 * config/tc-s390.c: Likewise.
2492 * config/tc-sh.h: Likewise.
2493 * config/tc-tic80.h: Likewise.
2494 * config/tc-w65.h: Likewise.
2495 * config/tc-z8k.c: Likewise.
2496 * config/tc-z8k.h: Likewise.
2497 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2499 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2501 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2502 Simplify sign extension. Remove redundant unsigned < 0 test.
2503 * config/tc-i960.c (md_ri_to_chars): Prototype.
2504 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2505 (dump_literals): Init brarsym, and test later instead of isforce.
2507 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2508 (parse): Constify line and lineptr.
2509 (md_begin): Calculate endop here.
2511 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2513 * config/obj-vms.c: Formatting. Include fnctl.h.
2514 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2515 (Object_Record_Offset): Make it a size_t.
2516 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2517 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2518 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2519 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2520 (vms_fixup_data_section <data_size>): Add here instead.
2521 * config/e-criself.c: Fix typo in last change.
2523 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2525 * write.c (write_object_file): Fix signed/unsigned warning.
2526 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2527 * config/e-criself.c (criself_bfd_name): Prototype.
2528 * config/obj-aout.c (s_sect): Remove unused function.
2529 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2530 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2531 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2532 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2533 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2534 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2535 (vms_fixup_text_section <text_siz>): Likewise.
2536 (synthesize_data_segment <data_size>): Likewise.
2537 (vms_fixup_xtors_section <sect_no>): Likewise.
2538 (structure_count): Don't use implicit int type.
2539 * config/tc-a29k.c (insert_sreg): Prototype.
2540 (define_some_regs): Prototype, make static.
2541 (parse_operand): Likewise.
2542 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2543 (md_show_usage <stream>): Likewise.
2544 (md_section_align <segment>): Likewise.
2545 (md_convert_frag <all args>): Likewise.
2546 (md_estimate_size_before_relax <all args>): Likewise.
2547 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2548 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2549 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2550 (md_undefined_symbol <name>): Likewise.
2551 (md_convert_frag <all args>): Likewise.
2552 (write_long <opcode>): Likewise.
2553 (tc_gen_reloc <seg>): Likewise.
2554 (md_estimate_size_before_relax <all args>): Likewise.
2555 (md_apply_fix3 <seg>): Likewise.
2556 (s_d30v_align <ignore>): Likewise.
2557 (build_insn): Correct format string.
2558 (md_apply_fix3): Likewise.
2559 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2560 (md_undefined_symbol <name>): Likewise.
2561 (md_convert_frag <all args>): Likewise.
2562 (md_cgen_lookup_reloc <insn>): Likewise.
2563 (md_begin): Delete unused vars.
2564 (md_assemble): Likewise.
2565 (md_estimate_size_before_relax): Likewise.
2566 (fr30_relax_frag): #if 0 out, seems unused.
2567 (md_atof): Remove declaration of atof_ieee.
2568 (restore_colon): Prototype.
2569 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2570 (frv_find_in_vliw): Likewise.
2571 (frv_debug_tomcat): Likewise.
2572 (frv_adjust_vliw_count): Likewise.
2573 (frv_tomcat_shuffle): Likewise.
2574 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2575 frv_find_in_vliw call.
2576 (md_atof): Remove declaration of atof_ieee.
2577 * config/tc-h8500.c (cons): Delete declaration.
2578 (md_begin <opcode>): Constify.
2579 (displacement_size, immediate_size, absolute_size): Remove.
2580 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2581 (tc_crawl_symbol_chain <headers>): Likewise.
2582 (md_undefined_symbol <name>): Likewise.
2583 (tc_headers_hook <headers>): Likewise.
2584 (md_parse_option <c,arg>): Likewise.
2585 (md_show_usage <stream>): Likewise.
2586 (md_convert_frag <headers, seg>): Likewise.
2587 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2588 (md_atof): Remove declaration of atof_ieee.
2589 (tc_aout_fix_to_chars): Remove unused function.
2590 (parse_reg): Prototype.
2591 (parse_exp): Prototype.
2592 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2593 (parse_reglist): Prototype.
2594 (get_operand): Prototype.
2595 (get_operands): Prototype.
2596 (get_specific): Prototype. Make "this_index" signed.
2597 (check): Prototype, make static.
2599 (build_relaxable_instruction): Prototype, make static.
2600 (build_bytes): Prototype.
2601 (wordify_scb): Prototype.
2602 * config/tc-h8500.h (start_label): Declare.
2603 (tc_coff_sizemachdep): Declare.
2604 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2605 (i370_rmode <unused>): Likewise.
2606 (i370_csect <unused>): Likewise.
2607 (i370_dc <unused>): Likewise.
2608 (i370_ds <unused>): Likewise.
2609 (i370_elf_lcomm <unused>): Likewise.
2610 (i370_ltorg <ignore>): Likewise.
2611 (i370_using <ignore>): Likewise.
2612 (i370_drop <ignore>): Likewise.
2613 (i370_byte <ignore>): Likewise.
2614 (i370_tc <ignore>): Likewise.
2615 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2616 (md_convert_frag <all args>): Likewise.
2617 (md_undefined_symbol <name>): Likewise.
2618 (md_pcrel_from_section <sec>): Likewise.
2619 (tc_gen_reloc <seg>): Likewise.
2620 (i370_section_letter): #if 0 unused functions.
2621 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2622 (symbol_locate): Prototype.
2623 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2624 (md_number_to_disp, md_number_to_field): Remove.
2625 (md_apply_fix3): Correct format string and cast "fup".
2626 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2627 (s_endian <ignore>): Likewise.
2628 (md_undefined_symbol <name>): Likewise.
2629 (tc_crawl_symbol_chain <headers>): Likewise.
2630 (tc_set_bal_of_call): Likewise.
2631 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2632 (i960_handle_align <fragp>): Likewise.
2633 (i960_validate_fix <this_segment_type>): Likewise
2634 (tc_gen_reloc <section>): Likewise.
2635 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2636 (struct memS, struct regop): Forward declare.
2637 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2638 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2639 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2640 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2641 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2642 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2643 (md_number_to_field): Likewise.
2644 (md_number_to_disp): Remove unused function.
2645 (md_atof): Remove declaration of atof_ieee.
2646 (md_apply_fix3): Correct md_number_to_imm call.
2647 * config/tc-ip2k.c (md_assemble): Warning fix.
2648 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2649 (fill_insn <ignore>): Likewise.
2650 (debug_sym <ignore>): Likewise.
2651 (md_undefined_symbol <name>): Likewise.
2652 (m32r_scomm <ignore>): Likewise.
2653 (md_convert_frag <abfd>): Likewise.
2654 (md_cgen_lookup_reloc <insn>): Likewise.
2655 (m32r_record_hi16 <seg>): Likewise.
2656 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2657 (allow_m32rx): Prototype.
2658 (first_writes_to_seconds_operands): Prototype.
2659 (writes_to_pc): Prototype.
2660 (can_make_parallel): Prototype.
2661 (make_parallel): Prototype.
2662 (target_make_parallel): Prototype.
2663 (assemble_two_insns): Prototype.
2664 (m32r_record_hi16): Prototype.
2665 (md_atof): Remove declaration of atof_ieee.
2666 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2667 (m32r_force_relocation): Prototype.
2668 (m32r_elf_section_change_hook): Prototype.
2669 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2670 (md_show_usage): Fix signed/unsigned warning.
2671 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2672 (calcop): Ditto for reg_prefix var.
2673 (hexval): Add cast to fix signed/unsigned warning.
2674 (md_number_to_disp): Delete unused function.
2675 (md_number_to_field): Likewise.
2676 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2677 (match_name): Prototype.
2678 (get_bf2): Prototype.
2679 (get_bf_offset_expression): Prototype.
2680 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2681 (md_undefined_symbol <ignore>): Likewise.
2682 (md_create_short_jump <all args>): Likewise.
2683 (md_create_long_jump <all args>): Likewise.
2684 (md_convert_frag <abfd, sec>): Likewise.
2685 (md_apply_fix3 <segment>): Likewise.
2686 (md_section_align <segment>): Likewise.
2687 (md_pcrel_from_section <sec>): Likewise.
2688 (tc_gen_reloc <section>): Likewise.
2689 (reg_m, reg_n, immediate): Delete unused vars.
2690 (dump_literals): Fix signed/unsigned warning.
2691 (enter_literal): Likewise.
2692 (parse_imm): Likewise. Also fix format string.
2693 (parse_mem): Remove unused var.
2694 (md_assemble <LS>): Abort on unexpected inst.
2695 (md_atof): Remove declaration of atof_ieee.
2696 (md_parse_option): Remove unused vars.
2697 (md_apply_fix3): Fix format strings, cast args.
2698 (tc_gen_reloc): Delete unused var.
2699 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2700 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2701 (md_undefined_symbol <name>): Likewise.
2702 (md_convert_frag <abfd>): Likewise.
2703 (tc_gen_reloc <seg>): Likewise.
2704 (check_operand <insn>): Likewise.
2705 (md_convert_frag): Fix format strings.
2706 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2707 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2708 (md_atof): Remove declaration of atof_ieee.
2709 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2710 (md_apply_fix3): Fix bogus >>='s.
2711 (md_undefined_symbol): Delete unused var.
2712 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2713 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2714 (fake_opcode): Adjust for pj_opc_int_t change.
2715 (md_begin): Likewise.
2716 (md_assemble): Likewise.
2717 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2718 instead of non-existent third arg of parse_exp_save_ilp.
2719 (md_parse_option): Correct "little" and "big" calls.
2720 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2721 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2722 (tc_gen_reloc <section>): Likewise.
2723 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2724 (debug): Rewrite using VA_* macros.
2725 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2726 (md_convert_frag): Likewise.
2727 (md_parse_option): Likewise.
2728 (md_show_usage): Likewise.
2729 (md_undefined_symbol): Likewise.
2730 (tc_gen_reloc): Likewise.
2731 (md_operand): Likewise.
2732 (tc_aout_pre_write_hook): Delete.
2733 (struct tic30_insn): Make "operands" unsigned.
2734 (struct tic30_par_insn): Likewise.
2735 (md_assemble): Likewise for "count", "i" and "numops".
2736 (tic30_parallel_insn): Likewise for vars here.
2737 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2738 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2739 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2740 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2741 (md_undefined_symbol): Likewise.
2742 (md_parse_option): Likewise.
2743 (md_convert_frag): Likewise.
2744 (tc_coff_symbol_emit_hook): Likewise.
2745 (md_atof): Remove declaration of atof_ieee.
2746 (const_overflow): Warning fixes, tidy.
2747 (get_operands): Delete unused vars.
2748 (internal_error_a): Adjust format string to expect a long for arg.
2749 (find_opcode): Warning fixes, simplify.
2750 (build_insn): Cast internal_error_a arg.
2751 (md_begin): Likewise.
2752 (md_apply_fix3): Likewise.
2753 (md_assemble): Delete unused var.
2754 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2755 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2756 (whatreg, parse_reg, parse_exp): Make static, prototype.
2757 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2758 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2759 (get_operand, get_operands, get_specific, newfix): Likewise.
2760 (apply_fix, build_bytes): Likewise.
2761 (md_atof): Remove declaration of atof_ieee.
2762 (tc_aout_fix_to_chars): Delete.
2763 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2765 (md_parse_option): Fix s_segm and s_unseg calls.
2767 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2769 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2771 (RELAX_BRANCH_RELOC_S2): Delete.
2772 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2773 Do not handle BFD_RELOC_16_PCREL.
2774 (macro_build, mips_ip): Likewise.
2775 (md_pcrel_from): Return 4 for undefined symbols regardless of
2777 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2778 Don't dereference howto if no such relocation is available.
2779 Do not apply hack for in-place zero addend in NEWABI.
2780 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2782 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2783 Alan Modra <amodra@bigpond.net.au>
2785 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2786 (TC_LINKRELAX_FIXUP): Add comments.
2788 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2790 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2792 (r_register_name, xr_register_name): Add prototype declarations.
2794 2002-12-08 H.J. Lu <hjl@gnu.org>
2796 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2797 copied from tc-i386.c.
2799 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2801 Fix Bug savannah/1825:
2802 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2803 (md_relax_table): Define specific relax for PC-rel offsets.
2804 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2805 (m68hc11_relax_frag): Handle the new relax code.
2806 (md_convert_frag): Likewise.
2807 (md_estimate_size_before_relax): Likewise.
2809 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2811 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2813 2002-12-05 Richard Henderson <rth@redhat.com>
2815 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2816 (ia64_gen_real_reloc_type): Handle it.
2817 (pseudo_func): Add @ltoffx.
2818 (md_begin): Build .<ltoffx>.
2819 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2821 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2823 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2824 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2825 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2826 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2827 COFF to call arm_force_relocation.
2829 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2831 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2833 (emit_one_bundle): Handle "hint" instruction.
2834 (operand_match): Match IA64_OPND_AR_CSD.
2836 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2838 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2841 2002-12-03 Nick Clifton <nickc@redhat.com>
2843 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2844 .PPC.EMB.apuinfo sections.
2846 2002-12-03 Richard Henderson <rth@redhat.com>
2848 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2850 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2852 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2853 (cons, s_align_bytes): Delete declaration.
2855 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2857 (dot): Delete unused function.
2858 (w65_expression): Remove unused arg.
2859 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2861 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2863 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2865 (check): Remove unused function.
2866 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2867 on unhandled switch case.
2868 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2870 (tc_crawl_symbol_chain): Delete unused function.
2871 (tc_headers_hook): Likewise.
2872 (tc_Nout_fix_to_chars): Likewise.
2873 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2874 (md_parse_option): Likewise.
2875 (md_convert_frag): Likewise.
2876 (tc_coff_symbol_emit_hook): Likewise.
2877 (md_show_usage): Likewise.
2878 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2879 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2880 (w65_expression): Declare.
2882 * po/POTFILES.in: Regenerate.
2884 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2885 and ARM_ADRL_IMMEDIATE.
2887 2002-12-02 Nick Clifton <nickc@redhat.com>
2889 * gasp.c: Delete. It has been deprecated.
2890 * NEWS: Mention that gasp has been removed.
2891 * Makefile.am: Remove references to gasp.
2892 * makefile.vms: Likewise.
2893 * mpw-make.sed: Likewise.
2894 * Makeile.in: Regenerate.
2895 * doc/gasp.texi: Delete.
2896 * doc/Makefile.am: Remove references to gasp.texi.
2897 * doc/Makefile.in: Regenerate.
2898 * macro.c: Delete references to gasp.
2899 Remove use of comment_char function parameter as it is no longer
2901 * macro.h: Update prototypes to remove comment_char parameter.
2903 * read.c (read_a_source_file, s_irp): Remove comment_char
2904 parameter from invocation of functions in macro.c
2906 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2908 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2910 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2912 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2913 (tc_gen_reloc): Mark section param as not used.
2915 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2917 Fix Bug savannah/1825:
2918 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2919 that are not pc-relative.
2920 (m68hc11_relax_frag): Declare.
2922 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2923 the offsetable indexed addressing modes (n,r).
2924 (build_insn): Cleanup some locals.
2925 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2926 relaxation of difference between two symbols of same section.
2927 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2928 only when this is a PC-relative operand and the offset is not absolute.
2929 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2930 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2931 be handled by m68hc11_relax_frag.
2933 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2935 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2936 (32-bit int, 64-bit double).
2937 (md_longopts): New options -mshort, -mlong, -mshort-double and
2938 -mlong-double to control the ABI.
2939 (md_show_usage): Update.
2940 (md_parse_option): Handle new options.
2941 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2943 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2945 * symbols.c (report_op_error): New function, broken out of ...
2946 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2949 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2951 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2952 for BFD_RELOC_32_PLT_PCREL.
2954 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2956 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2957 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2958 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2959 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2960 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2961 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2962 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2963 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2964 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2965 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2966 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2967 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2968 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2969 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2970 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2971 TRUE/FALSE. Formatting.
2973 2002-11-29 Nick Clifton <nickc@redhat.com>
2975 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2976 assume a value of zero.
2977 (do_bkpt): Likewise.
2979 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2981 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2982 for TLS relocations.
2984 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2986 * config/tc-ia64.c (md_apply_fix3): Add default case.
2988 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2990 * symbols.c (S_SET_THREAD_LOCAL): New function.
2991 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2992 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2993 for TLS relocations.
2994 * config/tc-ia64.c (md_apply_fix3): Likewise.
2995 * config/tc-alpha.c (md_apply_fix3): Likewise.
2997 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2999 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
3002 2002-11-26 DJ Delorie <dj@redhat.com.
3004 * dwarf2dbg.c (scale_addr_delta): New.
3005 (size_inc_line_addr): Use it.
3006 (emit_inc_line_addr): Use it.
3008 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
3010 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
3011 (md_assemble): Don't pass on branches to constants as relaxable.
3014 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3016 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
3018 2002-11-21 Randolph Chung <randolph@tausq.org>
3020 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
3021 only if they have default visibility.
3023 2002-11-21 Richard Henderson <rth@redhat.com>
3025 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3028 2002-11-21 Alan Modra <amodra@bigpond.net.au>
3030 * config/tc-mcore.c (mcore_pool_count): New function.
3031 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3033 2002-11-20 Klee Dienes <kdienes@apple.com>
3035 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
3036 coalesce the name fields to use the same pointer.
3038 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
3039 the name fields to use the same pointer.
3040 (get_specific): Check for opcodes with the same name using strcmp
3041 as well as comparing the pointer.
3043 2002-11-20 Alan Modra <amodra@bigpond.net.au>
3045 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3048 2002-11-19 Richard Henderson <rth@redhat.com>
3050 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3051 visibility portion of st_other.
3053 2002-11-19 Klee Dienes <kdienes@apple.com>
3055 * config/tc-h8300.c (struct h8_instruction): New type, used to
3056 wrap h8_opcodes with length, noperands, idx, and size fields
3057 (computed at run-time).
3058 (h8_instructions): New variable.
3059 (md_begin): Allocate the storage for h8_instructions. Fill
3060 h8_instructions with pointers to the appropriate opcode and the
3061 correct value for the additional fields.
3062 (clever_message): Update to use h8_instructions instead of
3064 (build_bytes): Ditto.
3065 (get_specific): Ditto.
3066 (md_assemble): Ditto.
3068 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3070 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3071 adjustments to symbols in merge sections.
3073 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
3075 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3077 2002-11-18 Kevin Buettner <kevinb@redhat.com>
3079 * dwarf2dbg.h (dwarf2_format): New enum.
3080 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3081 (out_debug_line, out_debug_info): Add code for handling 64-bit
3083 * config/tc-mips.h (mips_dwarf2_format): Declare.
3084 * config/tc-mips.c (mips_dwarf2_format): New function.
3085 * doc/internals.texi (DWARF2_FORMAT): Document.
3087 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
3089 * config/tc-mips.c (s_change_section): Make sure input buffer
3090 is not accessed past the end. Don't hand
3091 obj_elf_change_section a pointer into the input buffer.
3093 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
3095 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3098 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3100 * config/tc-tic4x.c: Fixed proper commandline
3101 parameters. Added support for new opcode-list format. General
3102 error message fixups.
3103 (c4x_inst_add): Reject insn not for our CPU
3104 (md_begin): Added matrix for setting the proper opcode-level &
3105 device-flags according to cpu type and revision. Rewrite the
3107 (c4x_operand_parse): Fix opcode bug
3108 (c4x_operands_match): New function argument. Added dry-run
3109 mechanism, that is optional error generation. Added constraint 'i'
3111 (c4x_insn_check): Added new function for post-verification of the
3113 (md_assemble): Check all opcodes before croaking because of an
3114 argument mismatch. Need this to be able to fully support
3115 ortogonally arguments.
3116 (md_parse_options): Revised commandprompt swicthes and added new
3118 (md_show_usage): Complete rewrite of printout.
3120 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3122 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3123 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3124 warning when using constant direct bigger than 2^16. Add the new
3127 2002-11-11 Christopher Faylor <cgf@redhat.com>
3129 * configure.in: Use .gdbinit under Cygwin.
3130 * configure: Regenerate.
3132 2002-11-11 Christopher Faylor <cgf@redhat.com>
3134 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3137 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3139 * config/tc-tic4x.c: Declare as many functions as possible as
3140 static. Maintenance on the general indenting. Removed unnecessary
3141 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3142 function. Add support for new DSP, TMS320VC33. Fix bug for
3143 converting flonum constants.
3144 (c4x_do_align): Add proper align handling. Setup align to insert
3146 (c4x_gen_to_words): Support for extended TI type floats.
3147 (md_atof): Proper dumping of multiple-word littlenums.
3148 (c4x_atof): Added support for extended TI type floats.
3149 (c4x_stringer): Added new function to handle compact strings.
3150 (c4x_emit_char): Added new function argument to handle custom
3151 length inserts, like single-byte strings.
3152 * config/tc-tic4x.h: Add proper align handling with NOP's.
3153 * Makefile.am: Added tic4x dependecy
3154 * Makefile.in: Regenerate
3156 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3158 * macro.c (get_any_string): Correct logic for not going beyond end
3161 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3163 * config/tc-mmix.c (get_putget_operands): Mark both possible
3164 operands as invalid at beginning.
3166 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3167 Initialize target of fixup to zero.
3169 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3171 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3172 NEWABI, but we should still emit HI16_S for non-PIC n32.
3174 2002-11-06 Richard Henderson <rth@redhat.com>
3176 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3177 (alpha_fix_adjustable): ... here.
3178 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3180 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3182 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3185 2002-11-05 H.J. Lu <hjl@gnu.org>
3187 * config/tc-mips.c (support_64bit_objects): Check *l before it
3190 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3192 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3193 SEC_LOAD flags for sections marked as 's'.
3195 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3197 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3198 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3199 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3202 * dep-in.sed: Fix typo.
3204 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3206 * configure.in: Update ARM CPU patterns.
3207 * configure: Regenerated.
3209 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3211 * itbl-lex.l: Use #include <> for generated headers.
3212 * itbl-ops.c: Likewise.
3214 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3216 * doc/gasp.texi: Fix typo in deprecation note.
3218 2002-10-23 Nick Clifton <nickc@redhat.com>
3220 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3221 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3223 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3225 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3226 (tc_frob_file_before_adjust): Don't define.
3227 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3229 (mmix_frob_file_before_adjust): Remove ineffective function.
3231 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3233 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3234 (cris_relax_frag): New function.
3235 (md_estimate_size_before_relax) <case ENCODE_RELAX
3236 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3237 expressions that will become absolute expressions to relaxation.
3238 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3239 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3240 value, not distance to symbol.
3241 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3242 Ditto. Correct placement of fixup.
3243 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3245 * config/tc-cris.h (cris_relax_frag): Declare.
3246 (md_relax_frag): Define.
3248 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3250 * config/obj-elf.c (special_sections): Use correct types for init
3252 (obj_elf_change_section): Don't mess with init array section type.
3254 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3256 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3257 for relocs against symbols in a merged section.
3259 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3261 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3262 table as register names.
3264 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3266 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3269 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3271 * expr.c (operand): Add support for n.nn flonums.
3273 2002-10-17 Johannes Stezenbach <js@convergence.de>
3275 * itbl-parse.y (entry): Provide empty action.
3277 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3279 * configure.in (BFDVER_H): Set and subst.
3280 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3281 * Makefile.am: Run "make dep-am".
3283 * configure: Regenerate.
3284 * Makefile.in: Regenerate.
3285 * doc/Makefile.in: Regenerate.
3287 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3289 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3290 (MD_APPLY_SYM_VALUE): Define for PE too.
3292 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3294 * Makefile.am: Run "make dep-am".
3295 (CPU_OBJ_VALID): sh64 coff is invalid.
3296 * as.c: #include "bfdver.h".
3297 * Makefile.in: Regenerate.
3298 * config.in: Regenerate.
3300 2002-10-14 Momchil Velikov <velco@fadata.bg>
3302 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3304 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3306 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3307 * configure: Regenerate.
3309 2002-10-13 Eric Christopher <echristo@redhat.com>
3310 Alexandre Oliva <aoliva@redhat.com>
3312 * config/tc-mips.c (s_gpdword): New function.
3313 (mips_pseudo_table): Add .gpdword.
3314 (mips_need_elf_addend_fixup): never for NEWABI.
3315 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3317 (s_cpadd): Generate .cpadd on NEWABI.
3319 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3321 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3323 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3325 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3326 (md_relax_frag): Adjust macro.
3327 * config/tc-mips.c (mips_relax_branch): New variable.
3328 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3329 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3330 (RELAX_MIPS16_P): Adjust.
3331 (append_insn): Emit branch to non-constant in a frag_var if
3332 branch-relaxation is desirable and possible.
3333 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3334 (OPTION_ELF_BASE): Adjust.
3335 (md_parse_option): Handle new options.
3336 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3338 (relaxed_branch_length): New function.
3339 (md_estimate_size_before_relax): Handle branch frags.
3340 (mips_relax_frag): Likewise.
3341 (md_convert_frag): Handle branch frags. Warn if branch is
3344 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3346 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3348 (md_apply_fix3): Add TLS relocs.
3349 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3352 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3353 Alan Modra <amodra@bigpond.net.au>
3355 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3356 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3358 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3360 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3363 2002-10-09 Richard Shann <richard.shann@superh.com>
3364 Stephen Clarke <stephen.clarke@superh.com>
3366 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3369 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3371 * contig/tc-sh.c (sh_local_pcrel): New.
3372 (sh_force_relocation): Use sh_local_pcrel.
3373 (md_pcrel_from_section): Check the relocation type whether it
3374 should be resolved locally. Use S_FORCE_RELOC.
3376 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3378 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3379 (TC_FORCE_RELOCATION): Tidy arg.
3381 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3382 Ken Raeburn <raeburn@cygnus.com>
3383 Aldy Hernandez <aldyh@redhat.com>
3384 DJ Delorie <dj@redhat.com>
3385 Michael Meissner <meissner@redhat.com>
3386 Eric Christopher <echristo@redhat.com>
3387 Richard Sandiford <rsandifo@redhat.com>
3389 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3390 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3391 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3392 (hilo_interlocks): True for CPU_VR5500.
3393 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3394 (mips_fix_vr4122_bugs): New.
3395 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3396 (mips_emit_delays): Likewise.
3397 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3398 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3399 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3400 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3401 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3402 (OPTION_ELF_BASE): Bump.
3403 (md_parse_option): Handle the new options.
3404 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3407 2002-09-29 H.J. Lu <hjl@gnu.org>
3409 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3410 twice if howto->pcrel_offset is true.
3412 2002-09-28 Matt Thomas <matt@3am-software.com>
3413 Jason Thorpe <thorpej@wasabisystems.com>
3415 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3416 convert undefined references to GOT32/PLT32 if PIC code is
3417 requested. Fix comment.
3419 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3421 * config/tc-sh.c (sh_force_relocation): Return 0 for
3422 some PC relative relocations when not relaxing.
3424 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3426 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3427 Define them if not BFD_ASSEMBLER.
3428 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3430 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3431 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3432 (tc_gen_reloc): Handle x86-64 TLS relocs.
3434 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3436 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3437 fixups to current or absolute section.
3439 2002-09-26 Jim Wilson <wilson@redhat.com>
3441 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3444 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3446 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3447 capable configuration.
3448 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3450 (mips_ip): Likewise.
3452 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3454 * config/tc-mips.c (append_insn): Fix jump overflow check.
3456 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3458 * config/tc-i386.c (process_operands): Warn about "lea" segment
3461 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3463 * write.c: Delete set_segment_vma and prototype. Update all callers.
3465 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3467 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3468 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3469 Rename "fseg" to "sym_seg".
3470 * Makefile.am: Run "make dep-am".
3471 * Makefile.in: Regenerate.
3472 * doc/Makefile.in: Regenerate.
3474 2002-09-20 Nick Clifton <nickc@redhat.com>
3476 * symbols.c (colon): Do not allow symbols to be created in the
3477 absolute section if WORKING_DOT_WORD is not defined and
3478 new_broken_words would require a new frag to be created.
3480 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3482 * expr.c (expr): Simplify foo-foo here.
3483 (clean_up_expression): Remove O_subtract code.
3485 * write.h (struct fix): Add fx_dot_value.
3486 (dot_value): Declare.
3487 * write.c (dot_value): New var.
3488 (fix_new_internal): Save dot_value as fx_dot_value.
3489 (fixup_segment): Adjust fx_offset using fx_dot_value.
3490 * expr.c (expr): Update dot_value.
3492 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3494 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3495 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3496 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3498 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3499 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3500 BFD_RELOC_386_TLS_GOTIE.
3502 2002-09-19 Richard Henderson <rth@redhat.com>
3504 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3506 (alpha_force_relocation): Don't special-case branch type relocs.
3508 2002-09-19 Nick Clifton <nickc@redhat.com>
3510 * config/tc-m68k.c (select_control_regs): Handle situation where
3511 architecture has not yet been selected.
3513 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3515 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3516 (IS_SEXT_16BIT_NUM): New macro.
3517 (macro_build_ldst_constoffset): New function, to build a set of
3518 instructions to do a load or store from a constant offset relative
3519 to a given register.
3520 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3521 .cprestore pseudo-op.
3523 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3525 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3527 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3529 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3531 2002-09-17 Stan Cox <scox@redhat.com>
3533 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3534 (macro): Likewise for la. Likewise for ld.
3535 (mips_after_parse_args): Make -xgot optional, not the default.
3536 (md_apply_fix3): Allow composite relocation to set up gp.
3537 (tc_gen_reloc): Allow relaxing for newabi.
3538 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3539 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3541 2002-09-17 Nick Clifton <nickc@redhat.com>
3543 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3544 BFD_RELOC_ARM_IMMEDIATE has been done.
3545 (tc_gen_reloc): Do not issue reloc number of unimplemented
3546 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3547 their name is already in the error message - plus remove them
3548 from the default case.
3550 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3551 behavior of instructions.
3553 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3555 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3556 Convert functions to K&R format.
3558 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3560 * config/tc-mips.c (pdr_seg): Define only for ELF.
3561 (s_change_section): Remove unused variable. Don't use for nonELF.
3563 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3565 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3567 * config/obj-elf.h (obj_elf_change_section): Likewise.
3569 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3571 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3572 (out_debug_info): Likewise.
3574 2002-09-16 Bruno Haible <bruno@clisp.org>
3576 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3577 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3578 * config/tc-i386.c (i386_target_format): Likewise.
3579 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3580 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3582 2002-09-13 Nick Clifton <nickc@redhat.com>
3584 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3585 when deciding if any operands have been skipped.
3587 2002-09-11 Nick Clifton <nickc@redhat.com>
3589 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3591 * po/tr.po: Updated Turkish translation.
3593 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3595 * config/tc-i386.c (md_apply_fix3): Allow addend for
3596 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3597 BFD_RELOC_386_TLS_LE_32.
3599 2002-09-05 Jeff Law <law@redhat.com>
3601 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3602 marker relocations such as ENTRY/EXIT.
3603 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3604 to both OBJ_ELF and OBJ_SOM.
3606 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3608 * doc/internals.texi (md_apply_fix3): Expand.
3609 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3610 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3611 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3612 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3613 EXTERN_FORCE_RELOC): Document.
3614 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3615 * as.h: Don't include struc-symbol.h for arc.
3617 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3618 subtract absolute symbol.
3619 * obj.h (struct format_ops): Add frob_file_before_fix.
3620 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3621 * symbols.c (S_FORCE_RELOC): New function.
3622 * symbols.h (S_FORCE_RELOC): Declare.
3623 * write.c (TC_FORCE_RELOCATION): Change default.
3624 (TC_FORCE_RELOCATION_ABS): Define.
3625 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3626 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3627 (TC_FORCE_RELOCATION_SECTION): Don't define.
3628 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3629 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3630 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3631 (TC_VALIDATE_FIX_SUB): Define.
3632 (TC_FIX_ADJUSTABLE): Don't define.
3633 (MD_APPLY_SYM_VALUE): Define this instead.
3634 (abs_section_sym): New variable.
3635 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3636 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3637 Don't put the absolute section sym on fixups here.
3638 (fix_segment): New function.
3639 (write_relocs): Don't call fixup_segment from here.
3640 (write_object_file): Instead call tc_frob_file_before_fix,
3641 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3642 Don't output the absolute section symbol.
3643 (fixup_segment): Rewrite.
3644 * write.h (abs_section_sym): Declare.
3645 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3647 (aout_format_ops): Adjust to suit.
3648 * config/obj-aout.h (obj_frob_file): Don't define.
3649 (obj_frob_file_before_fix): Define.
3650 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3651 (S_FORCE_RELOC): Define.
3652 * config/obj-bout.h (S_FORCE_RELOC): Define.
3653 * config/obj-coff.c (coff_format_ops): Init new field.
3654 * config/obj-coff.h: Formatting fixes.
3655 (obj_sec_sym_ok_for_reloc): Define.
3656 (S_FORCE_RELOC): Define.
3657 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3658 (ecoff_frob_file): .. from here.
3659 (ecoff_format_ops): Add new function.
3660 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3661 (obj_frob_file_before_fix): Define.
3662 * config/obj-elf.c (elf_format_ops): Init new field.
3663 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3664 * config/obj-ieee.h: Formatting fixes.
3665 (S_FORCE_RELOC): Define.
3666 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3667 * config/obj-vms.h (S_FORCE_RELOC): Define.
3668 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3669 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3670 for BFD_RELOC_32 and BFD_RELOC_64.
3671 (alpha_fix_adjustable): Remove extern and weak tests.
3672 (alpha_before_fix): Rename from alpha_adjust_symtab.
3673 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3674 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3675 (TC_VALIDATE_FIX): Tweak param name.
3676 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3677 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3678 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3679 (MD_APPLY_SYM_VALUE): Define.
3680 (tc_adjust_symtab): Don't define.
3681 (alpha_adjust_symtab): Don't declare.
3682 (tc_frob_file_before_fix): Define.
3683 (alpha_before_fix): Declare.
3684 (TC_INIT_FIX_DATA): Tweak param names.
3685 * config/tc-arc.c: Include "struc-symbol.h".
3686 (md_pcrel_from): Remove undefined sym fudge.
3687 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3688 Don't set fx_addnumber.
3689 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3690 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3691 (EXTERN_FORCE_RELOC): Define.
3692 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3693 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3694 (arm_validate_fix): Return void.
3695 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3696 Add plt and got reloc tests.
3697 (arm_force_relocation): Call S_FORCE_RELOC.
3698 * config/tc-arm.h (struct fix): Forward declare.
3699 (TC_VALIDATE_FIX): No longer set add_symbolP.
3700 (arm_validate_fix): Adjust declaration.
3701 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3702 (TC_FORCE_RELOCATION): Tweak param name.
3703 (TC_INIT_FIX_DATA): Likewise.
3704 (obj_fix_adjustable): Don't define.
3705 (tc_fix_adjustable): Call arm_fix_adjustable.
3706 (TC_FIX_ADJUSTABLE): Don't define.
3707 (MD_APPLY_SYM_VALUE): Define.
3708 (EXTERN_FORCE_RELOC): Define.
3709 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3710 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3711 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3712 Remove *valP fudges and code to subtract abs sym. Don't set
3714 * config/tc-avr.h: Formatting.
3715 (EXTERN_FORCE_RELOC): Define.
3716 (MD_APPLY_SYM_VALUE): Define.
3717 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3718 (md_apply_fix3): Remove code to subtract abs sym.
3719 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3720 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3721 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3722 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3723 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3724 (tc_fix_adjustable): Remove extern, weak tests.
3725 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3726 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3727 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3728 and code to subtract abs sym.
3729 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3730 (d10v_force_relocation): Call S_FORCE_RELOC.
3731 * config/tc-d10v.h: Don't include write.h.
3732 (struct fix): Instead, forward declare.
3733 (MD_PCREL_FROM_SECTION): Tweak param names.
3734 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3735 (d10v_fix_adjustable): Likewise.
3736 (obj_fix_adjustable): Don't define.
3737 (tc_fix_adjustable): Define.
3738 (TC_FORCE_RELOCATION): Tweak param name.
3739 (MD_APPLY_SYM_VALUE): Define.
3740 (EXTERN_FORCE_RELOC): Define.
3741 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3742 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3743 and code to subtract abs sym.
3744 * config/tc-d30v.h: Don't include write.h.
3745 (struct fix): Instead, forward declare.
3746 (MD_PCREL_FROM_SECTION): Tweak param names.
3747 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3748 (MD_APPLY_SYM_VALUE): Define.
3749 (EXTERN_FORCE_RELOC): Define.
3750 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3751 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3752 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3753 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3754 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3755 Don't use fx_addnumber.
3756 * config/tc-dlx.h: Don't include write.h.
3757 (md_convert_frag): We're not alpha twice over.
3758 (EXTERN_FORCE_RELOC): Define.
3759 (obj_fix_adjustable): Don't define.
3760 (tc_fix_adjustable): Define.
3761 (TC_FIX_ADJUSTABLE): Don't define.
3762 (MD_APPLY_SYM_VALUE): Define.
3763 (LOCAL_LABELS_DOLLAR): Undef always.
3764 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3765 (fr30_fix_adjustable): Remove extern, weak tests.
3766 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3767 (obj_fix_adjustable): Don't define.
3768 (tc_fix_adjustable): Define.
3769 (struct fix): Forward declare.
3770 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3771 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3772 (frv_fix_adjustable): Don't do extern, weak tests.
3773 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3774 (TC_FIX_ADJUSTABLE): Don't define.
3775 (obj_fix_adjustable): Don't define.
3776 (tc_fix_adjustable): Define.
3777 (struct fix): Forward declare.
3778 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3779 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3780 * config/tc-h8300.h (struct fix): Forward declare.
3781 (EXTERN_FORCE_RELOC): Define.
3782 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3783 (hppa_fix_adjustable): Don't test extern or weak. Don't
3784 symbol_mark_used_in_reloc.
3785 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3787 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3788 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3789 (TC_FORCE_RELOCATION_SECTION): Don't define.
3790 (MD_APPLY_SYM_VALUE): Define.
3791 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3792 to subtract abs sym.
3793 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3794 (MD_APPLY_SYM_VALUE): Define.
3795 (MD_PCREL_FROM_SECTION): Tweak param name.
3796 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3797 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3798 (i386_force_relocation): New function.
3799 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3800 (TC_VALIDATE_FIX): Likewise.
3801 (TC_FIX_ADJUSTABLE): Don't define.
3802 (MD_APPLY_SYM_VALUE): Define.
3803 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3804 (i386_force_relocation): Declare.
3805 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3806 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3807 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3808 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3809 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3810 (EXTERN_FORCE_RELOC): Define.
3811 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3812 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3813 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3814 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3815 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3816 Remove #if 0 code. Invert return boolean.
3817 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3818 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3819 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3820 (tc_coff_sizemachdep): Prototype.
3821 (i960_handle_align): Likewise.
3822 (i960_validate_fix): Adjust declaration.
3823 (reloc_callj): Likewise.
3824 (EXTERN_FORCE_RELOC): Define.
3825 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3826 (TC_FORCE_RELOCATION_ABS): Define.
3827 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3828 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3829 (TC_FIX_ADJUSTABLE): Don't define.
3830 (MD_APPLY_SYM_VALUE): Define.
3831 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3832 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3833 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3834 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3835 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3836 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3837 (MD_APPLY_SYM_VALUE): Define.
3838 (EXTERN_FORCE_RELOC): Define.
3839 (TC_FORCE_RELOCATION): Tweak param name.
3840 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3841 (m32r_fix_adjustable): Don't test extern, weak.
3842 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3843 (MD_APPLY_SYM_VALUE): Define.
3844 (obj_fix_adjustable): Don't define.
3845 (tc_fix_adjustable): Define.
3846 (tc_frob_file): Don't define.
3847 (tc_frob_file_before_fix): Define.
3848 (EXTERN_FORCE_RELOC): Define.
3849 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3850 BFD_RELOC_VTABLE_ENTRY address.
3851 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3852 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3853 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3854 Remove duplicated fx_done code.
3855 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3856 (EXTERN_FORCE_RELOC): Define.
3857 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3859 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3860 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3861 (TC_FIX_ADJUSTABLE): Don't define.
3862 (EXTERN_FORCE_RELOC): Define.
3863 (MD_APPLY_SYM_VALUE): Define.
3864 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3865 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3866 Remove fx_addsy tests.
3867 (mcore_force_relocation): Call S_FORCE_RELOC.
3868 (mcore_fix_adjustable): Don't test fx_addsy.
3869 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3870 (EXTERN_FORCE_RELOC): Define.
3871 (obj_fix_adjustable): Don't define.
3872 (tc_fix_adjustable): Define.
3873 (MD_APPLY_SYM_VALUE): Define.
3874 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3875 (mips_pic): No longer static.
3876 (mips_force_relocation): Call S_FORCE_RELOC.
3877 (mips_fix_adjustable): Remove extern, weak tests.
3878 * config/tc-mips.h (enum mips_pic_level): Declare.
3879 (mips_pic): Declare.
3880 (tc_frob_file): Don't define.
3881 (tc_frob_file_before_fix): Define this instead.
3882 (EXTERN_FORCE_RELOC): Define.
3883 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3884 with reg_section tests. Set fx_done instead of calling
3885 symbol_clear_used_in_reloc on bad relocs.
3886 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3887 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3888 (mmix_adjust_symtab): Simplify list handling. Abort on any
3890 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3891 BFD_RELOC_MMIX_LOCAL.
3892 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3893 (EXTERN_FORCE_RELOC): Define.
3894 (MD_PCREL_FROM_SECTION): Tweak param name.
3895 (tc_frob_file): Don't define.
3896 (tc_frob_file_before_fix): Define this instead.
3897 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3898 Remove SEC_CODE checks.
3899 (mn10300_fix_adjustable): Remove extern and weak tests.
3900 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3901 (TC_FORCE_RELOCATION): Tweak param name.
3902 (obj_fix_adjustable): Don't define.
3903 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3904 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3905 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3906 (openrisc_fix_adjustable): Don't test fx_addsy.
3907 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3908 (obj_fix_adjustable): Don't define.
3909 (tc_fix_adjustable): Define this instead.
3910 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3911 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3912 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3913 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3914 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3915 (MD_APPLY_SYM_VALUE): Define.
3916 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3917 Don't subtract symbol value.
3918 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3919 (EXTERN_FORCE_RELOC): Define.
3920 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3921 (MD_APPLY_SYM_VALUE): Define.
3922 (obj_fix_adjustable): Don't define.
3923 (tc_fix_adjustable): Define this instead.
3924 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3926 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3927 (ppc_force_relocation <elf version>): New.
3928 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3929 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3930 comments. Don't subtract fx_subsy as that is already done.
3931 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3932 (MD_PCREL_FROM_SECTION): Likewise.
3933 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3934 ppc_force_relocation.
3935 (TC_FORCE_RELOCATION_SECTION): Delete.
3936 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3937 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3938 (MD_APPLY_SYM_VALUE): Define.
3939 * config/tc-s390.c: #include "dwarf2dbg.h".
3940 (s390_insn): Remove excess parens.
3941 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3942 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3943 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3944 non-NULL. Don't subtract off fx_addsy value.
3945 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3946 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3947 (TC_FIX_ADJUSTABLE): Don't define.
3948 (MD_APPLY_SYM_VALUE): Define.
3949 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3950 (SWITCH_TABLE): Likewise.
3951 (sh_force_relocation): Call S_FORCE_RELOC.
3952 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3953 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3954 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3955 fx_addnumber is zero on entry. Save val in fx_addnumber.
3956 (tc_gen_reloc): Don't subtract fx_subsy.
3957 * config/tc-sh.h (struct fix): Move.
3958 (obj_fix_adjustable): Don't define.
3959 (tc_fix_adjustable): Define this instead.
3960 (TC_FIX_ADJUSTABLE): Don't define.
3961 (MD_APPLY_SYM_VALUE): Define.
3962 (SWITCH_TABLE_CONS): Define.
3963 (SWITCH_TABLE): Define.
3964 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3965 (TC_VALIDATE_FIX_SUB): Define.
3966 (MD_PCREL_FROM_SECTION): Tweak param name.
3967 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3968 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3969 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3970 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3971 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3972 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3973 (TC_VALIDATE_FIX_SUB): Define.
3974 (MD_PCREL_FROM_SECTION): Tweak param name.
3975 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3976 (tc_gen_reloc): Use S_FORCE_RELOC.
3977 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3978 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3979 (TC_FORCE_RELOCATION_ABS): Define this instead.
3980 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3981 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3982 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3983 (MD_APPLY_SYM_VALUE): Define.
3984 (TC_FIX_DATA_PRINT): Tweak param name.
3985 * config/tc-tic30.c (USE_STDOUT): Don't define.
3986 (md_parse_option): Remove stupid debug code.
3987 (tc_gen_reloc): Don't use fx_addnumber.
3988 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3989 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3990 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3991 (tc_fix_adjustable): Define this instead.
3992 (TC_FIX_ADJUSTABLE): Don't define.
3993 (MD_APPLY_SYM_VALUE): Define this instead.
3994 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3995 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3996 (TC_FIX_ADJUSTABLE): Don't define.
3997 (MD_APPLY_SYM_VALUE): Define this instead.
3998 (tc_fix_adjustable): Remove extern and weak tests.
3999 * config/tc-w65.h (struct fix): Forward declare.
4000 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
4002 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
4003 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
4004 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
4006 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
4007 (MD_APPLY_SYM_VALUE): Define.
4008 (obj_fix_adjustable): Don't define.
4009 (tc_fix_adjustable): Define this instead.
4010 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4012 2002-09-04 Alan Modra <amodra@bigpond.net.au>
4014 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4015 (ppc_fix_adjustable <coff version>): Cleanup.
4017 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
4018 (md_parse_option): No -a64 without BFD64.
4019 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
4020 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4022 2002-09-04 Nick Clifton <nickc@redhat.com>
4024 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4025 instructions into the hash table if the target cpu is the BookE32.
4027 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
4029 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4032 2000-08-28 Catherine Moore <clm@redhat.com>
4034 * tc-v850.c (v850_relax): Declare.
4035 (v850_longcode): New routine.
4036 (v850_handle_align): New routine.
4037 (md_pseudo_table): Add longcall and longjump.
4038 (md_parse_option): Check for relax option.
4039 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4040 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4041 (md_apply_fix3): Likewise.
4042 (v850_force_relocation): Likewise.
4043 (v850_comm): Change the current section.
4044 (md_assemble): Ensure that the correct value is put in the
4046 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4047 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4048 Remove redundant v850ea support.
4049 * tc-v850.h (HANDLE_ALIGN): Define.
4050 (v850_handle_align): Declare.
4051 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4053 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
4055 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4056 * configure: Regenerate.
4057 * NEWS: Mention new port.
4059 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4061 * config/obj-coff.c: Add sdef definition.
4062 * config/obj-coff.h: Add tic4x include file and set
4064 * config/tc-tic4x.c: New file.
4065 * config/tc-tic4x.h: New file.
4067 2002-08-28 Alan Modra <amodra@bigpond.net.au>
4069 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4070 (TC_ADJUST_RELOC_COUNT): Tweak param name.
4071 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4072 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4073 (RELOC_ENUM): Define.
4074 (fix_new_internal): Use RELOC_ENUM.
4075 (fix_new, fix_new_exp): Likewise.
4076 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
4077 Replace gotos with continue.
4078 (write_relocs): Formatting. Avoid symbol loops in
4079 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
4080 errors, and error number in other cases.
4081 (fixup_segment): Remove param names from prototype. Rename
4082 "this_segment_type" to "this_segment". Update linkrelax comment.
4083 Remove "size, "place" and "where" local vars. Formatting. Update
4084 "no symbol" comment. Remove #if 0 and #if 1.
4086 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
4088 2002-08-27 Alan Modra <amodra@bigpond.net.au>
4090 * dwarf2dbg.c: Always include dwarf2dbg.h.
4091 (dwarf2_directive_file): Adjust dummy version args.
4092 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4093 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4094 when symbol values differ.
4095 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4096 (pseudo_set <O_subtract>): Remove unnecessary segment test.
4097 * config/obj-bout.c (obj_pseudo_table): Warning fix.
4099 2002-08-26 Alan Modra <amodra@bigpond.net.au>
4101 * config/tc-w65.c (md_section_align): Fix typo.
4102 (md_parse_option): Return 0, not 1.
4104 2002-08-22 Nick Clifton <nickc@redhat.com>
4106 * doc/as.texinfo (Section): Note that if '@' is a comment
4107 character then another symbol is used to prefix the section's
4110 2002-08-22 Christian Groessler <chris@groessler.org>
4112 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4115 2002-08-12 Graeme Peterson <gp@qnx.com>
4117 * configure.in: Add support for sh-**-nto* target.
4118 * configure: Regenerate.
4120 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4122 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4124 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4126 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4128 (ppc_apuinfo_section_add): Define only if format is ELF.
4129 (md_assemble): Emit APUinfo section only if format is ELF.
4132 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4134 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4135 * config/tc-frv.c: Likewise.
4136 * config/tc-hppa.c: Likewise.
4137 * config/tc-ia64.c: Likewise.
4138 * config/tc-ip2k.c: Likewise.
4139 * config/tc-m68hc11.c: Likewise.
4140 * config/tc-m68k.c: Likewise.
4141 * config/tc-mmix.c: Likewise.
4142 * config/tc-mn10300.c: Likewise.
4143 * config/tc-sh.c: Likewise.
4144 * config/tc-sparc.c: Likewise.
4145 * config/tc-v850.c: Likewise.
4147 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4149 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4152 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4154 From matthew green <mrg@redhat.com>
4156 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4157 PPC_OPCODE_PPC is, except for BookE architectures.
4158 (md_parse_option): Add support for -mspe.
4159 (md_show_usage): Add -mspe.
4160 (md_parse_option): Add support for -me500 and
4161 -me500x2 to generate code for Motorola e500 core complex.
4162 (md_show_usage): Add -me500 and -me500x2.
4164 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4165 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4166 PPC_APUINFO_BRLOCK): New macros.
4168 (ppc_cleanup): New function.
4169 (ppc_apuinfo_section_add): New function.
4171 (md_assemble): Collect info and write the APUinfo section.
4173 * config/tc-ppc.h (md_cleanup): Define.
4174 (ppc_cleanup): Export.
4175 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4177 2002-08-17 Stan Cox <scox@redhat.com>
4179 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4180 config/tc-mips.c (s_change_section): New function to support
4181 IRIX .section pseudo-op.
4183 2002-08-16 Nick Clifton <nickc@redhat.com>
4185 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4187 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4189 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4190 the fix-up against on the right frag.
4191 (s_cpsetup): Likewise. Parse third argument as expression, to
4192 handle global symbols and forward/backward labels correctly.
4194 2002-08-14 Nick Clifton <nickc@redhat.com>
4196 * read.c (stringer): Catch attempts to create strings in the abs
4199 * config/tc-alpha.c: Fix compiling for COFF targets.
4200 Some minor formatting tidyups.
4202 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4204 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4205 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4206 according to the reloc.
4207 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4208 (TC_FORCE_RELOCATION): Define.
4209 (tc_m68hc11_force_relocation): Declare.
4211 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4212 (s_m68hc11_relax): New function for relax group.
4213 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4214 beginning of jump instruction.
4215 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4216 address computation.
4217 (tc-gen_reloc): Update.
4218 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4220 (tc_m68hc11_force_relocation): New function, handle new relocs.
4221 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4222 reloc for the linker relax pass.
4223 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4226 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4228 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4229 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4230 (s_m68hc11_mode): New function for .mode pseudo op.
4231 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4233 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4234 (m68hc11_elf_final_processing): Declare.
4236 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4238 * config/tc-m68hc11.c (md_begin): Take into account additional
4239 page operand for call instruction.
4240 (print_opcode_format): Likewise.
4241 (check_range): Likewise for page range checking.
4242 (get_operand): Don't skip a possible comma in operands.
4243 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4244 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4245 (fixup24): New to handle call reloc.
4246 (build_insn): Handle missing page operand for call instruction.
4248 (md_apply_fix3): Take into account new relocs.
4249 (get_operand): Fix the mode for indexed indirect addressing.
4250 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4252 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4254 * config/tc-mips.c (mips_ip): Don't work out the value of
4255 constant %hi()s here.
4257 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4259 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4260 for ELF, and don't bother checking ELF relocs when non-ELF.
4261 (i386_immediate): Allow absolute_section expressions for aout.
4262 (i386_displacement): Likewise. Also test bfd_is_com_section.
4263 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4264 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4265 not when fx_addsy. Remove dead code.
4267 2002-08-09 Graeme Peterson <gp@qnx.com>
4269 * configure.in: Add support for ppc-*-nto* target.
4270 * configure: Regenerate.
4272 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4274 * config/tc-i386.h: Reorganize.
4276 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4278 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4279 immediate offset in "dla" and "la" expansions.
4281 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4283 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4284 Remove "bfd_gas=yes" from target table when covered later.
4285 Consolidate some entries.
4286 * configure: Regenerate
4288 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4290 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4291 at start of insn, pass it to output_disp and output_imm.
4292 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4293 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4295 (output_imm): Added arguments. Compute properly addend for
4297 (md_apply_fix3): Remove R_386_GOTPC handling.
4299 2002-08-06 George France <france@handhelds.org>
4301 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4302 and m21264b processor names and cpu types.
4303 * doc/c-alpha.texi: Documented new types.
4305 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4307 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4309 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4311 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4312 handling to BFD_RELOC_MIPS16_GPREL.
4314 2002-08-01 Nick Clifton <nickc@redhat.com>
4316 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4317 pool is computed using signed arithmetic so that proper sign
4318 extension is performed if X_add_number is a 64-bit integer.
4320 2002-08-01 H.J. Lu <hjl@gnu.org>
4321 Daniel Jacobowitz <drow@mvista.com>
4323 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4324 .debug_line section unless it has line information.
4326 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4328 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4329 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4330 Allow default displacement size to be an option "--disp-size-default".
4331 (md_number_to_disp): Make error messages include value. Use %d to
4332 print integers, not %s.
4333 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4334 get duplicate messages sometimes.
4335 (convert_iif): Grow frag to max possible instruction size. Avoid
4336 creating unnecessary fixes.
4337 (md_number_to_field) Add prototype.
4338 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4339 prototypes and make static.
4340 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4341 (evaluate_expr): Use resultP argument instead of exprP global.
4342 (get_addr_mode): Quiten compiler warnings.
4343 (encode_operand): eliminate unused variables. Quiten compiler
4344 warnings. Eliminate nul character in format strings.
4345 (parse): argc is unsigned.
4346 (reloc): Type cast index to quieten compiler.
4347 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4348 (md_convert_frag): Note unused parameters. Remove unused
4350 (md_create_long_jump, md_create_short_jump,
4351 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4354 2002-07-31 Nick Clifton <nickc@redhat.com>
4356 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4357 of the PDP-11 and 2.11BSD a.out support.
4359 2002-07-31 Momchil Velikov <velco@fadata.bg>
4361 * config/tc-v850.c (md_assemble): Fix range check for immediate
4364 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4366 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4367 to Broadcom SB-1 core support.
4369 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4371 * config/tc-mips.c (mips_target_format): Fix formatting.
4372 Add recognition of n32 ABI formats.
4374 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4376 * tc-mips.c (load_address): Don't clobber $at when loading a
4377 64-bit address in non-PIC code if noat is in effect.
4380 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4382 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4383 used in division/multiply macro expansions similarly to how they
4384 are used in the variants with break instructions.
4387 2002-07-30 Graeme Peterson <gp@qnx.com>
4389 * configure.in: Add support for arm-*-nto target.
4390 * configure: Regenerate.
4392 2002-07-30 Nick Clifton <nickc@redhat.com>
4394 * config/tc-arm.c (struct literal_pool): Add fields to allow
4395 multiple literal pools to be maintained.
4396 (find_literal_pool): New function.
4397 (find_or_make_literal_pool): New function.
4398 (add_to_literal_pool): Use find_or_make_literal_pool.
4399 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4401 (s_ltorg): Use find_literal_pool.
4402 (arm_cleanup): Dump all literal pools.
4403 * doc/c-arm.texi: Document new behaviour of only dumping literal
4406 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4408 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4409 rather than PPC_OPCODE_32 for powerpc64*.
4411 2002-07-25 Nick Clifton <nickc@redhat.com>
4413 * po/es.po: Updated Spanish translation.
4414 * po/fr.po: Updated French translation.
4416 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4418 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4419 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4420 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4421 * configure, config.in: Regenerate.
4422 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4423 (mips_set_options): Remove "abi" field.
4424 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4427 (mips_arch_string, mips_arch_info): New vars.
4428 (mips_tune_string, mips_tune_info): New vars.
4429 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4430 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4431 (mips_isa_to_str, mips_cpu_to_str): Remove.
4432 (mips_ip): If the selected architecture is a generic ISA rather
4433 than a processor, only mention the ISA level in error messages.
4434 (OPTION_MCPU): Remove.
4436 (md_longopts): Add -mfp64, remove -mcpu.
4437 (mips_set_option_string): New fn.
4438 (md_parse_option): Make -mipsN update file_mips_isa rather than
4439 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4440 Don't let -mgp32 and -mfp32 change the ABI.
4441 (show): Move to end of file. Constify string argument.
4442 (md_show_usage): Move to the end of the file. Read available
4443 architectures from mips_cpu_info_table.
4444 (mips_set_architecture): New fn.
4445 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4446 is an alias for -march=mipsN. Don't change the ABI based on other
4447 flags. Infer the register size from the ABI as well as the
4448 architecture. Complain about more conflicting arguments.
4449 Unify logic with GCC.
4450 (s_mipsset): Don't change the ABI.
4451 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4452 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4453 "mipsN"-type entries. Remove entries that vary only in the
4454 manufacturer's prefix, or that have "000" replaced by "k".
4455 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4456 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4457 (mips_parse_cpu): New fn.
4458 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4459 (mips_cpu_info_from_isa): Minor formatting tweak.
4461 2002-07-24 Nick Clifton <nickc@redhat.com>
4463 * po/sv.po: Updated Swedish translation.
4464 * po/es.po: Updated Spanish translation.
4466 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4468 * Makefile.am: Run "make dep-am".
4469 * Makefile.in: Regenerate.
4470 * doc/Makefile.in: Regenerate.
4471 * config.in: Regenerate.
4472 * po/POTFILES.in: Regenerate.
4474 2002-07-23 Nick Clifton <nickc@redhat.com>
4476 * po/fr.po: Updated French translation.
4478 2002-07-23 Nick Clifton <nickc@redhat.com>
4480 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4483 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4485 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4486 instead of S_IS_EXTERN.
4487 (md_estimate_size_before_relax): Likewise.
4488 (mips_fix_adjustable): Likewise.
4490 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4492 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4494 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4495 Nick Clifton <nickc@redhat.com>
4497 * cond.c (s_ifdef): Treat a referenced but not yet defined
4498 symbol as if it were undefined, in exactly the same way as
4501 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4502 consider referenced bug not yet defined symbols to be
4505 2002-07-18 Denis Chertykov <denisc@overta.ru>
4506 Frank Ch. Eigler <fche@redhat.com>
4507 Alan Lehotsky <alehotsky@cygnus.com>
4508 John Healy <jhealy@redhat.com>
4509 Jeff Johnston <jjohnstn@redhat.com>
4511 * configure.in: Add ip2k configuraton.
4512 * configure: Regenerate.
4513 * Makefile.am: Add ip2k configuraton.
4514 * Makefile.in: Regenerate.
4515 * configure: Regenerate.
4516 * Makefile.in: Regenerate.
4517 * config/tc-ip2k.c: New file.
4518 * config/tc-ip2k.h: New files.
4519 * NEWS: Mention new support.
4520 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4521 * doc/Makefile.in: Regenerate.
4522 * doc/all.texi: Set IP2K
4523 * doc/as.texinfo: Add IP2K description.
4524 * doc/c-ip2k.texi: New file.
4526 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4528 * NEWS: Reformat to match style of other NEWS files.
4530 2002-07-17 Jan Hubicka <jh@suse.cz>
4532 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4534 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4536 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4538 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4540 * NEWS: Add 'Changes in 2.13'.
4542 2002-07-15 Matt Fredette <fredette@netbsd.org>
4544 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4546 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4548 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4549 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4552 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4554 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4555 (ppc_frob_file_before_adjust): New function.
4556 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4557 (ppc_elf_frob_symbol): Don't declare.
4558 (tc_frob_file_before_adjust): Define.
4559 (ppc_frob_file_before_adjust): Declare.
4561 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4562 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4565 (ppc_xcoff64): Rename to ppc_obj64.
4566 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4567 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4568 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4570 (ppc_target_format): Use ppc_obj64 to select format.
4571 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4572 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4573 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4574 (tc_frob_symbol): Likewise.
4575 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4576 BFD_DEFAULT_TARGET_SIZE.
4578 (ppc_is_toc_sym): Likewise.
4579 (md_apply_fix3): Likewise.
4580 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4581 BFD_DEFAULT_TARGET_SIZE.
4582 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4583 (tc_frob_symbol): Likewise.
4585 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4587 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4588 (mips_ip): Likewise.
4590 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4592 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4593 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4594 (md_apply_fix3): Formatting. Remove redundant test.
4595 (tc_gen_reloc): Remove redundant code.
4596 (tc_i386_force_relocation): Delete. Movy body of function to..
4597 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4599 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4601 * configure.in: Add hppa-*-openbsd* target, change
4602 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4604 * configure: Regenerate.
4606 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4608 * config/tc-mips.c (macro): Shift the 32-bit address range
4609 accessible with a lone "lui" down by 32768.
4611 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4613 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4614 instead of "dadd" in address calculations.
4617 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4619 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4621 (md_assemble): Instead, zap the suffix here.
4623 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4625 * NEWS: Remove next release number until the release is actually
4628 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4630 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4632 * Makefile.in: Regenerate.
4634 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4636 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4637 to symbols in merge sections, even non pc-relative ones.
4639 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4641 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4643 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4645 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4646 .softregs and .eeprom.
4648 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4650 * NEWS: Note the next release is 2.13.
4652 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4654 * po/tr.po: New translation imported.
4656 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4658 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4659 (ecoff_directive_def): Likewise.
4660 (ecoff_directive_tag): Likewise.
4661 * listing.c (file_info): Likewise.
4662 * hash.c (what): Likewise.
4664 2002-06-25 H.J. Lu <hjl@gnu.org>
4666 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4667 * Makefile.in: Regenerated.
4669 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4671 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4672 (assemble_ppi): Generate warning if the same register is used
4673 twice as destination in the same padd / pmuls instruction.
4675 2002-06-18 Dave Brolley <brolley@redhat.com>
4677 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4678 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4679 * configure.in: Support frv-*-*.
4680 * Makefile.am (CPU_TYPES): Add frv.
4681 (TARGET_CPU_CFILES): Add tc-frv.c.
4682 (TARGET_CPU_HFILES): Add tc-frv.h.
4683 (DEPTC_frv_coff): New variable.
4684 (DEPTC_frv_elf): New variable.
4685 (DEPOBJ_frv_coff): New variable.
4686 (DEPOBJ_frv_elf): New variable.
4687 (DEP_frv_coff): New variable.
4688 (DEP_frv_elf): New variable.
4689 * tc-frv.c: New file.
4690 * tc-frv.h: New file.
4692 2002-06-17 Catherine Moore <clm@redhat.com>
4694 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4696 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4698 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4700 2002-06-17 Tom Rix <trix@redhat.com>
4702 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4704 2002-06-14 H.J. Lu <hjl@gnu.org>
4705 Daniel Jacobowitz <drow@mvista.com>
4707 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4708 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4709 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4710 and new_logical_line for the first .file directive.
4711 * read.c (s_app_file_string): New function.
4712 (s_app_file): Call it.
4713 * read.h (s_app_file_string): Add declaration.
4715 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4717 * configure.in: Remove MIPS_STABS_ELF.
4718 * configure: Regenerated.
4719 * config.in: Regenerated.
4720 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4722 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4724 (pdr_seg): Declare unconditionally.
4725 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4726 (s_mips_end): Likewise. Generate stabs function markers.
4727 (s_mips_ent): Generate stabs function markers.
4728 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4730 (s_mips_mask): Likewise.
4731 (mips_flag_mdebug): New.
4732 (md_longopts): Add "mdebug" and "no-mdebug".
4733 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4734 (mips_after_parse_args): Set mips_flag_mdebug.
4735 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4737 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4739 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4740 value twice for RELA relocations.
4742 2002-06-12 Ben Elliston <bje@redhat.com>
4744 * symbols.c (resolve_symbol_value): Initialise final_val.
4746 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4748 2002-06-11 Tom Rix <trix@redhat.com>
4750 * config/tc-ppc.c (ppc_subseg_align): Delete.
4751 (ppc_change_csect): Default csect align is 2.
4752 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4754 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4756 * config/tc-avr.c (mcu_types): Update.
4758 2002-06-08 Matt Thomas <matt@3am-software.com>
4760 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4761 (vax-*-netbsd*): New targets.
4762 * configure: Regenerate.
4763 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4764 * config/tc-vax.c: Add support for ELF and PIC.
4765 (flag_want_pic): New flag.
4766 (float_cons): Fix prototype.
4767 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4768 (md_assemble): Introduce a new is_absolute local, and use it
4769 rather than repeating the test. Make fatal errors actually
4770 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4771 Add support for ELF. Add support for PIC.
4772 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4773 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4775 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4776 optional for a.out, and not allowed for VMS. Adjust all callers.
4777 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4778 (md_create_long_jump): Likewise.
4779 (md_undefined_symbol): Likewise.
4780 (md_section_align): Likewise.
4781 (md_shortopts): Allow -k and -K for ELF.
4782 (md_parse_option): Set flag_want_pic if -k or -K.
4783 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4784 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4785 * config/tc-vax.h (tc_headers_hook): Remove.
4786 (TARGET_FORMAT): Set according to object format and target
4788 (BFD_ARCH, TARGET_ARCH): Define.
4789 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4790 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4791 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4792 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4794 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4796 * Makefile.am: Run "make dep-am".
4797 * Makefile.in: Regenerate.
4799 * as.c: Replace CONST with const.
4800 * write.c: Likewise.
4801 * config/obj-coff.c: Likewise.
4802 * config/tc-a29k.c: Likewise.
4803 * config/tc-arm.c: Likewise.
4804 * config/tc-dlx.c: Likewise.
4805 * config/tc-h8300.c: Likewise.
4806 * config/tc-h8500.c: Likewise.
4807 * config/tc-i370.c: Likewise.
4808 * config/tc-i860.c: Likewise.
4809 * config/tc-i960.c: Likewise.
4810 * config/tc-m68hc11.c: Likewise.
4811 * config/tc-m68k.c: Likewise.
4812 * config/tc-m88k.c: Likewise.
4813 * config/tc-mcore.c: Likewise.
4814 * config/tc-mips.c: Likewise.
4815 * config/tc-ns32k.c: Likewise.
4816 * config/tc-pdp11.c: Likewise.
4817 * config/tc-pj.c: Likewise.
4818 * config/tc-s390.c: Likewise.
4819 * config/tc-sh.c: Likewise.
4820 * config/tc-sparc.c: Likewise.
4821 * config/tc-tahoe.c: Likewise.
4822 * config/tc-tic80.c: Likewise.
4823 * config/tc-v850.c: Likewise.
4824 * config/tc-vax.c: Likewise.
4825 * config/tc-w65.c: Likewise.
4826 * config/tc-z8k.c: Likewise.
4828 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4830 Based on patch from Matt Green:
4831 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4832 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4833 (s_mips_loc): New function.
4834 (mips_nonecoff_pseudo_table): Call them.
4835 (append_insn): Call dwarf2_emit_insn.
4837 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4839 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4841 (file_ase_mips16): New veriable.
4842 (mips_eabi64): Remove.
4843 (CPU_HAS_MIPS16): New define.
4844 (CPU_HAS_MDMX): Fix data type.
4845 (md_begin): Code cleanup. Use file_ase_mips16.
4846 (mips_elf_final_processing): Handle mips16 header flag.
4847 Handle EABI flag without intermediate variable.
4849 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4851 * doc/as.texinfo: Update MIPS documentation.
4853 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4855 * config/tc-mips.c: Add define for $zero register.
4856 (md_begin): Add $zero as alias name for $0.
4857 (insn_uses_reg): Use ZERO define.
4858 (mips_ip): Add $zero as alias name for $0.
4859 (mips16_ip): Likewise.
4860 (s_cplocal): Demand empty rest of input line.
4861 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4862 names. Use ZERO define. Fix input_line_pointer progress.
4864 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4866 * symbols.c: Replace CONST by const throughout.
4867 (symbol_find_exact): Split out from..
4868 (symbol_find_base): ..here.
4869 * symbols.h: Replace CONST by const throughout.
4870 (symbol_find_exact): Declare.
4871 * config/obj-elf.c: #include "struc-symbol.h".
4872 (elf_frob_file): If group name matches an exported symbol, use that
4873 symbol for the signature and ".group" as the section name.
4875 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4877 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4880 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4882 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4883 and mips_opts.ase_mdmx if they are uninitialized.
4885 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4887 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4888 (hppa_force_relocation): Check if a stub just before the start symbol
4889 of the last call_info is reachable before forcing relocation. Fix
4892 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4894 * config/tc-mips.c (mips_after_parse_args): New function.
4895 (md_begin): Move processing of defaults to mips_after_parse_args.
4896 config/tc-mips.h (md_after_parse_args): Define.
4898 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4900 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4901 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4902 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4903 * configure: Regenerate.
4904 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4907 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4909 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4911 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4913 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4914 linkonce flag. Print all warnings.
4915 (obj_elf_section): Parse ",comdat" for groups.
4916 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4917 consistency of comdat flag.
4919 2002-06-02 Richard Henderson <rth@redhat.com>
4921 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4922 with LITERALs without sequence numbers.
4924 2002-06-01 Richard Henderson <rth@redhat.com>
4926 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4927 Rename them LITUSE_ALPHA_*.
4929 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4931 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4932 accept parentheses enclosed register lists.
4934 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4936 * Makefile.am: Run "make dep-am".
4937 * Makefile.in: Regenerate.
4938 * po/POTFILES.in: Regenerate.
4940 2002-05-31 Graeme Peterson <gp@qnx.com>
4942 * configure.in: Add i386-*-nto-qnx*.
4943 * configure: Regenerate.
4945 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4947 * config/tc-mips.c (mips_ip): Use unsigned long values for
4950 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4952 * config/tc-mips.c (s_cpsetup): Fix initialization of
4953 mips_cpreturn_register and mips_cpreturn_offset.
4955 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4957 * config/tc-mips.c (s_cpsetup): Fix comment.
4959 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4961 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4962 (mips_ip): Likewise.
4963 (mips16_ip): Likewise.
4964 (tc_get_register): Likewise.
4966 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4967 Ed Satterthwaite <ehs@broadcom.com>
4969 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4970 (mips_opts): Initialize "ase_mdmx" member.
4971 (file_ase_mdmx): New variable.
4972 (CPU_HAS_MDMX): New macro.
4973 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4974 based on command line options and configuration defaults.
4975 (macro_build): Note in comment that use of MDMX in macros is
4976 not currently allowed.
4977 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4978 "Z" MDMX operand types.
4979 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4980 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4982 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4983 Add support for "-mdmx" and "-no-mdmx" options.
4984 (OPTION_ELF_BASE): Move to accomodate new options.
4985 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4986 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4987 file_ase_mdmx was set.
4988 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4989 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4992 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4994 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4995 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4996 command line switch conforming to gcc conventions.
4997 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4999 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5001 * config/tc-mips.c (macro_build_jalr): New Function.
5002 (md_begin): NewABI uses big GOTs.
5003 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
5004 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
5005 (load_address): Add some NewABI PIC support.
5007 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
5008 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
5010 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5012 * config/tc-mips.c (load_address): Use mips_gp_register instead
5013 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
5015 (macro): Use mips_gp_register instead of hardcoded value.
5017 2002-05-30 Richard Henderson <rth@redhat.com>
5019 * expr.h (operatorT): Add O_md17..O_md32.
5020 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
5021 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5022 O_tprelhi, O_tprello, O_tprel): New.
5023 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5024 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5025 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5026 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5027 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
5028 (md_apply_fix3): Handle TLS relocations.
5029 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5030 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5031 associated TLS reloc. Check lituse_tls relocs match up.
5032 (emit_insn): Handle TLS relocations.
5035 * doc/c-alpha.texi: Add docs for tls relocations.
5037 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5039 * config/tc-mips.c (mips_gprel_offset): New variable.
5040 (s_gpvalue): Use it.
5042 2002-05-30 Diego Novillo <dnovillo@redhat.com>
5044 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5045 write-write conflicts.
5046 (md_assemble): Reformat introductory comment.
5047 (parallel_ok): Prevent packing only if the first
5048 instruction cannot be packed.
5050 2002-05-30 Jason Eckhardt <jle@redhat.com>
5051 Tom Rix <trix@redhat.com>
5053 * config/tc-d10v.c (build_insn): Check for immediates.
5055 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5057 * config/tc-mips.c: Replace GP in comments by $gp.
5058 (mips_big_got): Initialize.
5059 (mips_trap): Initialize.
5060 (load_address): Use mips_gp_register instead of hardcoded value.
5061 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5062 (macro): Use mips_gp_register instead of hardcoded value.
5063 (macro2): Change load_address calls.
5064 (md_pcrel_from): Comment formatting.
5065 (s_cpload): Use mips_gp_register instead of hardcoded value.
5066 (s_cprestore): Likewise. Comment formatting.
5067 (s_gpword): Fix data type.
5068 (s_cpadd): Use mips_gp_register instead of hardcoded value.
5069 (nopic_need_relax): Replace GP in comments by $gp.
5070 (mips_elf_final_processing): Better comment.
5072 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
5074 * configure.in: Add DLX configuraton
5075 * Makefile.am: Add DLX configuraton
5076 * configure: Regenerate.
5077 * Makefile.in: Regenerate.
5078 * config/tc-dlx.c: New file.
5079 * config/tc-dlx.h: New files.
5080 * NEWS: Mention new support.
5082 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
5084 * config/obj-coff.c (write_object_file): Add missing semicolon.
5086 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5088 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5089 by the define. Remove superfluous check of mips_opts.mips16.
5090 (append_insn): Likewise. Canonicalize variable increments.
5091 (macro_build): Canonicalize variable increments.
5092 (macro_build_lui): Likewise.
5093 (load_register): Likewise.
5094 (load_address): Move pointer initialization.
5095 (macro): Move pointer to a more local scope. Canonicalize variable
5096 increments. Better comments. Replace magic constant for RA by the
5098 (macro2): Replace magic constant for RA by the define. Canonicalize
5099 variable increments.
5100 (mips_ip): Canonicalize variable increments.
5101 (mips16_ip): Replace magic constant for RA by the define.
5102 (my_getSmallParser): Canonicalize variable increments/decrements.
5103 (my_getPercentOp): Likewise.
5104 (my_getSmallExpression): Likewise.
5105 (s_align): Likewise.
5106 (s_mipsset): Likewise.
5107 (s_cpsetup): Likewise.
5108 (s_insn): Remove superfluous check of mips_opts.mips16.
5109 (s_mips_stab): Likewise.
5110 (mips_handle_align): Canonicalize variable increments.
5111 (s_mips_ent): Likewise.
5112 (s_mips_end): Add comment.
5114 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5116 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5117 * configure: Regenerate.
5119 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5121 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5122 * Makefile.in: Regenerate.
5123 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5124 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5125 * configure: Regenerate.
5126 * as.h: Use #include "" instead of <> for local header files.
5127 * flonum-konst.c: Likewise.
5128 * flonum-mult.c: Likewise.
5130 * listing.c: Likewise.
5131 * config/tc-ia64.h: Likewise.
5132 * config/tc-v850.h: Likewise.
5134 2002-05-24 TAMURA Kent <kent@netbsd.org>
5136 * configure.in: Add a target for i386-netbsdpe.
5137 * configure: Regenerate.
5139 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5141 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5142 (obj_elf_common): Call elf_common.
5143 (obj_elf_tls_common): New function.
5144 (elf_pseudo_tab): Support .tls_common.
5145 (special_sections): Add .tdata and .tbss.
5146 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5148 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5149 (obj_elf_parse_section_letters): Include T in error message.
5150 * config/tc-ppc.c (ppc_section_letter): Likewise.
5151 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5152 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5154 * config/tc-sparc.c (md_apply_fix3): Likewise.
5155 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5156 Define them if not BFD_ASSEMBLER.
5157 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5159 (md_apply_fix3): Add TLS relocs.
5160 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5161 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5162 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5163 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5164 (ia64_elf_section_letter): Include T in error message.
5165 (md_begin): Support TLS operators.
5166 (md_operand): Likewise.
5167 (ia64_gen_real_reloc_type): Support TLS relocs.
5168 * write.c (adjust_reloc_syms): Don't change symbols in
5169 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5171 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5173 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5174 round the relocation up rather than down.
5176 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5178 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5180 * doc/as.texinfo: Document that the COFF version of .section
5181 ignores the 'a' flag.
5183 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5185 * config/tc-alpha.c (assemble_tokens): Protect use of
5186 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5188 * write.c (size_seg): Check adjustment to last frag.
5189 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5191 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5192 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5193 (write_object_file): Invoke md_do_align if available, and use
5194 frag_align_code on text sections.
5195 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5196 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5197 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5198 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5199 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5202 2002-05-22 H.J. Lu <hjl@gnu.org>
5204 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5207 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5209 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5212 2002-05-22 H.J. Lu <hjl@gnu.org>
5214 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5215 for one .loc for compiler.
5217 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5219 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5222 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5224 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5225 Optimize the rotate by zero case.
5227 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5229 * configure.in: Remove accidental enabling of bfd_gas=yes for
5231 * configure: Regenerate.
5233 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5235 * app.c: Fix formatting.
5237 * ehopt.c: Likewise.
5239 * input-file.c: Likewise.
5240 * listing.c: Likewise.
5241 * macro.h: Likewise.
5242 * stabs.c: Likewise.
5243 * symbols.c: Likewise.
5245 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5247 * config/obj-generic.c: Delete file.
5248 * config/obj-generic.h: Likewise.
5250 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5252 * config/tc-avr.c (mcu_types): Update for new devices.
5254 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5256 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5258 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5260 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5261 worked sometimes by accident. Fix copy&paste comment.
5263 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5265 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5266 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5267 (mips_elf_final_processing): Let n32 use .reginfo.
5269 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5271 * config/tc-mips.c (append_insn): Fix too small range of variable.
5273 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5275 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5276 listing_prev_line().
5278 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5280 * config/tc-arm.c (md_assemble): Remove redundant call to
5283 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5286 * stabs.c (s_stab_generic): Fix grammatical error in warning
5289 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5291 * write.c (subsegs_finish): Don't specially align last subseg.
5293 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5295 * stabs.c (s_stab_generic): Warn about a description field that is
5298 * config/obj-coff.c: Fix compile time warnings when compiling
5299 without BFD_ASSEMBLER defined.
5302 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5304 (md_pcrel_from_section): Use md_pcrel_from().
5306 2002-05-11 Bruno Haible <bruno@clisp.org>
5308 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5309 by dwarf2_directive_loc, instead of calling dwarf2_where.
5311 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5313 * config/obj-coff.h: Fix formatting.
5314 * config/tc-mcore.c: Likewise.
5315 * config/tc-mn10300.c: Likewise.
5316 * config/tc-openrisc.c: Likewise.
5317 * config/tc-or32.c: Likewise.
5318 * config/tc-pdp11.c: Likewise.
5319 * config/tc-ppc.c: Likewise.
5320 * config/tc-ppc.h: Likewise.
5321 * config/tc-sh64.c: Likewise.
5322 * config/tc-sh.c: Likewise.
5323 * config/tc-tic54x.c: Likewise.
5324 * config/tc-xstormy16.c: Likewise.
5325 * config/tc-xstormy16.h: Likewise.
5327 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5329 * config/obj-coff.c: Fix formatting.
5330 * config/obj-elf.c: Likewise.
5331 * config/tc-alpha.c: Likewise.
5332 * config/tc-arm.c: Likewise.
5333 * config/tc-d10v.c: Likewise.
5334 * config/tc-d30v.c: Likewise.
5335 * config/tc-h8300.c: Likewise.
5336 * config/tc-hppa.c: Likewise.
5338 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5340 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5341 reloc when no_cond_jump_promotion.
5343 2002-05-08 Jim Wilson <wilson@redhat.com>
5345 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5346 current variable part of frag.
5348 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5350 * config/tc-mmix.c: Fix formatting.
5351 * config/tc-mmix.h: Likewise.
5353 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5355 * configure: Regenerate.
5357 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5359 * config/tc-m68k.c: Fix formatting.
5361 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5363 * Makefile.am: Honour DESTDIR.
5364 * Makefile.in: Regenerate.
5366 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5368 * config/tc-ia64.c: Fix formatting.
5369 * config/tc-ia64.h: Likewise.
5371 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5373 * config/tc-mips.c: Fix formatting.
5374 * config/tc-s390.c: Likewise.
5375 * config/tc-s390.h: Likewise.
5377 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5379 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5380 information for instructions.
5382 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5384 * as.h: Fix formatting.
5387 * dwarf2dbg.c: Likewise.
5388 * frags.h: Likewise.
5390 * macro.c: Likewise.
5392 * stabs.c: Likewise.
5393 * symbols.c: Likewise.
5395 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5397 * app.c (mri_pseudo): Only declare for TC_M68K.
5399 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5400 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5401 BFD_RELOC_16_BASEREL.
5402 (md_assemble): Likewise.
5403 (md_apply_fix3): Likewise.
5405 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5407 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5408 zero into an add of zero - it is not the same.
5410 2002-05-01 Arati Dikey <aratid@kpit.com>
5412 * tc-sh.c (get_specific): Generate warning if the same
5413 destination register is used in parallel instructions.
5415 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5417 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5419 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5421 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5422 backwards to prevent cascading errors.
5424 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5426 * configure.in: Add support for powerpc-*-windiss.
5427 * configure: Regenerated.
5429 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5431 * config/tc-s390.c (md_parse_option): Formatting.
5433 * config/tc-i386.c: Formatting fixes, add missing space in error
5436 2002-04-24 Christian Groessler <chris@groessler.org>
5438 * config/tc-z8k.c (build_bytes): Add support for new cases:
5439 CLASS_IGNORE and ARG_NIM4.
5440 (md_assemble): Prevent destruction of input_line_pointer if
5441 get_operands returns failure.
5443 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5445 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5446 instructions to be generated by macros.
5448 2002-04-24 Andreas Schwab <schwab@suse.de>
5450 * config/tc-i386.c (output_jump, output_disp)
5451 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5453 (md_apply_fix3): Remember addend value for rela relocations.
5454 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5456 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5458 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5459 from previous change.
5461 2002-04-22 Eric Christopher <echristo@redhat.com>
5463 * config/tc-mips.c (macro_build): Add warning if macro instructions
5464 are expanded into a branch delay slot.
5466 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5468 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5469 numbers, gdb relies on them to detect the start of the prologue.
5471 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5473 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5474 symbols in merge sections.
5476 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5478 * as.c (main): Don't reference _bfd_chunksize.
5480 2002-04-15 Tom Rix <trix@redhat.com>
5482 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5483 symbols in merge sections.
5485 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5487 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5488 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5489 argument for the precision.
5490 (gen_to_words): Update accordingly.
5492 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5494 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5495 BFD_VERSION_STRING unavailable.
5496 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5498 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5500 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5501 symbol_used_in_reloc_p is true.
5503 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5506 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5508 * dep-in.sed: Cope with absolute paths.
5509 * Makefile.am (dep.sed): Subst TOPDIR.
5511 * Makefile.in: Regenerate.
5513 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5515 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5516 (mips_ip): Remove unused variable.
5517 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5518 unsigned char with bfd_byte.
5519 (s_file): Remove unused variable.
5520 (s_mips_ent): Likewise.
5522 2002-04-03 Tom Rix <trix@redhat.com>
5524 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5526 (find_opcode): Fix warning in as_warn.
5527 * config/tc-d10v.h: Update Copyright.
5529 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5530 Tom Rix <trix@redhat.com>
5532 From Jeff Knaggs <jknaggs@redhat.com>
5533 * config/tc-d10v.c (check_resource_conflict): New function to
5534 check for resource conflicts.
5536 From Jason Eckhardt <jle@redhat.com>
5537 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5539 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5540 reserved control registers is used.
5541 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5544 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5545 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5546 instruction cannot be packed.
5548 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5549 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5550 write-write conflicts.
5551 (md_assemble): Reformat introductory comment.
5552 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5555 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5557 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5558 O_logical_not>): Derive final_seg from add_symbol.
5559 <O_multiply..O_logical_or>: More final_seg twiddles.
5561 2002-04-01 Jessica Han <jessica@cup.hp.com>
5563 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5566 2002-03-27 Andreas Schwab <schwab@suse.de>
5568 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5569 field for pc-relative fixups.
5570 (output_disp): Likewise.
5571 (md_estimate_size_before_relax): Likewise.
5572 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5573 pc-relative fixups in 64bit mode.
5575 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5577 * config/te-aix5.h: Typo fix.
5579 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5581 * Makefile.am: Run "make dep-am".
5582 * Makefile.in: Regenerate.
5583 * doc/Makefile.in: Regenerate.
5585 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5587 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5588 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5590 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5592 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5593 the EXTENDED bit here; report the estimate according to the
5596 2002-03-18 Tom Rix <trix@redhat.com>
5598 * configure.in: Add AIX 5 support.
5599 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5600 * config/te-aix5.h: New file. AIX 5 support.
5601 * configure: Regenerate.
5603 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5605 * po/fr.po: Updated version.
5607 2002-03-16 Andreas Jaeger <aj@suse.de>
5609 * doc/c-mips.texi (Machine Dependencies): Add new node.
5611 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5613 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5614 (mips_opts): Initialize "ase_mips3d" member.
5615 (file_ase_mips3d): New variable.
5616 (CPU_HAS_MIPS3D): New macro.
5617 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5618 based on command line options and configuration defaults.
5619 (macro_build, mips_ip): Accept MIPS-3D instructions if
5620 mips_opts.ase_mips3d is set.
5621 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5622 Add support for "-mips3d" and "-no-mips3d" options.
5623 (OPTION_ELF_BASE): Move to accomodate new options.
5624 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5625 (mips_elf_final_processing): Add a comment indicating that a
5626 MIPS-3D ASE ELF header flag should be set, when one exists.
5627 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5628 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5629 nomips3d" directives.
5631 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5633 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5634 a weak symbol in same section to be within reach.
5636 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5638 * po/fr.po: Updated version.
5640 2002-03-12 Andreas Schwab <schwab@suse.de>
5642 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5643 body record so that an error is given for misplaced .save
5646 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5648 * config/tc-i386.h (REX_OPCODE): Define.
5649 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5650 (rex_byte): typedef to int.
5651 * config/tc-i386.c: Group prototypes and vars together.
5652 Formatting fixes. Remove occurrences of "register" keyword.
5655 (mode_from_disp_size): Add INLINE keyword to prototype.
5656 (fits_in_signed_byte): Likewise.
5657 (fits_in_unsigned_byte): Likewise.
5658 (fits_in_unsigned_word): Likewise.
5659 (fits_in_signed_word): Likewise.
5660 (fits_in_unsigned_long): Likewise.
5661 (fits_in_signed_long): Likewise.
5662 (type_names): Constify.
5663 (intel_float_operand): Constify param.
5664 (add_prefix): Use REX_OPCODE.
5665 (md_assemble): Likewise. Modify for changed rex_byte.
5666 (parse_insn): Split out of md_assemble.
5667 (parse_operands): Likewise.
5668 (swap_operands): Likewise.
5669 (optimize_imm): Likewise.
5670 (optimize_disp): Likewise.
5671 (match_template): Likewise.
5672 (check_string): Likewise.
5673 (process_suffix): Likewise.
5674 (check_byte_reg): Likewise.
5675 (check_long_reg): Likewise.
5676 (check_qword_reg): Likewise.
5677 (check_word_reg): Likewise.
5678 (finalize_imm): Likewise.
5679 (process_operands): Likewise.
5680 (build_modrm_byte): Likewise.
5681 (output_insn): Likewise.
5682 (output_branch): Likewise.
5683 (output_jump): Likewise.
5684 (output_interseg_jump): Likewise.
5685 (output_disp): Likewise.
5686 (output_imm): Likewise.
5688 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5690 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5692 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5694 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5695 relocs except when BFD64.
5697 * write.c (number_to_chars_bigendian): Don't abort when N is
5698 larger than sizeof (VAL).
5699 (number_to_chars_littleendian): Likewise.
5701 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5703 * config/tc-hppa.c (md_apply_fix3): Add cast.
5704 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5707 2002-03-05 Paul Koning <pkoning@equallogic.com>
5709 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5710 (parse_ac5): New function for parsing float regs in float operand.
5711 (parse_expression): Remove attempt to make literals be octal.
5712 (parse_op_no_deferred): Support float literals.
5713 (parse_op): Reject attempts to refer to float regs.
5714 (parse_fop): New function, like parse_op but for float operand.
5715 (md_assemble): Add cases to parse float operands. Also fix
5716 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5718 2002-03-04 H.J. Lu <hjl@gnu.org>
5720 * config/obj-elf.c (special_section): Add .init_array,
5721 .fini_array and .preinit_array.
5723 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5724 .init_array and .fini_array.
5726 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5728 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5730 (obj_frob_symbol): Copy visibility.
5732 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5734 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5736 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5738 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5740 * po/es.po: Updated.
5742 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5744 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5745 only, undo the changes made on 2001-06-08, with the
5746 effect being that common or extern symbols are
5747 adjusted for embedded-PIC, but weak symbols are not.
5748 (md_estimate_size_before_relax: Likewise, with the effect
5749 that extern symbols are treated the same as weak symbols
5750 only if not embedded-PIC.
5751 (mips_fix_adjustable) Likewise, with the effect that
5752 weak or extern symbols are not adjusted for embedded-PIC.
5753 (md_apply_fix3): Tweak so that the case where value is zero
5754 is handled more correctly for embedded-PIC code.
5756 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5758 * doc/as.texinfo (Overview): Add missing @ifset IA64
5760 * configure.in (LINGUAS): Add es.po.
5761 * configure: Regenerate.
5762 * po/es.po: New file.
5764 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5766 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5767 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5768 and NO_PIC cases. Code cleanup.
5769 (macro2): Fix handling of 64bit register loads.
5771 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5773 * doc/as.texinfo: Add entry for IA64.
5774 * doc/c-ia64.texi: New file.
5776 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5778 * config/tc-hppa.c: Update copyright date.
5780 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5781 Remove references to chip manufacturers.
5782 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5784 (md_show_usage): Remove references to chip manufacturers. Mention
5786 (md_begin): Test power4 opcode flag bits.
5788 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5790 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5791 count exceeds prologue count.
5792 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5793 (unwind.label_prologue_count): New member.
5795 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5797 (get_saved_prologue_count): New function.
5798 (save_prologue_count): New function.
5799 (free_saved_prologue_count): New function.
5800 (dot_label_state): Record state label by calling save_prologue_count().
5801 (dot_copy_state): Restore prologue count by calling
5802 get_saved_prologue_count().
5803 (generate_unwind_image): Free up list of saved prologue
5804 counts by calling free_saved_prologue_counts().
5806 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5808 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5809 function declarations.
5811 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5813 * NEWS: Note that GASP is now deprecated.
5814 * Makefile.am: Do not build gasp-new by default.
5815 * Makefile.in: Regenerate.
5816 * doc/Makefile.am: Do not install gasp.info.
5817 * doc/Makefile.in: Regenerate.
5818 * gas/gasp.texi: Note that gasp is now deprecated.
5820 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5822 * NEWS: Mark 2.12 branch.
5824 2002-02-19 Tom Tromey <tromey@redhat.com>
5826 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5828 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5830 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5833 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5835 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5836 Make bit size independent of architecture switch.
5837 (md_begin): Add warning for -m64 with -Aesa.
5838 (s390_md_end): Use renamed architecture defines.
5840 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5842 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5844 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5846 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5849 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5851 * config/tc-mips.c (md_estimate_size_before_relax): Really
5852 make sure we treat weak like extern only for ELF. (Fixes
5853 patch from 2001-07-25.)
5855 2002-02-15 Ben Elliston <bje@redhat.com>
5857 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5860 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5862 * NEWS: Mention support for MMIX.
5864 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5866 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5867 a sequence of indpendent 'if' statements for easier debugging
5868 and future modification.
5870 2002-02-13 Matt Fredette <fredette@netbsd.org>
5872 * config/tc-m68k.c (md_show_usage): No longer display a
5873 hard-coded "68020" for the default CPU, instead display the
5874 canonical name of the true, configured default CPU.
5875 (m68k_elf_final_processing): Mark objects for sub-68020
5876 CPUs with the new EF_M68000 flag.
5878 2002-02-13 Andreas Schwab <schwab@suse.de>
5880 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5881 pc-relative relocations to merge sections in 64-bit mode.
5883 2002-02-13 Ben Elliston <bje@redhat.com>
5885 * NEWS: Document floating point number handling in gasp.
5886 * gasp.c: Include <assert.h> and "xregex.h".
5887 (is_flonum): New function.
5888 (chew_flownum): Likewise.
5889 (change_base): Consume flonums from the input, where possible.
5890 * doc/gasp.texi (Constants): Document floating point numbers.
5892 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5894 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5895 that implicitly use LR and RR selectors.
5897 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5899 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5900 and `epsw' as available on AM33 and above only.
5901 (other_register_name): Add logic to handle machine type encoded in
5904 2002-02-11 Tom Rix <trix@redhat.com>
5906 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5909 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5911 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5914 2002-02-11 Jan Hubicka <jh@suse.cz>
5916 * i386.c (md_assemble): Support 32bit address prefix.
5917 (i386_displacement): Likewise.
5918 (i386_index_check): Accept 32bit addressing in 64bit mode.
5920 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5922 * config/tc-sh.c (dot): Removed unused function.
5924 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5926 * Makefile.am: "make dep-am".
5927 * Makefile.in: Regenerate.
5928 * aclocal.m4: Regenerate.
5929 * config.in: Regenerate.
5930 * configure: Regenerate.
5931 * doc/Makefile.in: Regenerate.
5933 2002-02-10 Richard Henderson <rth@redhat.com>
5935 * doc/c-alpha.texi: New file.
5936 * doc/Makefile.am (CPU_DOCS): Add it.
5937 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5939 2002-02-09 Richard Henderson <rth@redhat.com>
5941 * config/tc-alpha.c (O_samegp): New.
5942 (USER_RELOC_P): Include it.
5943 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5944 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5945 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5946 (alpha_validate_fix): New.
5947 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5949 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5951 * doc/c-cris.texi: New.
5952 * doc/all.texi: @set CRIS.
5953 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5954 Include c-cris.texi.
5955 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5956 * doc/Makefile.in: Regenerate.
5958 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5960 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5961 determine if a number is a sign-extended 32-bit number.
5962 (load_register): Use IS_SEXT_32BIT_NUM.
5963 (macro): Check if load/store macro handling is using a
5964 constant 32-bit address on 64-bit address systems, and if
5965 so optimize the generation of that address.
5967 2002-02-08 Richard Henderson <rth@redhat.com>
5969 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5970 we've eliminated all foreign relocation types yet.
5971 (alpha_fix_adjustable): Likewise.
5973 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5975 Contribute sh64-elf.
5976 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5977 Stephen Clarke <Stephen.Clarke@st.com>
5978 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5979 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5980 * config/tc-sh.c (md_relax_table): Added default sizes for
5981 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5982 MOVI_16, MOVI_32 and MOVI_48.
5983 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5984 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5986 (shmedia_md_estimate_size_before_relax): Remove redundant
5987 blocks. Set fragP->fr_var even if relaxation type unchanged.
5988 Retain UNDEF_MOVI until expression decays to number.
5989 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5990 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5991 relocation types. Take fixP->fx_addnumber into account too.
5992 (shmedia_md_apply_fix): Likewise.
5993 (shmedia_md_convert_frag): Likewise.
5994 (shmedia_build_Mytes): Likewise.
5995 (sh64_consume_datalabel): Complain about nested datalabel.
5996 Support PIC relocs. Call sh_parse_name.
5997 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5998 in tc-sh.h to SHmedia reloc types.
5999 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
6000 MOVI_GOTPC): New relaxation constants.
6001 (md_relax_table): Introduce relaxation directives for PIC-related
6003 (sh_PIC_related_p): Handle datalabel.
6004 (sh_check_fixup): Choose SH5 PIC relocations.
6005 (sh_cons_fix_new): Added BDF_RELOC_64.
6006 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
6007 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6008 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
6009 current ISA is SHmedia, get 7 bytes.
6010 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
6011 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
6013 * config/tc-sh64.c (shmedia_apply_fix): Rename to
6014 shmedia_apply_fix3 and make void.
6015 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
6016 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
6018 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
6019 * config/tc-sh64.h (md_parse_name): Take &c as argument.
6020 2001-03-14 DJ Delorie <dj@redhat.com>
6021 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6022 * doc/Makefile.in(CPU_DOCS): Ditto.
6023 * doc/c-sh64.texi: New file.
6024 * doc/as.texinfo: Add SH64 support.
6025 2001-03-13 DJ Delorie <dj@redhat.com>
6026 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6027 A_REUSE_PREV so that its purpose is more obvious.
6028 (shmedia_build_Mytes): Ditto.
6029 2001-03-07 DJ Delorie <dj@redhat.com>
6030 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6032 (sh64_vtable_inherit): Ditto.
6033 (strip_datalabels): New, strip "datalabel" from given line.
6034 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6036 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
6037 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6039 (shmedia_build_Mytes): ... to here.
6040 2001-03-06 DJ Delorie <dj@redhat.com>
6041 * config/tc-sh.c: Remove sh64-specific uaquad now that there
6043 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
6044 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6045 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6046 address by one in call to dwarf2_emit_insn.
6047 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
6048 Implement ".abi" pseudo and correct .cranges descriptors. Correct
6049 alignment handling broken by imported changes.
6050 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6051 (sh64_handle_align): Declare.
6052 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6053 (sh64_max_mem_for_rs_align_code): Declare.
6054 (enum sh64_isa_values): Moved here from tc-sh64.c.
6055 (md_do_align): Define.
6056 (sh64_do_align): Declare.
6057 (struct sh64_tc_frag_data): New.
6058 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
6060 (TC_FRAG_INIT): Change to set new datatype.
6061 (struct sh64_segment_info_type): Rename member
6062 last_flushed_location to last_contents_mark. All users changed.
6063 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6064 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6065 * config/tc-sh.c (md_pseudo_table): Add ".abi".
6066 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6067 of unsetting seen_insn.
6068 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6069 call sh64_update_contents_mark.
6070 (sh_handle_align): Remove HAVE_SH64-conditioned code.
6071 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6072 enum sh64_isa_values.
6073 (sh64_set_contents_type): Drop segT parameter. All callers changed.
6074 (emitting_crange): Boolean guard moved to file scope from function
6075 scope in sh64_set_contents_type.
6077 (sh64_update_contents_mark): New; most split out from
6078 sh64_flush_pending_output.
6079 (shmedia_md_end): Call sh64_update_contents_mark. Set
6080 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6081 (sh64_do_align): New function.
6082 (sh64_max_mem_for_rs_align_code): New function.
6083 (sh64_handle_align): Rename from shmedia_do_align. Make
6084 non-static. Add head comment. Emit zero bytes for n bytes modulo
6085 four. Change return-type to void.
6086 (shmedia_elf_new_section): Remove.
6087 (shmedia_md_assemble): Call sh64_update_contents_mark.
6088 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
6089 new frag. Call sh64_update_contents_mark after making the new
6091 (sh64_flush_pending_output): Just call sh64_update_contents_mark
6092 and sh_flush_pending_output.
6093 (sh64_flag_output): Also call md_flush_pending_output, but add
6094 condition on not emitting_crange.
6095 (sh64_tc_cons_fix_new): Remove.
6096 2001-01-12 Nick Clifton <nickc@redhat.com>
6097 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6098 alignment handling scheme imported from sourceware.
6099 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
6100 * config/tc-sh64.h (TARGET_FORMAT): Define.
6101 (sh64_target_format): Prototype.
6102 * config/tc-sh64.c (sh64_target_mach): New function.
6103 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
6104 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6105 zero_address_frag instead of copying the frag of the symbol.
6106 (shmedia_frob_file_before_adjust): Ditto.
6107 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6108 to valueT to remove signedness.
6109 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6110 headers to output_bfd. Do not evaluate symbols if final is false;
6112 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6113 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6114 to the current frag, call shmedia_md_convert_frag to emit fixups
6115 and make frag_wane neutralize the frag. Update comments.
6116 * config/tc-sh.c (md_convert_frag): Change caller of
6117 shmedia_md_convert_frag.
6118 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6119 * config/tc-sh64.h: Tweak comments and correct formatting.
6120 * config/tc-sh64.c: Ditto.
6121 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6122 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6123 for the no-relocation case.
6124 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6125 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6127 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6129 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6130 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6132 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6134 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6135 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6136 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6137 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6138 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6139 if reloc is emitted.
6140 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6141 New options plus bugfixes.
6142 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6144 (md_parse_option): Handle new options.
6145 (md_show_usage): Add blurb for new options.
6146 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6147 (sh64_expand, sh64_pt32): New variables.
6148 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6149 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6150 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6151 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6152 <resolved previously-pc-relative relocs>: Handle
6153 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6154 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6155 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6156 points to SHcompact code.
6157 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6158 SH64PCREL16)>: Check that ISA of what operand points at and
6159 PTA/PTB matches, or emit error.
6160 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6161 SHMEDIA_BFD_RELOC_PT.
6162 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6164 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6165 condition for MOVI expansion.
6166 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6167 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6169 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6171 (sh64_target_format): Error-check setting of sh64_pt32 and
6172 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6173 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6174 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6175 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6176 * config/tc-sh64.c: Improve comments.
6177 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6178 not say the linker will check correctness of PTA/PTB expansion.
6179 (shmedia_md_end): Make non-static.
6180 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6182 * config/tc-sh.c (sh_finalize): Remove.
6183 * config/tc-sh.h (md_end): Do not define.
6184 Remove prototype for sh_finalize.
6185 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6186 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6187 sh64_section_data container when storing section type in tdata
6188 field in elf_section_data.
6189 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6191 * Makefile.am: Update dependencies.
6192 * Makefile.in: Regenerate.
6193 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6194 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6195 dwarf2_emit_insn call with test on debug_type.
6196 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6197 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6198 CRT_SH5_ISA32 sticky for 64-bit.
6199 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6200 Generate .crange sections when switching ISA mode or emitting
6201 constants in same section as code.
6202 * config/tc-sh64.c: Reformat structure definitions.
6203 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6205 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6206 to emit a .cranges descriptor when contents type changes. Only
6207 emit error if changing contents type and -no-mix is in effect.
6208 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6209 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6210 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6211 sh64_flush_last_crange over sections.
6212 When checking main symbol of datalabel symbol, check for
6213 STO_SH5_ISA32, not ISA type of section in definition.
6214 (shmedia_frob_file_before_adjust): Check main symbol for
6215 STO_SH5_ISA32; don't check ISA type of section in definition.
6216 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6217 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6218 .cranges entries have been output.
6219 (shmedia_elf_new_section): Just call md_flush_pending_output.
6220 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6221 fix. Do not set tc_segment_info_data.in_code for section. Call
6222 sh64_set_contents_type for SHmedia code.
6223 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6224 false. Call md_flush_pending_output.
6225 (sh64_target_format): Check that -no-mix and
6226 -shcompact-const-crange are used in sane combination with other
6228 (shmedia_md_pcrel_from_section): Check type of fix for how to
6230 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6231 not ISA type of section in definition.
6232 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6233 hold contents-type state.
6234 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6235 (sh64_flush_pending_output): Declare.
6236 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6237 (sh64_tc_cons_fix_new): Declare.
6238 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6239 call sh64_flag_output.
6240 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6241 call sh64_set_contents_type to mark SHcompact code and set
6243 (md_longopts): New options "-no-mix" and
6244 "-shcompact-const-crange".
6245 (md_parse_option): Handle new options.
6246 (md_show_usage): Add blurb for new options.
6247 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6248 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6249 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6250 (sh64_last_insn_frag): New.
6251 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6252 to get frag for insn opcode for generating fixups; do not assume it
6254 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6256 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6258 (TC_FRAG_TYPE): Define as fragS *.
6259 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6260 (sh64_last_insn_frag): Declare.
6261 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6262 not == NULL before dereferencing.
6263 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6264 Get rid of BFD section flag and EF_SH64_ABI64.
6265 * config/tc-sh64.c (shmedia_frob_section_type): Use
6266 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6267 communicate the section as containing SHmedia code. Describe why.
6268 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6269 EF_SH64 regardless of ABI.
6270 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6271 in error message. Handle resolved expressions for
6272 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6273 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6274 (shmedia_check_limits): Handle BFD_RELOC_64.
6275 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6276 a STO_SH5_ISA32 symbol, only the BFD value.
6277 2000-12-11 Ben Elliston <bje@redhat.com>
6278 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6279 dwarf2_generate_asm_lineno.
6280 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6281 Handle PC-relative MOVI expansions with assembler relaxation.
6282 Generate PC-relative relocs from 16-bit PC-relative expressions.
6283 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6284 (shmedia_md_pcrel_from_section): ...here.
6285 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6286 turned completely resolved. Adjust relocation type for 16-bit
6287 immediate operands that has turned PC-relative. Adjust back for
6288 MD_PCREL_FROM_SECTION being applied twice.
6289 (shmedia_md_convert_frag): Always emit reloc for expression with
6290 global or weak symbol. Handle relaxation result for PC-relative
6292 (shmedia_md_estimate_size_before_relax): An expression with a weak
6293 or global symbol can not be relaxed. Break out tests for
6294 relaxable symbol into variable sym_relaxable.
6295 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6296 UNDEF_MOVI)>: Break out any PC-relative expression and change
6298 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6300 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6301 MOVI expansion. If X_op_symbol of the immediate expression is
6302 set, make an expression symbol for the argument to frag_var.
6303 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6305 (END): Adjust for new relaxations.
6306 (md_relax_table): Add entries for new relaxations.
6307 2000-12-07 Ben Elliston <bje@redhat.com>
6308 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6309 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6310 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6311 SHORI operand offsets in PT/PTA/PTB expansions.
6312 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6313 Implement DataLabel semantics.
6314 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6315 shmedia_frob_file_before_adjust.
6316 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6317 (DATALABEL_SUFFIX): Define.
6318 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6319 symbol list to update "datalabel" symbols to their main symbol
6321 (shmedia_frob_file_before_adjust): New.
6322 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6323 undefined and set STT_DATALABEL.
6324 (sh64_frob_label): Initialize TC symbol field.
6325 (sh64_consume_datalabel): Actually implement semantics. New
6326 parameter operandf, call it instead of expression.
6327 (sh64_exclude_symbol): New.
6328 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6329 to sh64_consume_datalabel.
6330 (tc_symbol_new_hook): Define to tc_frob_symbol.
6331 (TC_SYMFIELD_TYPE): Define to symbolS *.
6332 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6333 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6334 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6336 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6337 generating dwarf2 debug information.
6338 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6339 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6340 elf64-sh64 for the 64-bit ABI.
6341 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6343 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6344 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6346 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6347 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6348 (enum sh64_abi_values): New type.
6349 (enum sh64_isa_values): New type.
6350 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6351 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6352 (sh64_abi): Replace shmedia_64.
6353 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6354 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6355 (s_sh64_mode): Check validity for this target.
6356 (sh64_target_format): Initialize defaults for ISA and ABI.
6357 Fallback to old object format if no SH64 ISA or ABI has been
6359 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6360 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6361 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6362 * config/tc-sh64.h: Fix typo in comment.
6363 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6364 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6365 <PT fixups for absolute values>: Size will be longest, not
6367 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6368 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6369 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6370 and l1 to hold lowercase of two first characters. Change all
6371 remaining TO_LOWER to tolower.
6372 * config/tc-sh64.c (TO_LOWER): Delete.
6373 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6374 (md_parse_name): Define.
6375 (sh64_consume_datalabel): Declare.
6376 (DOLLAR_DOT): Define.
6377 * config/tc-sh64.c (shmedia_parse_exp): New.
6378 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6379 (shmedia_parse_reg): Remove const from src
6381 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6382 (shmedia_md_assemble): Ditto for op_end variable.
6383 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6384 Use shmedia_parse_exp, not parse_exp.
6385 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6386 parameter. All callers changed.
6387 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6389 (shmedia_parse_reg): Put first two character in local variables.
6390 Use tolower, not TO_LOWER. If no register is found and argtype
6391 indicates a control register, scan shmedia_creg_table
6393 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6394 * Makefile.am (CPU_TYPES): Add sh64.
6395 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6396 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6397 Regenerate dependencies.
6398 * Makefile.in: Regenerate.
6399 * configure.in: Add support for sh64-*-elf*.
6400 * configure: Regenerate.
6401 * config/tc-sh64.h: New.
6402 * config/tc-sh64.c: New.
6403 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6404 .mode, .isa and .uaquad.
6405 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6406 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6407 [HAVE_SH64] (END): Define as 10.
6408 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6409 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6411 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6412 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6413 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6414 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6416 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6417 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6418 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6419 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6420 SHmedia instructions. Handle state-change after switching to
6422 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6423 (md_parse_option) [HAVE_SH64]: Parse new options.
6424 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6425 (md_convert_frag) [HAVE_SH64] <default>: Call
6426 shmedia_md_convert_frag instead of abort.
6427 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6428 BFD_RELOC_SH_SHMEDIA_CODE.
6429 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6430 SHcompact or SHmedia code.
6431 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6432 shmedia_md_apply_fix instead of abort.
6433 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6434 result from calling shmedia_md_estimate_size_before_relax instead
6436 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6438 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6439 shmedia_init_reloc and do nothing more if it returns non-zero.
6440 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6441 * po/POTFILES.in: Regenerate.
6442 * po/gas.pot: Regenerate.
6444 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6446 * config/tc-sh.c (parse_at): Install the correct version of
6449 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6450 assume fixP->fx_subsy is non-NULL.
6452 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6454 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6455 A_DISP_PC_ABS, and adjust it by -4.
6456 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6458 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6459 the operand type is not A_DISP_PC_ABS.
6461 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6463 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6464 common and weak symbols. Handle common and weak symbols as
6465 undefined symbols with regards to GREG handling and merging.
6466 (mmix_frob_file): Ditto.
6468 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6470 * configure.in (hppa-*-netbsd*): New target.
6471 * configure: Regenerate.
6472 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6474 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6476 * config/tc-v850.c: Add missing prototypes amd use old-style
6477 function definitions.
6478 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6479 (sdata_section tdata_section, zdata_section, sbss_section,
6480 tbss_section, zbss_section, rosdata_section, rozdata_section,
6481 scommon_section, tcommon_section, zcommon_section,
6482 call_table_data_section, call_table_text_section): Delete.
6483 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6484 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6485 v850_call_table_data, v850_call_table_text): Delete.
6486 (struct v850_seg_entry): New.
6487 (v850_seg_table): New.
6488 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6489 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6490 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6491 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6494 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6495 recording of alignment.
6496 (md_pseudo_table): Use v850_seg.
6497 (md_begin): Don't init .call_table_data and .call_table_text here.
6498 Set v850_seg_table bss entry.
6500 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6502 Support on-demand global register allocation by passing on
6503 base-plus-offset relocs to the linker.
6504 * config/tc-mmix.c: Tweak and fix typos in comments.
6505 (allocate_undefined_gregs_in_linker): New variable.
6506 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6507 (md_longopts): Add --linker-allocated-gregs.
6508 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6509 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6510 (md_show_usage): Update text for -x. Add text for
6511 --linker-allocated-gregs.
6512 (tc_gen_reloc): Derive default value for addend from val and
6513 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6514 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6515 GREG if allocate_undefined_gregs_in_linker.
6516 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6517 --linker-allocated-gregs.
6518 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6519 --linker-allocated-gregs. Mention that it's implied by -x.
6520 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6521 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6523 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6525 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6527 * Makefile.am: Run "make dep-am"
6528 * Makefile.in: Regenerate.
6530 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6532 * config/tc-or32.c: New file.
6533 * config/tc-or32.h: New file.
6534 * configure.in: Add support for or32 targets.
6535 * configure: Regenerate.
6536 * config/obj-coff.c: Add support for or32 targets.
6537 * config/obj-coff.h: Add support for or32 targets.
6538 * Makefile.am: Add support for or32 targets.
6539 * Makefile.in: Regenerate.
6540 * NEWS: Mention support for OpenRISC.
6541 * doc/Makefile.in: Regenerate.
6542 * po/POTFILES.in: Regenerate.
6543 * po/gas.pot: Regenerate.
6545 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6547 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6550 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6552 * config/tc-mips.c (tc_gen_reloc): Arrange for
6553 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6554 their LO16 parts, even for ELF.
6556 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6558 * config/tc-i386.c: Protect definitions of true and false
6561 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6563 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6564 made because of .weak, if they are neither defined nor used in any
6567 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6569 * configure: Regenerated.
6571 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6573 * doc/Makefile.am (install): Depend on install-info.
6574 * doc/Makefile.in: Regenerate.
6576 2002-01-26 Nick Clifton <nick@redhat.com>
6578 * po/fr.po: Updated version
6580 2002-01-24 Kazu Hirata <kazu@hxi.com>
6582 * config/tc-h8300.c (check_operand): Don't print a warning
6583 when a valid 24-bit address is given to a 16-bit address
6586 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6588 * config/tc-sh.c (sh_elf_suffix): Removed.
6589 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6590 sh_end_of_match, sh_parse_name): New functions.
6591 (sh_elf_cons): Simplify.
6592 (parse_exp): Reject misplaced PIC operands.
6593 (md_undefined_symbol): Simplify.
6594 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6595 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6596 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6597 Complain if subsy remains at the end.
6598 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6599 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6601 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6603 * config/tc-mn10300.c (xr_registers): Move `pc'...
6604 (other_registers): ... here.
6606 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6608 * Makefile.am: Run "make dep-am".
6609 * Makefile.in: Regenerate.
6610 * gas/po/POTFILES.in: Regenerate.
6612 2002-01-21 DJ Delorie <dj@redhat.com>
6614 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6615 stabstr_name allocation permanent, as it will be referenced from
6618 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6620 * configure.in (ia64-*-netbsd*): New target.
6621 * configure: Regenerate.
6623 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6625 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6627 <Detailed description, ARM options>: Ditto.
6628 * doc/c-arm.texi (ARM Options): Ditto.
6630 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6632 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6633 do_mia, do_mar and do_mra respectively.
6634 (do_mav_*): Renamed from do_c_*.
6635 (mav_reg_required_here, mav_parse_offset): Renamed from
6636 cirrus_reg_required_here and cirrus_parse_offset respectively.
6637 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6639 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6640 Keith Walker <keith.walker@arm.com>
6642 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6643 (insns): Add pattern for bxj instruction.
6644 (do_bxj): New function.
6645 (arm_cpus): Add arm926ej.
6646 (arm_archs): Add armv5tej.
6648 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6650 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6652 2002-01-19 Keith Walker <keith.walker@arm.com>
6654 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6656 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6658 * NEWS: Mention new ARM command-line options and VFP support.
6660 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6662 (ARM_CEXT_MAVERICK): Similarly.
6663 (ARM_ANY): Now means any core instruction.
6664 (CPU_DEFAULT): Default to ARM_ANY.
6665 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6666 (pic_code): Declare for all object types. Make type int.
6667 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6668 (march_fpu_opt, mfpu_opt): Declare.
6669 (md_longopts): Tidy up conditional definitions.
6670 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6671 (arm_long_opts): New tables.
6672 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6673 (arm_parse_extension): New function.
6674 (md_parse_option): Rewrite using new table-driven system.
6675 (md_show_usage): Use new table-driven system.
6676 (md_begin): Calculate cpu_variant from command line option data.
6677 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6678 command-line options.
6679 * doc/c-arm.texi: Likewise.
6681 2002-01-18 Andreas Jaeger <aj@suse.de>
6683 * as.c (parse_args): Update year.
6685 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6687 * config/tc-tic54x.c (encode_address): Add a more informative
6688 warning about incorrect syntax.
6690 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6692 * po/gas.pot: Regenerate.
6694 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6696 * macro.c (get_any_string): Add no-c-format comment to prevent
6697 confusion when translating string.
6698 * gasp.c (get_any_string): Add no-c-format comment to prevent
6699 confusion when translating string.
6701 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6702 Johannes Stezenbach <js@convergence.de>
6703 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6704 matched before the shorter ones.
6705 (my_getSmallParser): Fix handling of nested parentheses in
6706 percent_op's. Code cleanup.
6707 (my_getPercentOp): New function, code from my_getSmallParser.
6708 (my_getSmallExpression): Fix handling of closing parentheses.
6709 Code cleanup. Better comments.
6711 2002-01-16 Nick Clifton <nickc@redhat.com>
6713 po/tr.po: New file: Turkish translation.
6714 configure.in (LINGUAS): Add "tr".
6715 configure: Regenerate.
6717 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6719 Support for VFP instructions
6720 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6721 (cp_address_required_here): New argument wb_ok. When false, do not
6722 accept write-back forms of addressing. Change all callers.
6723 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6724 (FPU_VFP_EXT_V2): Define.
6725 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6726 Define in terms of above.
6727 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6728 (vfp_reg): New struct.
6729 (vfp_regs): New array of registers.
6730 (insns): Add VFP instructions.
6731 (sn_table): New array of VFP single-precision register names.
6732 (dn_table): New array of VFP double-precision register names.
6733 (all_reg_maps): Add the new register tables.
6734 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6735 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6736 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6737 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6738 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6739 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6740 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6741 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6742 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6743 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6744 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6745 (do_vfp_sp_dp_cvt): New functions.
6746 (md_begin): Set soft-float flag for appropriate VFP work.
6747 (md_atof): Handle VFP-format doubles.
6748 (md_parse_option): Handle VFP command-line options.
6749 (md_show_usage): Display VFP command-line options.
6751 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6753 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6754 various command line options.
6756 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6758 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6760 (xstormy16_md_apply_fix3): Do not return a value.
6762 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6764 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6765 the -EL/-EB option that matches the target's endianness.
6766 (md_parse_option): Likewise.
6768 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6770 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6771 is not dependent on ARM_BI_ENDIAN.
6773 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6775 * tc-arm.c (all error messages): Normalize capitalization of messages.
6777 * tc-arm.h (md_operand): Delete define.
6778 * tc-arm.c (in_my_get_expression): New static variable.
6779 (my_get_expression): Set and clear it.
6780 (md_operand): New function. If called from my_get_expression
6781 put the error in inst.error.
6782 (output_inst): Now takes argument of instruction being assembled.
6783 Print it out with any error message.
6784 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6786 (end_of_line): Don't update inst.error if it is already set.
6788 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6790 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6791 op that can be translated into a mvn instruction.
6793 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6795 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6796 setting default md.flags.
6797 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6798 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6799 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6800 for 32 bit unwind info blocks.
6801 (generate_unwind_image): Add support for different types
6802 of unwind images (32 bits and/or big-endian).
6803 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6804 (ia64_target_format): Add support for hpux target formats.
6805 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6806 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6807 SHT_FINI_ARRAY elf section types.
6809 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6811 * tc-arm.c (struct reg_entry): Move before prototypes.
6812 (int_register, cp_register, fp_register): Delete.
6813 (reg_table): Delete. Replaced with ...
6814 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6815 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6816 (mav_dspsc_table): ... one table per register set.
6817 (arm_reg_hsh): Delete.
6818 (struct reg_map): New structure.
6819 (all_reg_maps): New array.
6820 (enum arm_reg_type): New enums.
6821 (build_reg_hsh): New function.
6822 (insert_reg_alias): Use hash table passed by caller. Adjust all
6824 (create_register_alias): New function, split out from ...
6825 (md_assemble): ... here.
6826 (md_begin): Build new register hash tables.
6827 (arm_reg_parse): New argument for the hash table to search. Adjust all
6829 (arm_reg_parse_any): New function.
6830 (co_proc_number): Look up the processor number in the processor hash
6832 (cirrus_regtype): Delete.
6833 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6834 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6835 (ARM_EXT_MAVERICKsc_register): Delete.
6836 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6837 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6839 (do_c_triple_4, do_c_triple_5): Delete.
6840 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6841 (do_c_quad_6): Delete.
6842 (do_c_quad_6[ab]): New functions.
6843 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6844 arguments to use new register parsing methods.
6845 (cirrus_reg_required_here): Likewise.
6846 (insns): Reclassify cirrus maverick worker functions.
6847 (cirrus_valid_reg): Delete.
6849 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6851 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6852 (sh*-*-netbsdelf*): New target.
6853 * configure: Regenerate.
6854 * tc-sh.h: Update copyright years.
6855 (TARGET_FORMAT): Add version for TE_NetBSD.
6857 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6859 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6862 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6864 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6865 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6867 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6869 * tc-mips.c (mips_cprestore_valid): New flag.
6870 (mips_frame_reg_valid): New flag.
6871 (macro) [M_JAL_2]: Check both flags.
6872 [M_JAL_A]: Likewise.
6873 (s_cprestore): Set mips_cprestore_valid.
6874 (tc_get_register): If setting mips_frame_reg, set
6875 mips_frame_reg_valid and clear mips_cprestore_valid.
6876 (s_mips_ent): Clear both flags.
6877 (s_mips_end): Clear both flags.
6879 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6881 * write.c (write_object_file): Make use of bfd_section_list_remove.
6882 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6883 * config/tc-mmix.c (mmix_frob_file): Likewise.
6885 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6887 * configure.in (i386-*-netbsdelf*): Collapse target into...
6888 (i386-*-netbsd*): ...this. Add support for x86-64.
6889 * configure: Regenerated.
6891 2002-01-03 matthew green <mrg@redhat.com>
6893 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6895 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6897 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6900 For older changes see ChangeLog-0001
6906 version-control: never