1 2003-11-15 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3 * config/tc-mips.c: Formatting fixes.
5 2003-11-14 Ben Elliston <bje@wasabisystems.com>
7 * config/tc-arm.c (arm_elf_change_section): Not static.
9 2003-11-13 Nick Clifton <nickc@redhat.com>
11 * tc-arm.c (mapping_state): New function. Emit a mapping
13 (arm_elf_change_section): New function. Intercept section
14 changes and generate mapping symbols.
16 (s_arm_elf_cons): Likewise.
17 (opcode_select): Choose the correct mapping state.
18 (md_assemble): Likewise.
19 * tc-arm.h (md_elf_section_change_hook): Define.
20 * doc/c-arm.texi (ARM Mapping Symbols): New node.
21 * NEWS: Mention new feature.
23 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
25 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Define.
26 * doc/Makefile.am (install-info): Define.
28 * aclocal.m4: Regenerate.
29 * Makefile.in: Regenerate.
30 * doc/Makefile.in: Regenerate.
32 2003-11-11 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
34 * configure.in: Add support for arm-wince-pe target.
35 * configure: Regenerate.
37 2003-11-11 Jan Hubicka <jh@suse.cz>
39 * config/tc-i386.c (tc_i386_fix_adjustable):
41 2003-11-10 Alan Modra <amodra@bigpond.net.au>
43 * config/tc-ia64.c (ia64_handle_align): Remove bogus be_nop.
45 2003-11-10 Alan Modra <amodra@bigpond.net.au>
47 * README: Update bug report address. Move bug reporting info to
50 2003-11-07 Christian Groessler <chris@groessler.org>
52 * doc/c-z8k.texi: Document command-line options. Fix byte
53 register names. Document '.z8001' and '.z8002' directives.
54 Extend addressing modes documentation.
56 2003-11-07 Jonathan R. Grant <jg-binutils@jguk.org>
58 * input-file.c (input_file_open): Use "No such file" error
61 2003-11-06 Pete Gonzalez <pgonzalez@bluel.com>
63 * config/tc-arm.texi (struct reg_entry): Add new field 'builtin'.
64 (rn_table, iwmmxt_table, cp_table, cn_table, fn_table, sn_table,
65 dn_table, mav_mvf_table, mac_mvd_table, mav_mvfx_table,
66 mav_mvax_table, mav_dspc_table): Initialise new field.
67 (insert_reg_alias): Initialise new field.
68 (md_pseudo_table): Add "unreq" entry.
69 (s_unreq): New function: Undo the effects of a previous .req.
70 * doc/c-arm.texi: Document new pseudo op.
71 * NEWS: Mention new feature.
73 2003-11-06 Bruno Rohee <bruno@rohee.com>
75 * config/obj-vms.c: Fix "the the" typo.
76 * doc/c-arm.texi: Likewise.
78 2003-11-06 Nick Clifton <nickc@redhat.com>
80 * config/obj-vms.c: Convert to ISO-C.
82 2003-11-05 Alan Modra <amodra@bigpond.net.au>
84 * config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
86 2003-10-31 Christian Groessler <chris@groessler.org>
88 * config/tc-i860.c (md_pcrel_from): Fix typo in comment.
90 2003-10-29 Phil Edwards <phil@codesourcery.com>
92 * configure.in (arm-*-vxworks, i386-*-vxworks, mips-*-vxworks,
93 ppc-*-vxworks, ppc-*-windiss): Remove separate outdated stanzas.
94 (*-*-vxworks, *-*-windiss): Use common stanzas, all ELF.
95 * configure: Regenerated.
97 2003-10-27 Kazu Hirata <kazu@cs.umass.edu>
99 * ChangeLog: Fix typos.
100 * ChangeLog-9295: Likewise.
101 * as.c: Fix comment typos.
103 * atof-generic.c: Likewise.
104 * bit_fix.h: Likewise.
107 * input-file.c: Likewise.
108 * input-scrub.c: Likewise.
109 * itbl-ops.c: Likewise.
110 * itbl-parse.y: Likewise.
111 * listing.c: Likewise.
116 * symbols.c: Likewise.
117 * symbols.h: Likewise.
119 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
121 * config/tc-m68hc11.c: Convert to ISO C90.
122 * config/tc-m68hc11.h: Likewise.
124 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
126 * doc/c-sh64.texi: Fix a typo.
128 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
130 * doc/c-alpha.texi: Fix typos.
131 * doc/c-ia64.texi: Likewise.
132 * doc/c-mmix.texi: Likewise.
133 * doc/c-sh64.texi: Likewise.
134 * doc/c-xtensa.texi: Likewise.
135 * doc/internals.texi: Likewise.
137 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
139 * config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
140 for .interp, .strtab and .symtab. Use specified section
143 2003-10-22 Andreas Schwab <schwab@suse.de>
144 H.J. Lu <hongjiu.lu@intel.com>
145 Jim Wilson <wilson@specifixinc.com>
147 * config/tc-ia64.c (update_qp_mutex): New.
148 (note_register_values): Properly handle one of PRs in compare
149 is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
150 Clear mutex relation for .none/.unc. Don't clear mutex relation
151 on predicated compare.
153 2003-10-21 Wouter van Heyst <wouter@vidicode.nl>
155 * config/tc-arm.c (all_reg_maps): Correct text describing Maverick
156 register requirements.
157 (md_begin): Remove F_SOFT_FLOAT if enabling MAVERICK FP.
159 2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com>
160 Bernardo Innocenti <bernie@develer.com>
162 * config/tc-m68k.c: Add MCF528x (MCFv4) support.
163 * config/m68k-parse.h: Likewise.
164 * NEWS: Mention the new support.
165 * doc/c-m68k.texi: Document new processor selection switch.
167 2003-10-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
169 * config/tc-mips.c (normalize_constant_expr): New function to fix sign
170 extensions broken by gas' expression evaluation of constants.
171 (check_absolute_expr): Use it.
174 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
176 Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
177 * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
179 * config/tc-mmix.c: Include limits.h. Expand on mmix_relax_table
181 (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
182 (pushj_stubs): New variable.
183 (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
184 (PUSHJSTUB_MAX): New macros.
185 (md_longopts): New options "--no-pushj-stubs" and synonym
187 (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
188 (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
189 (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
190 PUSHJ stub relaxation.
191 (md_convert_frag): Handle STATE_PUSHJSTUB.
192 (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
193 (tc_gen_reloc): Ditto.
194 (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
195 * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
196 (struct mmix_segment_info_type): New.
198 2003-10-17 Paul Dale <pauli@snapgear.com>
199 Bernardo Innocenti <bernie@develer.com>
201 * config/tc-m68k.c (make_pcrel_absolute): Enforce
202 PC-relative jumps with --pcrel.
203 (md_convert_frag_1): Likewise.
204 (md_create_long_jump): Likewise.
206 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
208 * config/tc-h8300.c (PSIZE): Correct for Normal mode.
209 (get_operand): Accept both 16 bit 32 bit registers as pointer
210 registers, when operating in Normal mode.
211 (fix_operand_size): Make default address size 16 for Normal mode.
213 2003-10-17 Ian Lance Taylor <ian@wasabisystems.com>
215 * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
217 (do_iwmmxt_word_addr): With a control register, reject conditional
218 execution and reject a non-word size.
220 2003-10-16 Peter Bergner <bergner@vnet.ibm.com>
222 * configure.in: Set em=linux for ppc-*-linux-gnu* target.
223 * configure: Regenerate.
225 2003-10-15 Alan Modra <amodra@bigpond.net.au>
227 * doc/as.texinfo (Align): Correct list of byte targets.
229 2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
231 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
232 Fix indentation. Better error message.
234 2003-10-14 Bob Wilson <bob.wilson@acm.org>
236 * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
237 argument in call to xtensa_get_property_section_name. Formatting.
239 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
241 * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
244 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
246 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
247 prototypes and casts.
248 * config/tc-sh.h: Likewise.
249 * config/tc-sh64.c: Likewise.
250 * config/tc-sh64.h: Likewise.
252 2003-10-08 Dave Brolley <brolley@redhat.com>
254 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
255 (fr550_check_acc_range): New function.
256 (md_assemble): Call fr550_check_acc_range.
258 2003-10-08 Dave Brolley <brolley@redhat.com>
260 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
261 (md_parse_option): Handle OPTION_CPU==fr550.
262 (md_show_usage): Document fr550.
264 2003-10-08 Philippe De Muyter <phdm@macqel.be>
266 * as.c (use_gnu_debug_info_extensions) : New variable.
267 (parse_args) : Accept new --gstabs+ option, and set
268 `use_gnu_debug_info_extensions'.
269 (show_usage) : Document --gstabs+ option.
270 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
271 * stabs.c (stabs_generate_asm_file) : If
272 `use_gnu_debug_info_extensions' is set, add the compilation
273 directory to the stabs debug info.
274 * doc/as.texinfo : Document --gstabs+ option.
275 * NEWS: Mention new feature.
277 2003-10-06 Matt Thomas <matt@3am-software.com>
279 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
282 * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
283 register names. Change all "defined (TE_LINUX)" to
284 "(defined (TE_LINUX) || defined (TE_NETBSD))".
286 * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
287 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
289 2003-10-06 Robert Millan <robertmh@gnu.org>
291 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
292 * configure: Regenerate.
294 2003-10-05 Nick Clifton <nickc@redhat.com>
296 * as.c (parse_args): Revert patch to change handling of -f
297 option. Its behaviour is mandated by the POSIX 2 spec.
299 2003-10-04 Christian Groessler <chris@groessler.org>
301 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
302 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
303 (md_pcrel_from): This function now gets called. Supply return
306 2003-10-04 Nick Clifton <nickc@redhat.com>
308 * as.c: Convert to ISO C90.
310 2003-10-04 Nick Clifton <nickc@redhat.com>
312 * as.c (std_shortopts): Remove 'f'.
313 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
314 acecpted as an alias for -f.
316 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
318 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
319 Make 'r' mean readonly data.
321 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
323 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
324 Unbreak overflow checks.
326 2003-10-01 Chris Demetriou <cgd@broadcom.com>
328 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
330 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
332 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
334 (load_register): Likewise.
337 2003-09-30 Chris Demetriou <cgd@broadcom.com>
339 * config/tc-mips.c (mips_ip): Capitalize first word of
340 existing condition code warning, and add condition code
341 warnings for .ps instructions, and for bc1any[24][tf].
343 2003-09-30 Chris Demetriou <cgd@broadcom.com>
345 * NEWS: Mention support for MIPS64 Release 2.
347 2003-09-30 Chris Demetriou <cgd@broadcom.com>
349 * NEWS: Add an indication of the cutoff for 2.14.
351 2003-09-30 Chris Demetriou <cgd@broadcom.com>
353 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
354 * configure: Regenerate.
355 * config/tc-mips.c (imm2_expr): New variable.
356 (md_assemble, mips16_ip): Initialize imm2_expr.
357 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
358 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
359 (macro): Handle M_DEXT and M_DINS.
360 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
362 (OPTION_MIPS64R2): New define.
363 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
364 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
365 (md_parse_option): Handle OPTION_MIPS64R2.
366 (s_mipsset): Handle setting "mips64r2" ISA.
367 (mips_cpu_info_table): Add mips64r2.
368 (md_show_usage): Document -mips64r2 option.
369 * doc/as.texinfo: Docuemnt -mips64r2 option.
370 * doc/c-mips.texi: Likewise.
372 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
374 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
376 2003-09-26 Matt Thomas <matt@3am-software.com>
378 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
379 (OPTION_PIC): Define.
380 (md_longopts): Add "pic" option.
381 (md_parse_option): Change 'K' to OPTION_PIC.
383 2003-09-23 Alan Modra <alan@modra.org>
385 * config/obj-elf.c (obj_elf_change_section): Adjust for
386 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
387 to be set when defaults are not. Don't set attr from defaults if
390 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
392 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
393 truncate values which won't fit im 32 bits.
394 (load_register): Likewise.
397 2003-09-17 Dmitry Diky <diwil@mail.ru>
399 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
400 (msp430_operands): Remove redundant l2[16] within switch-case.
402 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
404 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
405 * configure: Regenerate.
407 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
409 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
410 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
411 the function prototype.
412 (load_register): Likewise. Simplify the checks for sign-extended
414 (macro): Likewise. Fix code generation for 64-bit address constants
415 outside the 32-bit compatibility space. Adjust
416 macro_build_ldst_constoffset calls.
417 (s_cprestore): Adjust macro_build_ldst_constoffset call.
419 2003-09-11 Bob Wilson <bob.wilson@acm.org>
421 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
422 literal_syms): New global variables.
423 (xtensa_define_label, add_target_symbol, xtensa_find_label,
424 map_over_defined_symbols, is_loop_target_label,
425 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
426 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
427 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
428 from insn_labels to saved_insn_labels when entering a literal region.
429 (xtensa_end_directive): Call md_flush_pending_output. Restore
430 insn_labels list when leaving a literal region.
431 (xtensa_literal_position): Call xtensa_clear_insn_labels.
432 (xtensa_literal_pseudo): Add check to disallow .literal inside a
433 literal region. Move insn_labels to saved_insn_labels and then restore
435 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
436 code to set is_loop_target or is_branch_target flag on the symbol
437 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
438 (xtensa_add_literal_sym, xtensa_add_insn_label,
439 xtensa_clear_insn_labels): New functions.
440 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
441 loops_ok argument. Rewrite to use insn_labels list instead of
442 calling xtensa_find_label and to check the is_loop_target flag on
443 symbols when loops_ok is false.
444 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
445 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
446 call to xtensa_move_labels. Propagate is_branch_target and
447 is_loop_target flags from symbols to frags.
448 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
449 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
450 aligning a loop instruction. Adjust call to xtensa_move_labels for
451 aligning entry instructions. Add call to xtensa_clear_insn_labels.
452 (xtensa_end): Remove call to xtensa_mark_target_fragments.
453 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
454 code to use new literal_syms list.
455 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
456 is_branch_target flags.
458 2003-09-09 Bob Wilson <bob.wilson@acm.org>
460 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
461 "move_labels" argument and corresponding call to xtensa_move_labels.
462 (md_assemble): Add a separate call to xtensa_move_labels and remove
463 argument for call to xtensa_mark_literal_pool_location.
464 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
465 calls to xtensa_mark_literal_pool_location.
466 (xtensa_create_local_symbol): Delete and inline the code into...
467 (xtensa_create_literal_symbol): ...here.
468 (xtensa_frob_label): Combine conditionals.
469 (expression_maybe_register, xtensa_symbol_new_hook,
470 fix_new_exp_in_seg): Use symbol_get_tc.
472 2003-09-09 Bob Wilson <bob.wilson@acm.org>
474 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
475 combining identical literals.
476 (expression_maybe_register): Remove call to find_lit_sym_translation.
477 (is_duplicate_expression, cache_literal, is_duplicate_literal,
478 add_lit_sym_translation, find_lit_sym_translation): Delete.
480 2003-09-07 Nick Clifton <nickc@redhat.com>
482 * doc/as.texinfo (Comments): Comment character for PPC is #.
484 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
487 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
490 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
492 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
494 2003-09-04 Nick Clifton <nickc@redhat.com>
496 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
497 (md_pseudo_table): Add .v850e1 pseudo op.
498 (md_show_usage): Document -mv850e1 switch.
499 (md_parse_option): Accept -mv850e1 switch.
500 (md_begin): Allow TARGET_CPU to be v850e1.
501 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
502 * NEWS: Mention support for v850e1.
504 2003-09-04 Alan Modra <amodra@bigpond.net.au>
506 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
507 ppc_cpu selection rather than replacing.
508 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
509 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
511 2003-09-03 Robert Millan <robertmh@gnu.org>
513 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
515 * configure: Regenerate.
517 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
519 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
520 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
521 Specify AC_CONFIG_AUX_DIR.
522 * aclocal.m4: Regenerated with aclocal-1.7.
523 * configure: Regenerated with autoconf 2.57.
524 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
526 2003-08-29 Jakub Jelinek <jakub@redhat.com>
528 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
529 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
530 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
531 nor tc_cfi_emit_pcrel_expr are defined.
532 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
533 DIFF_EXPR_OK is not defined.
534 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
535 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
536 tc_cfi_emit_pcrel_expr): Define.
537 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
538 sparc_cfi_emit_pcrel_expr): New prototypes.
539 (sparc_cie_data_alignment): New decl.
540 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
541 * config/tc-sparc.c: Include dw2gencfi.h.
542 (sparc_cie_data_alignment): New variable.
543 (md_begin): Initialize it.
544 (sparc_cfi_frame_initial_instructions): New function.
545 (sparc_regname_to_dw2regnum): Likewise.
546 (sparc_cfi_emit_pcrel_expr): Likewise.
547 * doc/as.texinfo: Document .cfi_window_save.
549 * config/tc-sparc.c (s_common): Cast last argument to long and
550 change format string to shut up warning.
552 2003-08-25 Jason Eckhardt <jle@rice.edu>
554 * doc/c-i860.texi: Update text about relocatable address expansions.
556 2003-08-24 Jason Eckhardt <jle@rice.edu>
558 * config/tc-i860.c (md_assemble): Use isrc2 from the original
559 instruction when expanding E_ADDR.
561 2003-08-21 Nick Clifton <nickc@redhat.com>
563 * po/tr.po: Updated Turkish translation.
565 2003-08-20 Alan Modra <amodra@bigpond.net.au>
567 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
568 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
570 2003-08-19 Nick Clifton <nickc@redhat.com>
572 * config/tc-arm.c (cp_address_required_here): Add code to handle
573 unindexed addressing mode.
575 2003-08-19 Alan Modra <amodra@bigpond.net.au>
577 * config/tc-ppc.c (md_parse_option): Handle -m440.
578 (md_show_usage): Add -m440.
579 (md_apply_fix3): Warning fix.
580 * doc/c-ppc.texi: Document -m440.
582 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
584 * read.c (s_print): Check for NULL.
586 2003-08-16 Alan Modra <amodra@bigpond.net.au>
588 * write.c (fixup_segment): When handling an expression involving
589 the subtraction of two symbols in the same segment, don't clear
590 fx_pcrel except for TC_M68K.
592 2003-08-14 Alan Modra <amodra@bigpond.net.au>
594 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
596 * config/tc-i386.c: Likewise.
597 (RELOC_ENUM): Don't define. Replace throughout with enum.
599 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
600 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
602 * Makefile.in: Regenerate.
604 2003-08-08 Andreas Schwab <schwab@suse.de>
606 * config/tc-m68k.h (TARGET_USE_CFIPOP)
607 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
608 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
610 * config/tc-m68k.c: Include "dw2gencfi.h".
611 (tc_m68k_regname_to_dw2regnum)
612 (tc_m68k_frame_initial_instructions): New functions.
614 2003-08-08 Dmitry Diky <diwil@mail.ru>
616 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
617 according to gcc order.
619 2003-08-07 Jason Eckhardt <jle@rice.edu>
621 * config/tc-i860.c (i860_check_label): New function.
622 * config/tc-i860.h (i860_check_label): New prototype.
623 (tc_check_label): Define macro as i860_check_label.
625 2003-08-06 Jason Eckhardt <jle@rice.edu>
627 * config/tc-i860.c (s_align_wrapper): New function and prototype.
628 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
629 surrounding OBJ_ELF ifdef, and re-format slightly.
630 * doc/c-i860.texi: Document the special .align syntax available
633 2003-08-06 Jason Eckhardt <jle@rice.edu>
635 * config/tc-i860.c (i860_handle_align): New function.
636 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
637 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
639 2003-08-06 Jason Eckhardt <jle@rice.edu>
641 * config/tc-i860.c (i860_process_insn): Check that instructions
642 with their dual-bit set are 8-byte aligned.
644 2003-08-06 Nick Clifton <nickc@redhat.com>
646 * po/fr.po: Updated French translation.
648 2003-08-05 Jason Eckhardt <jle@rice.edu>
650 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
651 setting during flop argument parsing. Instead, do it after
652 instruction is fully parsed.
654 2003-08-05 Jason Eckhardt <jle@rice.edu>
656 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
657 directives are only available in Intel syntax mode.
659 2003-08-05 Jason Eckhardt <jle@rice.edu>
661 * config/tc-i860.c (s_dual): Accept .dual directive only in
662 the Intel syntax mode.
663 (s_enddual): Likewise for .enddual.
664 (s_atmp): Likewise for .atmp.
666 2003-08-04 Alan Modra <amodra@bigpond.net.au>
668 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
669 for memory operands. Pass the full operand_string to i386_index_check.
671 2003-08-01 Jason Eckhardt <jle@rice.edu>
673 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
674 (target_intel_syntax): Declare variable.
675 (OPTION_INTEL_SYNTAX): Declare macro.
676 (md_longopts): Add option -mintel-syntax.
677 (md_parse_option): Set target_intel_syntax.
678 (md_show_usage): Add -mintel-syntax usage.
679 (md_begin): Set reg_prefix based on target_intel_syntax.
680 (i860_process_insn): Skip register prefix only if there is one.
681 Parse relocatable expressions in either Intel or AT&T syntax based
682 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
683 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
684 about the differences in syntax.
686 2003-08-01 Dmitry Diky <diwil@mail.ru>
688 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
691 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
693 * config/tc-sh.c (md_assemble): For branches, check & update
696 2003-07-30 Jason Eckhardt <jle@rice.edu>
698 * config/tc-i860.c: Convert to ISO C90.
700 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
702 * read.c (s_space): Revert 2003-07-28 change.
704 2003-07-30 Alan Modra <amodra@bigpond.net.au>
706 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
708 2003-07-29 Alan Modra <amodra@bigpond.net.au>
710 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
712 2003-07-29 Jakub Jelinek <jakub@redhat.com>
714 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
716 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
718 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
720 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
722 * read.c (s_space): Don't warn about .space 0.
724 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
726 * config/tc-mips.c (mips_flag_pdr): Define.
727 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
728 (s_mips_end) [OBJ_ELF]: Likewise.
729 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
730 (md_parse_option) [OBJ_ELF]: Handle them.
731 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
733 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
734 * doc/as.texinfo (Overview) [MIPS]: Likewise.
736 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
738 * config/obj-elf.c (obj_elf_change_section): Update
739 elf_section_type and elf_section_flags only when they are
742 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
744 * config/obj-elf.c (obj_elf_change_section): Always set section
747 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
749 * config/obj-elf.c (special_sections): Removed.
750 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
751 elf_section_type and elf_section_flags.
752 (elf_frob_file): Set SHT_GROUP.
754 * config/obj-elf.h (obj_sec_set_private_data): New.
756 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
757 * config/tc-ia64.h: Likewise.
758 * config/tc-m32r.h: Likewise.
759 * config/tc-m68hc11.h: Likewise.
760 * config/tc-mcore.h: Likewise.
761 * config/tc-mips.h: Likewise.
762 * config/tc-ppc.h: Likewise.
763 * config/tc-sh64.h: Likewise.
764 * config/tc-v850.h: Likewise.
765 * config/tc-xtensa.h: Likewise.
767 * config/tc-v850.h (SHF_V850_GPREL): Removed.
768 (SHF_V850_EPREL): Likewise.
769 (SHF_V850_R0REL): Likewise.
771 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
774 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
776 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
777 debugging symbols so that we handle page memory correctly.
779 2003-07-24 Nick Clifton <nickc@redhat.com>
781 * po/fr.po: Updated French translation.
783 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
785 * config/tc-arm.c (arm_archs): Add iwmmxt.
787 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
789 * read.c (do_parse_cons_expression): Mark nbytes unused to
792 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
794 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
797 * config/tc-h8300.c (md_assemble): Make sure characters after
798 slash and dot are lower-case.
800 2003-07-17 Nick Clifton <nickc@redhat.com>
802 * po/es.po: New Spanish translation.
803 * po/tr.po: New Turkish translation.
804 * po/opcodes.pot: Regenerate.
806 2003-07-16 Alan Modra <amodra@bigpond.net.au>
808 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
809 (generic_dwarf2_emit_offset): Don't define function when
810 TC__DWARF2_EMIT_OFFSET is defined.
812 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
814 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
815 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
816 * doc/c-mips.texi: Document -march=rm9000.
818 2003-07-15 Alan Modra <amodra@bigpond.net.au>
820 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
821 only for V850_OPERAND_DISP operands.
823 2003-07-15 Alan Modra <amodra@bigpond.net.au>
825 * frags.c (frag_more): Move segment checks to..
826 (frag_alloc_check): ..here. New function.
827 (frag_append_1_char): Call frag_alloc_check.
829 2003-07-14 Nick Clifton <nickc@redhat.com>
831 * po/tr.po: Update with latest version.
832 * po/POTFILES.in: Regenerate.
833 * po/gas.pot: Regenerate.
834 * configure: Regenerate.
836 2003-07-14 Nick Clifton <nickc@redhat.com>
838 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
839 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
840 "safe-ctype.h" and update use of macros.
841 * Makefile.am: Update dependencies.
842 * Makefile.in: Regenerate.
844 2003-07-11 Alan Modra <amodra@bigpond.net.au>
846 * po/gas.pot: Regenerate.
848 2003-07-10 Jakub Jelinek <jakub@redhat.com>
850 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
851 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
852 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
853 DWARF2_CIE_DATA_ALIGNMENT): Define.
854 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
856 (ppc_cie_data_alignment): Declare.
857 * config/tc-ppc.c: Include dw2gencfi.h.
858 (ppc_cie_data_alignment): Define.
859 (md_begin): Initialize ppc_cie_data_alignment.
860 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
862 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
863 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
864 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
865 DWARF2_CIE_DATA_ALIGNMENT): Define.
866 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
868 (s390_cie_data_alignment): Declare.
869 * config/tc-s390.c: Include dw2gencfi.h.
870 (s390_cie_data_alignment): Define.
871 (md_begin): Initialize s390_cie_data_alignment.
872 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
875 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
877 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
878 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
879 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
880 * configure.in (am33_2.0, mn10300-*-linux*): Added.
881 * configure: Rebuilt.
882 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
884 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
887 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
889 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
890 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
891 for subtracts from GLOBAL_OFFSET_TABLE that could not be
893 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
894 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
895 could not be simplified.
896 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
897 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
898 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
899 BDF_RELOC_MN10300_GOT32.
900 * config/tc-mn10300.c (mn10300_fix_adjustable): If
901 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
902 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
903 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
904 symbol if we know its value.
905 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
906 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
907 duplicate underscore prefix.
908 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
909 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
910 type in X_md, not X_add_number. Zero X_add_number.
911 (mn10300_check_fixup): Extract relocation type from X_md.
912 * config/tc-mn10300.h: Update comment.
913 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
914 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
916 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
917 (mn10300_check_fixup): Likewise.
918 (mn10300_parse_name): Set X_add_number to relocation type.
919 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
920 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
921 O_GOTOFF, O_PLT, O_GOT): Define.
922 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
923 (mn10300_check_fixup): New fn.
924 (md_assemble): Call it. Check for PIC-related relocs.
925 (mn10300_cons_fix_new): Likewise. New fn.
926 (mn10300_end_of_match): New fn.
927 (mn10300_md_parse_name_cont): New fn.
929 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
931 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
932 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
934 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
935 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
936 md_assemble, md_estimate_size_before_relax): Handle fbCC.
937 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
938 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
940 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
941 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
942 (HAVE_AM33): Match AM33_2 too.
943 (HAVE_AM33_2): New macro.
944 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
945 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
946 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
947 (float_registers, double_registers): New variables.
948 (float_register_name, double_register_name): New functions.
949 (md_assemble): Recognize FP registers. Implement FMT_D3.
950 (mn10300_insert_operand): Support FP registers.
952 2003-07-08 Chris Demetriou <cgd@broadcom.com>
954 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
955 target being a global symbol if not compiling SVR4 PIC code.
957 2003-07-07 Nick Clifton <nickc@redhat.com>
959 * doc/c-m32r.texi (M32R-Directives): New node. Document the
960 .high, .shigh and .low directives.
962 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
964 * config/tc-h8300.c (h8300sxnmode): Add prototype.
966 (parse_exp): Replace expressionS argument with a h8_op. Parse the
967 operand size as well.
968 (skip_colonthing): Remove unused expression argument. Tighten checks
970 (colonmod24): Remove.
971 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
972 (get_operand): Likewise. Use the standard code to read the size of
973 pc-relative operands.
974 (fix_operand_size): Include the size-guessing logic that used to be
975 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
976 offsets with a symbolic component.
978 2003-07-04 Nick Clifton <nickc@redhat.com>
980 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
981 macro to compute size of selected register name array.
983 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
985 * config/tc-s390.c (md_parse_option): Add cpu type z990.
986 (md_begin): Add minimal cpu type logic for instructions with different
987 binary format depending on the cpu.
988 (md_assemble): Remove check for minimal cpu.
989 (s390_insert_operand): Add support for long displacements.
990 (md_gather_operands): Likewise.
991 (tc_s390_fix_adjustable): Likewise.
992 (tc_s390_force_relocation): Likewise.
993 (md_apply_fix3): Likewise.
995 2003-06-30 Chris Demetriou <cgd@broadcom.com>
997 * config/tc-mips.c (s_mipsset): Implement -march= handling
1000 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1002 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
1003 prototypes and casts. Replace PTR with void *. Reformat.
1004 * config/tc-mips.h: Likewise.
1006 2003-06-30 Alan Modra <amodra@bigpond.net.au>
1008 * config/tc-ia64.c (note_register_values): Warning fix.
1009 * config/tc-mips.c (append_insn): Likewise.
1011 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1013 * config/tc-mips.c (mips_set_options,mips_opts): Support for
1015 (file_mips_arch): Rename mips_arch.
1016 (mips_arch_info,mips_tune_info): Remove.
1017 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
1018 (mips_cpu_info_from_arch): New function.
1019 (md_begin): Use file_mips_arch.
1020 (macro_build,macro,mips_ip): Use mips_opts.arch.
1021 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
1022 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
1024 (s_mipsset): Support for .set arch=FOO.
1025 (mips_cpu_info_table): Fix typo.
1027 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1029 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
1031 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
1033 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
1034 unsigned 8-bit operands.
1036 2003-06-24 Nick Clifton <nickc@redhat.com>
1038 * read.c (s_comm): Change error message to assume an unsigned size
1039 has been passed to .comm.
1040 * config/tc-sparc.c (s_common): Likewise.
1041 * write.c (write_contents): Replace 'unsigned long' with
1042 'addressT' and 'long' with offsetT in order to allow computations
1043 with very large values to work for 64-bit addressed targets.
1044 (relax_and_size_all_segments): Likewise.
1045 (relax_frag): Likewise.
1046 (relax_segment): Likewise.
1048 2003-06-23 Mark Mitchell <mark@codesourcery.com>
1050 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
1052 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
1054 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
1057 * gas/config/tc-i386.h (CpuPNI): New.
1058 (CpuUnknownFlags): Add CpuPNI.
1060 2003-06-23 <davidm@hpl.hp.com>
1062 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
1063 freebsd, openvms, and nsk (non-stop kernel).
1065 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
1067 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
1068 all locals have been declared.
1070 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1072 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
1073 special handling for n32 ABI.
1076 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1078 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
1081 2003-06-19 Christian Groessler <chris@groessler.org>
1083 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
1084 now, not only a warning. Add some more checks to detect invalid
1086 (get_operand): For CLASS_IR remember register size in mode struct.
1087 (get_specific): Handle new CLASS_IRO type. Add register size
1088 checks for CLASS_IR and CLASS_IRO.
1089 (md_apply_fix3): Fix undefined usage of buf.
1091 2003-06-19 Alan Modra <amodra@bigpond.net.au>
1093 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
1094 (ppc_change_csect): Add align param. Align frag at start of csect.
1095 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
1096 (ppc_frob_section): Align vma.
1098 2003-06-18 Jakub Jelinek <jakub@redhat.com>
1100 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
1101 (output_cie): Don't pad.
1102 (output_fde): Add align argument. Pad to align if not 0.
1103 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
1104 Pad just last FDE to EH_FRAME_ALIGNMENT.
1106 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1108 * config/tc-s390.c (init_default_arch): Make current_mode_mask
1109 dependent on s390_arch_size and current_cpu dependent on
1112 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1114 * configure.in: Add c4x as an architecture variant to tic4x.
1115 * configure: Regenerate.
1116 * Makefile.in: Regenerate.
1117 * doc/Makefile.in: Regenerate.
1119 2003-06-18 Alan Modra <amodra@bigpond.net.au>
1121 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
1122 ".TOC." from PPC64_TOC relocs.
1124 2003-06-17 Alan Modra <amodra@bigpond.net.au>
1126 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
1128 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1130 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
1131 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
1132 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
1133 s_cprestore,s_cpadd): Use them.
1135 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
1137 * configure.in: Add specific case for cris-*-linux-gnu* with
1139 * configure: Regenerate.
1140 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
1141 if TE_LINUX defined, else FALSE.
1142 (bfd_boolean demand_register_prefix): Set default from
1143 DEFAULT_CRIS_AXIS_LINUX_GNU.
1144 (symbols_have_leading_underscore): Similar.
1145 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
1147 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1149 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
1150 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
1151 FPU_ARCH_FPA for AOUT.
1152 (md_begin): Don't try to guess the floating point architecture from
1153 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
1155 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
1157 * configure.in: Add i386-netbsd-gnu target.
1158 * configure: Regenerate.
1160 2003-06-12 Tom Tromey <tromey@redhat.com>
1162 * doc/as.texinfo (Comm): Added @node. Moved before CFI
1165 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
1167 * config/tc-mips.c (append_insn): In a compound relocation, take the
1168 field width from the final (outermost) operator.
1170 2003-06-11 Richard Henderson <rth@redhat.com>
1172 * dw2gencfi.c (struct cfi_escape_data): New.
1173 (cfi_add_CFA_nop): Remove.
1174 (CFI_escape, dot_cfi_escape): New.
1175 (dot_cfi): Remove nop.
1176 (cfi_pseudo_table): Remove nop; add escape.
1177 (output_cfi_insn): Likewise.
1178 (select_cie_for_fde): Stop on escape.
1179 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1180 * read.c, read.h (do_parse_cons_expression): New.
1181 * doc/as.texinfo (.cfi_escape): New.
1183 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1185 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1186 (s_cprestore): Likewise.
1187 (s_cpreturn): Likewise.
1189 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1191 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1194 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1196 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1197 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1198 exceptions from size assert. Remove most of the addend fixup
1199 specialcasing. Remove value, use valP directly. simplify fx_addnumber
1200 handling. Remove zero addend specialcases.
1201 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1202 the addend fixup specialcase.
1203 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1205 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1207 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1208 in the RELOC_EXPANSION_POSSIBLE case.
1210 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1212 * config/tc-i960.c (line_comment_chars): Add '#'.
1213 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1215 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
1217 * po/Make-in (DESTDIR): New.
1218 (install-data-yes): Support $(DESTDIR).
1219 (uninstall): Likewise.
1221 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1223 * Makefile.am: Run "make dep-am".
1224 * Makefile.in: Regenerate.
1225 * po/POTFILES.in: Regenerate.
1227 2003-06-10 Doug Evans <dje@sebabeach.org>
1229 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1231 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1232 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1233 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1235 2003-06-10 Alan Modra <amodra@bigpond.net.au>
1236 Gary Hade <garyhade@us.ibm.com>
1238 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1239 (md_apply_fix3): Special case lq insn.
1241 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1243 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1244 lists. Allow single-register ranges.
1246 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1248 * config/tc-h8300.c (h8300sxnmode): New.
1249 (md_pseudo_table): Add .h8300sxn entry.
1251 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1253 * NEWS: Updated for the new -n option for the i386 assembler.
1255 * config/tc-i386.c (optimize_align_code): New.
1256 (md_shortopts): Add 'n'.
1257 (md_parse_option): Handle 'n'.
1258 (md_show_usage): Add '-n'.
1260 * config/tc-i386.h (optimize_align_code): Declared.
1261 (md_do_align): Optimize code alignment only if optimize_align_code
1264 * doc/as.texinfo: Add the new -n option.
1266 * doc/c-i386.texi: Document the new -n option.
1268 2003-06-07 Richard Henderson <rth@redhat.com>
1270 * doc/as.texinfo: Document .cfi_rel_offset.
1272 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1273 (cfi_add_CFA_offset): Detect invalid offsets.
1274 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1275 (cfi_add_CFA_restore_state): Restore it.
1276 (CFI_rel_offset): New.
1277 (cfi_pseudo_table): Add it.
1278 (dot_cfi): Handle it.
1280 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1282 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1285 2003-06-05 Michael Snyder <msnyder@redhat.com>
1287 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1288 (build_bytes): Ditto.
1290 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1292 * config/tc-h8sx.c (DMODE): Remove.
1293 (colonmod24): Don't choose a default if the operand is a 16-bit
1295 (fix_operand_size): New function.
1296 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1297 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1299 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1301 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1302 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1303 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1304 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1305 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1306 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1307 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1308 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1309 (cfi_pseudo_table): New directives .cfi_return_column,
1310 .cfi_restore, .cfi_undefined, .cfi_same_value,
1311 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1312 (dot_cfi, output_cfi_insn): Handle new directives.
1313 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1314 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1315 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1317 2003-06-04 Richard Henderson <rth@redhat.com>
1319 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1321 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1323 2003-06-04 Richard Henderson <rth@redhat.com>
1325 * config/tc-alpha.c (s_alpha_usepv): New.
1326 (md_pseudo_table): Add it.
1327 (alpha_cfi_frame_initial_instructions): New.
1328 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1329 (tc_cfi_frame_initial_instructions): New.
1330 * doc/c-alpha.texi: Document .usepv.
1332 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1334 * as.c (show_usage): Document --execstack and --noexecstack.
1335 (parse_args): Add --execstack and --noexecstack.
1336 (main): Create .note.GNU-stack section if --execstack or
1337 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1338 * as.h (flag_execstack, flag_noexecstack): New.
1340 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1342 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1343 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1344 (OPTION_MISC_BASE): New defines.
1345 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1346 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1347 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1348 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1349 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1350 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1351 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1352 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1353 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1354 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1355 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1356 (OPTION_TRAP): Redefine in terms of new defines.
1357 (md_longopts): Reorder entries.
1359 2003-05-14 Michael Snyder <msnyder@redhat.com>
1360 From Bernd Schmidt <bernds@redhat.com>
1361 and Michael Snyder <msnyder@redhat.com>
1362 and Alexandre Oliva <aoliva@redhat.com>
1363 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1364 * config/tc-h8300.h: Ditto.
1366 2003-06-03 Nick Clifton <nickc@redhat.com>
1368 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1369 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1370 before calling bfd_reloc_type_lookup.
1372 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1374 * read.c (emit_expr): Set dot_value.
1375 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1377 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1379 * macro.c (sub_actual): Don't lose string if it turns out that
1380 &string wasn't an arg.
1382 2003-05-31 Richard Henderson <rth@redhat.com>
1384 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1385 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1387 2003-05-29 Richard Henderson <rth@redhat.com>
1389 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1390 (all_frame_data, plast_frame_data, cur_frame_data): New.
1391 (s_alpha_ent): Record data for dwarf2 cfi.
1392 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1393 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1394 * config/tc-alpha.h (md_end): New.
1395 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1396 (DWARF2_CIE_DATA_ALIGNMENT): New.
1398 2003-05-29 Nick Clifton <nickc@redhat.com>
1400 * configure.in: Add i386-*-freebsd* entry.
1401 * configure: Regenerate.
1403 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1405 * config/tc-m32r.c: Amend comment to refer to Renesas
1407 2003-05-27 Richard Henderson <rth@redhat.com>
1409 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1411 (current_location): Use symbol_temp_new_now.
1412 * stabs.c (s_stab_generic): Use symbol_temp_new.
1413 * symbols.c (temp_label_name): Remove.
1414 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1416 2003-05-27 Richard Henderson <rth@redhat.com>
1418 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1419 * as.c (main): Always call cfi_finish.
1420 * config/tc-i386.c (x86_dwarf2_return_column): New.
1421 (x86_cie_data_alignment): New.
1422 (md_begin): Set them.
1423 (tc_x86_cfi_init): Remove.
1424 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1425 return int, not unsigned long; don't as_bad here.
1426 (tc_x86_frame_initial_instructions): Streamline; use
1428 * config/tc-i386.h (tc_cfi_init): Remove.
1429 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1430 (DWARF2_CIE_DATA_ALIGNMENT): New.
1432 2003-05-27 Richard Henderson <rth@redhat.com>
1434 * symbols.c (temp_label_name): New.
1435 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1436 (symbol_set_value_now): New.
1437 * symbols.h: Prototype them.
1438 * dwarf2dbg.c: Use them.
1439 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1441 2003-05-23 Jason Eckhardt <jle@rice.edu>
1443 * config/tc-i860.c (target_xp): Declare variable.
1444 (OPTION_XP): Declare macro.
1445 (md_longopts): Add option -mxp.
1446 (md_parse_option): Set target_xp.
1447 (md_show_usage): Add -mxp usage.
1448 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1449 (md_assemble): Don't try expansions if XP_ONLY is set.
1450 * doc/c-i860.texi: Document -mxp option and i860XP support.
1452 2003-05-23 Eric Christopher <echristo@redhat.com>
1454 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1456 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1458 * config/tc-mips.c (append_insn): Use actual relocation size for new
1459 fixp's. Don't relax overflow checking for partial_inplace relocations.
1460 Use the actual relocation type in combined relocs, not just the type
1462 (macro_build_jalr): Use actual relocation size for new fix.
1463 (s_cpsetup, s_gpdword): Likewise.
1465 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1467 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1469 2003-05-22 Nick Clifton <nickc@redhat.com>
1471 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1472 section relative offsets for relocs that will not be based on the
1474 (xstormy16_md_apply_fix3): Remove previous patch to this
1477 2003-05-07 Eric Christopher <echristo@redhat.com>
1479 * config/tc-mips.c (mips_abicalls): New variable.
1480 (md_parse_option): Use.
1482 (s_abicalls): Ditto.
1483 (mips_elf_final_processing): Set EF_MIPS_PIC and
1484 EF_MIPS_CPIC dependent on above.
1486 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1488 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1490 2003-05-21 Nick Clifton <nickc@redhat.com>
1492 * config/obj-elf.c: Include dwarf2dbg.h.
1493 (elf_pseudo_tab): Add .file and .loc.
1494 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1495 * config/tc-arm.c: Likewise.
1496 * config/tc-h8300.c: Likewise.
1497 * config/tc-hppa.c: Likewise.
1498 * config/tc-ia64.c: Likewise.
1499 * config/tc-m68hc11.c: Likewise.
1500 * config/tc-m68k.c: Likewise.
1501 * config/tc-mmix.c: Likewise.
1502 * config/tc-mn10300.c: Likewise.
1503 * config/tc-ppc.c: Likewise.
1504 * config/tc-sh.c: Likewise.
1505 * config/tc-sparc.c: Likewise.
1506 * config/tc-v850.c: Likewise.
1507 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1509 * config/tc-ip2k.c: Likewise.
1510 * config/tc-iq2000.c: Likewise.
1511 * config/tc-xstormy16.c: Likewise.
1512 * config/tc-xtensa.c: Likewise.
1513 * Makefile.am: Regenerate dependencies.
1514 * Makefile.in: Regenerate.
1515 * aclocal.m4: Regenerate.
1516 * config.in: Regenerate.
1517 * configure: Regenerate.
1518 * po/POTFILES.in: Regenerate.
1519 * po/gas.pot: Regenerate.
1521 2003-05-21 Nick Clifton <nickc@redhat.com>
1523 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1524 BFD_ASSEMBLER targets.
1525 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1526 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1527 defining BFD_ASSEMBLER.
1529 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1531 * as.c (main): Remove tc_cfi_init().
1532 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1534 (cfi_pseudo_table): Add "cfi_register" entry.
1535 (cfi_make_insn): Handle CFA_register.
1536 (cfi_output_insn): Ditto.
1538 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1539 (dot_cfi_endproc): Reuse already emitted CIEs.
1540 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1541 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1543 2003-05-20 Nick Clifton <nickc@redhat.com>
1545 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1546 (md_pseudo_table): Add entries for .loc and .line.
1548 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1550 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1552 (dot_cfi_endproc): Avoid C99 construct.
1554 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1556 * dw2gencfi.c, dw2gencfi.h: New files.
1557 * config/tc-i386.c (tc_x86_cfi_init): New function.
1558 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1559 * as.c (parse_args): Set verbose flag on --verbose.
1560 (main): Call tc_cfi_init()/cfi_finish().
1561 * as.h (verbose): New external variable.
1562 * read.c (pobegin): Insert CFI pops to the list.
1563 * symbols.c (local_symbol_make): Make symbol external.
1564 * symbols.h (local_symbol_make): New prototype.
1565 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1566 * Makefile.in: Regenerate.
1567 * doc/as.texinfo: Added node "CFI directives" with description of
1568 all implemented .cfi_* directives.
1569 * doc/Makefile.in: Regenerate.
1570 * po/POTFILES.in: Regenerate.
1572 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1574 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1576 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1578 2003-05-18 Jason Eckhardt <jle@rice.edu>
1580 * config/tc-i860.c (i860_process_insn): Initialize fc after
1581 each opcode mismatch.
1583 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1585 * configure.in: Accept i[3-7]86 variants.
1586 * configure: Regenerate.
1588 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1590 * config/tc-mips.h: Fix comment formatting.
1592 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1594 * read.c (old_buffer, old_input, old_limit): Remove variables.
1595 (read_a_source_file): Delete label contin.
1596 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1597 input as with macros, instead of in separate old_* variables.
1598 Zero-terminate string being scrubbed.
1600 2003-05-12 Nick Clifton <nickc@redhat.com>
1602 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1603 (md_assemble): Reset skipping_fptr.
1604 (md_operand): If @fptr() is followed by a minus sign, set
1605 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1606 @fptr is detected, ignore it and reset skipping_fptr.
1608 2003-05-11 Jason Eckhardt <jle@rice.edu>
1610 * config/tc-i860.c (MAX_FIXUPS): Define.
1611 (struct i860_fi fi[]): New struct.
1612 (struct i860_it the_insn): Add above as member and move fields
1613 exp, reloc, pcrel and fup into i860_fi.
1614 (md_assemble): Replace all instances of exp, reloc, pcrel
1615 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1616 Add a loop to possibly emit multiple fix-ups for each insn.
1617 (i860_process_insn): Likewise.
1618 (i860_get_expression): Likewise.
1619 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1621 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1623 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1625 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1627 * config/tc-ia64.c (alias_hash): New.
1628 (alias_name_hash): New.
1629 (secalias_hash): New.
1630 (secalias_name_hash): New.
1631 (md_pseudo_table): Add "secalias".
1632 (md_begin): Initialize alias_hash, alias_name_hash,
1633 secalias_hash and secalias_name_hash.
1634 (struct alias): New.
1635 (dot_alias): Implement .alias and .secalias directives.
1637 (ia64_adjust_symtab): New.
1639 (ia64_frob_file): New.
1641 * config/tc-ia64.h (ia64_adjust_symtab): New.
1642 (tc_adjust_symtab): Defined.
1643 (ia64_frob_file): New.
1644 (tc_frob_file): Defined.
1646 2003-05-07 Dmitry Diky <diwil@mail.ru>
1648 * tc-msp430.c: Add missing lines to known cpus list.
1650 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1652 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1653 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1654 * config.in, configure: Rebuilt.
1656 2003-05-05 H.J. Lu <hjl@gnu.org>
1658 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1659 howto->partial_inplace is false.
1661 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1663 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1664 symbol_used_in_reloc_p check.
1665 (md_apply_fix3): Remove check for howto->pcrel_offset.
1667 2003-05-03 H.J. Lu <hjl@gnu.org>
1669 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1670 fatal error for unknown section attribute.
1672 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1673 unknown section attribute.
1674 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1675 * config/tc-ppc.c (ppc_section_letter): Likewise.
1677 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1678 (ia64_elf_section_type): Accept "unwind".
1680 2003-05-02 H.J. Lu <hjl@gnu.org>
1682 * read.h (demand_copy_string): New.
1684 * config/tc-alpha.c (demand_copy_string): Removed.
1686 2003-05-02 Michael Snyder <msnyder@redhat.com>
1688 * write.h (FAKE_LABEL_NAME): Allow override
1689 (for targets that like eg. a leading dot in a local label).
1691 2003-05-02 Nick Clifton <nickc@redhat.com>
1693 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1694 addend with the symbol's value for pc-relative relocations against
1695 a defined symbol - this will be done automatically.
1697 2003-05-01 H.J. Lu <hjl@gnu.org>
1699 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1702 2003-05-01 H.J. Lu <hjl@gnu.org>
1704 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1706 * config/obj-elf.c (obj_elf_section_name): Call
1707 tc_canonicalize_section_name if it is defined.
1709 2003-05-01 H.J. Lu <hjl@gnu.org>
1711 * config/tc-ia64.c (ia64_check_label): New.
1712 * config/tc-ia64.h (tc_check_label): New.
1714 * read.c (read_a_source_file): Call tc_check_label after
1715 creating a user-defined label if defined.
1717 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1719 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1720 -be and split strings to below 509 bytes in length.
1722 2003-05-01 Christian Groessler <chris@groessler.org>
1724 * expr.h: Fix comments in operatorT typedef.
1725 * config/tc-z8k.c: Add 2003 to copyright message.
1726 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1727 decides by the parameter.
1728 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1729 command line argument was given to select the intended
1731 (get_interrupt_operand): Warn if NOP type code is emitted.
1732 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1733 (apply_fix): Call newfix with additional 'size' parameter.
1734 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1735 4 bit immediate arguments.
1736 (md_longopts): Add 'linkrelax' option.
1737 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1738 variable when 'linkrelax' command line option is specified.
1739 (md_show_usage): Display 'linkrelax' option.
1740 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1741 R_CALLR and R_REL16.
1742 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1744 2003-04-30 H.J. Lu <hjl@gnu.org>
1746 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1747 (ia64_float_to_chars): Likewise.
1748 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1749 and ia64_float_to_chars by tc_segment_info_data.endian from
1750 the current segment if byteorder == -1.
1751 (md_begin): Call dot_byteorder to set target_big_endian.
1752 (md_atof): Call ia64_float_to_chars to convert floating point.
1753 (ia64_float_to_chars_bigendian): New function.
1754 (ia64_float_to_chars_littleendian): Likewise.
1755 (ia64_elf_section_change_hook): Likewise.
1757 * config/tc-ia64.h (ia64_number_to_chars): New.
1758 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1759 (ia64_elf_section_change_hook): New.
1760 (md_elf_section_change_hook): Defined.
1761 (ia64_segment_info_type): New struct.
1762 (TC_SEGMENT_INFO_TYPE): Defined.
1764 2003-04-30 H.J. Lu <hjl@gnu.org>
1766 * config/tc-ia64.c (md_section_align): Deleted.
1768 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1769 (md_section_align): New.
1771 2003-04-30 H.J. Lu <hjl@gnu.org>
1773 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1775 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1777 (md_atof): Add 6 byte padding of zero for real16.
1779 2003-04-29 Nick Clifton <nickc@redhat.com>
1781 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1782 start of a version name.
1784 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1786 * configure.in (mips-*-*n*bsd*): Replace with...
1787 (mips-*-netbsd*, mips-*-openbsd*): These.
1788 * configure: Regenerate.
1790 2003-04-28 H.J. Lu <hjl@gnu.org>
1792 * config/tc-hppa.c (hppa_symbol_chars): New.
1793 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1795 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1797 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1799 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1801 * NEWS: Belatedly mention support for MIPS32 Release 2.
1803 2003-04-24 Eric Christopher <echristo@redhat.com>
1805 * config/tc-mips.c (nopic_need_relax): Revert previous
1808 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1810 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1811 * config/tc-h8300.c (dwarf2dbg.h): Include
1812 (md_pseudo_table): Handle .loc and .file
1813 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1814 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1815 * Makefile.in: Regenerate.
1817 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1819 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1820 (md_pseudo_table): Add h8300hn, h8300sn.
1821 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1822 * doc/c-h8300.texi : Add documentation for new machine directives.
1824 2003-04-24 Nick Clifton <nickc@redhat.com>
1826 * config/tc-ppc.c (ppc_symbol_chars): Define.
1827 * config/tc-ppc.h (tc_symbol_chars): Define.
1829 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1831 * config/tc-sh.c: Amend comment to refer to SuperH.
1832 * config/tc-sh.h: Likewise.
1833 (LISTING_HEADER): Amend to refer to SuperH.
1834 * config/tc-sh64.c: Change comment to refer to SuperH.
1835 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1836 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1837 * doc/c-sh.texi: Amend to refer to SuperH.
1838 Add SuperH architecture documentation references.
1839 * doc/c-sh64.texi: Change to refer to SuperH.
1841 2003-04-23 H.J. Lu <hjl@gnu.org>
1843 * app.c (do_scrub_chars): More checks for valid labels.
1845 2003-04-22 H.J. Lu <hjl@gnu.org>
1847 * app.c (do_scrub_chars): Check for valid label.
1849 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1851 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1852 references to Renesas M32R.
1853 * doc/c-m32r.texi: Likewise.
1855 2003-04-21 Richard Henderson <rth@redhat.com>
1857 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1858 (out_file_list): Assign non-null filename after generating error.
1860 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1862 * ehopt.c (check_eh_frame): For aug_size == 0
1863 in state_seeing_aug_size state skip the state_skipping_aug
1866 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1868 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1870 * doc/c-h8500.texi: Likewise.
1871 * doc/c-sh.texi: Likewise.
1872 * doc/c-sh64.texi: Likewise.
1873 * doc/h8.texi: Likewise.
1874 * config/tc-h8300.c: Likewise.
1875 * config/tc-h8300.h: Likewise.
1876 * config/tc-h8500.c: Likewise.
1877 * config/tc-h8500.h: Likewise.
1878 * config/tc-sh.c: Likewise.
1879 * config/tc-sh.h: Likewise.
1880 * config/tc-sh64.c: Likewise.
1881 * config/tc-sh64.h: Likewise.
1883 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1885 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1886 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1887 (append_insn): When filling delay slots with instructions
1888 that have fixups that tc_gen_reloc might consider modifyable
1889 in variant frags, start a new frag.
1890 (load_address): Generate GOT_DISP with of without offset
1891 depending on whether symbol is local. For -xgot, use
1892 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1893 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1894 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1895 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1896 <ld_st>: In NewABI with small got, always use
1897 GOT_PAGE/GOT_OFST, with the latter in the load/store
1898 instruction. With big got, use GOT_HI16/GOT_LO16 or
1900 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1901 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1902 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1903 (md_convert_frag): Use memmove for safe copying of overlapping
1906 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1908 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1909 -mlong, -mshort-double and -mlong-double options; use table @code.
1910 (M68HC11-Syntax): Update to document 68HC12 operands.
1911 (M68HC11-Modifiers): New section for operand modifiers.
1912 (M68HC11-Directives): New section for specific assembler directives.
1913 (M68HC11-Branch): Fix Overfull hbox error.
1915 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1917 * config/tc-mips.c (macro): Add comments explaining the rationale
1920 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1922 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1923 constant address that Alexandre took out by accident. Reject
1924 64-bit addresses that are not sign extensions of 32 bits only if
1925 we don't support 64-bit address constants.
1927 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1929 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1931 2003-04-08 Nick Clifton <nickc@redhat.com>
1933 * as.c (perform_an_assembly_pass): If using cgen, call
1935 * cgen.c (gas_cgen_begin): New function. If
1936 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1937 otherwise call cgen_clear_signed_overflow_ok.
1938 * cgen.h: Prototype gas_cgen_begin.
1940 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1942 * write.c (write_relocs): Remove unused variable.
1944 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1946 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1947 (macro): Use new macro to decide whether to emit constant address
1948 as 32 or 64 bits if addresses are 32-bit wide but registers are
1951 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1953 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1954 (M6811_OP_PAGE_ADDR): New internal define.
1955 (get_operand): New modifier %page and %addr to obtain page and
1956 address part of a far-function.
1957 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1958 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1960 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1961 (find_opcode): Add comment.
1962 (md_estimate_size_before_relax): Force relocation of
1963 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1964 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1965 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1966 on the symbol itself so that DWARF2 strings are merged correctly.
1968 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1970 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1971 default tic4x target format to 'coff2-tic4x'.
1972 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1974 * config/tc-tic4x.h: Ditto
1976 2003-04-03 Nick Clifton <nickc@redhat.com>
1978 * NEWS: Mention support for Xtensa architecture.
1980 2003-04-02 Philip Blundell <philb@gnu.org>
1982 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1984 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1986 * config/tc-mips.c (macro2): Adjust implementation of
1987 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1988 in the case where the source and destination registers
1991 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1993 * Makefile.am (CPU_TYPES): Add xtensa.
1994 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1995 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1996 (xtensa-relax.o): New target.
1998 * Makefile.in: Regenerate.
1999 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
2000 extra_objects for xtensa targets.
2001 * configure: Regenerate.
2002 * write.c (write_object_file): Add new md_post_relax_hook.
2003 * config/tc-xtensa.c: New file.
2004 * config/tc-xtensa.h: Likewise.
2005 * config/xtensa-istack.h: Likewise.
2006 * config/xtensa-relax.c: Likewise.
2007 * config/xtensa-relax.h: Likewise.
2008 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
2009 * doc/Makefile.in: Regenerate.
2010 * doc/all.texi: Set new XTENSA variable.
2011 * doc/as.texinfo: Set new Xtensa variable. Describe
2012 Xtensa-specific options. Define line comment character for
2013 Xtensa. Add Xtensa processors to list of ELF targets where
2014 alignment is specified in bytes. Add new Xtensa-Dependent node.
2015 Add acknowledgements for those contributing to the Xtensa port.
2016 * doc/internals.texi: Describe new md_post_relax_hook.
2017 * doc/c-xtensa.texi: New file.
2019 2003-04-01 Nick Clifton <nickc@redhat.com>
2020 Richard Earnshaw <rearnsha@arm.com>
2022 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
2023 (ARM_ARCH_IWMMXT): Simplify.
2024 (insns): Place iwmmx instructions in correct place in table.
2025 (arm_add_note): New function: Add a note entry to a .note section.
2026 (md_begin): Make the default architecture be unknown.
2027 Suppress the creation of an arm note section.
2029 2003-03-26 Eric Christopher <echristo@redhat.com>
2031 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
2033 2003-03-25 Stan Cox <scox@redhat.com>
2034 Nick Clifton <nickc@redhat.com>
2036 Contribute support for Intel's iWMMXt chip - an ARM variant:
2038 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
2039 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
2040 (enum wreg_type, enum iwmmxt_insn_type): New types.
2041 (wr_register, wc_register, wcg_register): New macros.
2042 (iwmmxt_table): New variable.
2043 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
2044 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
2045 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
2046 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
2047 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
2048 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
2049 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
2050 cp_byte_address_offset, cp_byte_address_required_here,
2051 check_iwmmxt_insn): New functions.
2052 (asm_opcode_insns): Add iWMMXt instructions.
2053 (md_begin): Set the mach value for iWMMXt targets. Create a note
2054 section to identify iwmmxt binaries.
2055 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
2056 * doc/c-arm.texi: Document the support for the iWMMXt.
2057 * NEWS: Mention new support.
2059 2003-03-24 Daniel Néri <dne@mayonnaise.net>
2061 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
2062 * doc/all.texi: Likewise.
2063 * doc/c-tic54x.texi: Likewise.
2065 2003-03-21 Andreas Schwab <schwab@suse.de>
2067 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
2068 avoid aliasing issue.
2070 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2072 * config/tc-s390.c (s390_arch_size): Initialize to zero.
2073 (current_arch_mask): Rename to current_mode_mask.
2074 (current_arch_requested): Remove variable.
2075 (current_cpu): New variable.
2076 (init_default_arch): Set defaults values for s390_arch_size,
2077 current_mode_mask and current_cpu.
2078 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
2079 (md_begin): Replace current_arch_mask by current_cpu.
2080 (md_assemble): Adapt check and error message to current_mode_mask and
2083 2003-03-09 James E Wilson <wilson@tuliptree.org>
2085 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
2086 * read.c (get_line_sb): Return end of line character or '\n' if
2087 it is zero or non-existent.
2089 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
2091 * config/tc-mips.c (mips_validate_fix): New function.
2092 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
2093 (mips_validate_fix): Declare.
2095 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
2097 * Reverted 2003-03-02's patch.
2099 2003-03-11 Steve Ellcey <sje@cup.hp.com>
2101 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
2102 (TC_DWARF2_EMIT_OFFSET): Provide default.
2103 (out_debug_aranges, out_debug_info): Use it.
2104 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
2105 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
2106 (ia64_gen_real_reloc_type): ... here.
2107 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2109 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2111 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
2112 (s_mips_ent): Likewise.
2114 2003-03-04 Dmitry Diky <diwil@mail.ru>
2116 * config/tc-msp430.c (mcu_types): Add recently announced x1122
2117 and x1123 devices, add missed x437.
2118 (md_show_usage): Sort device list.
2120 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
2122 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
2123 (md_begin): Use preset_target_arch.
2124 (md_longopts): Make isa option unconditional.
2125 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
2126 set preset_target_arch.
2127 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
2128 by -S_GET_VALUE (fixP->fx_subsy).
2129 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
2130 and the addend is 0.
2131 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
2132 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2134 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2136 * config/tc-mips.c (append_insn): Add handling of
2137 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
2138 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
2139 misaligned address and reange overflow.
2140 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
2141 earlier warnings about misaligned address and reange overflow.
2142 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2143 (md_apply_fix): Likewise. Fix warning output.
2144 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2145 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
2146 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2148 2003-02-21 Nick Clifton <nickc@redhat.com>
2150 * NEWS: Mention availability of test generator program.
2152 2003-02-21 Miles Bader <miles@gnu.org>
2154 * config/tc-v850.c (system_registers): Add v850e debug registers.
2155 (system_register_name): Accept up to 27 (the last v850e sys register).
2157 2003-02-21 Bob Wilson <bob.wilson@acm.org>
2159 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2160 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
2161 Capitalize section headings consistently. Format index entries more
2162 consistently. Unconditionalize text about whether text and data
2163 sections are alterable. Use @ifnottex for alternatives to @tex output
2164 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
2165 .size and .type directives. Be more polite about bad bug reports.
2166 Move FDL into a separate file.
2167 * doc/fdl.texi: New file.
2169 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
2171 * config/tc-mips.c (prev_reloc_op_frag): New variable.
2172 (macro): Check it to decide whether a new frag is needed.
2173 (my_getSmallExpression): Set it.
2175 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2177 * cgen.c: Fix typo: intial -> initial.
2179 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
2181 * app.c (do_scrub_chars): Handle '||' in two states.
2183 2003-02-13 Alan Modra <amodra@bigpond.net.au>
2185 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2186 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2188 2003-02-11 Uwe Stieber <uwe@wwws.de>
2190 * configure.in: Add support for kaOS as cross build target system.
2191 * configure: Regenerated.
2193 2003-02-10 Nick Clifton <nickc@redhat.com>
2195 * config/tc-arm.c (md_begin): If the Maverick co-processor is
2196 selected, set the EF_ARM_MAVERICK_FLOAT flag and
2197 bfd_mach_arm_ep9312 machine number.
2199 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
2201 * config/tc-mips.c (reloc_needs_lo_p): New function.
2202 (fixup_has_matching_lo_p): New function.
2203 (append_insn): Use reloc_needs_lo_p to check whether a relocation
2204 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
2205 if that fixup already has a matching %lo(). Don't call frag_wane here.
2206 (macro): Call frag_wane here if the last unmatched hi was in the
2208 (pic_need_relax): New function, split out from...
2209 (md_estimate_size_before_relax): ...here.
2210 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
2211 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2213 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
2215 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2217 2003-02-06 Alan Modra <amodra@bigpond.net.au>
2219 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2222 2003-02-05 Alan Modra <amodra@bigpond.net.au>
2224 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2225 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2226 accept x@got+off etc.
2227 (md_assemble): Handle TLS relocs.
2228 (ppc_force_relocation): Force for all TLS relocs.
2229 (ppc_fix_adjustable): Likewise.
2230 (md_apply_fix3): Handle TLS relocs.
2232 2003-02-04 Alan Modra <amodra@bigpond.net.au>
2234 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2235 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2237 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
2239 * config/tc-mips.c (enum small_ex_type): Remove.
2240 (imm_unmatched_hi): Remove.
2241 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
2242 argument from calls to append_insn.
2243 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2245 (macro_build): Update append_insn calls.
2246 (mips16_macro_build, macro_build_lui): Likewise.
2247 (mips_ip): Rework handling of small expressions. Move explicit
2248 relocation handling into my_getSmallExpression. Assume that the
2249 value of 'o' operands is zero if there is only one bracketed
2251 (percent_op): Make constant. Record the BFD relocation code
2252 associated with each operator.
2253 (my_getSmallParser, my_getPercentOp): Remove.
2254 (parse_relocation): New function.
2255 (my_getSamllExpression): Rework. Fill in relocations here
2256 rather than in mips_ip.
2258 2003-01-29 Nick Clifton <nickc@redhat.com>
2260 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2261 assembler's handling of # <linenum> "<filename>" directives work.
2263 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2265 * dwarf2dbg.c: Include filenames.h.
2266 (struct file_entry): Make filename const char *.
2267 (dirs, dirs_in_use, dirs_allocated): New variables.
2268 (get_filenum): Add NUM argument. Build directory table.
2269 (dwarf2_where): Adjust caller.
2270 (dwarf2_directive_file): Use get_filenum to allocate
2271 slot in file and directory tables.
2272 (dwarf2_directive_loc): Recreate full filename from
2273 directory and filename part if needed for listing.
2274 (out_file_list): Output directory table.
2275 Output main source file dirname before its filename.
2277 2003-01-28 Dmitry Diky <diwil@mail.ru>
2279 * config/tc-msp430.c: Replace occurences of 'tolower' with
2282 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2284 * config/tc-ia64.c (dot_vframesp): Correct error message.
2285 (dot_vframepsp): Ditto.
2287 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2289 * configure.in (em): Set to irix on all Irix systems.
2290 * configure: Rebuilt.
2291 * config/te-irix.h: New file.
2292 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2293 whether to use Irix-specific 64-bit format.
2295 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2297 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2299 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2301 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2302 (tc_gen_reloc): Handle TLS relocs.
2303 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2304 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2306 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2307 (obj_elf_type): Handle tls_object.
2309 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2311 * config/tc-s390.c (s390_tls_suffix): New function.
2312 (elf_suffix_type): Add suffix enums for TLS relocations.
2313 (s390_elf_suffix): Add suffix strings for TLS relocations.
2314 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2316 (md_gather_operands): Map new instruction operand/elf suffix
2317 combinations for TLS to bfd relocations.
2318 (tc_s390_fix_adjustable): Add new TLS relocations.
2319 (tc_s390_force_relocation): Likewise.
2320 (md_apply_fix3): Likewise.
2322 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2324 * as.h: Update copyright date.
2325 * symbols.c: Likewise.
2326 * config/tc-d10v.h: Likewise.
2327 * config/tc-fr30.h: Likewise.
2328 * config/tc-i960.h: Likewise.
2329 * config/tc-mips.h: Likewise.
2331 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2332 (MD_APPLY_SYM_VALUE): Move.
2334 2003-01-23 Nick Clifton <nickc@redhat.com>
2336 * NEWS: Announce sh2e support.
2339 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2340 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2341 (sh_elf_final_processing): Handle arch_sh2e.
2343 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2345 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2346 * symbols.h (S_FORCE_RELOC): Likewise.
2347 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2348 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2349 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2350 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2351 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2352 * write.c (generic_force_reloc): New function.
2353 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2354 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2355 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2356 * as.h (generic_force_reloc): Declare.
2357 * doc/internals.texi (S_FORCE_RELOC): Update.
2358 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2360 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2361 generic_force_reloc.
2362 (alpha_fix_adjustable): Likewise.
2363 * config/tc-arm.c (arm_force_relocation): Likewise.
2364 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2365 * config/tc-frv.c (frv_force_relocation): Likewise.
2366 * config/tc-i386.c (md_apply_fix3): Likewise.
2367 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2368 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2369 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2370 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2371 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2372 * config/tc-mips.c (mips_force_relocation): Likewise.
2373 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2374 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2375 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2376 * config/tc-sh.c (sh_force_relocation): Likewise.
2377 (md_pcrel_from_section): Likewise.
2378 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2379 * config/tc-v850.c (v850_force_relocation): Likewise.
2380 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2381 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2382 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2383 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2385 * config/tc-d10v.c (d10v_force_relocation): Delete.
2386 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2387 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2388 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2389 * config/tc-fr30.c (fr30_force_relocation): Delete.
2390 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2391 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2392 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2393 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2394 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2395 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2396 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2397 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2398 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2399 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2400 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2401 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2402 * config/tc-i386.c (i386_force_relocation): Delete.
2403 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2405 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2406 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2407 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2408 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2410 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2411 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2413 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2415 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2416 sh64_elf_section_data.
2417 * config/tc-sh64.h: Include elf32-sh64.h.
2418 * config/tc-m68hc11.c: Don't include stdio.h.
2419 (md_show_usage): Fix missing continuation.
2420 * Makefile.am: Run "make dep-am".
2421 * Makefile.in: Regenerate.
2423 2003-01-22 Nick Clifton <nickc@redhat.com>
2425 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2427 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2429 * configure.in: Handle *-*-aros*.
2430 * configure: Regenerated from configure.in.
2432 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2434 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2435 gotplt and pltoff relocations.
2436 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2437 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2438 gotplt and pltoff to bfd relocations.
2439 (md_gather_operands): Map new instruction operand/elf suffix
2440 combinations to bfd relocations.
2441 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2442 to the list of unadjustable relocations.
2443 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2444 and pltoff relocations.
2445 (md_apply_fix3): Add the new relocations.
2447 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2449 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2450 with a subsy symbol.
2452 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2454 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2455 of relocs for memory bank addressing.
2457 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2459 * config/tc-m68hc11.c (md_show_usage): Update usage.
2460 (md_parse_option): Recognize -m68hcs12.
2461 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2463 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2465 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2467 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2469 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2471 * Makefile.am: Run "make dep-am".
2472 * Makefile.in: Regenerate.
2473 * po/POTFILES.in: Regenerate.
2475 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2477 * read.c (get_absolute_expr): New, split out from..
2478 (get_absolute_expression): ..here.
2479 * read.h (get_absolute_expr): Declare.
2480 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2481 Trim size to arch bits_per_address, and test for negative input
2482 via get_absolute_expr.
2484 2003-01-07 DJ Delorie <dj@redhat.com>
2486 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2488 (xstormy16_md_apply_fix3): Use adjustment.
2490 2003-01-02 Ben Elliston <bje@redhat.com>
2492 * configure.in: Add iq2000-elf target.
2493 * configure: Regenerate.
2494 * config/tc-iq2000.c: New file.
2495 * config/tc-iq2000.h: Likewise.
2496 * po/gas.pot: Regenerate.
2498 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2500 * config/tc-mips.c: Update copyright years to include 2003.
2501 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2502 Additionally, clean up their code slightly and clean up their
2505 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2507 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2509 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2511 * doc/Makefile.in: Regenerate.
2513 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2515 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2516 of .init and .fini sections for array initializers and finalizers.
2518 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2520 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2521 the "+D" operand, which will be used only by the disassembler.
2523 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2525 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2527 * configure: Regenerate.
2528 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2529 (macro_build): Handle "K" operand.
2530 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2531 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2532 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2533 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2534 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2535 (validate_mips_insn): Implement "+" as a way to extend the
2536 allowed operands, and implement "K", "+A", "+B", and "+C"
2538 (OPTION_MIPS32R2): New define.
2539 (md_longopts): Add entry for OPTION_MIPS32R2.
2540 (OPTION_ELF_BASE): Adjust to accommodate OPTIONS_MIPS32R2.
2541 (md_parse_option): Handle OPTION_MIPS32R2.
2542 (s_mipsset): Reimplement handling of ".set mipsN" options
2543 and add support for ".set mips32r2".
2544 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2545 (md_show_usage): Document "-mips32r2" option.
2546 * doc/as.texinfo: Document "-mips32r2" option.
2547 * doc/c-mips.texi: Likewise.
2549 2002-12-30 Dmitry Diky <diwil@mail.ru>
2551 * configure.in: Add msp430 target.
2552 * configure: Regenerate.
2553 * Makefile.am: Add msp430 target.
2554 * Makefile.in: Regenerate.
2555 * config/tc-msp430.c: New file: msp430 assembler.
2556 * config/tc-msp430.h: New file: target macros for msp430.
2557 * doc/Makefile.am: Add msp430 target.
2558 * doc/Makefile.in: Regenerate.
2559 * doc/as.texinfo: Include msp430 documenation.
2560 * doc/all.texi: Enable msp430 documentation.
2561 * doc/c-msp430.texi: New file: document msp430 specific features
2564 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2566 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2567 (dwarf2_finish): Use it.
2568 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2569 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2571 2002-12-20 DJ Delorie <dj@redhat.com>
2573 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2574 BFD_RELOC_XSTORMY16_12.
2576 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2578 * doc/as.texinfo (Invoking): Typo fix.
2579 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2581 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2583 * doc/c-alpha.texi: Fix typos.
2584 * doc/c-arm.texi: Likewise.
2585 * doc/c-d10v.texi: Likewise.
2586 * doc/c-i370.texi: Likewise.
2587 * doc/c-i960.texi: Likewise.
2588 * doc/c-ia64.texi: Likewise.
2589 * doc/c-mmix.texi: Likewise.
2590 * doc/c-ns32k.texi: Likewise.
2591 * doc/c-pdp11.texi: Likewise.
2592 * doc/c-pj.texi: Likewise.
2593 * doc/c-sh64.texi: Likewise.
2594 * doc/c-sparc.texi: Likewise.
2595 * doc/c-tic54x.texi: Likewise.
2596 * doc/c-v850.texi: Likewise.
2597 * doc/c-vax.texi: Likewise.
2598 * doc/internals.texi: Likewise.
2600 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2602 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2603 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2604 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2605 arrange not to issue warnings about use of AT when AT is not
2608 2002-12-17 Nick Clifton <nickc@redhat.com>
2610 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2611 prevent it being confused with -k.
2613 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2615 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2616 has already been set up, use it.
2618 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2620 * ChangeLog-9295: Fix a typo.
2622 * config/tc-d10v.c: Fix a comment typo.
2623 * config/tc-dlx.c: Likewise.
2624 * config/tc-h8300.h: Likewise.
2625 * config/tc-h8500.h: Likewise.
2626 * config/tc-mips.c: Likewise.
2627 * config/tc-s390.c: Likewise.
2628 * config/tc-sh.h: Likewise.
2629 * config/tc-tic80.h: Likewise.
2630 * config/tc-w65.h: Likewise.
2631 * config/tc-z8k.c: Likewise.
2632 * config/tc-z8k.h: Likewise.
2633 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2635 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2637 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2638 Simplify sign extension. Remove redundant unsigned < 0 test.
2639 * config/tc-i960.c (md_ri_to_chars): Prototype.
2640 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2641 (dump_literals): Init brarsym, and test later instead of isforce.
2643 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2644 (parse): Constify line and lineptr.
2645 (md_begin): Calculate endop here.
2647 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2649 * config/obj-vms.c: Formatting. Include fnctl.h.
2650 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2651 (Object_Record_Offset): Make it a size_t.
2652 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2653 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2654 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2655 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2656 (vms_fixup_data_section <data_size>): Add here instead.
2657 * config/e-criself.c: Fix typo in last change.
2659 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2661 * write.c (write_object_file): Fix signed/unsigned warning.
2662 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2663 * config/e-criself.c (criself_bfd_name): Prototype.
2664 * config/obj-aout.c (s_sect): Remove unused function.
2665 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2666 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2667 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2668 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2669 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2670 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2671 (vms_fixup_text_section <text_siz>): Likewise.
2672 (synthesize_data_segment <data_size>): Likewise.
2673 (vms_fixup_xtors_section <sect_no>): Likewise.
2674 (structure_count): Don't use implicit int type.
2675 * config/tc-a29k.c (insert_sreg): Prototype.
2676 (define_some_regs): Prototype, make static.
2677 (parse_operand): Likewise.
2678 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2679 (md_show_usage <stream>): Likewise.
2680 (md_section_align <segment>): Likewise.
2681 (md_convert_frag <all args>): Likewise.
2682 (md_estimate_size_before_relax <all args>): Likewise.
2683 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2684 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2685 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2686 (md_undefined_symbol <name>): Likewise.
2687 (md_convert_frag <all args>): Likewise.
2688 (write_long <opcode>): Likewise.
2689 (tc_gen_reloc <seg>): Likewise.
2690 (md_estimate_size_before_relax <all args>): Likewise.
2691 (md_apply_fix3 <seg>): Likewise.
2692 (s_d30v_align <ignore>): Likewise.
2693 (build_insn): Correct format string.
2694 (md_apply_fix3): Likewise.
2695 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2696 (md_undefined_symbol <name>): Likewise.
2697 (md_convert_frag <all args>): Likewise.
2698 (md_cgen_lookup_reloc <insn>): Likewise.
2699 (md_begin): Delete unused vars.
2700 (md_assemble): Likewise.
2701 (md_estimate_size_before_relax): Likewise.
2702 (fr30_relax_frag): #if 0 out, seems unused.
2703 (md_atof): Remove declaration of atof_ieee.
2704 (restore_colon): Prototype.
2705 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2706 (frv_find_in_vliw): Likewise.
2707 (frv_debug_tomcat): Likewise.
2708 (frv_adjust_vliw_count): Likewise.
2709 (frv_tomcat_shuffle): Likewise.
2710 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2711 frv_find_in_vliw call.
2712 (md_atof): Remove declaration of atof_ieee.
2713 * config/tc-h8500.c (cons): Delete declaration.
2714 (md_begin <opcode>): Constify.
2715 (displacement_size, immediate_size, absolute_size): Remove.
2716 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2717 (tc_crawl_symbol_chain <headers>): Likewise.
2718 (md_undefined_symbol <name>): Likewise.
2719 (tc_headers_hook <headers>): Likewise.
2720 (md_parse_option <c,arg>): Likewise.
2721 (md_show_usage <stream>): Likewise.
2722 (md_convert_frag <headers, seg>): Likewise.
2723 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2724 (md_atof): Remove declaration of atof_ieee.
2725 (tc_aout_fix_to_chars): Remove unused function.
2726 (parse_reg): Prototype.
2727 (parse_exp): Prototype.
2728 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2729 (parse_reglist): Prototype.
2730 (get_operand): Prototype.
2731 (get_operands): Prototype.
2732 (get_specific): Prototype. Make "this_index" signed.
2733 (check): Prototype, make static.
2735 (build_relaxable_instruction): Prototype, make static.
2736 (build_bytes): Prototype.
2737 (wordify_scb): Prototype.
2738 * config/tc-h8500.h (start_label): Declare.
2739 (tc_coff_sizemachdep): Declare.
2740 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2741 (i370_rmode <unused>): Likewise.
2742 (i370_csect <unused>): Likewise.
2743 (i370_dc <unused>): Likewise.
2744 (i370_ds <unused>): Likewise.
2745 (i370_elf_lcomm <unused>): Likewise.
2746 (i370_ltorg <ignore>): Likewise.
2747 (i370_using <ignore>): Likewise.
2748 (i370_drop <ignore>): Likewise.
2749 (i370_byte <ignore>): Likewise.
2750 (i370_tc <ignore>): Likewise.
2751 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2752 (md_convert_frag <all args>): Likewise.
2753 (md_undefined_symbol <name>): Likewise.
2754 (md_pcrel_from_section <sec>): Likewise.
2755 (tc_gen_reloc <seg>): Likewise.
2756 (i370_section_letter): #if 0 unused functions.
2757 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2758 (symbol_locate): Prototype.
2759 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2760 (md_number_to_disp, md_number_to_field): Remove.
2761 (md_apply_fix3): Correct format string and cast "fup".
2762 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2763 (s_endian <ignore>): Likewise.
2764 (md_undefined_symbol <name>): Likewise.
2765 (tc_crawl_symbol_chain <headers>): Likewise.
2766 (tc_set_bal_of_call): Likewise.
2767 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2768 (i960_handle_align <fragp>): Likewise.
2769 (i960_validate_fix <this_segment_type>): Likewise
2770 (tc_gen_reloc <section>): Likewise.
2771 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2772 (struct memS, struct regop): Forward declare.
2773 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2774 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2775 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2776 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2777 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2778 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2779 (md_number_to_field): Likewise.
2780 (md_number_to_disp): Remove unused function.
2781 (md_atof): Remove declaration of atof_ieee.
2782 (md_apply_fix3): Correct md_number_to_imm call.
2783 * config/tc-ip2k.c (md_assemble): Warning fix.
2784 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2785 (fill_insn <ignore>): Likewise.
2786 (debug_sym <ignore>): Likewise.
2787 (md_undefined_symbol <name>): Likewise.
2788 (m32r_scomm <ignore>): Likewise.
2789 (md_convert_frag <abfd>): Likewise.
2790 (md_cgen_lookup_reloc <insn>): Likewise.
2791 (m32r_record_hi16 <seg>): Likewise.
2792 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2793 (allow_m32rx): Prototype.
2794 (first_writes_to_seconds_operands): Prototype.
2795 (writes_to_pc): Prototype.
2796 (can_make_parallel): Prototype.
2797 (make_parallel): Prototype.
2798 (target_make_parallel): Prototype.
2799 (assemble_two_insns): Prototype.
2800 (m32r_record_hi16): Prototype.
2801 (md_atof): Remove declaration of atof_ieee.
2802 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2803 (m32r_force_relocation): Prototype.
2804 (m32r_elf_section_change_hook): Prototype.
2805 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2806 (md_show_usage): Fix signed/unsigned warning.
2807 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2808 (calcop): Ditto for reg_prefix var.
2809 (hexval): Add cast to fix signed/unsigned warning.
2810 (md_number_to_disp): Delete unused function.
2811 (md_number_to_field): Likewise.
2812 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2813 (match_name): Prototype.
2814 (get_bf2): Prototype.
2815 (get_bf_offset_expression): Prototype.
2816 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2817 (md_undefined_symbol <ignore>): Likewise.
2818 (md_create_short_jump <all args>): Likewise.
2819 (md_create_long_jump <all args>): Likewise.
2820 (md_convert_frag <abfd, sec>): Likewise.
2821 (md_apply_fix3 <segment>): Likewise.
2822 (md_section_align <segment>): Likewise.
2823 (md_pcrel_from_section <sec>): Likewise.
2824 (tc_gen_reloc <section>): Likewise.
2825 (reg_m, reg_n, immediate): Delete unused vars.
2826 (dump_literals): Fix signed/unsigned warning.
2827 (enter_literal): Likewise.
2828 (parse_imm): Likewise. Also fix format string.
2829 (parse_mem): Remove unused var.
2830 (md_assemble <LS>): Abort on unexpected inst.
2831 (md_atof): Remove declaration of atof_ieee.
2832 (md_parse_option): Remove unused vars.
2833 (md_apply_fix3): Fix format strings, cast args.
2834 (tc_gen_reloc): Delete unused var.
2835 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2836 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2837 (md_undefined_symbol <name>): Likewise.
2838 (md_convert_frag <abfd>): Likewise.
2839 (tc_gen_reloc <seg>): Likewise.
2840 (check_operand <insn>): Likewise.
2841 (md_convert_frag): Fix format strings.
2842 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2843 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2844 (md_atof): Remove declaration of atof_ieee.
2845 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2846 (md_apply_fix3): Fix bogus >>='s.
2847 (md_undefined_symbol): Delete unused var.
2848 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2849 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2850 (fake_opcode): Adjust for pj_opc_int_t change.
2851 (md_begin): Likewise.
2852 (md_assemble): Likewise.
2853 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2854 instead of non-existent third arg of parse_exp_save_ilp.
2855 (md_parse_option): Correct "little" and "big" calls.
2856 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2857 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2858 (tc_gen_reloc <section>): Likewise.
2859 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2860 (debug): Rewrite using VA_* macros.
2861 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2862 (md_convert_frag): Likewise.
2863 (md_parse_option): Likewise.
2864 (md_show_usage): Likewise.
2865 (md_undefined_symbol): Likewise.
2866 (tc_gen_reloc): Likewise.
2867 (md_operand): Likewise.
2868 (tc_aout_pre_write_hook): Delete.
2869 (struct tic30_insn): Make "operands" unsigned.
2870 (struct tic30_par_insn): Likewise.
2871 (md_assemble): Likewise for "count", "i" and "numops".
2872 (tic30_parallel_insn): Likewise for vars here.
2873 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2874 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2875 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2876 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2877 (md_undefined_symbol): Likewise.
2878 (md_parse_option): Likewise.
2879 (md_convert_frag): Likewise.
2880 (tc_coff_symbol_emit_hook): Likewise.
2881 (md_atof): Remove declaration of atof_ieee.
2882 (const_overflow): Warning fixes, tidy.
2883 (get_operands): Delete unused vars.
2884 (internal_error_a): Adjust format string to expect a long for arg.
2885 (find_opcode): Warning fixes, simplify.
2886 (build_insn): Cast internal_error_a arg.
2887 (md_begin): Likewise.
2888 (md_apply_fix3): Likewise.
2889 (md_assemble): Delete unused var.
2890 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2891 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2892 (whatreg, parse_reg, parse_exp): Make static, prototype.
2893 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2894 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2895 (get_operand, get_operands, get_specific, newfix): Likewise.
2896 (apply_fix, build_bytes): Likewise.
2897 (md_atof): Remove declaration of atof_ieee.
2898 (tc_aout_fix_to_chars): Delete.
2899 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2901 (md_parse_option): Fix s_segm and s_unseg calls.
2903 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2905 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2907 (RELAX_BRANCH_RELOC_S2): Delete.
2908 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2909 Do not handle BFD_RELOC_16_PCREL.
2910 (macro_build, mips_ip): Likewise.
2911 (md_pcrel_from): Return 4 for undefined symbols regardless of
2913 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2914 Don't dereference howto if no such relocation is available.
2915 Do not apply hack for in-place zero addend in NEWABI.
2916 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2918 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2919 Alan Modra <amodra@bigpond.net.au>
2921 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2922 (TC_LINKRELAX_FIXUP): Add comments.
2924 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2926 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2928 (r_register_name, xr_register_name): Add prototype declarations.
2930 2002-12-08 H.J. Lu <hjl@gnu.org>
2932 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2933 copied from tc-i386.c.
2935 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2937 Fix Bug savannah/1825:
2938 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2939 (md_relax_table): Define specific relax for PC-rel offsets.
2940 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2941 (m68hc11_relax_frag): Handle the new relax code.
2942 (md_convert_frag): Likewise.
2943 (md_estimate_size_before_relax): Likewise.
2945 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2947 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2949 2002-12-05 Richard Henderson <rth@redhat.com>
2951 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2952 (ia64_gen_real_reloc_type): Handle it.
2953 (pseudo_func): Add @ltoffx.
2954 (md_begin): Build .<ltoffx>.
2955 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2957 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2959 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2960 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2961 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2962 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2963 COFF to call arm_force_relocation.
2965 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2967 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2969 (emit_one_bundle): Handle "hint" instruction.
2970 (operand_match): Match IA64_OPND_AR_CSD.
2972 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2974 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2977 2002-12-03 Nick Clifton <nickc@redhat.com>
2979 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2980 .PPC.EMB.apuinfo sections.
2982 2002-12-03 Richard Henderson <rth@redhat.com>
2984 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2986 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2988 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2989 (cons, s_align_bytes): Delete declaration.
2991 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2993 (dot): Delete unused function.
2994 (w65_expression): Remove unused arg.
2995 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2997 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2999 (get_specific): Prototype. Constify "struct opinfo *" arg and return
3001 (check): Remove unused function.
3002 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
3003 on unhandled switch case.
3004 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
3006 (tc_crawl_symbol_chain): Delete unused function.
3007 (tc_headers_hook): Likewise.
3008 (tc_Nout_fix_to_chars): Likewise.
3009 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
3010 (md_parse_option): Likewise.
3011 (md_convert_frag): Likewise.
3012 (tc_coff_symbol_emit_hook): Likewise.
3013 (md_show_usage): Likewise.
3014 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
3015 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
3016 (w65_expression): Declare.
3018 * po/POTFILES.in: Regenerate.
3020 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
3021 and ARM_ADRL_IMMEDIATE.
3023 2002-12-02 Nick Clifton <nickc@redhat.com>
3025 * gasp.c: Delete. It has been deprecated.
3026 * NEWS: Mention that gasp has been removed.
3027 * Makefile.am: Remove references to gasp.
3028 * makefile.vms: Likewise.
3029 * mpw-make.sed: Likewise.
3030 * Makeile.in: Regenerate.
3031 * doc/gasp.texi: Delete.
3032 * doc/Makefile.am: Remove references to gasp.texi.
3033 * doc/Makefile.in: Regenerate.
3034 * macro.c: Delete references to gasp.
3035 Remove use of comment_char function parameter as it is no longer
3037 * macro.h: Update prototypes to remove comment_char parameter.
3039 * read.c (read_a_source_file, s_irp): Remove comment_char
3040 parameter from invocation of functions in macro.c
3042 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
3044 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
3046 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3048 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
3049 (tc_gen_reloc): Mark section param as not used.
3051 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3053 Fix Bug savannah/1825:
3054 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
3055 that are not pc-relative.
3056 (m68hc11_relax_frag): Declare.
3058 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
3059 the offsetable indexed addressing modes (n,r).
3060 (build_insn): Cleanup some locals.
3061 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
3062 relaxation of difference between two symbols of same section.
3063 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
3064 only when this is a PC-relative operand and the offset is not absolute.
3065 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
3066 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
3067 be handled by m68hc11_relax_frag.
3069 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3071 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
3072 (32-bit int, 64-bit double).
3073 (md_longopts): New options -mshort, -mlong, -mshort-double and
3074 -mlong-double to control the ABI.
3075 (md_show_usage): Update.
3076 (md_parse_option): Handle new options.
3077 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
3079 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
3081 * symbols.c (report_op_error): New function, broken out of ...
3082 (resolve_symbol_value): ... here. Use for both monadic and dyadic
3085 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3087 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
3088 for BFD_RELOC_32_PLT_PCREL.
3090 2002-11-30 Alan Modra <amodra@bigpond.net.au>
3092 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
3093 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
3094 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
3095 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
3096 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
3097 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
3098 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
3099 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
3100 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
3101 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
3102 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
3103 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
3104 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
3105 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
3106 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
3107 TRUE/FALSE. Formatting.
3109 2002-11-29 Nick Clifton <nickc@redhat.com>
3111 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
3112 assume a value of zero.
3113 (do_bkpt): Likewise.
3115 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3117 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3118 for TLS relocations.
3120 2002-11-29 Jakub Jelinek <jakub@redhat.com>
3122 * config/tc-ia64.c (md_apply_fix3): Add default case.
3124 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3126 * symbols.c (S_SET_THREAD_LOCAL): New function.
3127 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
3128 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3129 for TLS relocations.
3130 * config/tc-ia64.c (md_apply_fix3): Likewise.
3131 * config/tc-alpha.c (md_apply_fix3): Likewise.
3133 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3135 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
3138 2002-11-26 DJ Delorie <dj@redhat.com.
3140 * dwarf2dbg.c (scale_addr_delta): New.
3141 (size_inc_line_addr): Use it.
3142 (emit_inc_line_addr): Use it.
3144 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
3146 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
3147 (md_assemble): Don't pass on branches to constants as relaxable.
3150 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3152 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
3154 2002-11-21 Randolph Chung <randolph@tausq.org>
3156 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
3157 only if they have default visibility.
3159 2002-11-21 Richard Henderson <rth@redhat.com>
3161 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3164 2002-11-21 Alan Modra <amodra@bigpond.net.au>
3166 * config/tc-mcore.c (mcore_pool_count): New function.
3167 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3169 2002-11-20 Klee Dienes <kdienes@apple.com>
3171 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
3172 coalesce the name fields to use the same pointer.
3174 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
3175 the name fields to use the same pointer.
3176 (get_specific): Check for opcodes with the same name using strcmp
3177 as well as comparing the pointer.
3179 2002-11-20 Alan Modra <amodra@bigpond.net.au>
3181 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3184 2002-11-19 Richard Henderson <rth@redhat.com>
3186 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3187 visibility portion of st_other.
3189 2002-11-19 Klee Dienes <kdienes@apple.com>
3191 * config/tc-h8300.c (struct h8_instruction): New type, used to
3192 wrap h8_opcodes with length, noperands, idx, and size fields
3193 (computed at run-time).
3194 (h8_instructions): New variable.
3195 (md_begin): Allocate the storage for h8_instructions. Fill
3196 h8_instructions with pointers to the appropriate opcode and the
3197 correct value for the additional fields.
3198 (clever_message): Update to use h8_instructions instead of
3200 (build_bytes): Ditto.
3201 (get_specific): Ditto.
3202 (md_assemble): Ditto.
3204 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3206 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3207 adjustments to symbols in merge sections.
3209 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
3211 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3213 2002-11-18 Kevin Buettner <kevinb@redhat.com>
3215 * dwarf2dbg.h (dwarf2_format): New enum.
3216 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3217 (out_debug_line, out_debug_info): Add code for handling 64-bit
3219 * config/tc-mips.h (mips_dwarf2_format): Declare.
3220 * config/tc-mips.c (mips_dwarf2_format): New function.
3221 * doc/internals.texi (DWARF2_FORMAT): Document.
3223 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
3225 * config/tc-mips.c (s_change_section): Make sure input buffer
3226 is not accessed past the end. Don't hand
3227 obj_elf_change_section a pointer into the input buffer.
3229 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
3231 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3234 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3236 * config/tc-tic4x.c: Fixed proper commandline
3237 parameters. Added support for new opcode-list format. General
3238 error message fixups.
3239 (c4x_inst_add): Reject insn not for our CPU
3240 (md_begin): Added matrix for setting the proper opcode-level &
3241 device-flags according to cpu type and revision. Rewrite the
3243 (c4x_operand_parse): Fix opcode bug
3244 (c4x_operands_match): New function argument. Added dry-run
3245 mechanism, that is optional error generation. Added constraint 'i'
3247 (c4x_insn_check): Added new function for post-verification of the
3249 (md_assemble): Check all opcodes before croaking because of an
3250 argument mismatch. Need this to be able to fully support
3251 ortogonally arguments.
3252 (md_parse_options): Revised commandprompt swicthes and added new
3254 (md_show_usage): Complete rewrite of printout.
3256 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3258 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3259 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3260 warning when using constant direct bigger than 2^16. Add the new
3263 2002-11-11 Christopher Faylor <cgf@redhat.com>
3265 * configure.in: Use .gdbinit under Cygwin.
3266 * configure: Regenerate.
3268 2002-11-11 Christopher Faylor <cgf@redhat.com>
3270 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3273 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3275 * config/tc-tic4x.c: Declare as many functions as possible as
3276 static. Maintenance on the general indenting. Removed unnecessary
3277 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3278 function. Add support for new DSP, TMS320VC33. Fix bug for
3279 converting flonum constants.
3280 (c4x_do_align): Add proper align handling. Setup align to insert
3282 (c4x_gen_to_words): Support for extended TI type floats.
3283 (md_atof): Proper dumping of multiple-word littlenums.
3284 (c4x_atof): Added support for extended TI type floats.
3285 (c4x_stringer): Added new function to handle compact strings.
3286 (c4x_emit_char): Added new function argument to handle custom
3287 length inserts, like single-byte strings.
3288 * config/tc-tic4x.h: Add proper align handling with NOP's.
3289 * Makefile.am: Added tic4x dependecy
3290 * Makefile.in: Regenerate
3292 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3294 * macro.c (get_any_string): Correct logic for not going beyond end
3297 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3299 * config/tc-mmix.c (get_putget_operands): Mark both possible
3300 operands as invalid at beginning.
3302 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3303 Initialize target of fixup to zero.
3305 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3307 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3308 NEWABI, but we should still emit HI16_S for non-PIC n32.
3310 2002-11-06 Richard Henderson <rth@redhat.com>
3312 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3313 (alpha_fix_adjustable): ... here.
3314 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3316 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3318 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3321 2002-11-05 H.J. Lu <hjl@gnu.org>
3323 * config/tc-mips.c (support_64bit_objects): Check *l before it
3326 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3328 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3329 SEC_LOAD flags for sections marked as 's'.
3331 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3333 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3334 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3335 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3338 * dep-in.sed: Fix typo.
3340 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3342 * configure.in: Update ARM CPU patterns.
3343 * configure: Regenerated.
3345 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3347 * itbl-lex.l: Use #include <> for generated headers.
3348 * itbl-ops.c: Likewise.
3350 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3352 * doc/gasp.texi: Fix typo in deprecation note.
3354 2002-10-23 Nick Clifton <nickc@redhat.com>
3356 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3357 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3359 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3361 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3362 (tc_frob_file_before_adjust): Don't define.
3363 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3365 (mmix_frob_file_before_adjust): Remove ineffective function.
3367 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3369 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3370 (cris_relax_frag): New function.
3371 (md_estimate_size_before_relax) <case ENCODE_RELAX
3372 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3373 expressions that will become absolute expressions to relaxation.
3374 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3375 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3376 value, not distance to symbol.
3377 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3378 Ditto. Correct placement of fixup.
3379 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3381 * config/tc-cris.h (cris_relax_frag): Declare.
3382 (md_relax_frag): Define.
3384 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3386 * config/obj-elf.c (special_sections): Use correct types for init
3388 (obj_elf_change_section): Don't mess with init array section type.
3390 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3392 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3393 for relocs against symbols in a merged section.
3395 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3397 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3398 table as register names.
3400 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3402 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3405 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3407 * expr.c (operand): Add support for n.nn flonums.
3409 2002-10-17 Johannes Stezenbach <js@convergence.de>
3411 * itbl-parse.y (entry): Provide empty action.
3413 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3415 * configure.in (BFDVER_H): Set and subst.
3416 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3417 * Makefile.am: Run "make dep-am".
3419 * configure: Regenerate.
3420 * Makefile.in: Regenerate.
3421 * doc/Makefile.in: Regenerate.
3423 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3425 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3426 (MD_APPLY_SYM_VALUE): Define for PE too.
3428 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3430 * Makefile.am: Run "make dep-am".
3431 (CPU_OBJ_VALID): sh64 coff is invalid.
3432 * as.c: #include "bfdver.h".
3433 * Makefile.in: Regenerate.
3434 * config.in: Regenerate.
3436 2002-10-14 Momchil Velikov <velco@fadata.bg>
3438 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3440 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3442 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3443 * configure: Regenerate.
3445 2002-10-13 Eric Christopher <echristo@redhat.com>
3446 Alexandre Oliva <aoliva@redhat.com>
3448 * config/tc-mips.c (s_gpdword): New function.
3449 (mips_pseudo_table): Add .gpdword.
3450 (mips_need_elf_addend_fixup): never for NEWABI.
3451 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3453 (s_cpadd): Generate .cpadd on NEWABI.
3455 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3457 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3459 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3461 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3462 (md_relax_frag): Adjust macro.
3463 * config/tc-mips.c (mips_relax_branch): New variable.
3464 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3465 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3466 (RELAX_MIPS16_P): Adjust.
3467 (append_insn): Emit branch to non-constant in a frag_var if
3468 branch-relaxation is desirable and possible.
3469 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3470 (OPTION_ELF_BASE): Adjust.
3471 (md_parse_option): Handle new options.
3472 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3474 (relaxed_branch_length): New function.
3475 (md_estimate_size_before_relax): Handle branch frags.
3476 (mips_relax_frag): Likewise.
3477 (md_convert_frag): Handle branch frags. Warn if branch is
3480 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3482 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3484 (md_apply_fix3): Add TLS relocs.
3485 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3488 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3489 Alan Modra <amodra@bigpond.net.au>
3491 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3492 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3494 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3496 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3499 2002-10-09 Richard Shann <richard.shann@superh.com>
3500 Stephen Clarke <stephen.clarke@superh.com>
3502 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3505 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3507 * contig/tc-sh.c (sh_local_pcrel): New.
3508 (sh_force_relocation): Use sh_local_pcrel.
3509 (md_pcrel_from_section): Check the relocation type whether it
3510 should be resolved locally. Use S_FORCE_RELOC.
3512 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3514 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3515 (TC_FORCE_RELOCATION): Tidy arg.
3517 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3518 Ken Raeburn <raeburn@cygnus.com>
3519 Aldy Hernandez <aldyh@redhat.com>
3520 DJ Delorie <dj@redhat.com>
3521 Michael Meissner <meissner@redhat.com>
3522 Eric Christopher <echristo@redhat.com>
3523 Richard Sandiford <rsandifo@redhat.com>
3525 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3526 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3527 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3528 (hilo_interlocks): True for CPU_VR5500.
3529 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3530 (mips_fix_vr4122_bugs): New.
3531 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3532 (mips_emit_delays): Likewise.
3533 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3534 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3535 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3536 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3537 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3538 (OPTION_ELF_BASE): Bump.
3539 (md_parse_option): Handle the new options.
3540 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3543 2002-09-29 H.J. Lu <hjl@gnu.org>
3545 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3546 twice if howto->pcrel_offset is true.
3548 2002-09-28 Matt Thomas <matt@3am-software.com>
3549 Jason Thorpe <thorpej@wasabisystems.com>
3551 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3552 convert undefined references to GOT32/PLT32 if PIC code is
3553 requested. Fix comment.
3555 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3557 * config/tc-sh.c (sh_force_relocation): Return 0 for
3558 some PC relative relocations when not relaxing.
3560 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3562 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3563 Define them if not BFD_ASSEMBLER.
3564 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3566 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3567 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3568 (tc_gen_reloc): Handle x86-64 TLS relocs.
3570 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3572 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3573 fixups to current or absolute section.
3575 2002-09-26 Jim Wilson <wilson@redhat.com>
3577 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3580 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3582 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3583 capable configuration.
3584 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3586 (mips_ip): Likewise.
3588 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3590 * config/tc-mips.c (append_insn): Fix jump overflow check.
3592 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3594 * config/tc-i386.c (process_operands): Warn about "lea" segment
3597 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3599 * write.c: Delete set_segment_vma and prototype. Update all callers.
3601 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3603 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3604 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3605 Rename "fseg" to "sym_seg".
3606 * Makefile.am: Run "make dep-am".
3607 * Makefile.in: Regenerate.
3608 * doc/Makefile.in: Regenerate.
3610 2002-09-20 Nick Clifton <nickc@redhat.com>
3612 * symbols.c (colon): Do not allow symbols to be created in the
3613 absolute section if WORKING_DOT_WORD is not defined and
3614 new_broken_words would require a new frag to be created.
3616 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3618 * expr.c (expr): Simplify foo-foo here.
3619 (clean_up_expression): Remove O_subtract code.
3621 * write.h (struct fix): Add fx_dot_value.
3622 (dot_value): Declare.
3623 * write.c (dot_value): New var.
3624 (fix_new_internal): Save dot_value as fx_dot_value.
3625 (fixup_segment): Adjust fx_offset using fx_dot_value.
3626 * expr.c (expr): Update dot_value.
3628 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3630 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3631 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3632 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3634 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3635 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3636 BFD_RELOC_386_TLS_GOTIE.
3638 2002-09-19 Richard Henderson <rth@redhat.com>
3640 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3642 (alpha_force_relocation): Don't special-case branch type relocs.
3644 2002-09-19 Nick Clifton <nickc@redhat.com>
3646 * config/tc-m68k.c (select_control_regs): Handle situation where
3647 architecture has not yet been selected.
3649 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3651 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3652 (IS_SEXT_16BIT_NUM): New macro.
3653 (macro_build_ldst_constoffset): New function, to build a set of
3654 instructions to do a load or store from a constant offset relative
3655 to a given register.
3656 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3657 .cprestore pseudo-op.
3659 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3661 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3663 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3665 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3667 2002-09-17 Stan Cox <scox@redhat.com>
3669 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3670 (macro): Likewise for la. Likewise for ld.
3671 (mips_after_parse_args): Make -xgot optional, not the default.
3672 (md_apply_fix3): Allow composite relocation to set up gp.
3673 (tc_gen_reloc): Allow relaxing for newabi.
3674 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3675 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3677 2002-09-17 Nick Clifton <nickc@redhat.com>
3679 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3680 BFD_RELOC_ARM_IMMEDIATE has been done.
3681 (tc_gen_reloc): Do not issue reloc number of unimplemented
3682 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3683 their name is already in the error message - plus remove them
3684 from the default case.
3686 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3687 behavior of instructions.
3689 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3691 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3692 Convert functions to K&R format.
3694 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3696 * config/tc-mips.c (pdr_seg): Define only for ELF.
3697 (s_change_section): Remove unused variable. Don't use for nonELF.
3699 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3701 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3703 * config/obj-elf.h (obj_elf_change_section): Likewise.
3705 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3707 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3708 (out_debug_info): Likewise.
3710 2002-09-16 Bruno Haible <bruno@clisp.org>
3712 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3713 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3714 * config/tc-i386.c (i386_target_format): Likewise.
3715 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3716 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3718 2002-09-13 Nick Clifton <nickc@redhat.com>
3720 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3721 when deciding if any operands have been skipped.
3723 2002-09-11 Nick Clifton <nickc@redhat.com>
3725 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3727 * po/tr.po: Updated Turkish translation.
3729 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3731 * config/tc-i386.c (md_apply_fix3): Allow addend for
3732 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3733 BFD_RELOC_386_TLS_LE_32.
3735 2002-09-05 Jeff Law <law@redhat.com>
3737 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3738 marker relocations such as ENTRY/EXIT.
3739 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3740 to both OBJ_ELF and OBJ_SOM.
3742 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3744 * doc/internals.texi (md_apply_fix3): Expand.
3745 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3746 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3747 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3748 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3749 EXTERN_FORCE_RELOC): Document.
3750 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3751 * as.h: Don't include struc-symbol.h for arc.
3753 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3754 subtract absolute symbol.
3755 * obj.h (struct format_ops): Add frob_file_before_fix.
3756 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3757 * symbols.c (S_FORCE_RELOC): New function.
3758 * symbols.h (S_FORCE_RELOC): Declare.
3759 * write.c (TC_FORCE_RELOCATION): Change default.
3760 (TC_FORCE_RELOCATION_ABS): Define.
3761 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3762 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3763 (TC_FORCE_RELOCATION_SECTION): Don't define.
3764 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3765 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3766 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3767 (TC_VALIDATE_FIX_SUB): Define.
3768 (TC_FIX_ADJUSTABLE): Don't define.
3769 (MD_APPLY_SYM_VALUE): Define this instead.
3770 (abs_section_sym): New variable.
3771 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3772 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3773 Don't put the absolute section sym on fixups here.
3774 (fix_segment): New function.
3775 (write_relocs): Don't call fixup_segment from here.
3776 (write_object_file): Instead call tc_frob_file_before_fix,
3777 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3778 Don't output the absolute section symbol.
3779 (fixup_segment): Rewrite.
3780 * write.h (abs_section_sym): Declare.
3781 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3783 (aout_format_ops): Adjust to suit.
3784 * config/obj-aout.h (obj_frob_file): Don't define.
3785 (obj_frob_file_before_fix): Define.
3786 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3787 (S_FORCE_RELOC): Define.
3788 * config/obj-bout.h (S_FORCE_RELOC): Define.
3789 * config/obj-coff.c (coff_format_ops): Init new field.
3790 * config/obj-coff.h: Formatting fixes.
3791 (obj_sec_sym_ok_for_reloc): Define.
3792 (S_FORCE_RELOC): Define.
3793 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3794 (ecoff_frob_file): .. from here.
3795 (ecoff_format_ops): Add new function.
3796 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3797 (obj_frob_file_before_fix): Define.
3798 * config/obj-elf.c (elf_format_ops): Init new field.
3799 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3800 * config/obj-ieee.h: Formatting fixes.
3801 (S_FORCE_RELOC): Define.
3802 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3803 * config/obj-vms.h (S_FORCE_RELOC): Define.
3804 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3805 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3806 for BFD_RELOC_32 and BFD_RELOC_64.
3807 (alpha_fix_adjustable): Remove extern and weak tests.
3808 (alpha_before_fix): Rename from alpha_adjust_symtab.
3809 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3810 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3811 (TC_VALIDATE_FIX): Tweak param name.
3812 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3813 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3814 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3815 (MD_APPLY_SYM_VALUE): Define.
3816 (tc_adjust_symtab): Don't define.
3817 (alpha_adjust_symtab): Don't declare.
3818 (tc_frob_file_before_fix): Define.
3819 (alpha_before_fix): Declare.
3820 (TC_INIT_FIX_DATA): Tweak param names.
3821 * config/tc-arc.c: Include "struc-symbol.h".
3822 (md_pcrel_from): Remove undefined sym fudge.
3823 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3824 Don't set fx_addnumber.
3825 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3826 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3827 (EXTERN_FORCE_RELOC): Define.
3828 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3829 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3830 (arm_validate_fix): Return void.
3831 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3832 Add plt and got reloc tests.
3833 (arm_force_relocation): Call S_FORCE_RELOC.
3834 * config/tc-arm.h (struct fix): Forward declare.
3835 (TC_VALIDATE_FIX): No longer set add_symbolP.
3836 (arm_validate_fix): Adjust declaration.
3837 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3838 (TC_FORCE_RELOCATION): Tweak param name.
3839 (TC_INIT_FIX_DATA): Likewise.
3840 (obj_fix_adjustable): Don't define.
3841 (tc_fix_adjustable): Call arm_fix_adjustable.
3842 (TC_FIX_ADJUSTABLE): Don't define.
3843 (MD_APPLY_SYM_VALUE): Define.
3844 (EXTERN_FORCE_RELOC): Define.
3845 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3846 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3847 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3848 Remove *valP fudges and code to subtract abs sym. Don't set
3850 * config/tc-avr.h: Formatting.
3851 (EXTERN_FORCE_RELOC): Define.
3852 (MD_APPLY_SYM_VALUE): Define.
3853 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3854 (md_apply_fix3): Remove code to subtract abs sym.
3855 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3856 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3857 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3858 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3859 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3860 (tc_fix_adjustable): Remove extern, weak tests.
3861 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3862 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3863 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3864 and code to subtract abs sym.
3865 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3866 (d10v_force_relocation): Call S_FORCE_RELOC.
3867 * config/tc-d10v.h: Don't include write.h.
3868 (struct fix): Instead, forward declare.
3869 (MD_PCREL_FROM_SECTION): Tweak param names.
3870 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3871 (d10v_fix_adjustable): Likewise.
3872 (obj_fix_adjustable): Don't define.
3873 (tc_fix_adjustable): Define.
3874 (TC_FORCE_RELOCATION): Tweak param name.
3875 (MD_APPLY_SYM_VALUE): Define.
3876 (EXTERN_FORCE_RELOC): Define.
3877 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3878 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3879 and code to subtract abs sym.
3880 * config/tc-d30v.h: Don't include write.h.
3881 (struct fix): Instead, forward declare.
3882 (MD_PCREL_FROM_SECTION): Tweak param names.
3883 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3884 (MD_APPLY_SYM_VALUE): Define.
3885 (EXTERN_FORCE_RELOC): Define.
3886 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3887 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3888 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3889 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3890 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3891 Don't use fx_addnumber.
3892 * config/tc-dlx.h: Don't include write.h.
3893 (md_convert_frag): We're not alpha twice over.
3894 (EXTERN_FORCE_RELOC): Define.
3895 (obj_fix_adjustable): Don't define.
3896 (tc_fix_adjustable): Define.
3897 (TC_FIX_ADJUSTABLE): Don't define.
3898 (MD_APPLY_SYM_VALUE): Define.
3899 (LOCAL_LABELS_DOLLAR): Undef always.
3900 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3901 (fr30_fix_adjustable): Remove extern, weak tests.
3902 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3903 (obj_fix_adjustable): Don't define.
3904 (tc_fix_adjustable): Define.
3905 (struct fix): Forward declare.
3906 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3907 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3908 (frv_fix_adjustable): Don't do extern, weak tests.
3909 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3910 (TC_FIX_ADJUSTABLE): Don't define.
3911 (obj_fix_adjustable): Don't define.
3912 (tc_fix_adjustable): Define.
3913 (struct fix): Forward declare.
3914 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3915 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3916 * config/tc-h8300.h (struct fix): Forward declare.
3917 (EXTERN_FORCE_RELOC): Define.
3918 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3919 (hppa_fix_adjustable): Don't test extern or weak. Don't
3920 symbol_mark_used_in_reloc.
3921 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3923 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3924 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3925 (TC_FORCE_RELOCATION_SECTION): Don't define.
3926 (MD_APPLY_SYM_VALUE): Define.
3927 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3928 to subtract abs sym.
3929 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3930 (MD_APPLY_SYM_VALUE): Define.
3931 (MD_PCREL_FROM_SECTION): Tweak param name.
3932 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3933 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3934 (i386_force_relocation): New function.
3935 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3936 (TC_VALIDATE_FIX): Likewise.
3937 (TC_FIX_ADJUSTABLE): Don't define.
3938 (MD_APPLY_SYM_VALUE): Define.
3939 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3940 (i386_force_relocation): Declare.
3941 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3942 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3943 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3944 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3945 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3946 (EXTERN_FORCE_RELOC): Define.
3947 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3948 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3949 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3950 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3951 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3952 Remove #if 0 code. Invert return boolean.
3953 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3954 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3955 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3956 (tc_coff_sizemachdep): Prototype.
3957 (i960_handle_align): Likewise.
3958 (i960_validate_fix): Adjust declaration.
3959 (reloc_callj): Likewise.
3960 (EXTERN_FORCE_RELOC): Define.
3961 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3962 (TC_FORCE_RELOCATION_ABS): Define.
3963 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3964 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3965 (TC_FIX_ADJUSTABLE): Don't define.
3966 (MD_APPLY_SYM_VALUE): Define.
3967 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3968 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3969 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3970 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3971 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3972 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3973 (MD_APPLY_SYM_VALUE): Define.
3974 (EXTERN_FORCE_RELOC): Define.
3975 (TC_FORCE_RELOCATION): Tweak param name.
3976 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3977 (m32r_fix_adjustable): Don't test extern, weak.
3978 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3979 (MD_APPLY_SYM_VALUE): Define.
3980 (obj_fix_adjustable): Don't define.
3981 (tc_fix_adjustable): Define.
3982 (tc_frob_file): Don't define.
3983 (tc_frob_file_before_fix): Define.
3984 (EXTERN_FORCE_RELOC): Define.
3985 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3986 BFD_RELOC_VTABLE_ENTRY address.
3987 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3988 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3989 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3990 Remove duplicated fx_done code.
3991 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3992 (EXTERN_FORCE_RELOC): Define.
3993 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3995 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3996 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3997 (TC_FIX_ADJUSTABLE): Don't define.
3998 (EXTERN_FORCE_RELOC): Define.
3999 (MD_APPLY_SYM_VALUE): Define.
4000 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4001 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
4002 Remove fx_addsy tests.
4003 (mcore_force_relocation): Call S_FORCE_RELOC.
4004 (mcore_fix_adjustable): Don't test fx_addsy.
4005 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
4006 (EXTERN_FORCE_RELOC): Define.
4007 (obj_fix_adjustable): Don't define.
4008 (tc_fix_adjustable): Define.
4009 (MD_APPLY_SYM_VALUE): Define.
4010 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
4011 (mips_pic): No longer static.
4012 (mips_force_relocation): Call S_FORCE_RELOC.
4013 (mips_fix_adjustable): Remove extern, weak tests.
4014 * config/tc-mips.h (enum mips_pic_level): Declare.
4015 (mips_pic): Declare.
4016 (tc_frob_file): Don't define.
4017 (tc_frob_file_before_fix): Define this instead.
4018 (EXTERN_FORCE_RELOC): Define.
4019 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
4020 with reg_section tests. Set fx_done instead of calling
4021 symbol_clear_used_in_reloc on bad relocs.
4022 (tc_gen_reloc): Zero fx_addsy on bad relocs.
4023 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
4024 (mmix_adjust_symtab): Simplify list handling. Abort on any
4026 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
4027 BFD_RELOC_MMIX_LOCAL.
4028 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
4029 (EXTERN_FORCE_RELOC): Define.
4030 (MD_PCREL_FROM_SECTION): Tweak param name.
4031 (tc_frob_file): Don't define.
4032 (tc_frob_file_before_fix): Define this instead.
4033 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
4034 Remove SEC_CODE checks.
4035 (mn10300_fix_adjustable): Remove extern and weak tests.
4036 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
4037 (TC_FORCE_RELOCATION): Tweak param name.
4038 (obj_fix_adjustable): Don't define.
4039 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
4040 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
4041 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
4042 (openrisc_fix_adjustable): Don't test fx_addsy.
4043 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
4044 (obj_fix_adjustable): Don't define.
4045 (tc_fix_adjustable): Define this instead.
4046 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4047 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
4048 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4049 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4050 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
4051 (MD_APPLY_SYM_VALUE): Define.
4052 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
4053 Don't subtract symbol value.
4054 * config/tc-pj.h (md_pcrel_from): Tweak param name.
4055 (EXTERN_FORCE_RELOC): Define.
4056 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4057 (MD_APPLY_SYM_VALUE): Define.
4058 (obj_fix_adjustable): Don't define.
4059 (tc_fix_adjustable): Define this instead.
4060 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
4062 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
4063 (ppc_force_relocation <elf version>): New.
4064 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
4065 (md_apply_fix3): Don't subtract symbol values for ELF. Update
4066 comments. Don't subtract fx_subsy as that is already done.
4067 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
4068 (MD_PCREL_FROM_SECTION): Likewise.
4069 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
4070 ppc_force_relocation.
4071 (TC_FORCE_RELOCATION_SECTION): Delete.
4072 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4073 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4074 (MD_APPLY_SYM_VALUE): Define.
4075 * config/tc-s390.c: #include "dwarf2dbg.h".
4076 (s390_insn): Remove excess parens.
4077 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4078 (tc_s390_force_relocation): Call S_FORCE_RELOC.
4079 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
4080 non-NULL. Don't subtract off fx_addsy value.
4081 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4082 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4083 (TC_FIX_ADJUSTABLE): Don't define.
4084 (MD_APPLY_SYM_VALUE): Define.
4085 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
4086 (SWITCH_TABLE): Likewise.
4087 (sh_force_relocation): Call S_FORCE_RELOC.
4088 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
4089 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
4090 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
4091 fx_addnumber is zero on entry. Save val in fx_addnumber.
4092 (tc_gen_reloc): Don't subtract fx_subsy.
4093 * config/tc-sh.h (struct fix): Move.
4094 (obj_fix_adjustable): Don't define.
4095 (tc_fix_adjustable): Define this instead.
4096 (TC_FIX_ADJUSTABLE): Don't define.
4097 (MD_APPLY_SYM_VALUE): Define.
4098 (SWITCH_TABLE_CONS): Define.
4099 (SWITCH_TABLE): Define.
4100 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4101 (TC_VALIDATE_FIX_SUB): Define.
4102 (MD_PCREL_FROM_SECTION): Tweak param name.
4103 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4104 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4105 (TC_FORCE_RELOCATION_SUB_ABS): Define.
4106 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4107 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4108 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4109 (TC_VALIDATE_FIX_SUB): Define.
4110 (MD_PCREL_FROM_SECTION): Tweak param name.
4111 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
4112 (tc_gen_reloc): Use S_FORCE_RELOC.
4113 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
4114 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
4115 (TC_FORCE_RELOCATION_ABS): Define this instead.
4116 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4117 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4118 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
4119 (MD_APPLY_SYM_VALUE): Define.
4120 (TC_FIX_DATA_PRINT): Tweak param name.
4121 * config/tc-tic30.c (USE_STDOUT): Don't define.
4122 (md_parse_option): Remove stupid debug code.
4123 (tc_gen_reloc): Don't use fx_addnumber.
4124 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
4125 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
4126 * config/tc-v850.h (obj_fix_adjustable): Don't define.
4127 (tc_fix_adjustable): Define this instead.
4128 (TC_FIX_ADJUSTABLE): Don't define.
4129 (MD_APPLY_SYM_VALUE): Define this instead.
4130 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4131 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4132 (TC_FIX_ADJUSTABLE): Don't define.
4133 (MD_APPLY_SYM_VALUE): Define this instead.
4134 (tc_fix_adjustable): Remove extern and weak tests.
4135 * config/tc-w65.h (struct fix): Forward declare.
4136 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
4138 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
4139 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
4140 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
4142 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
4143 (MD_APPLY_SYM_VALUE): Define.
4144 (obj_fix_adjustable): Don't define.
4145 (tc_fix_adjustable): Define this instead.
4146 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4148 2002-09-04 Alan Modra <amodra@bigpond.net.au>
4150 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4151 (ppc_fix_adjustable <coff version>): Cleanup.
4153 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
4154 (md_parse_option): No -a64 without BFD64.
4155 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
4156 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4158 2002-09-04 Nick Clifton <nickc@redhat.com>
4160 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4161 instructions into the hash table if the target cpu is the BookE32.
4163 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
4165 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4168 2000-08-28 Catherine Moore <clm@redhat.com>
4170 * tc-v850.c (v850_relax): Declare.
4171 (v850_longcode): New routine.
4172 (v850_handle_align): New routine.
4173 (md_pseudo_table): Add longcall and longjump.
4174 (md_parse_option): Check for relax option.
4175 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4176 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4177 (md_apply_fix3): Likewise.
4178 (v850_force_relocation): Likewise.
4179 (v850_comm): Change the current section.
4180 (md_assemble): Ensure that the correct value is put in the
4182 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4183 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4184 Remove redundant v850ea support.
4185 * tc-v850.h (HANDLE_ALIGN): Define.
4186 (v850_handle_align): Declare.
4187 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4189 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
4191 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4192 * configure: Regenerate.
4193 * NEWS: Mention new port.
4195 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4197 * config/obj-coff.c: Add sdef definition.
4198 * config/obj-coff.h: Add tic4x include file and set
4200 * config/tc-tic4x.c: New file.
4201 * config/tc-tic4x.h: New file.
4203 2002-08-28 Alan Modra <amodra@bigpond.net.au>
4205 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4206 (TC_ADJUST_RELOC_COUNT): Tweak param name.
4207 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4208 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4209 (RELOC_ENUM): Define.
4210 (fix_new_internal): Use RELOC_ENUM.
4211 (fix_new, fix_new_exp): Likewise.
4212 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
4213 Replace gotos with continue.
4214 (write_relocs): Formatting. Avoid symbol loops in
4215 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
4216 errors, and error number in other cases.
4217 (fixup_segment): Remove param names from prototype. Rename
4218 "this_segment_type" to "this_segment". Update linkrelax comment.
4219 Remove "size, "place" and "where" local vars. Formatting. Update
4220 "no symbol" comment. Remove #if 0 and #if 1.
4222 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
4224 2002-08-27 Alan Modra <amodra@bigpond.net.au>
4226 * dwarf2dbg.c: Always include dwarf2dbg.h.
4227 (dwarf2_directive_file): Adjust dummy version args.
4228 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4229 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4230 when symbol values differ.
4231 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4232 (pseudo_set <O_subtract>): Remove unnecessary segment test.
4233 * config/obj-bout.c (obj_pseudo_table): Warning fix.
4235 2002-08-26 Alan Modra <amodra@bigpond.net.au>
4237 * config/tc-w65.c (md_section_align): Fix typo.
4238 (md_parse_option): Return 0, not 1.
4240 2002-08-22 Nick Clifton <nickc@redhat.com>
4242 * doc/as.texinfo (Section): Note that if '@' is a comment
4243 character then another symbol is used to prefix the section's
4246 2002-08-22 Christian Groessler <chris@groessler.org>
4248 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4251 2002-08-12 Graeme Peterson <gp@qnx.com>
4253 * configure.in: Add support for sh-**-nto* target.
4254 * configure: Regenerate.
4256 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4258 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4260 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4262 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4264 (ppc_apuinfo_section_add): Define only if format is ELF.
4265 (md_assemble): Emit APUinfo section only if format is ELF.
4268 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4270 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4271 * config/tc-frv.c: Likewise.
4272 * config/tc-hppa.c: Likewise.
4273 * config/tc-ia64.c: Likewise.
4274 * config/tc-ip2k.c: Likewise.
4275 * config/tc-m68hc11.c: Likewise.
4276 * config/tc-m68k.c: Likewise.
4277 * config/tc-mmix.c: Likewise.
4278 * config/tc-mn10300.c: Likewise.
4279 * config/tc-sh.c: Likewise.
4280 * config/tc-sparc.c: Likewise.
4281 * config/tc-v850.c: Likewise.
4283 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4285 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4288 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4290 From matthew green <mrg@redhat.com>
4292 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4293 PPC_OPCODE_PPC is, except for BookE architectures.
4294 (md_parse_option): Add support for -mspe.
4295 (md_show_usage): Add -mspe.
4296 (md_parse_option): Add support for -me500 and
4297 -me500x2 to generate code for Motorola e500 core complex.
4298 (md_show_usage): Add -me500 and -me500x2.
4300 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4301 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4302 PPC_APUINFO_BRLOCK): New macros.
4304 (ppc_cleanup): New function.
4305 (ppc_apuinfo_section_add): New function.
4307 (md_assemble): Collect info and write the APUinfo section.
4309 * config/tc-ppc.h (md_cleanup): Define.
4310 (ppc_cleanup): Export.
4311 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4313 2002-08-17 Stan Cox <scox@redhat.com>
4315 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4316 config/tc-mips.c (s_change_section): New function to support
4317 IRIX .section pseudo-op.
4319 2002-08-16 Nick Clifton <nickc@redhat.com>
4321 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4323 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4325 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4326 the fix-up against on the right frag.
4327 (s_cpsetup): Likewise. Parse third argument as expression, to
4328 handle global symbols and forward/backward labels correctly.
4330 2002-08-14 Nick Clifton <nickc@redhat.com>
4332 * read.c (stringer): Catch attempts to create strings in the abs
4335 * config/tc-alpha.c: Fix compiling for COFF targets.
4336 Some minor formatting tidyups.
4338 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4340 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4341 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4342 according to the reloc.
4343 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4344 (TC_FORCE_RELOCATION): Define.
4345 (tc_m68hc11_force_relocation): Declare.
4347 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4348 (s_m68hc11_relax): New function for relax group.
4349 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4350 beginning of jump instruction.
4351 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4352 address computation.
4353 (tc-gen_reloc): Update.
4354 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4356 (tc_m68hc11_force_relocation): New function, handle new relocs.
4357 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4358 reloc for the linker relax pass.
4359 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4362 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4364 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4365 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4366 (s_m68hc11_mode): New function for .mode pseudo op.
4367 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4369 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4370 (m68hc11_elf_final_processing): Declare.
4372 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4374 * config/tc-m68hc11.c (md_begin): Take into account additional
4375 page operand for call instruction.
4376 (print_opcode_format): Likewise.
4377 (check_range): Likewise for page range checking.
4378 (get_operand): Don't skip a possible comma in operands.
4379 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4380 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4381 (fixup24): New to handle call reloc.
4382 (build_insn): Handle missing page operand for call instruction.
4384 (md_apply_fix3): Take into account new relocs.
4385 (get_operand): Fix the mode for indexed indirect addressing.
4386 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4388 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4390 * config/tc-mips.c (mips_ip): Don't work out the value of
4391 constant %hi()s here.
4393 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4395 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4396 for ELF, and don't bother checking ELF relocs when non-ELF.
4397 (i386_immediate): Allow absolute_section expressions for aout.
4398 (i386_displacement): Likewise. Also test bfd_is_com_section.
4399 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4400 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4401 not when fx_addsy. Remove dead code.
4403 2002-08-09 Graeme Peterson <gp@qnx.com>
4405 * configure.in: Add support for ppc-*-nto* target.
4406 * configure: Regenerate.
4408 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4410 * config/tc-i386.h: Reorganize.
4412 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4414 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4415 immediate offset in "dla" and "la" expansions.
4417 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4419 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4420 Remove "bfd_gas=yes" from target table when covered later.
4421 Consolidate some entries.
4422 * configure: Regenerate
4424 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4426 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4427 at start of insn, pass it to output_disp and output_imm.
4428 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4429 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4431 (output_imm): Added arguments. Compute properly addend for
4433 (md_apply_fix3): Remove R_386_GOTPC handling.
4435 2002-08-06 George France <france@handhelds.org>
4437 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4438 and m21264b processor names and cpu types.
4439 * doc/c-alpha.texi: Documented new types.
4441 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4443 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4445 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4447 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4448 handling to BFD_RELOC_MIPS16_GPREL.
4450 2002-08-01 Nick Clifton <nickc@redhat.com>
4452 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4453 pool is computed using signed arithmetic so that proper sign
4454 extension is performed if X_add_number is a 64-bit integer.
4456 2002-08-01 H.J. Lu <hjl@gnu.org>
4457 Daniel Jacobowitz <drow@mvista.com>
4459 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4460 .debug_line section unless it has line information.
4462 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4464 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4465 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4466 Allow default displacement size to be an option "--disp-size-default".
4467 (md_number_to_disp): Make error messages include value. Use %d to
4468 print integers, not %s.
4469 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4470 get duplicate messages sometimes.
4471 (convert_iif): Grow frag to max possible instruction size. Avoid
4472 creating unnecessary fixes.
4473 (md_number_to_field) Add prototype.
4474 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4475 prototypes and make static.
4476 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4477 (evaluate_expr): Use resultP argument instead of exprP global.
4478 (get_addr_mode): Quiten compiler warnings.
4479 (encode_operand): eliminate unused variables. Quiten compiler
4480 warnings. Eliminate nul character in format strings.
4481 (parse): argc is unsigned.
4482 (reloc): Type cast index to quieten compiler.
4483 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4484 (md_convert_frag): Note unused parameters. Remove unused
4486 (md_create_long_jump, md_create_short_jump,
4487 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4490 2002-07-31 Nick Clifton <nickc@redhat.com>
4492 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4493 of the PDP-11 and 2.11BSD a.out support.
4495 2002-07-31 Momchil Velikov <velco@fadata.bg>
4497 * config/tc-v850.c (md_assemble): Fix range check for immediate
4500 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4502 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4503 to Broadcom SB-1 core support.
4505 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4507 * config/tc-mips.c (mips_target_format): Fix formatting.
4508 Add recognition of n32 ABI formats.
4510 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4512 * tc-mips.c (load_address): Don't clobber $at when loading a
4513 64-bit address in non-PIC code if noat is in effect.
4516 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4518 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4519 used in division/multiply macro expansions similarly to how they
4520 are used in the variants with break instructions.
4523 2002-07-30 Graeme Peterson <gp@qnx.com>
4525 * configure.in: Add support for arm-*-nto target.
4526 * configure: Regenerate.
4528 2002-07-30 Nick Clifton <nickc@redhat.com>
4530 * config/tc-arm.c (struct literal_pool): Add fields to allow
4531 multiple literal pools to be maintained.
4532 (find_literal_pool): New function.
4533 (find_or_make_literal_pool): New function.
4534 (add_to_literal_pool): Use find_or_make_literal_pool.
4535 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4537 (s_ltorg): Use find_literal_pool.
4538 (arm_cleanup): Dump all literal pools.
4539 * doc/c-arm.texi: Document new behaviour of only dumping literal
4542 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4544 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4545 rather than PPC_OPCODE_32 for powerpc64*.
4547 2002-07-25 Nick Clifton <nickc@redhat.com>
4549 * po/es.po: Updated Spanish translation.
4550 * po/fr.po: Updated French translation.
4552 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4554 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4555 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4556 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4557 * configure, config.in: Regenerate.
4558 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4559 (mips_set_options): Remove "abi" field.
4560 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4563 (mips_arch_string, mips_arch_info): New vars.
4564 (mips_tune_string, mips_tune_info): New vars.
4565 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4566 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4567 (mips_isa_to_str, mips_cpu_to_str): Remove.
4568 (mips_ip): If the selected architecture is a generic ISA rather
4569 than a processor, only mention the ISA level in error messages.
4570 (OPTION_MCPU): Remove.
4572 (md_longopts): Add -mfp64, remove -mcpu.
4573 (mips_set_option_string): New fn.
4574 (md_parse_option): Make -mipsN update file_mips_isa rather than
4575 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4576 Don't let -mgp32 and -mfp32 change the ABI.
4577 (show): Move to end of file. Constify string argument.
4578 (md_show_usage): Move to the end of the file. Read available
4579 architectures from mips_cpu_info_table.
4580 (mips_set_architecture): New fn.
4581 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4582 is an alias for -march=mipsN. Don't change the ABI based on other
4583 flags. Infer the register size from the ABI as well as the
4584 architecture. Complain about more conflicting arguments.
4585 Unify logic with GCC.
4586 (s_mipsset): Don't change the ABI.
4587 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4588 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4589 "mipsN"-type entries. Remove entries that vary only in the
4590 manufacturer's prefix, or that have "000" replaced by "k".
4591 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4592 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4593 (mips_parse_cpu): New fn.
4594 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4595 (mips_cpu_info_from_isa): Minor formatting tweak.
4597 2002-07-24 Nick Clifton <nickc@redhat.com>
4599 * po/sv.po: Updated Swedish translation.
4600 * po/es.po: Updated Spanish translation.
4602 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4604 * Makefile.am: Run "make dep-am".
4605 * Makefile.in: Regenerate.
4606 * doc/Makefile.in: Regenerate.
4607 * config.in: Regenerate.
4608 * po/POTFILES.in: Regenerate.
4610 2002-07-23 Nick Clifton <nickc@redhat.com>
4612 * po/fr.po: Updated French translation.
4614 2002-07-23 Nick Clifton <nickc@redhat.com>
4616 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4619 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4621 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4622 instead of S_IS_EXTERN.
4623 (md_estimate_size_before_relax): Likewise.
4624 (mips_fix_adjustable): Likewise.
4626 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4628 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4630 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4631 Nick Clifton <nickc@redhat.com>
4633 * cond.c (s_ifdef): Treat a referenced but not yet defined
4634 symbol as if it were undefined, in exactly the same way as
4637 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4638 consider referenced bug not yet defined symbols to be
4641 2002-07-18 Denis Chertykov <denisc@overta.ru>
4642 Frank Ch. Eigler <fche@redhat.com>
4643 Alan Lehotsky <alehotsky@cygnus.com>
4644 John Healy <jhealy@redhat.com>
4645 Jeff Johnston <jjohnstn@redhat.com>
4647 * configure.in: Add ip2k configuraton.
4648 * configure: Regenerate.
4649 * Makefile.am: Add ip2k configuraton.
4650 * Makefile.in: Regenerate.
4651 * configure: Regenerate.
4652 * Makefile.in: Regenerate.
4653 * config/tc-ip2k.c: New file.
4654 * config/tc-ip2k.h: New files.
4655 * NEWS: Mention new support.
4656 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4657 * doc/Makefile.in: Regenerate.
4658 * doc/all.texi: Set IP2K
4659 * doc/as.texinfo: Add IP2K description.
4660 * doc/c-ip2k.texi: New file.
4662 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4664 * NEWS: Reformat to match style of other NEWS files.
4666 2002-07-17 Jan Hubicka <jh@suse.cz>
4668 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4670 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4672 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4674 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4676 * NEWS: Add 'Changes in 2.13'.
4678 2002-07-15 Matt Fredette <fredette@netbsd.org>
4680 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4682 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4684 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4685 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4688 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4690 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4691 (ppc_frob_file_before_adjust): New function.
4692 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4693 (ppc_elf_frob_symbol): Don't declare.
4694 (tc_frob_file_before_adjust): Define.
4695 (ppc_frob_file_before_adjust): Declare.
4697 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4698 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4701 (ppc_xcoff64): Rename to ppc_obj64.
4702 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4703 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4704 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4706 (ppc_target_format): Use ppc_obj64 to select format.
4707 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4708 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4709 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4710 (tc_frob_symbol): Likewise.
4711 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4712 BFD_DEFAULT_TARGET_SIZE.
4714 (ppc_is_toc_sym): Likewise.
4715 (md_apply_fix3): Likewise.
4716 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4717 BFD_DEFAULT_TARGET_SIZE.
4718 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4719 (tc_frob_symbol): Likewise.
4721 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4723 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4724 (mips_ip): Likewise.
4726 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4728 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4729 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4730 (md_apply_fix3): Formatting. Remove redundant test.
4731 (tc_gen_reloc): Remove redundant code.
4732 (tc_i386_force_relocation): Delete. Movy body of function to..
4733 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4735 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4737 * configure.in: Add hppa-*-openbsd* target, change
4738 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4740 * configure: Regenerate.
4742 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4744 * config/tc-mips.c (macro): Shift the 32-bit address range
4745 accessible with a lone "lui" down by 32768.
4747 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4749 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4750 instead of "dadd" in address calculations.
4753 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4755 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4757 (md_assemble): Instead, zap the suffix here.
4759 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4761 * NEWS: Remove next release number until the release is actually
4764 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4766 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4768 * Makefile.in: Regenerate.
4770 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4772 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4773 to symbols in merge sections, even non pc-relative ones.
4775 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4777 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4779 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4781 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4782 .softregs and .eeprom.
4784 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4786 * NEWS: Note the next release is 2.13.
4788 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4790 * po/tr.po: New translation imported.
4792 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4794 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4795 (ecoff_directive_def): Likewise.
4796 (ecoff_directive_tag): Likewise.
4797 * listing.c (file_info): Likewise.
4798 * hash.c (what): Likewise.
4800 2002-06-25 H.J. Lu <hjl@gnu.org>
4802 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4803 * Makefile.in: Regenerated.
4805 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4807 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4808 (assemble_ppi): Generate warning if the same register is used
4809 twice as destination in the same padd / pmuls instruction.
4811 2002-06-18 Dave Brolley <brolley@redhat.com>
4813 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4814 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4815 * configure.in: Support frv-*-*.
4816 * Makefile.am (CPU_TYPES): Add frv.
4817 (TARGET_CPU_CFILES): Add tc-frv.c.
4818 (TARGET_CPU_HFILES): Add tc-frv.h.
4819 (DEPTC_frv_coff): New variable.
4820 (DEPTC_frv_elf): New variable.
4821 (DEPOBJ_frv_coff): New variable.
4822 (DEPOBJ_frv_elf): New variable.
4823 (DEP_frv_coff): New variable.
4824 (DEP_frv_elf): New variable.
4825 * tc-frv.c: New file.
4826 * tc-frv.h: New file.
4828 2002-06-17 Catherine Moore <clm@redhat.com>
4830 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4832 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4834 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4836 2002-06-17 Tom Rix <trix@redhat.com>
4838 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4840 2002-06-14 H.J. Lu <hjl@gnu.org>
4841 Daniel Jacobowitz <drow@mvista.com>
4843 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4844 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4845 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4846 and new_logical_line for the first .file directive.
4847 * read.c (s_app_file_string): New function.
4848 (s_app_file): Call it.
4849 * read.h (s_app_file_string): Add declaration.
4851 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4853 * configure.in: Remove MIPS_STABS_ELF.
4854 * configure: Regenerated.
4855 * config.in: Regenerated.
4856 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4858 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4860 (pdr_seg): Declare unconditionally.
4861 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4862 (s_mips_end): Likewise. Generate stabs function markers.
4863 (s_mips_ent): Generate stabs function markers.
4864 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4866 (s_mips_mask): Likewise.
4867 (mips_flag_mdebug): New.
4868 (md_longopts): Add "mdebug" and "no-mdebug".
4869 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4870 (mips_after_parse_args): Set mips_flag_mdebug.
4871 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4873 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4875 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4876 value twice for RELA relocations.
4878 2002-06-12 Ben Elliston <bje@redhat.com>
4880 * symbols.c (resolve_symbol_value): Initialise final_val.
4882 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4884 2002-06-11 Tom Rix <trix@redhat.com>
4886 * config/tc-ppc.c (ppc_subseg_align): Delete.
4887 (ppc_change_csect): Default csect align is 2.
4888 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4890 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4892 * config/tc-avr.c (mcu_types): Update.
4894 2002-06-08 Matt Thomas <matt@3am-software.com>
4896 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4897 (vax-*-netbsd*): New targets.
4898 * configure: Regenerate.
4899 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4900 * config/tc-vax.c: Add support for ELF and PIC.
4901 (flag_want_pic): New flag.
4902 (float_cons): Fix prototype.
4903 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4904 (md_assemble): Introduce a new is_absolute local, and use it
4905 rather than repeating the test. Make fatal errors actually
4906 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4907 Add support for ELF. Add support for PIC.
4908 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4909 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4911 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4912 optional for a.out, and not allowed for VMS. Adjust all callers.
4913 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4914 (md_create_long_jump): Likewise.
4915 (md_undefined_symbol): Likewise.
4916 (md_section_align): Likewise.
4917 (md_shortopts): Allow -k and -K for ELF.
4918 (md_parse_option): Set flag_want_pic if -k or -K.
4919 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4920 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4921 * config/tc-vax.h (tc_headers_hook): Remove.
4922 (TARGET_FORMAT): Set according to object format and target
4924 (BFD_ARCH, TARGET_ARCH): Define.
4925 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4926 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4927 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4928 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4930 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4932 * Makefile.am: Run "make dep-am".
4933 * Makefile.in: Regenerate.
4935 * as.c: Replace CONST with const.
4936 * write.c: Likewise.
4937 * config/obj-coff.c: Likewise.
4938 * config/tc-a29k.c: Likewise.
4939 * config/tc-arm.c: Likewise.
4940 * config/tc-dlx.c: Likewise.
4941 * config/tc-h8300.c: Likewise.
4942 * config/tc-h8500.c: Likewise.
4943 * config/tc-i370.c: Likewise.
4944 * config/tc-i860.c: Likewise.
4945 * config/tc-i960.c: Likewise.
4946 * config/tc-m68hc11.c: Likewise.
4947 * config/tc-m68k.c: Likewise.
4948 * config/tc-m88k.c: Likewise.
4949 * config/tc-mcore.c: Likewise.
4950 * config/tc-mips.c: Likewise.
4951 * config/tc-ns32k.c: Likewise.
4952 * config/tc-pdp11.c: Likewise.
4953 * config/tc-pj.c: Likewise.
4954 * config/tc-s390.c: Likewise.
4955 * config/tc-sh.c: Likewise.
4956 * config/tc-sparc.c: Likewise.
4957 * config/tc-tahoe.c: Likewise.
4958 * config/tc-tic80.c: Likewise.
4959 * config/tc-v850.c: Likewise.
4960 * config/tc-vax.c: Likewise.
4961 * config/tc-w65.c: Likewise.
4962 * config/tc-z8k.c: Likewise.
4964 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4966 Based on patch from Matt Green:
4967 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4968 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4969 (s_mips_loc): New function.
4970 (mips_nonecoff_pseudo_table): Call them.
4971 (append_insn): Call dwarf2_emit_insn.
4973 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4975 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4977 (file_ase_mips16): New veriable.
4978 (mips_eabi64): Remove.
4979 (CPU_HAS_MIPS16): New define.
4980 (CPU_HAS_MDMX): Fix data type.
4981 (md_begin): Code cleanup. Use file_ase_mips16.
4982 (mips_elf_final_processing): Handle mips16 header flag.
4983 Handle EABI flag without intermediate variable.
4985 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4987 * doc/as.texinfo: Update MIPS documentation.
4989 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4991 * config/tc-mips.c: Add define for $zero register.
4992 (md_begin): Add $zero as alias name for $0.
4993 (insn_uses_reg): Use ZERO define.
4994 (mips_ip): Add $zero as alias name for $0.
4995 (mips16_ip): Likewise.
4996 (s_cplocal): Demand empty rest of input line.
4997 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4998 names. Use ZERO define. Fix input_line_pointer progress.
5000 2002-06-07 Alan Modra <amodra@bigpond.net.au>
5002 * symbols.c: Replace CONST by const throughout.
5003 (symbol_find_exact): Split out from..
5004 (symbol_find_base): ..here.
5005 * symbols.h: Replace CONST by const throughout.
5006 (symbol_find_exact): Declare.
5007 * config/obj-elf.c: #include "struc-symbol.h".
5008 (elf_frob_file): If group name matches an exported symbol, use that
5009 symbol for the signature and ".group" as the section name.
5011 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
5013 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
5016 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
5018 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
5019 and mips_opts.ase_mdmx if they are uninitialized.
5021 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5023 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
5024 (hppa_force_relocation): Check if a stub just before the start symbol
5025 of the last call_info is reachable before forcing relocation. Fix
5028 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5030 * config/tc-mips.c (mips_after_parse_args): New function.
5031 (md_begin): Move processing of defaults to mips_after_parse_args.
5032 config/tc-mips.h (md_after_parse_args): Define.
5034 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5036 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
5037 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
5038 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
5039 * configure: Regenerate.
5040 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
5043 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5045 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
5047 2002-06-04 Alan Modra <amodra@bigpond.net.au>
5049 * config/obj-elf.c (obj_elf_change_section): Set and check elf
5050 linkonce flag. Print all warnings.
5051 (obj_elf_section): Parse ",comdat" for groups.
5052 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
5053 consistency of comdat flag.
5055 2002-06-02 Richard Henderson <rth@redhat.com>
5057 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
5058 with LITERALs without sequence numbers.
5060 2002-06-01 Richard Henderson <rth@redhat.com>
5062 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
5063 Rename them LITUSE_ALPHA_*.
5065 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
5067 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
5068 accept parentheses enclosed register lists.
5070 2002-05-31 Alan Modra <amodra@bigpond.net.au>
5072 * Makefile.am: Run "make dep-am".
5073 * Makefile.in: Regenerate.
5074 * po/POTFILES.in: Regenerate.
5076 2002-05-31 Graeme Peterson <gp@qnx.com>
5078 * configure.in: Add i386-*-nto-qnx*.
5079 * configure: Regenerate.
5081 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5083 * config/tc-mips.c (mips_ip): Use unsigned long values for
5086 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5088 * config/tc-mips.c (s_cpsetup): Fix initialization of
5089 mips_cpreturn_register and mips_cpreturn_offset.
5091 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5093 * config/tc-mips.c (s_cpsetup): Fix comment.
5095 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5097 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
5098 (mips_ip): Likewise.
5099 (mips16_ip): Likewise.
5100 (tc_get_register): Likewise.
5102 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
5103 Ed Satterthwaite <ehs@broadcom.com>
5105 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
5106 (mips_opts): Initialize "ase_mdmx" member.
5107 (file_ase_mdmx): New variable.
5108 (CPU_HAS_MDMX): New macro.
5109 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
5110 based on command line options and configuration defaults.
5111 (macro_build): Note in comment that use of MDMX in macros is
5112 not currently allowed.
5113 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
5114 "Z" MDMX operand types.
5115 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
5116 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
5118 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
5119 Add support for "-mdmx" and "-no-mdmx" options.
5120 (OPTION_ELF_BASE): Move to accommodate new options.
5121 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
5122 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
5123 file_ase_mdmx was set.
5124 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
5125 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
5128 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5130 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
5131 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
5132 command line switch conforming to gcc conventions.
5133 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
5135 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5137 * config/tc-mips.c (macro_build_jalr): New Function.
5138 (md_begin): NewABI uses big GOTs.
5139 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
5140 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
5141 (load_address): Add some NewABI PIC support.
5143 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
5144 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
5146 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5148 * config/tc-mips.c (load_address): Use mips_gp_register instead
5149 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
5151 (macro): Use mips_gp_register instead of hardcoded value.
5153 2002-05-30 Richard Henderson <rth@redhat.com>
5155 * expr.h (operatorT): Add O_md17..O_md32.
5156 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
5157 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5158 O_tprelhi, O_tprello, O_tprel): New.
5159 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5160 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5161 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5162 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5163 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
5164 (md_apply_fix3): Handle TLS relocations.
5165 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5166 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5167 associated TLS reloc. Check lituse_tls relocs match up.
5168 (emit_insn): Handle TLS relocations.
5171 * doc/c-alpha.texi: Add docs for tls relocations.
5173 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5175 * config/tc-mips.c (mips_gprel_offset): New variable.
5176 (s_gpvalue): Use it.
5178 2002-05-30 Diego Novillo <dnovillo@redhat.com>
5180 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5181 write-write conflicts.
5182 (md_assemble): Reformat introductory comment.
5183 (parallel_ok): Prevent packing only if the first
5184 instruction cannot be packed.
5186 2002-05-30 Jason Eckhardt <jle@redhat.com>
5187 Tom Rix <trix@redhat.com>
5189 * config/tc-d10v.c (build_insn): Check for immediates.
5191 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5193 * config/tc-mips.c: Replace GP in comments by $gp.
5194 (mips_big_got): Initialize.
5195 (mips_trap): Initialize.
5196 (load_address): Use mips_gp_register instead of hardcoded value.
5197 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5198 (macro): Use mips_gp_register instead of hardcoded value.
5199 (macro2): Change load_address calls.
5200 (md_pcrel_from): Comment formatting.
5201 (s_cpload): Use mips_gp_register instead of hardcoded value.
5202 (s_cprestore): Likewise. Comment formatting.
5203 (s_gpword): Fix data type.
5204 (s_cpadd): Use mips_gp_register instead of hardcoded value.
5205 (nopic_need_relax): Replace GP in comments by $gp.
5206 (mips_elf_final_processing): Better comment.
5208 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
5210 * configure.in: Add DLX configuraton
5211 * Makefile.am: Add DLX configuraton
5212 * configure: Regenerate.
5213 * Makefile.in: Regenerate.
5214 * config/tc-dlx.c: New file.
5215 * config/tc-dlx.h: New files.
5216 * NEWS: Mention new support.
5218 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
5220 * config/obj-coff.c (write_object_file): Add missing semicolon.
5222 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5224 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5225 by the define. Remove superfluous check of mips_opts.mips16.
5226 (append_insn): Likewise. Canonicalize variable increments.
5227 (macro_build): Canonicalize variable increments.
5228 (macro_build_lui): Likewise.
5229 (load_register): Likewise.
5230 (load_address): Move pointer initialization.
5231 (macro): Move pointer to a more local scope. Canonicalize variable
5232 increments. Better comments. Replace magic constant for RA by the
5234 (macro2): Replace magic constant for RA by the define. Canonicalize
5235 variable increments.
5236 (mips_ip): Canonicalize variable increments.
5237 (mips16_ip): Replace magic constant for RA by the define.
5238 (my_getSmallParser): Canonicalize variable increments/decrements.
5239 (my_getPercentOp): Likewise.
5240 (my_getSmallExpression): Likewise.
5241 (s_align): Likewise.
5242 (s_mipsset): Likewise.
5243 (s_cpsetup): Likewise.
5244 (s_insn): Remove superfluous check of mips_opts.mips16.
5245 (s_mips_stab): Likewise.
5246 (mips_handle_align): Canonicalize variable increments.
5247 (s_mips_ent): Likewise.
5248 (s_mips_end): Add comment.
5250 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5252 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5253 * configure: Regenerate.
5255 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5257 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5258 * Makefile.in: Regenerate.
5259 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5260 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5261 * configure: Regenerate.
5262 * as.h: Use #include "" instead of <> for local header files.
5263 * flonum-konst.c: Likewise.
5264 * flonum-mult.c: Likewise.
5266 * listing.c: Likewise.
5267 * config/tc-ia64.h: Likewise.
5268 * config/tc-v850.h: Likewise.
5270 2002-05-24 TAMURA Kent <kent@netbsd.org>
5272 * configure.in: Add a target for i386-netbsdpe.
5273 * configure: Regenerate.
5275 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5277 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5278 (obj_elf_common): Call elf_common.
5279 (obj_elf_tls_common): New function.
5280 (elf_pseudo_tab): Support .tls_common.
5281 (special_sections): Add .tdata and .tbss.
5282 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5284 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5285 (obj_elf_parse_section_letters): Include T in error message.
5286 * config/tc-ppc.c (ppc_section_letter): Likewise.
5287 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5288 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5290 * config/tc-sparc.c (md_apply_fix3): Likewise.
5291 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5292 Define them if not BFD_ASSEMBLER.
5293 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5295 (md_apply_fix3): Add TLS relocs.
5296 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5297 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5298 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5299 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5300 (ia64_elf_section_letter): Include T in error message.
5301 (md_begin): Support TLS operators.
5302 (md_operand): Likewise.
5303 (ia64_gen_real_reloc_type): Support TLS relocs.
5304 * write.c (adjust_reloc_syms): Don't change symbols in
5305 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5307 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5309 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5310 round the relocation up rather than down.
5312 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5314 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5316 * doc/as.texinfo: Document that the COFF version of .section
5317 ignores the 'a' flag.
5319 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5321 * config/tc-alpha.c (assemble_tokens): Protect use of
5322 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5324 * write.c (size_seg): Check adjustment to last frag.
5325 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5327 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5328 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5329 (write_object_file): Invoke md_do_align if available, and use
5330 frag_align_code on text sections.
5331 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5332 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5333 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5334 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5335 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5338 2002-05-22 H.J. Lu <hjl@gnu.org>
5340 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5343 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5345 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5348 2002-05-22 H.J. Lu <hjl@gnu.org>
5350 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5351 for one .loc for compiler.
5353 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5355 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5358 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5360 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5361 Optimize the rotate by zero case.
5363 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5365 * configure.in: Remove accidental enabling of bfd_gas=yes for
5367 * configure: Regenerate.
5369 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5371 * app.c: Fix formatting.
5373 * ehopt.c: Likewise.
5375 * input-file.c: Likewise.
5376 * listing.c: Likewise.
5377 * macro.h: Likewise.
5378 * stabs.c: Likewise.
5379 * symbols.c: Likewise.
5381 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5383 * config/obj-generic.c: Delete file.
5384 * config/obj-generic.h: Likewise.
5386 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5388 * config/tc-avr.c (mcu_types): Update for new devices.
5390 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5392 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5394 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5396 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5397 worked sometimes by accident. Fix copy&paste comment.
5399 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5401 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5402 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5403 (mips_elf_final_processing): Let n32 use .reginfo.
5405 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5407 * config/tc-mips.c (append_insn): Fix too small range of variable.
5409 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5411 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5412 listing_prev_line().
5414 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5416 * config/tc-arm.c (md_assemble): Remove redundant call to
5419 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5422 * stabs.c (s_stab_generic): Fix grammatical error in warning
5425 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5427 * write.c (subsegs_finish): Don't specially align last subseg.
5429 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5431 * stabs.c (s_stab_generic): Warn about a description field that is
5434 * config/obj-coff.c: Fix compile time warnings when compiling
5435 without BFD_ASSEMBLER defined.
5438 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5440 (md_pcrel_from_section): Use md_pcrel_from().
5442 2002-05-11 Bruno Haible <bruno@clisp.org>
5444 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5445 by dwarf2_directive_loc, instead of calling dwarf2_where.
5447 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5449 * config/obj-coff.h: Fix formatting.
5450 * config/tc-mcore.c: Likewise.
5451 * config/tc-mn10300.c: Likewise.
5452 * config/tc-openrisc.c: Likewise.
5453 * config/tc-or32.c: Likewise.
5454 * config/tc-pdp11.c: Likewise.
5455 * config/tc-ppc.c: Likewise.
5456 * config/tc-ppc.h: Likewise.
5457 * config/tc-sh64.c: Likewise.
5458 * config/tc-sh.c: Likewise.
5459 * config/tc-tic54x.c: Likewise.
5460 * config/tc-xstormy16.c: Likewise.
5461 * config/tc-xstormy16.h: Likewise.
5463 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5465 * config/obj-coff.c: Fix formatting.
5466 * config/obj-elf.c: Likewise.
5467 * config/tc-alpha.c: Likewise.
5468 * config/tc-arm.c: Likewise.
5469 * config/tc-d10v.c: Likewise.
5470 * config/tc-d30v.c: Likewise.
5471 * config/tc-h8300.c: Likewise.
5472 * config/tc-hppa.c: Likewise.
5474 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5476 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5477 reloc when no_cond_jump_promotion.
5479 2002-05-08 Jim Wilson <wilson@redhat.com>
5481 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5482 current variable part of frag.
5484 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5486 * config/tc-mmix.c: Fix formatting.
5487 * config/tc-mmix.h: Likewise.
5489 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5491 * configure: Regenerate.
5493 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5495 * config/tc-m68k.c: Fix formatting.
5497 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5499 * Makefile.am: Honour DESTDIR.
5500 * Makefile.in: Regenerate.
5502 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5504 * config/tc-ia64.c: Fix formatting.
5505 * config/tc-ia64.h: Likewise.
5507 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5509 * config/tc-mips.c: Fix formatting.
5510 * config/tc-s390.c: Likewise.
5511 * config/tc-s390.h: Likewise.
5513 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5515 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5516 information for instructions.
5518 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5520 * as.h: Fix formatting.
5523 * dwarf2dbg.c: Likewise.
5524 * frags.h: Likewise.
5526 * macro.c: Likewise.
5528 * stabs.c: Likewise.
5529 * symbols.c: Likewise.
5531 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5533 * app.c (mri_pseudo): Only declare for TC_M68K.
5535 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5536 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5537 BFD_RELOC_16_BASEREL.
5538 (md_assemble): Likewise.
5539 (md_apply_fix3): Likewise.
5541 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5543 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5544 zero into an add of zero - it is not the same.
5546 2002-05-01 Arati Dikey <aratid@kpit.com>
5548 * tc-sh.c (get_specific): Generate warning if the same
5549 destination register is used in parallel instructions.
5551 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5553 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5555 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5557 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5558 backwards to prevent cascading errors.
5560 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5562 * configure.in: Add support for powerpc-*-windiss.
5563 * configure: Regenerated.
5565 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5567 * config/tc-s390.c (md_parse_option): Formatting.
5569 * config/tc-i386.c: Formatting fixes, add missing space in error
5572 2002-04-24 Christian Groessler <chris@groessler.org>
5574 * config/tc-z8k.c (build_bytes): Add support for new cases:
5575 CLASS_IGNORE and ARG_NIM4.
5576 (md_assemble): Prevent destruction of input_line_pointer if
5577 get_operands returns failure.
5579 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5581 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5582 instructions to be generated by macros.
5584 2002-04-24 Andreas Schwab <schwab@suse.de>
5586 * config/tc-i386.c (output_jump, output_disp)
5587 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5589 (md_apply_fix3): Remember addend value for rela relocations.
5590 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5592 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5594 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5595 from previous change.
5597 2002-04-22 Eric Christopher <echristo@redhat.com>
5599 * config/tc-mips.c (macro_build): Add warning if macro instructions
5600 are expanded into a branch delay slot.
5602 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5604 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5605 numbers, gdb relies on them to detect the start of the prologue.
5607 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5609 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5610 symbols in merge sections.
5612 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5614 * as.c (main): Don't reference _bfd_chunksize.
5616 2002-04-15 Tom Rix <trix@redhat.com>
5618 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5619 symbols in merge sections.
5621 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5623 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5624 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5625 argument for the precision.
5626 (gen_to_words): Update accordingly.
5628 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5630 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5631 BFD_VERSION_STRING unavailable.
5632 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5634 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5636 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5637 symbol_used_in_reloc_p is true.
5639 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5642 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5644 * dep-in.sed: Cope with absolute paths.
5645 * Makefile.am (dep.sed): Subst TOPDIR.
5647 * Makefile.in: Regenerate.
5649 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5651 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5652 (mips_ip): Remove unused variable.
5653 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5654 unsigned char with bfd_byte.
5655 (s_file): Remove unused variable.
5656 (s_mips_ent): Likewise.
5658 2002-04-03 Tom Rix <trix@redhat.com>
5660 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5662 (find_opcode): Fix warning in as_warn.
5663 * config/tc-d10v.h: Update Copyright.
5665 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5666 Tom Rix <trix@redhat.com>
5668 From Jeff Knaggs <jknaggs@redhat.com>
5669 * config/tc-d10v.c (check_resource_conflict): New function to
5670 check for resource conflicts.
5672 From Jason Eckhardt <jle@redhat.com>
5673 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5675 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5676 reserved control registers is used.
5677 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5680 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5681 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5682 instruction cannot be packed.
5684 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5685 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5686 write-write conflicts.
5687 (md_assemble): Reformat introductory comment.
5688 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5691 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5693 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5694 O_logical_not>): Derive final_seg from add_symbol.
5695 <O_multiply..O_logical_or>: More final_seg twiddles.
5697 2002-04-01 Jessica Han <jessica@cup.hp.com>
5699 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5702 2002-03-27 Andreas Schwab <schwab@suse.de>
5704 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5705 field for pc-relative fixups.
5706 (output_disp): Likewise.
5707 (md_estimate_size_before_relax): Likewise.
5708 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5709 pc-relative fixups in 64bit mode.
5711 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5713 * config/te-aix5.h: Typo fix.
5715 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5717 * Makefile.am: Run "make dep-am".
5718 * Makefile.in: Regenerate.
5719 * doc/Makefile.in: Regenerate.
5721 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5723 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5724 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5726 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5728 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5729 the EXTENDED bit here; report the estimate according to the
5732 2002-03-18 Tom Rix <trix@redhat.com>
5734 * configure.in: Add AIX 5 support.
5735 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5736 * config/te-aix5.h: New file. AIX 5 support.
5737 * configure: Regenerate.
5739 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5741 * po/fr.po: Updated version.
5743 2002-03-16 Andreas Jaeger <aj@suse.de>
5745 * doc/c-mips.texi (Machine Dependencies): Add new node.
5747 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5749 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5750 (mips_opts): Initialize "ase_mips3d" member.
5751 (file_ase_mips3d): New variable.
5752 (CPU_HAS_MIPS3D): New macro.
5753 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5754 based on command line options and configuration defaults.
5755 (macro_build, mips_ip): Accept MIPS-3D instructions if
5756 mips_opts.ase_mips3d is set.
5757 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5758 Add support for "-mips3d" and "-no-mips3d" options.
5759 (OPTION_ELF_BASE): Move to accommodate new options.
5760 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5761 (mips_elf_final_processing): Add a comment indicating that a
5762 MIPS-3D ASE ELF header flag should be set, when one exists.
5763 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5764 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5765 nomips3d" directives.
5767 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5769 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5770 a weak symbol in same section to be within reach.
5772 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5774 * po/fr.po: Updated version.
5776 2002-03-12 Andreas Schwab <schwab@suse.de>
5778 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5779 body record so that an error is given for misplaced .save
5782 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5784 * config/tc-i386.h (REX_OPCODE): Define.
5785 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5786 (rex_byte): typedef to int.
5787 * config/tc-i386.c: Group prototypes and vars together.
5788 Formatting fixes. Remove occurrences of "register" keyword.
5791 (mode_from_disp_size): Add INLINE keyword to prototype.
5792 (fits_in_signed_byte): Likewise.
5793 (fits_in_unsigned_byte): Likewise.
5794 (fits_in_unsigned_word): Likewise.
5795 (fits_in_signed_word): Likewise.
5796 (fits_in_unsigned_long): Likewise.
5797 (fits_in_signed_long): Likewise.
5798 (type_names): Constify.
5799 (intel_float_operand): Constify param.
5800 (add_prefix): Use REX_OPCODE.
5801 (md_assemble): Likewise. Modify for changed rex_byte.
5802 (parse_insn): Split out of md_assemble.
5803 (parse_operands): Likewise.
5804 (swap_operands): Likewise.
5805 (optimize_imm): Likewise.
5806 (optimize_disp): Likewise.
5807 (match_template): Likewise.
5808 (check_string): Likewise.
5809 (process_suffix): Likewise.
5810 (check_byte_reg): Likewise.
5811 (check_long_reg): Likewise.
5812 (check_qword_reg): Likewise.
5813 (check_word_reg): Likewise.
5814 (finalize_imm): Likewise.
5815 (process_operands): Likewise.
5816 (build_modrm_byte): Likewise.
5817 (output_insn): Likewise.
5818 (output_branch): Likewise.
5819 (output_jump): Likewise.
5820 (output_interseg_jump): Likewise.
5821 (output_disp): Likewise.
5822 (output_imm): Likewise.
5824 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5826 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5828 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5830 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5831 relocs except when BFD64.
5833 * write.c (number_to_chars_bigendian): Don't abort when N is
5834 larger than sizeof (VAL).
5835 (number_to_chars_littleendian): Likewise.
5837 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5839 * config/tc-hppa.c (md_apply_fix3): Add cast.
5840 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5843 2002-03-05 Paul Koning <pkoning@equallogic.com>
5845 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5846 (parse_ac5): New function for parsing float regs in float operand.
5847 (parse_expression): Remove attempt to make literals be octal.
5848 (parse_op_no_deferred): Support float literals.
5849 (parse_op): Reject attempts to refer to float regs.
5850 (parse_fop): New function, like parse_op but for float operand.
5851 (md_assemble): Add cases to parse float operands. Also fix
5852 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5854 2002-03-04 H.J. Lu <hjl@gnu.org>
5856 * config/obj-elf.c (special_section): Add .init_array,
5857 .fini_array and .preinit_array.
5859 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5860 .init_array and .fini_array.
5862 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5864 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5866 (obj_frob_symbol): Copy visibility.
5868 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5870 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5872 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5874 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5876 * po/es.po: Updated.
5878 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5880 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5881 only, undo the changes made on 2001-06-08, with the
5882 effect being that common or extern symbols are
5883 adjusted for embedded-PIC, but weak symbols are not.
5884 (md_estimate_size_before_relax: Likewise, with the effect
5885 that extern symbols are treated the same as weak symbols
5886 only if not embedded-PIC.
5887 (mips_fix_adjustable) Likewise, with the effect that
5888 weak or extern symbols are not adjusted for embedded-PIC.
5889 (md_apply_fix3): Tweak so that the case where value is zero
5890 is handled more correctly for embedded-PIC code.
5892 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5894 * doc/as.texinfo (Overview): Add missing @ifset IA64
5896 * configure.in (LINGUAS): Add es.po.
5897 * configure: Regenerate.
5898 * po/es.po: New file.
5900 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5902 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5903 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5904 and NO_PIC cases. Code cleanup.
5905 (macro2): Fix handling of 64bit register loads.
5907 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5909 * doc/as.texinfo: Add entry for IA64.
5910 * doc/c-ia64.texi: New file.
5912 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5914 * config/tc-hppa.c: Update copyright date.
5916 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5917 Remove references to chip manufacturers.
5918 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5920 (md_show_usage): Remove references to chip manufacturers. Mention
5922 (md_begin): Test power4 opcode flag bits.
5924 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5926 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5927 count exceeds prologue count.
5928 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5929 (unwind.label_prologue_count): New member.
5931 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5933 (get_saved_prologue_count): New function.
5934 (save_prologue_count): New function.
5935 (free_saved_prologue_count): New function.
5936 (dot_label_state): Record state label by calling save_prologue_count().
5937 (dot_copy_state): Restore prologue count by calling
5938 get_saved_prologue_count().
5939 (generate_unwind_image): Free up list of saved prologue
5940 counts by calling free_saved_prologue_counts().
5942 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5944 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5945 function declarations.
5947 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5949 * NEWS: Note that GASP is now deprecated.
5950 * Makefile.am: Do not build gasp-new by default.
5951 * Makefile.in: Regenerate.
5952 * doc/Makefile.am: Do not install gasp.info.
5953 * doc/Makefile.in: Regenerate.
5954 * gas/gasp.texi: Note that gasp is now deprecated.
5956 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5958 * NEWS: Mark 2.12 branch.
5960 2002-02-19 Tom Tromey <tromey@redhat.com>
5962 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5964 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5966 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5969 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5971 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5972 Make bit size independent of architecture switch.
5973 (md_begin): Add warning for -m64 with -Aesa.
5974 (s390_md_end): Use renamed architecture defines.
5976 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5978 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5980 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5982 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5985 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5987 * config/tc-mips.c (md_estimate_size_before_relax): Really
5988 make sure we treat weak like extern only for ELF. (Fixes
5989 patch from 2001-07-25.)
5991 2002-02-15 Ben Elliston <bje@redhat.com>
5993 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5996 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5998 * NEWS: Mention support for MMIX.
6000 2002-02-13 Chris Demetriou <cgd@broadcom.com>
6002 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
6003 a sequence of indpendent 'if' statements for easier debugging
6004 and future modification.
6006 2002-02-13 Matt Fredette <fredette@netbsd.org>
6008 * config/tc-m68k.c (md_show_usage): No longer display a
6009 hard-coded "68020" for the default CPU, instead display the
6010 canonical name of the true, configured default CPU.
6011 (m68k_elf_final_processing): Mark objects for sub-68020
6012 CPUs with the new EF_M68000 flag.
6014 2002-02-13 Andreas Schwab <schwab@suse.de>
6016 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
6017 pc-relative relocations to merge sections in 64-bit mode.
6019 2002-02-13 Ben Elliston <bje@redhat.com>
6021 * NEWS: Document floating point number handling in gasp.
6022 * gasp.c: Include <assert.h> and "xregex.h".
6023 (is_flonum): New function.
6024 (chew_flownum): Likewise.
6025 (change_base): Consume flonums from the input, where possible.
6026 * doc/gasp.texi (Constants): Document floating point numbers.
6028 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
6030 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
6031 that implicitly use LR and RR selectors.
6033 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
6035 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
6036 and `epsw' as available on AM33 and above only.
6037 (other_register_name): Add logic to handle machine type encoded in
6040 2002-02-11 Tom Rix <trix@redhat.com>
6042 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
6045 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
6047 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
6050 2002-02-11 Jan Hubicka <jh@suse.cz>
6052 * i386.c (md_assemble): Support 32bit address prefix.
6053 (i386_displacement): Likewise.
6054 (i386_index_check): Accept 32bit addressing in 64bit mode.
6056 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6058 * config/tc-sh.c (dot): Removed unused function.
6060 2002-02-11 Alan Modra <amodra@bigpond.net.au>
6062 * Makefile.am: "make dep-am".
6063 * Makefile.in: Regenerate.
6064 * aclocal.m4: Regenerate.
6065 * config.in: Regenerate.
6066 * configure: Regenerate.
6067 * doc/Makefile.in: Regenerate.
6069 2002-02-10 Richard Henderson <rth@redhat.com>
6071 * doc/c-alpha.texi: New file.
6072 * doc/Makefile.am (CPU_DOCS): Add it.
6073 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
6075 2002-02-09 Richard Henderson <rth@redhat.com>
6077 * config/tc-alpha.c (O_samegp): New.
6078 (USER_RELOC_P): Include it.
6079 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
6080 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
6081 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
6082 (alpha_validate_fix): New.
6083 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
6085 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
6087 * doc/c-cris.texi: New.
6088 * doc/all.texi: @set CRIS.
6089 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
6090 Include c-cris.texi.
6091 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
6092 * doc/Makefile.in: Regenerate.
6094 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6096 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
6097 determine if a number is a sign-extended 32-bit number.
6098 (load_register): Use IS_SEXT_32BIT_NUM.
6099 (macro): Check if load/store macro handling is using a
6100 constant 32-bit address on 64-bit address systems, and if
6101 so optimize the generation of that address.
6103 2002-02-08 Richard Henderson <rth@redhat.com>
6105 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
6106 we've eliminated all foreign relocation types yet.
6107 (alpha_fix_adjustable): Likewise.
6109 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6111 Contribute sh64-elf.
6112 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6113 Stephen Clarke <Stephen.Clarke@st.com>
6114 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
6115 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
6116 * config/tc-sh.c (md_relax_table): Added default sizes for
6117 non-PC-relative UNDEF_MOVI, and relaxation sequences for
6118 MOVI_16, MOVI_32 and MOVI_48.
6119 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
6120 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
6122 (shmedia_md_estimate_size_before_relax): Remove redundant
6123 blocks. Set fragP->fr_var even if relaxation type unchanged.
6124 Retain UNDEF_MOVI until expression decays to number.
6125 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6126 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
6127 relocation types. Take fixP->fx_addnumber into account too.
6128 (shmedia_md_apply_fix): Likewise.
6129 (shmedia_md_convert_frag): Likewise.
6130 (shmedia_build_Mytes): Likewise.
6131 (sh64_consume_datalabel): Complain about nested datalabel.
6132 Support PIC relocs. Call sh_parse_name.
6133 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
6134 in tc-sh.h to SHmedia reloc types.
6135 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
6136 MOVI_GOTPC): New relaxation constants.
6137 (md_relax_table): Introduce relaxation directives for PIC-related
6139 (sh_PIC_related_p): Handle datalabel.
6140 (sh_check_fixup): Choose SH5 PIC relocations.
6141 (sh_cons_fix_new): Added BDF_RELOC_64.
6142 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
6143 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6144 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
6145 current ISA is SHmedia, get 7 bytes.
6146 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
6147 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
6149 * config/tc-sh64.c (shmedia_apply_fix): Rename to
6150 shmedia_apply_fix3 and make void.
6151 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
6152 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
6154 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
6155 * config/tc-sh64.h (md_parse_name): Take &c as argument.
6156 2001-03-14 DJ Delorie <dj@redhat.com>
6157 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6158 * doc/Makefile.in(CPU_DOCS): Ditto.
6159 * doc/c-sh64.texi: New file.
6160 * doc/as.texinfo: Add SH64 support.
6161 2001-03-13 DJ Delorie <dj@redhat.com>
6162 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6163 A_REUSE_PREV so that its purpose is more obvious.
6164 (shmedia_build_Mytes): Ditto.
6165 2001-03-07 DJ Delorie <dj@redhat.com>
6166 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6168 (sh64_vtable_inherit): Ditto.
6169 (strip_datalabels): New, strip "datalabel" from given line.
6170 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6172 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
6173 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6175 (shmedia_build_Mytes): ... to here.
6176 2001-03-06 DJ Delorie <dj@redhat.com>
6177 * config/tc-sh.c: Remove sh64-specific uaquad now that there
6179 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
6180 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6181 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6182 address by one in call to dwarf2_emit_insn.
6183 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
6184 Implement ".abi" pseudo and correct .cranges descriptors. Correct
6185 alignment handling broken by imported changes.
6186 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6187 (sh64_handle_align): Declare.
6188 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6189 (sh64_max_mem_for_rs_align_code): Declare.
6190 (enum sh64_isa_values): Moved here from tc-sh64.c.
6191 (md_do_align): Define.
6192 (sh64_do_align): Declare.
6193 (struct sh64_tc_frag_data): New.
6194 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
6196 (TC_FRAG_INIT): Change to set new datatype.
6197 (struct sh64_segment_info_type): Rename member
6198 last_flushed_location to last_contents_mark. All users changed.
6199 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6200 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6201 * config/tc-sh.c (md_pseudo_table): Add ".abi".
6202 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6203 of unsetting seen_insn.
6204 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6205 call sh64_update_contents_mark.
6206 (sh_handle_align): Remove HAVE_SH64-conditioned code.
6207 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6208 enum sh64_isa_values.
6209 (sh64_set_contents_type): Drop segT parameter. All callers changed.
6210 (emitting_crange): Boolean guard moved to file scope from function
6211 scope in sh64_set_contents_type.
6213 (sh64_update_contents_mark): New; most split out from
6214 sh64_flush_pending_output.
6215 (shmedia_md_end): Call sh64_update_contents_mark. Set
6216 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6217 (sh64_do_align): New function.
6218 (sh64_max_mem_for_rs_align_code): New function.
6219 (sh64_handle_align): Rename from shmedia_do_align. Make
6220 non-static. Add head comment. Emit zero bytes for n bytes modulo
6221 four. Change return-type to void.
6222 (shmedia_elf_new_section): Remove.
6223 (shmedia_md_assemble): Call sh64_update_contents_mark.
6224 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
6225 new frag. Call sh64_update_contents_mark after making the new
6227 (sh64_flush_pending_output): Just call sh64_update_contents_mark
6228 and sh_flush_pending_output.
6229 (sh64_flag_output): Also call md_flush_pending_output, but add
6230 condition on not emitting_crange.
6231 (sh64_tc_cons_fix_new): Remove.
6232 2001-01-12 Nick Clifton <nickc@redhat.com>
6233 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6234 alignment handling scheme imported from sourceware.
6235 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
6236 * config/tc-sh64.h (TARGET_FORMAT): Define.
6237 (sh64_target_format): Prototype.
6238 * config/tc-sh64.c (sh64_target_mach): New function.
6239 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
6240 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6241 zero_address_frag instead of copying the frag of the symbol.
6242 (shmedia_frob_file_before_adjust): Ditto.
6243 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6244 to valueT to remove signedness.
6245 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6246 headers to output_bfd. Do not evaluate symbols if final is false;
6248 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6249 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6250 to the current frag, call shmedia_md_convert_frag to emit fixups
6251 and make frag_wane neutralize the frag. Update comments.
6252 * config/tc-sh.c (md_convert_frag): Change caller of
6253 shmedia_md_convert_frag.
6254 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6255 * config/tc-sh64.h: Tweak comments and correct formatting.
6256 * config/tc-sh64.c: Ditto.
6257 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6258 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6259 for the no-relocation case.
6260 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6261 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6263 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6265 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6266 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6268 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6270 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6271 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6272 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6273 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6274 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6275 if reloc is emitted.
6276 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6277 New options plus bugfixes.
6278 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6280 (md_parse_option): Handle new options.
6281 (md_show_usage): Add blurb for new options.
6282 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6283 (sh64_expand, sh64_pt32): New variables.
6284 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6285 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6286 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6287 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6288 <resolved previously-pc-relative relocs>: Handle
6289 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6290 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6291 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6292 points to SHcompact code.
6293 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6294 SH64PCREL16)>: Check that ISA of what operand points at and
6295 PTA/PTB matches, or emit error.
6296 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6297 SHMEDIA_BFD_RELOC_PT.
6298 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6300 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6301 condition for MOVI expansion.
6302 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6303 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6305 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6307 (sh64_target_format): Error-check setting of sh64_pt32 and
6308 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6309 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6310 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6311 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6312 * config/tc-sh64.c: Improve comments.
6313 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6314 not say the linker will check correctness of PTA/PTB expansion.
6315 (shmedia_md_end): Make non-static.
6316 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6318 * config/tc-sh.c (sh_finalize): Remove.
6319 * config/tc-sh.h (md_end): Do not define.
6320 Remove prototype for sh_finalize.
6321 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6322 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6323 sh64_section_data container when storing section type in tdata
6324 field in elf_section_data.
6325 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6327 * Makefile.am: Update dependencies.
6328 * Makefile.in: Regenerate.
6329 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6330 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6331 dwarf2_emit_insn call with test on debug_type.
6332 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6333 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6334 CRT_SH5_ISA32 sticky for 64-bit.
6335 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6336 Generate .crange sections when switching ISA mode or emitting
6337 constants in same section as code.
6338 * config/tc-sh64.c: Reformat structure definitions.
6339 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6341 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6342 to emit a .cranges descriptor when contents type changes. Only
6343 emit error if changing contents type and -no-mix is in effect.
6344 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6345 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6346 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6347 sh64_flush_last_crange over sections.
6348 When checking main symbol of datalabel symbol, check for
6349 STO_SH5_ISA32, not ISA type of section in definition.
6350 (shmedia_frob_file_before_adjust): Check main symbol for
6351 STO_SH5_ISA32; don't check ISA type of section in definition.
6352 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6353 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6354 .cranges entries have been output.
6355 (shmedia_elf_new_section): Just call md_flush_pending_output.
6356 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6357 fix. Do not set tc_segment_info_data.in_code for section. Call
6358 sh64_set_contents_type for SHmedia code.
6359 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6360 false. Call md_flush_pending_output.
6361 (sh64_target_format): Check that -no-mix and
6362 -shcompact-const-crange are used in sane combination with other
6364 (shmedia_md_pcrel_from_section): Check type of fix for how to
6366 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6367 not ISA type of section in definition.
6368 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6369 hold contents-type state.
6370 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6371 (sh64_flush_pending_output): Declare.
6372 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6373 (sh64_tc_cons_fix_new): Declare.
6374 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6375 call sh64_flag_output.
6376 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6377 call sh64_set_contents_type to mark SHcompact code and set
6379 (md_longopts): New options "-no-mix" and
6380 "-shcompact-const-crange".
6381 (md_parse_option): Handle new options.
6382 (md_show_usage): Add blurb for new options.
6383 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6384 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6385 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6386 (sh64_last_insn_frag): New.
6387 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6388 to get frag for insn opcode for generating fixups; do not assume it
6390 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6392 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6394 (TC_FRAG_TYPE): Define as fragS *.
6395 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6396 (sh64_last_insn_frag): Declare.
6397 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6398 not == NULL before dereferencing.
6399 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6400 Get rid of BFD section flag and EF_SH64_ABI64.
6401 * config/tc-sh64.c (shmedia_frob_section_type): Use
6402 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6403 communicate the section as containing SHmedia code. Describe why.
6404 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6405 EF_SH64 regardless of ABI.
6406 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6407 in error message. Handle resolved expressions for
6408 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6409 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6410 (shmedia_check_limits): Handle BFD_RELOC_64.
6411 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6412 a STO_SH5_ISA32 symbol, only the BFD value.
6413 2000-12-11 Ben Elliston <bje@redhat.com>
6414 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6415 dwarf2_generate_asm_lineno.
6416 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6417 Handle PC-relative MOVI expansions with assembler relaxation.
6418 Generate PC-relative relocs from 16-bit PC-relative expressions.
6419 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6420 (shmedia_md_pcrel_from_section): ...here.
6421 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6422 turned completely resolved. Adjust relocation type for 16-bit
6423 immediate operands that has turned PC-relative. Adjust back for
6424 MD_PCREL_FROM_SECTION being applied twice.
6425 (shmedia_md_convert_frag): Always emit reloc for expression with
6426 global or weak symbol. Handle relaxation result for PC-relative
6428 (shmedia_md_estimate_size_before_relax): An expression with a weak
6429 or global symbol can not be relaxed. Break out tests for
6430 relaxable symbol into variable sym_relaxable.
6431 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6432 UNDEF_MOVI)>: Break out any PC-relative expression and change
6434 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6436 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6437 MOVI expansion. If X_op_symbol of the immediate expression is
6438 set, make an expression symbol for the argument to frag_var.
6439 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6441 (END): Adjust for new relaxations.
6442 (md_relax_table): Add entries for new relaxations.
6443 2000-12-07 Ben Elliston <bje@redhat.com>
6444 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6445 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6446 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6447 SHORI operand offsets in PT/PTA/PTB expansions.
6448 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6449 Implement DataLabel semantics.
6450 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6451 shmedia_frob_file_before_adjust.
6452 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6453 (DATALABEL_SUFFIX): Define.
6454 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6455 symbol list to update "datalabel" symbols to their main symbol
6457 (shmedia_frob_file_before_adjust): New.
6458 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6459 undefined and set STT_DATALABEL.
6460 (sh64_frob_label): Initialize TC symbol field.
6461 (sh64_consume_datalabel): Actually implement semantics. New
6462 parameter operandf, call it instead of expression.
6463 (sh64_exclude_symbol): New.
6464 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6465 to sh64_consume_datalabel.
6466 (tc_symbol_new_hook): Define to tc_frob_symbol.
6467 (TC_SYMFIELD_TYPE): Define to symbolS *.
6468 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6469 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6470 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6472 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6473 generating dwarf2 debug information.
6474 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6475 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6476 elf64-sh64 for the 64-bit ABI.
6477 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6479 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6480 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6482 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6483 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6484 (enum sh64_abi_values): New type.
6485 (enum sh64_isa_values): New type.
6486 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6487 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6488 (sh64_abi): Replace shmedia_64.
6489 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6490 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6491 (s_sh64_mode): Check validity for this target.
6492 (sh64_target_format): Initialize defaults for ISA and ABI.
6493 Fallback to old object format if no SH64 ISA or ABI has been
6495 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6496 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6497 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6498 * config/tc-sh64.h: Fix typo in comment.
6499 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6500 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6501 <PT fixups for absolute values>: Size will be longest, not
6503 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6504 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6505 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6506 and l1 to hold lowercase of two first characters. Change all
6507 remaining TO_LOWER to tolower.
6508 * config/tc-sh64.c (TO_LOWER): Delete.
6509 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6510 (md_parse_name): Define.
6511 (sh64_consume_datalabel): Declare.
6512 (DOLLAR_DOT): Define.
6513 * config/tc-sh64.c (shmedia_parse_exp): New.
6514 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6515 (shmedia_parse_reg): Remove const from src
6517 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6518 (shmedia_md_assemble): Ditto for op_end variable.
6519 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6520 Use shmedia_parse_exp, not parse_exp.
6521 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6522 parameter. All callers changed.
6523 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6525 (shmedia_parse_reg): Put first two character in local variables.
6526 Use tolower, not TO_LOWER. If no register is found and argtype
6527 indicates a control register, scan shmedia_creg_table
6529 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6530 * Makefile.am (CPU_TYPES): Add sh64.
6531 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6532 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6533 Regenerate dependencies.
6534 * Makefile.in: Regenerate.
6535 * configure.in: Add support for sh64-*-elf*.
6536 * configure: Regenerate.
6537 * config/tc-sh64.h: New.
6538 * config/tc-sh64.c: New.
6539 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6540 .mode, .isa and .uaquad.
6541 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6542 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6543 [HAVE_SH64] (END): Define as 10.
6544 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6545 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6547 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6548 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6549 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6550 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6552 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6553 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6554 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6555 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6556 SHmedia instructions. Handle state-change after switching to
6558 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6559 (md_parse_option) [HAVE_SH64]: Parse new options.
6560 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6561 (md_convert_frag) [HAVE_SH64] <default>: Call
6562 shmedia_md_convert_frag instead of abort.
6563 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6564 BFD_RELOC_SH_SHMEDIA_CODE.
6565 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6566 SHcompact or SHmedia code.
6567 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6568 shmedia_md_apply_fix instead of abort.
6569 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6570 result from calling shmedia_md_estimate_size_before_relax instead
6572 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6574 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6575 shmedia_init_reloc and do nothing more if it returns non-zero.
6576 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6577 * po/POTFILES.in: Regenerate.
6578 * po/gas.pot: Regenerate.
6580 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6582 * config/tc-sh.c (parse_at): Install the correct version of
6585 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6586 assume fixP->fx_subsy is non-NULL.
6588 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6590 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6591 A_DISP_PC_ABS, and adjust it by -4.
6592 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6594 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6595 the operand type is not A_DISP_PC_ABS.
6597 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6599 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6600 common and weak symbols. Handle common and weak symbols as
6601 undefined symbols with regards to GREG handling and merging.
6602 (mmix_frob_file): Ditto.
6604 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6606 * configure.in (hppa-*-netbsd*): New target.
6607 * configure: Regenerate.
6608 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6610 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6612 * config/tc-v850.c: Add missing prototypes amd use old-style
6613 function definitions.
6614 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6615 (sdata_section tdata_section, zdata_section, sbss_section,
6616 tbss_section, zbss_section, rosdata_section, rozdata_section,
6617 scommon_section, tcommon_section, zcommon_section,
6618 call_table_data_section, call_table_text_section): Delete.
6619 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6620 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6621 v850_call_table_data, v850_call_table_text): Delete.
6622 (struct v850_seg_entry): New.
6623 (v850_seg_table): New.
6624 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6625 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6626 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6627 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6630 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6631 recording of alignment.
6632 (md_pseudo_table): Use v850_seg.
6633 (md_begin): Don't init .call_table_data and .call_table_text here.
6634 Set v850_seg_table bss entry.
6636 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6638 Support on-demand global register allocation by passing on
6639 base-plus-offset relocs to the linker.
6640 * config/tc-mmix.c: Tweak and fix typos in comments.
6641 (allocate_undefined_gregs_in_linker): New variable.
6642 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6643 (md_longopts): Add --linker-allocated-gregs.
6644 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6645 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6646 (md_show_usage): Update text for -x. Add text for
6647 --linker-allocated-gregs.
6648 (tc_gen_reloc): Derive default value for addend from val and
6649 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6650 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6651 GREG if allocate_undefined_gregs_in_linker.
6652 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6653 --linker-allocated-gregs.
6654 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6655 --linker-allocated-gregs. Mention that it's implied by -x.
6656 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6657 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6659 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6661 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6663 * Makefile.am: Run "make dep-am"
6664 * Makefile.in: Regenerate.
6666 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6668 * config/tc-or32.c: New file.
6669 * config/tc-or32.h: New file.
6670 * configure.in: Add support for or32 targets.
6671 * configure: Regenerate.
6672 * config/obj-coff.c: Add support for or32 targets.
6673 * config/obj-coff.h: Add support for or32 targets.
6674 * Makefile.am: Add support for or32 targets.
6675 * Makefile.in: Regenerate.
6676 * NEWS: Mention support for OpenRISC.
6677 * doc/Makefile.in: Regenerate.
6678 * po/POTFILES.in: Regenerate.
6679 * po/gas.pot: Regenerate.
6681 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6683 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6686 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6688 * config/tc-mips.c (tc_gen_reloc): Arrange for
6689 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6690 their LO16 parts, even for ELF.
6692 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6694 * config/tc-i386.c: Protect definitions of true and false
6697 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6699 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6700 made because of .weak, if they are neither defined nor used in any
6703 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6705 * configure: Regenerated.
6707 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6709 * doc/Makefile.am (install): Depend on install-info.
6710 * doc/Makefile.in: Regenerate.
6712 2002-01-26 Nick Clifton <nick@redhat.com>
6714 * po/fr.po: Updated version
6716 2002-01-24 Kazu Hirata <kazu@hxi.com>
6718 * config/tc-h8300.c (check_operand): Don't print a warning
6719 when a valid 24-bit address is given to a 16-bit address
6722 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6724 * config/tc-sh.c (sh_elf_suffix): Removed.
6725 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6726 sh_end_of_match, sh_parse_name): New functions.
6727 (sh_elf_cons): Simplify.
6728 (parse_exp): Reject misplaced PIC operands.
6729 (md_undefined_symbol): Simplify.
6730 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6731 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6732 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6733 Complain if subsy remains at the end.
6734 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6735 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6737 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6739 * config/tc-mn10300.c (xr_registers): Move `pc'...
6740 (other_registers): ... here.
6742 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6744 * Makefile.am: Run "make dep-am".
6745 * Makefile.in: Regenerate.
6746 * gas/po/POTFILES.in: Regenerate.
6748 2002-01-21 DJ Delorie <dj@redhat.com>
6750 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6751 stabstr_name allocation permanent, as it will be referenced from
6754 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6756 * configure.in (ia64-*-netbsd*): New target.
6757 * configure: Regenerate.
6759 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6761 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6763 <Detailed description, ARM options>: Ditto.
6764 * doc/c-arm.texi (ARM Options): Ditto.
6766 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6768 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6769 do_mia, do_mar and do_mra respectively.
6770 (do_mav_*): Renamed from do_c_*.
6771 (mav_reg_required_here, mav_parse_offset): Renamed from
6772 cirrus_reg_required_here and cirrus_parse_offset respectively.
6773 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6775 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6776 Keith Walker <keith.walker@arm.com>
6778 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6779 (insns): Add pattern for bxj instruction.
6780 (do_bxj): New function.
6781 (arm_cpus): Add arm926ej.
6782 (arm_archs): Add armv5tej.
6784 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6786 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6788 2002-01-19 Keith Walker <keith.walker@arm.com>
6790 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6792 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6794 * NEWS: Mention new ARM command-line options and VFP support.
6796 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6798 (ARM_CEXT_MAVERICK): Similarly.
6799 (ARM_ANY): Now means any core instruction.
6800 (CPU_DEFAULT): Default to ARM_ANY.
6801 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6802 (pic_code): Declare for all object types. Make type int.
6803 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6804 (march_fpu_opt, mfpu_opt): Declare.
6805 (md_longopts): Tidy up conditional definitions.
6806 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6807 (arm_long_opts): New tables.
6808 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6809 (arm_parse_extension): New function.
6810 (md_parse_option): Rewrite using new table-driven system.
6811 (md_show_usage): Use new table-driven system.
6812 (md_begin): Calculate cpu_variant from command line option data.
6813 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6814 command-line options.
6815 * doc/c-arm.texi: Likewise.
6817 2002-01-18 Andreas Jaeger <aj@suse.de>
6819 * as.c (parse_args): Update year.
6821 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6823 * config/tc-tic54x.c (encode_address): Add a more informative
6824 warning about incorrect syntax.
6826 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6828 * po/gas.pot: Regenerate.
6830 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6832 * macro.c (get_any_string): Add no-c-format comment to prevent
6833 confusion when translating string.
6834 * gasp.c (get_any_string): Add no-c-format comment to prevent
6835 confusion when translating string.
6837 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6838 Johannes Stezenbach <js@convergence.de>
6839 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6840 matched before the shorter ones.
6841 (my_getSmallParser): Fix handling of nested parentheses in
6842 percent_op's. Code cleanup.
6843 (my_getPercentOp): New function, code from my_getSmallParser.
6844 (my_getSmallExpression): Fix handling of closing parentheses.
6845 Code cleanup. Better comments.
6847 2002-01-16 Nick Clifton <nickc@redhat.com>
6849 po/tr.po: New file: Turkish translation.
6850 configure.in (LINGUAS): Add "tr".
6851 configure: Regenerate.
6853 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6855 Support for VFP instructions
6856 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6857 (cp_address_required_here): New argument wb_ok. When false, do not
6858 accept write-back forms of addressing. Change all callers.
6859 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6860 (FPU_VFP_EXT_V2): Define.
6861 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6862 Define in terms of above.
6863 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6864 (vfp_reg): New struct.
6865 (vfp_regs): New array of registers.
6866 (insns): Add VFP instructions.
6867 (sn_table): New array of VFP single-precision register names.
6868 (dn_table): New array of VFP double-precision register names.
6869 (all_reg_maps): Add the new register tables.
6870 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6871 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6872 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6873 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6874 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6875 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6876 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6877 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6878 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6879 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6880 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6881 (do_vfp_sp_dp_cvt): New functions.
6882 (md_begin): Set soft-float flag for appropriate VFP work.
6883 (md_atof): Handle VFP-format doubles.
6884 (md_parse_option): Handle VFP command-line options.
6885 (md_show_usage): Display VFP command-line options.
6887 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6889 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6890 various command line options.
6892 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6894 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6896 (xstormy16_md_apply_fix3): Do not return a value.
6898 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6900 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6901 the -EL/-EB option that matches the target's endianness.
6902 (md_parse_option): Likewise.
6904 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6906 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6907 is not dependent on ARM_BI_ENDIAN.
6909 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6911 * tc-arm.c (all error messages): Normalize capitalization of messages.
6913 * tc-arm.h (md_operand): Delete define.
6914 * tc-arm.c (in_my_get_expression): New static variable.
6915 (my_get_expression): Set and clear it.
6916 (md_operand): New function. If called from my_get_expression
6917 put the error in inst.error.
6918 (output_inst): Now takes argument of instruction being assembled.
6919 Print it out with any error message.
6920 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6922 (end_of_line): Don't update inst.error if it is already set.
6924 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6926 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6927 op that can be translated into a mvn instruction.
6929 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6931 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6932 setting default md.flags.
6933 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6934 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6935 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6936 for 32 bit unwind info blocks.
6937 (generate_unwind_image): Add support for different types
6938 of unwind images (32 bits and/or big-endian).
6939 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6940 (ia64_target_format): Add support for hpux target formats.
6941 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6942 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6943 SHT_FINI_ARRAY elf section types.
6945 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6947 * tc-arm.c (struct reg_entry): Move before prototypes.
6948 (int_register, cp_register, fp_register): Delete.
6949 (reg_table): Delete. Replaced with ...
6950 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6951 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6952 (mav_dspsc_table): ... one table per register set.
6953 (arm_reg_hsh): Delete.
6954 (struct reg_map): New structure.
6955 (all_reg_maps): New array.
6956 (enum arm_reg_type): New enums.
6957 (build_reg_hsh): New function.
6958 (insert_reg_alias): Use hash table passed by caller. Adjust all
6960 (create_register_alias): New function, split out from ...
6961 (md_assemble): ... here.
6962 (md_begin): Build new register hash tables.
6963 (arm_reg_parse): New argument for the hash table to search. Adjust all
6965 (arm_reg_parse_any): New function.
6966 (co_proc_number): Look up the processor number in the processor hash
6968 (cirrus_regtype): Delete.
6969 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6970 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6971 (ARM_EXT_MAVERICKsc_register): Delete.
6972 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6973 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6975 (do_c_triple_4, do_c_triple_5): Delete.
6976 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6977 (do_c_quad_6): Delete.
6978 (do_c_quad_6[ab]): New functions.
6979 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6980 arguments to use new register parsing methods.
6981 (cirrus_reg_required_here): Likewise.
6982 (insns): Reclassify cirrus maverick worker functions.
6983 (cirrus_valid_reg): Delete.
6985 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6987 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6988 (sh*-*-netbsdelf*): New target.
6989 * configure: Regenerate.
6990 * tc-sh.h: Update copyright years.
6991 (TARGET_FORMAT): Add version for TE_NetBSD.
6993 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6995 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6998 2002-01-06 Alan Modra <amodra@bigpond.net.au>
7000 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
7001 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
7003 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
7005 * tc-mips.c (mips_cprestore_valid): New flag.
7006 (mips_frame_reg_valid): New flag.
7007 (macro) [M_JAL_2]: Check both flags.
7008 [M_JAL_A]: Likewise.
7009 (s_cprestore): Set mips_cprestore_valid.
7010 (tc_get_register): If setting mips_frame_reg, set
7011 mips_frame_reg_valid and clear mips_cprestore_valid.
7012 (s_mips_ent): Clear both flags.
7013 (s_mips_end): Clear both flags.
7015 2002-01-05 Alan Modra <amodra@bigpond.net.au>
7017 * write.c (write_object_file): Make use of bfd_section_list_remove.
7018 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
7019 * config/tc-mmix.c (mmix_frob_file): Likewise.
7021 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7023 * configure.in (i386-*-netbsdelf*): Collapse target into...
7024 (i386-*-netbsd*): ...this. Add support for x86-64.
7025 * configure: Regenerated.
7027 2002-01-03 matthew green <mrg@redhat.com>
7029 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
7031 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
7033 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
7036 For older changes see ChangeLog-0001
7042 version-control: never