1 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
5 * config/tc-sh.h: Likewise.
6 * config/tc-sh64.c: Likewise.
7 * config/tc-sh64.h: Likewise.
9 2003-10-08 Dave Brolley <brolley@redhat.com>
11 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
12 (fr550_check_acc_range): New function.
13 (md_assemble): Call fr550_check_acc_range.
15 2003-10-08 Dave Brolley <brolley@redhat.com>
17 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
18 (md_parse_option): Handle OPTION_CPU==fr550.
19 (md_show_usage): Document fr550.
21 2003-10-08 Philippe De Muyter <phdm@macqel.be>
23 * as.c (use_gnu_debug_info_extensions) : New variable.
24 (parse_args) : Accept new --gstabs+ option, and set
25 `use_gnu_debug_info_extensions'.
26 (show_usage) : Document --gstabs+ option.
27 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
28 * stabs.c (stabs_generate_asm_file) : If
29 `use_gnu_debug_info_extensions' is set, add the compilation
30 directory to the stabs debug info.
31 * doc/as.texinfo : Document --gstabs+ option.
32 * NEWS: Mention new feature.
34 2003-10-06 Matt Thomas <matt@3am-software.com>
36 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
39 tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
40 register names. Change all "defined (TE_LINUX)" to
41 "(defined (TE_LINUX) || defined (TE_NETBSD))".
43 tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
44 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
46 2003-10-06 Robert Millan <robertmh@gnu.org>
48 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
49 * configure: Regenerate.
51 2003-10-05 Nick Clifton <nickc@redhat.com>
53 * as.c (parse_args): Revert patch to change handling of -f
54 option. Its behaviour is mandated by the POSIX 2 spec.
56 2003-10-04 Christian Groessler <chris@groessler.org>
58 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
59 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
60 (md_pcrel_from): This function now gets called. Supply return
63 2003-10-04 Nick Clifton <nickc@redhat.com>
65 * as.c: Convert to ISO C90.
67 2003-10-04 Nick Clifton <nickc@redhat.com>
69 * as.c (std_shortopts): Remove 'f'.
70 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
71 acecpted as an alias for -f.
73 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
75 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
76 Make 'r' mean readonly data.
78 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
80 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
81 Unbreak overflow checks.
83 2003-10-01 Chris Demetriou <cgd@broadcom.com>
85 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
87 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
89 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
91 (load_register): Likewise.
94 2003-09-30 Chris Demetriou <cgd@broadcom.com>
96 * config/tc-mips.c (mips_ip): Capitalize first word of
97 existing condition code warning, and add condition code
98 warnings for .ps instructions, and for bc1any[24][tf].
100 2003-09-30 Chris Demetriou <cgd@broadcom.com>
102 * NEWS: Mention support for MIPS64 Release 2.
104 2003-09-30 Chris Demetriou <cgd@broadcom.com>
106 * NEWS: Add an indication of the cutoff for 2.14.
108 2003-09-30 Chris Demetriou <cgd@broadcom.com>
110 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
111 * configure: Regenerate.
112 * config/tc-mips.c (imm2_expr): New variable.
113 (md_assemble, mips16_ip): Initialize imm2_expr.
114 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
115 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
116 (macro): Handle M_DEXT and M_DINS.
117 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
119 (OPTION_MIPS64R2): New define.
120 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
121 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
122 (md_parse_option): Handle OPTION_MIPS64R2.
123 (s_mipsset): Handle setting "mips64r2" ISA.
124 (mips_cpu_info_table): Add mips64r2.
125 (md_show_usage): Document -mips64r2 option.
126 * doc/as.texinfo: Docuemnt -mips64r2 option.
127 * doc/c-mips.texi: Likewise.
129 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
131 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
133 2003-09-26 Matt Thomas <matt@3am-software.com>
135 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
136 (OPTION_PIC): Define.
137 (md_longopts): Add "pic" option.
138 (md_parse_option): Change 'K' to OPTION_PIC.
140 2003-09-23 Alan Modra <alan@modra.org>
142 * config/obj-elf.c (obj_elf_change_section): Adjust for
143 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
144 to be set when defaults are not. Don't set attr from defaults if
147 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
149 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
150 truncate values which won't fit im 32 bits.
151 (load_register): Likewise.
154 2003-09-17 Dmitry Diky <diwil@mail.ru>
156 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
157 (msp430_operands): Remove redundant l2[16] within switch-case.
159 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
161 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
162 * configure: Regenerate.
164 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
166 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
167 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
168 the function prototype.
169 (load_register): Likewise. Simplify the checks for sign-extended
171 (macro): Likewise. Fix code generation for 64-bit address constants
172 outside the 32-bit compatibility space. Adjust
173 macro_build_ldst_constoffset calls.
174 (s_cprestore): Adjust macro_build_ldst_constoffset call.
176 2003-09-11 Bob Wilson <bob.wilson@acm.org>
178 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
179 literal_syms): New global variables.
180 (xtensa_define_label, add_target_symbol, xtensa_find_label,
181 map_over_defined_symbols, is_loop_target_label,
182 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
183 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
184 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
185 from insn_labels to saved_insn_labels when entering a literal region.
186 (xtensa_end_directive): Call md_flush_pending_output. Restore
187 insn_labels list when leaving a literal region.
188 (xtensa_literal_position): Call xtensa_clear_insn_labels.
189 (xtensa_literal_pseudo): Add check to disallow .literal inside a
190 literal region. Move insn_labels to saved_insn_labels and then restore
192 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
193 code to set is_loop_target or is_branch_target flag on the symbol
194 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
195 (xtensa_add_literal_sym, xtensa_add_insn_label,
196 xtensa_clear_insn_labels): New functions.
197 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
198 loops_ok argument. Rewrite to use insn_labels list instead of
199 calling xtensa_find_label and to check the is_loop_target flag on
200 symbols when loops_ok is false.
201 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
202 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
203 call to xtensa_move_labels. Propagate is_branch_target and
204 is_loop_target flags from symbols to frags.
205 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
206 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
207 aligning a loop instruction. Adjust call to xtensa_move_labels for
208 aligning entry instructions. Add call to xtensa_clear_insn_labels.
209 (xtensa_end): Remove call to xtensa_mark_target_fragments.
210 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
211 code to use new literal_syms list.
212 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
213 is_branch_target flags.
215 2003-09-09 Bob Wilson <bob.wilson@acm.org>
217 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
218 "move_labels" argument and corresponding call to xtensa_move_labels.
219 (md_assemble): Add a separate call to xtensa_move_labels and remove
220 argument for call to xtensa_mark_literal_pool_location.
221 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
222 calls to xtensa_mark_literal_pool_location.
223 (xtensa_create_local_symbol): Delete and inline the code into...
224 (xtensa_create_literal_symbol): ...here.
225 (xtensa_frob_label): Combine conditionals.
226 (expression_maybe_register, xtensa_symbol_new_hook,
227 fix_new_exp_in_seg): Use symbol_get_tc.
229 2003-09-09 Bob Wilson <bob.wilson@acm.org>
231 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
232 combining identical literals.
233 (expression_maybe_register): Remove call to find_lit_sym_translation.
234 (is_duplicate_expression, cache_literal, is_duplicate_literal,
235 add_lit_sym_translation, find_lit_sym_translation): Delete.
237 2003-09-07 Nick Clifton <nickc@redhat.com>
239 * doc/as.texinfo (Comments): Comment character for PPC is #.
241 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
244 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
247 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
249 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
251 2003-09-04 Nick Clifton <nickc@redhat.com>
253 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
254 (md_pseudo_table): Add .v850e1 pseudo op.
255 (md_show_usage): Document -mv850e1 switch.
256 (md_parse_option): Accept -mv850e1 switch.
257 (md_begin): Allow TARGET_CPU to be v850e1.
258 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
259 * NEWS: Mention support for v850e1.
261 2003-09-04 Alan Modra <amodra@bigpond.net.au>
263 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
264 ppc_cpu selection rather than replacing.
265 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
266 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
268 2003-09-03 Robert Millan <robertmh@gnu.org>
270 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
272 * configure: Regenerate.
274 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
276 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
277 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
278 Specify AC_CONFIG_AUX_DIR.
279 * aclocal.m4: Regenerated with aclocal-1.7.
280 * configure: Regenerated with autoconf 2.57.
281 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
283 2003-08-29 Jakub Jelinek <jakub@redhat.com>
285 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
286 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
287 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
288 nor tc_cfi_emit_pcrel_expr are defined.
289 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
290 DIFF_EXPR_OK is not defined.
291 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
292 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
293 tc_cfi_emit_pcrel_expr): Define.
294 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
295 sparc_cfi_emit_pcrel_expr): New prototypes.
296 (sparc_cie_data_alignment): New decl.
297 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
298 * config/tc-sparc.c: Include dw2gencfi.h.
299 (sparc_cie_data_alignment): New variable.
300 (md_begin): Initialize it.
301 (sparc_cfi_frame_initial_instructions): New function.
302 (sparc_regname_to_dw2regnum): Likewise.
303 (sparc_cfi_emit_pcrel_expr): Likewise.
304 * doc/as.texinfo: Document .cfi_window_save.
306 * config/tc-sparc.c (s_common): Cast last argument to long and
307 change format string to shut up warning.
309 2003-08-25 Jason Eckhardt <jle@rice.edu>
311 * doc/c-i860.texi: Update text about relocatable address expansions.
313 2003-08-24 Jason Eckhardt <jle@rice.edu>
315 * config/tc-i860.c (md_assemble): Use isrc2 from the original
316 instruction when expanding E_ADDR.
318 2003-08-21 Nick Clifton <nickc@redhat.com>
320 * po/tr.po: Updated Turkish translation.
322 2003-08-20 Alan Modra <amodra@bigpond.net.au>
324 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
325 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
327 2003-08-19 Nick Clifton <nickc@redhat.com>
329 * config/tc-arm.c (cp_address_required_here): Add code to handle
330 unindexed addressing mode.
332 2003-08-19 Alan Modra <amodra@bigpond.net.au>
334 * config/tc-ppc.c (md_parse_option): Handle -m440.
335 (md_show_usage): Add -m440.
336 (md_apply_fix3): Warning fix.
337 * doc/c-ppc.texi: Document -m440.
339 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
341 * read.c (s_print): Check for NULL.
343 2003-08-16 Alan Modra <amodra@bigpond.net.au>
345 * write.c (fixup_segment): When handling an expression involving
346 the subtraction of two symbols in the same segment, don't clear
347 fx_pcrel except for TC_M68K.
349 2003-08-14 Alan Modra <amodra@bigpond.net.au>
351 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
353 * config/tc-i386.c: Likewise.
354 (RELOC_ENUM): Don't define. Replace throughout with enum.
356 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
357 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
359 * Makefile.in: Regenerate.
361 2003-08-08 Andreas Schwab <schwab@suse.de>
363 * config/tc-m68k.h (TARGET_USE_CFIPOP)
364 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
365 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
367 * config/tc-m68k.c: Include "dw2gencfi.h".
368 (tc_m68k_regname_to_dw2regnum)
369 (tc_m68k_frame_initial_instructions): New functions.
371 2003-08-08 Dmitry Diky <diwil@mail.ru>
373 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
374 according to gcc order.
376 2003-08-07 Jason Eckhardt <jle@rice.edu>
378 * config/tc-i860.c (i860_check_label): New function.
379 * config/tc-i860.h (i860_check_label): New prototype.
380 (tc_check_label): Define macro as i860_check_label.
382 2003-08-06 Jason Eckhardt <jle@rice.edu>
384 * config/tc-i860.c (s_align_wrapper): New function and prototype.
385 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
386 surrounding OBJ_ELF ifdef, and re-format slightly.
387 * doc/c-i860.texi: Document the special .align syntax available
390 2003-08-06 Jason Eckhardt <jle@rice.edu>
392 * config/tc-i860.c (i860_handle_align): New function.
393 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
394 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
396 2003-08-06 Jason Eckhardt <jle@rice.edu>
398 * config/tc-i860.c (i860_process_insn): Check that instructions
399 with their dual-bit set are 8-byte aligned.
401 2003-08-06 Nick Clifton <nickc@redhat.com>
403 * po/fr.po: Updated French translation.
405 2003-08-05 Jason Eckhardt <jle@rice.edu>
407 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
408 setting during flop argument parsing. Instead, do it after
409 instruction is fully parsed.
411 2003-08-05 Jason Eckhardt <jle@rice.edu>
413 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
414 directives are only available in Intel syntax mode.
416 2003-08-05 Jason Eckhardt <jle@rice.edu>
418 * config/tc-i860.c (s_dual): Accept .dual directive only in
419 the Intel syntax mode.
420 (s_enddual): Likewise for .enddual.
421 (s_atmp): Likewise for .atmp.
423 2003-08-04 Alan Modra <amodra@bigpond.net.au>
425 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
426 for memory operands. Pass the full operand_string to i386_index_check.
428 2003-08-01 Jason Eckhardt <jle@rice.edu>
430 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
431 (target_intel_syntax): Declare variable.
432 (OPTION_INTEL_SYNTAX): Declare macro.
433 (md_longopts): Add option -mintel-syntax.
434 (md_parse_option): Set target_intel_syntax.
435 (md_show_usage): Add -mintel-syntax usage.
436 (md_begin): Set reg_prefix based on target_intel_syntax.
437 (i860_process_insn): Skip register prefix only if there is one.
438 Parse relocatable expressions in either Intel or AT&T syntax based
439 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
440 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
441 about the differences in syntax.
443 2003-08-01 Dmitry Diky <diwil@mail.ru>
445 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
448 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
450 * config/tc-sh.c (md_assemble): For branches, check & update
453 2003-07-30 Jason Eckhardt <jle@rice.edu>
455 * config/tc-i860.c: Convert to ISO C90.
457 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
459 * read.c (s_space): Revert 2003-07-28 change.
461 2003-07-30 Alan Modra <amodra@bigpond.net.au>
463 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
465 2003-07-29 Alan Modra <amodra@bigpond.net.au>
467 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
469 2003-07-29 Jakub Jelinek <jakub@redhat.com>
471 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
473 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
475 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
477 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
479 * read.c (s_space): Don't warn about .space 0.
481 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
483 * config/tc-mips.c (mips_flag_pdr): Define.
484 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
485 (s_mips_end) [OBJ_ELF]: Likewise.
486 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
487 (md_parse_option) [OBJ_ELF]: Handle them.
488 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
490 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
491 * doc/as.texinfo (Overview) [MIPS]: Likewise.
493 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
495 * config/obj-elf.c (obj_elf_change_section): Update
496 elf_section_type and elf_section_flags only when they are
499 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
501 * config/obj-elf.c (obj_elf_change_section): Always set section
504 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
506 * config/obj-elf.c (special_sections): Removed.
507 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
508 elf_section_type and elf_section_flags.
509 (elf_frob_file): Set SHT_GROUP.
511 * config/obj-elf.h (obj_sec_set_private_data): New.
513 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
514 * config/tc-ia64.h: Likewise.
515 * config/tc-m32r.h: Likewise.
516 * config/tc-m68hc11.h: Likewise.
517 * config/tc-mcore.h: Likewise.
518 * config/tc-mips.h: Likewise.
519 * config/tc-ppc.h: Likewise.
520 * config/tc-sh64.h: Likewise.
521 * config/tc-v850.h: Likewise.
522 * config/tc-xtensa.h: Likewise.
524 * config/tc-v850.h (SHF_V850_GPREL): Removed.
525 (SHF_V850_EPREL): Likewise.
526 (SHF_V850_R0REL): Likewise.
528 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
531 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
533 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
534 debugging symbols so that we handle page memory correctly.
536 2003-07-24 Nick Clifton <nickc@redhat.com>
538 * po/fr.po: Updated French translation.
540 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
542 * config/tc-arm.c (arm_archs): Add iwmmxt.
544 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
546 * read.c (do_parse_cons_expression): Mark nbytes unused to
549 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
551 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
554 * config/tc-h8300.c (md_assemble): Make sure characters after
555 slash and dot are lower-case.
557 2003-07-17 Nick Clifton <nickc@redhat.com>
559 * po/es.po: New Spanish translation.
560 * po/tr.po: New Turkish translation.
561 * po/opcodes.pot: Regenerate.
563 2003-07-16 Alan Modra <amodra@bigpond.net.au>
565 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
566 (generic_dwarf2_emit_offset): Don't define function when
567 TC__DWARF2_EMIT_OFFSET is defined.
569 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
571 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
572 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
573 * doc/c-mips.texi: Document -march=rm9000.
575 2003-07-15 Alan Modra <amodra@bigpond.net.au>
577 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
578 only for V850_OPERAND_DISP operands.
580 2003-07-15 Alan Modra <amodra@bigpond.net.au>
582 * frags.c (frag_more): Move segment checks to..
583 (frag_alloc_check): ..here. New function.
584 (frag_append_1_char): Call frag_alloc_check.
586 2003-07-14 Nick Clifton <nickc@redhat.com>
588 * po/tr.po: Update with latest version.
589 * po/POTFILES.in: Regenerate.
590 * po/gas.pot: Regenerate.
591 * configure: Regenerate.
593 2003-07-14 Nick Clifton <nickc@redhat.com>
595 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
596 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
597 "safe-ctype.h" and update use of macros.
598 * Makefile.am: Update dependencies.
599 * Makefile.in: Regenerate.
601 2003-07-11 Alan Modra <amodra@bigpond.net.au>
603 * po/gas.pot: Regenerate.
605 2003-07-10 Jakub Jelinek <jakub@redhat.com>
607 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
608 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
609 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
610 DWARF2_CIE_DATA_ALIGNMENT): Define.
611 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
613 (ppc_cie_data_alignment): Declare.
614 * config/tc-ppc.c: Include dw2gencfi.h.
615 (ppc_cie_data_alignment): Define.
616 (md_begin): Initialize ppc_cie_data_alignment.
617 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
619 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
620 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
621 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
622 DWARF2_CIE_DATA_ALIGNMENT): Define.
623 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
625 (s390_cie_data_alignment): Declare.
626 * config/tc-s390.c: Include dw2gencfi.h.
627 (s390_cie_data_alignment): Define.
628 (md_begin): Initialize s390_cie_data_alignment.
629 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
632 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
634 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
635 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
636 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
637 * configure.in (am33_2.0, mn10300-*-linux*): Added.
638 * configure: Rebuilt.
639 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
641 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
644 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
646 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
647 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
648 for subtracts from GLOBAL_OFFSET_TABLE that could not be
650 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
651 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
652 could not be simplified.
653 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
654 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
655 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
656 BDF_RELOC_MN10300_GOT32.
657 * config/tc-mn10300.c (mn10300_fix_adjustable): If
658 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
659 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
660 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
661 symbol if we know its value.
662 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
663 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
664 duplicate underscore prefix.
665 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
666 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
667 type in X_md, not X_add_number. Zero X_add_number.
668 (mn10300_check_fixup): Extract relocation type from X_md.
669 * config/tc-mn10300.h: Update comment.
670 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
671 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
673 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
674 (mn10300_check_fixup): Likewise.
675 (mn10300_parse_name): Set X_add_number to relocation type.
676 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
677 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
678 O_GOTOFF, O_PLT, O_GOT): Define.
679 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
680 (mn10300_check_fixup): New fn.
681 (md_assemble): Call it. Check for PIC-related relocs.
682 (mn10300_cons_fix_new): Likewise. New fn.
683 (mn10300_end_of_match): New fn.
684 (mn10300_md_parse_name_cont): New fn.
686 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
688 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
689 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
691 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
692 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
693 md_assemble, md_estimate_size_before_relax): Handle fbCC.
694 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
695 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
697 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
698 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
699 (HAVE_AM33): Match AM33_2 too.
700 (HAVE_AM33_2): New macro.
701 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
702 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
703 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
704 (float_registers, double_registers): New variables.
705 (float_register_name, double_register_name): New functions.
706 (md_assemble): Recognize FP registers. Implement FMT_D3.
707 (mn10300_insert_operand): Support FP registers.
709 2003-07-08 Chris Demetriou <cgd@broadcom.com>
711 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
712 target being a global symbol if not compiling SVR4 PIC code.
714 2003-07-07 Nick Clifton <nickc@redhat.com>
716 * doc/c-m32r.texi (M32R-Directives): New node. Document the
717 .high, .shigh and .low directives.
719 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
721 * config/tc-h8300.c (h8300sxnmode): Add prototype.
723 (parse_exp): Replace expressionS argument with a h8_op. Parse the
724 operand size as well.
725 (skip_colonthing): Remove unused expression argument. Tighten checks
727 (colonmod24): Remove.
728 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
729 (get_operand): Likewise. Use the standard code to read the size of
730 pc-relative operands.
731 (fix_operand_size): Include the size-guessing logic that used to be
732 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
733 offsets with a symbolic component.
735 2003-07-04 Nick Clifton <nickc@redhat.com>
737 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
738 macro to compute size of selected register name array.
740 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
742 * config/tc-s390.c (md_parse_option): Add cpu type z990.
743 (md_begin): Add minimal cpu type logic for instructions with different
744 binary format depending on the cpu.
745 (md_assemble): Remove check for minimal cpu.
746 (s390_insert_operand): Add support for long displacements.
747 (md_gather_operands): Likewise.
748 (tc_s390_fix_adjustable): Likewise.
749 (tc_s390_force_relocation): Likewise.
750 (md_apply_fix3): Likewise.
752 2003-06-30 Chris Demetriou <cgd@broadcom.com>
754 * config/tc-mips.c (s_mipsset): Implement -march= handling
757 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
759 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
760 prototypes and casts. Replace PTR with void *. Reformat.
761 * config/tc-mips.h: Likewise.
763 2003-06-30 Alan Modra <amodra@bigpond.net.au>
765 * config/tc-ia64.c (note_register_values): Warning fix.
766 * config/tc-mips.c (append_insn): Likewise.
768 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
770 * config/tc-mips.c (mips_set_options,mips_opts): Support for
772 (file_mips_arch): Rename mips_arch.
773 (mips_arch_info,mips_tune_info): Remove.
774 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
775 (mips_cpu_info_from_arch): New function.
776 (md_begin): Use file_mips_arch.
777 (macro_build,macro,mips_ip): Use mips_opts.arch.
778 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
779 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
781 (s_mipsset): Support for .set arch=FOO.
782 (mips_cpu_info_table): Fix typo.
784 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
786 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
788 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
790 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
791 unsigned 8-bit operands.
793 2003-06-24 Nick Clifton <nickc@redhat.com>
795 * read.c (s_comm): Change error message to assume an unsigned size
796 has been passed to .comm.
797 * config/tc-sparc.c (s_common): Likewise.
798 * write.c (write_contents): Replace 'unsigned long' with
799 'addressT' and 'long' with offsetT in order to allow computations
800 with very large values to work for 64-bit addressed targets.
801 (relax_and_size_all_segments): Likewise.
802 (relax_frag): Likewise.
803 (relax_segment): Likewise.
805 2003-06-23 Mark Mitchell <mark@codesourcery.com>
807 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
809 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
811 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
814 * gas/config/tc-i386.h (CpuPNI): New.
815 (CpuUnknownFlags): Add CpuPNI.
817 2003-06-23 <davidm@hpl.hp.com>
819 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
820 freebsd, openvms, and nsk (non-stop kernel).
822 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
824 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
825 all locals have been declared.
827 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
829 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
830 special handling for n32 ABI.
833 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
835 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
838 2003-06-19 Christian Groessler <chris@groessler.org>
840 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
841 now, not only a warning. Add some more checks to detect invalid
843 (get_operand): For CLASS_IR remember register size in mode struct.
844 (get_specific): Handle new CLASS_IRO type. Add register size
845 checks for CLASS_IR and CLASS_IRO.
846 (md_apply_fix3): Fix undefined usage of buf.
848 2003-06-19 Alan Modra <amodra@bigpond.net.au>
850 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
851 (ppc_change_csect): Add align param. Align frag at start of csect.
852 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
853 (ppc_frob_section): Align vma.
855 2003-06-18 Jakub Jelinek <jakub@redhat.com>
857 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
858 (output_cie): Don't pad.
859 (output_fde): Add align argument. Pad to align if not 0.
860 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
861 Pad just last FDE to EH_FRAME_ALIGNMENT.
863 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
865 * config/tc-s390.c (init_default_arch): Make current_mode_mask
866 dependent on s390_arch_size and current_cpu dependent on
869 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
871 * configure.in: Add c4x as an architecture variant to tic4x.
872 * configure: Regenerate.
873 * Makefile.in: Regenerate.
874 * doc/Makefile.in: Regenerate.
876 2003-06-18 Alan Modra <amodra@bigpond.net.au>
878 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
879 ".TOC." from PPC64_TOC relocs.
881 2003-06-17 Alan Modra <amodra@bigpond.net.au>
883 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
885 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
887 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
888 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
889 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
890 s_cprestore,s_cpadd): Use them.
892 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
894 * configure.in: Add specific case for cris-*-linux-gnu* with
896 * configure: Regenerate.
897 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
898 if TE_LINUX defined, else FALSE.
899 (bfd_boolean demand_register_prefix): Set default from
900 DEFAULT_CRIS_AXIS_LINUX_GNU.
901 (symbols_have_leading_underscore): Similar.
902 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
904 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
906 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
907 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
908 FPU_ARCH_FPA for AOUT.
909 (md_begin): Don't try to guess the floating point architecture from
910 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
912 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
914 * configure.in: Add i386-netbsd-gnu target.
915 * configure: Regenerate.
917 2003-06-12 Tom Tromey <tromey@redhat.com>
919 * doc/as.texinfo (Comm): Added @node. Moved before CFI
922 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
924 * config/tc-mips.c (append_insn): In a compound relocation, take the
925 field width from the final (outermost) operator.
927 2003-06-11 Richard Henderson <rth@redhat.com>
929 * dw2gencfi.c (struct cfi_escape_data): New.
930 (cfi_add_CFA_nop): Remove.
931 (CFI_escape, dot_cfi_escape): New.
932 (dot_cfi): Remove nop.
933 (cfi_pseudo_table): Remove nop; add escape.
934 (output_cfi_insn): Likewise.
935 (select_cie_for_fde): Stop on escape.
936 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
937 * read.c, read.h (do_parse_cons_expression): New.
938 * doc/as.texinfo (.cfi_escape): New.
940 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
942 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
943 (s_cprestore): Likewise.
944 (s_cpreturn): Likewise.
946 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
948 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
951 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
953 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
954 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
955 exceptions from size assert. Remove most of the addend fixup
956 specialcasing. Remove value, use valP directly. simplify fx_addnumber
957 handling. Remove zero addend specialcases.
958 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
959 the addend fixup specialcase.
960 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
962 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
964 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
965 in the RELOC_EXPANSION_POSSIBLE case.
967 2003-06-11 Alan Modra <amodra@bigpond.net.au>
969 * config/tc-i960.c (line_comment_chars): Add '#'.
970 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
972 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
974 * po/Make-in (DESTDIR): New.
975 (install-data-yes): Support $(DESTDIR).
976 (uninstall): Likewise.
978 2003-06-11 Alan Modra <amodra@bigpond.net.au>
980 * Makefile.am: Run "make dep-am".
981 * Makefile.in: Regenerate.
982 * po/POTFILES.in: Regenerate.
984 2003-06-10 Doug Evans <dje@sebabeach.org>
986 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
988 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
989 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
990 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
992 2003-06-10 Alan Modra <amodra@bigpond.net.au>
993 Gary Hade <garyhade@us.ibm.com>
995 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
996 (md_apply_fix3): Special case lq insn.
998 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1000 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1001 lists. Allow single-register ranges.
1003 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1005 * config/tc-h8300.c (h8300sxnmode): New.
1006 (md_pseudo_table): Add .h8300sxn entry.
1008 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1010 * NEWS: Updated for the new -n option for the i386 assembler.
1012 * config/tc-i386.c (optimize_align_code): New.
1013 (md_shortopts): Add 'n'.
1014 (md_parse_option): Handle 'n'.
1015 (md_show_usage): Add '-n'.
1017 * config/tc-i386.h (optimize_align_code): Declared.
1018 (md_do_align): Optimize code alignment only if optimize_align_code
1021 * doc/as.texinfo: Add the new -n option.
1023 * doc/c-i386.texi: Document the new -n option.
1025 2003-06-07 Richard Henderson <rth@redhat.com>
1027 * doc/as.texinfo: Document .cfi_rel_offset.
1029 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1030 (cfi_add_CFA_offset): Detect invalid offsets.
1031 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1032 (cfi_add_CFA_restore_state): Restore it.
1033 (CFI_rel_offset): New.
1034 (cfi_pseudo_table): Add it.
1035 (dot_cfi): Handle it.
1037 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1039 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1042 2003-06-05 Michael Snyder <msnyder@redhat.com>
1044 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1045 (build_bytes): Ditto.
1047 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1049 * config/tc-h8sx.c (DMODE): Remove.
1050 (colonmod24): Don't choose a default if the operand is a 16-bit
1052 (fix_operand_size): New function.
1053 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1054 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1056 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1058 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1059 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1060 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1061 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1062 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1063 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1064 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1065 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1066 (cfi_pseudo_table): New directives .cfi_return_column,
1067 .cfi_restore, .cfi_undefined, .cfi_same_value,
1068 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1069 (dot_cfi, output_cfi_insn): Handle new directives.
1070 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1071 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1072 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1074 2003-06-04 Richard Henderson <rth@redhat.com>
1076 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1078 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1080 2003-06-04 Richard Henderson <rth@redhat.com>
1082 * config/tc-alpha.c (s_alpha_usepv): New.
1083 (md_pseudo_table): Add it.
1084 (alpha_cfi_frame_initial_instructions): New.
1085 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1086 (tc_cfi_frame_initial_instructions): New.
1087 * doc/c-alpha.texi: Document .usepv.
1089 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1091 * as.c (show_usage): Document --execstack and --noexecstack.
1092 (parse_args): Add --execstack and --noexecstack.
1093 (main): Create .note.GNU-stack section if --execstack or
1094 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1095 * as.h (flag_execstack, flag_noexecstack): New.
1097 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1099 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1100 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1101 (OPTION_MISC_BASE): New defines.
1102 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1103 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1104 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1105 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1106 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1107 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1108 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1109 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1110 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1111 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1112 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1113 (OPTION_TRAP): Redefine in terms of new defines.
1114 (md_longopts): Reorder entries.
1116 2003-05-14 Michael Snyder <msnyder@redhat.com>
1117 From Bernd Schmidt <bernds@redhat.com>
1118 and Michael Snyder <msnyder@redhat.com>
1119 and Alexandre Oliva <aoliva@redhat.com>
1120 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1121 * config/tc-h8300.h: Ditto.
1123 2003-06-03 Nick Clifton <nickc@redhat.com>
1125 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1126 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1127 before calling bfd_reloc_type_lookup.
1129 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1131 * read.c (emit_expr): Set dot_value.
1132 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1134 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1136 * macro.c (sub_actual): Don't lose string if it turns out that
1137 &string wasn't an arg.
1139 2003-05-31 Richard Henderson <rth@redhat.com>
1141 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1142 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1144 2003-05-29 Richard Henderson <rth@redhat.com>
1146 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1147 (all_frame_data, plast_frame_data, cur_frame_data): New.
1148 (s_alpha_ent): Record data for dwarf2 cfi.
1149 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1150 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1151 * config/tc-alpha.h (md_end): New.
1152 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1153 (DWARF2_CIE_DATA_ALIGNMENT): New.
1155 2003-05-29 Nick Clifton <nickc@redhat.com>
1157 * configure.in: Add i386-*-freebsd* entry.
1158 * configure: Regenerate.
1160 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1162 * config/tc-m32r.c: Amend comment to refer to Renesas
1164 2003-05-27 Richard Henderson <rth@redhat.com>
1166 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1168 (current_location): Use symbol_temp_new_now.
1169 * stabs.c (s_stab_generic): Use symbol_temp_new.
1170 * symbols.c (temp_label_name): Remove.
1171 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1173 2003-05-27 Richard Henderson <rth@redhat.com>
1175 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1176 * as.c (main): Always call cfi_finish.
1177 * config/tc-i386.c (x86_dwarf2_return_column): New.
1178 (x86_cie_data_alignment): New.
1179 (md_begin): Set them.
1180 (tc_x86_cfi_init): Remove.
1181 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1182 return int, not unsigned long; don't as_bad here.
1183 (tc_x86_frame_initial_instructions): Streamline; use
1185 * config/tc-i386.h (tc_cfi_init): Remove.
1186 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1187 (DWARF2_CIE_DATA_ALIGNMENT): New.
1189 2003-05-27 Richard Henderson <rth@redhat.com>
1191 * symbols.c (temp_label_name): New.
1192 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1193 (symbol_set_value_now): New.
1194 * symbols.h: Prototype them.
1195 * dwarf2dbg.c: Use them.
1196 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1198 2003-05-23 Jason Eckhardt <jle@rice.edu>
1200 * config/tc-i860.c (target_xp): Declare variable.
1201 (OPTION_XP): Declare macro.
1202 (md_longopts): Add option -mxp.
1203 (md_parse_option): Set target_xp.
1204 (md_show_usage): Add -mxp usage.
1205 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1206 (md_assemble): Don't try expansions if XP_ONLY is set.
1207 * doc/c-i860.texi: Document -mxp option and i860XP support.
1209 2003-05-23 Eric Christopher <echristo@redhat.com>
1211 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1213 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1215 * config/tc-mips.c (append_insn): Use actual relocation size for new
1216 fixp's. Don't relax overflow checking for partial_inplace relocations.
1217 Use the actual relocation type in combined relocs, not just the type
1219 (macro_build_jalr): Use actual relocation size for new fix.
1220 (s_cpsetup, s_gpdword): Likewise.
1222 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1224 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1226 2003-05-22 Nick Clifton <nickc@redhat.com>
1228 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1229 section relative offsets for relocs that will not be based on the
1231 (xstormy16_md_apply_fix3): Remove previous patch to this
1234 2003-05-07 Eric Christopher <echristo@redhat.com>
1236 * config/tc-mips.c (mips_abicalls): New variable.
1237 (md_parse_option): Use.
1239 (s_abicalls): Ditto.
1240 (mips_elf_final_processing): Set EF_MIPS_PIC and
1241 EF_MIPS_CPIC dependent on above.
1243 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1245 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1247 2003-05-21 Nick Clifton <nickc@redhat.com>
1249 * config/obj-elf.c: Include dwarf2dbg.h.
1250 (elf_pseudo_tab): Add .file and .loc.
1251 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1252 * config/tc-arm.c: Likewise.
1253 * config/tc-h8300.c: Likewise.
1254 * config/tc-hppa.c: Likewise.
1255 * config/tc-ia64.c: Likewise.
1256 * config/tc-m68hc11.c: Likewise.
1257 * config/tc-m68k.c: Likewise.
1258 * config/tc-mmix.c: Likewise.
1259 * config/tc-mn10300.c: Likewise.
1260 * config/tc-ppc.c: Likewise.
1261 * config/tc-sh.c: Likewise.
1262 * config/tc-sparc.c: Likewise.
1263 * config/tc-v850.c: Likewise.
1264 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1266 * config/tc-ip2k.c: Likewise.
1267 * config/tc-iq2000.c: Likewise.
1268 * config/tc-xstormy16.c: Likewise.
1269 * config/tc-xtensa.c: Likewise.
1270 * Makefile.am: Regenerate dependencies.
1271 * Makefile.in: Regenerate.
1272 * aclocal.m4: Regenerate.
1273 * config.in: Regenerate.
1274 * configure: Regenerate.
1275 * po/POTFILES.in: Regenerate.
1276 * po/gas.pot: Regenerate.
1278 2003-05-21 Nick Clifton <nickc@redhat.com>
1280 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1281 BFD_ASSEMBLER targets.
1282 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1283 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1284 defining BFD_ASSEMBLER.
1286 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1288 * as.c (main): Remove tc_cfi_init().
1289 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1291 (cfi_pseudo_table): Add "cfi_register" entry.
1292 (cfi_make_insn): Handle CFA_register.
1293 (cfi_output_insn): Ditto.
1295 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1296 (dot_cfi_endproc): Reuse already emitted CIEs.
1297 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1298 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1300 2003-05-20 Nick Clifton <nickc@redhat.com>
1302 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1303 (md_pseudo_table): Add entries for .loc and .line.
1305 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1307 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1309 (dot_cfi_endproc): Avoid C99 construct.
1311 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1313 * dw2gencfi.c, dw2gencfi.h: New files.
1314 * config/tc-i386.c (tc_x86_cfi_init): New function.
1315 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1316 * as.c (parse_args): Set verbose flag on --verbose.
1317 (main): Call tc_cfi_init()/cfi_finish().
1318 * as.h (verbose): New external variable.
1319 * read.c (pobegin): Insert CFI pops to the list.
1320 * symbols.c (local_symbol_make): Make symbol external.
1321 * symbols.h (local_symbol_make): New prototype.
1322 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1323 * Makefile.in: Regenerate.
1324 * doc/as.texinfo: Added node "CFI directives" with description of
1325 all implemented .cfi_* directives.
1326 * doc/Makefile.in: Regenerate.
1327 * po/POTFILES.in: Regenerate.
1329 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1331 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1333 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1335 2003-05-18 Jason Eckhardt <jle@rice.edu>
1337 * config/tc-i860.c (i860_process_insn): Initialize fc after
1338 each opcode mismatch.
1340 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1342 * configure.in: Accept i[3-7]86 variants.
1343 * configure: Regenerate.
1345 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1347 * config/tc-mips.h: Fix comment formatting.
1349 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1351 * read.c (old_buffer, old_input, old_limit): Remove variables.
1352 (read_a_source_file): Delete label contin.
1353 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1354 input as with macros, instead of in separate old_* variables.
1355 Zero-terminate string being scrubbed.
1357 2003-05-12 Nick Clifton <nickc@redhat.com>
1359 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1360 (md_assemble): Reset skipping_fptr.
1361 (md_operand): If @fptr() is followed by a minus sign, set
1362 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1363 @fptr is detected, ignore it and reset skipping_fptr.
1365 2003-05-11 Jason Eckhardt <jle@rice.edu>
1367 * config/tc-i860.c (MAX_FIXUPS): Define.
1368 (struct i860_fi fi[]): New struct.
1369 (struct i860_it the_insn): Add above as member and move fields
1370 exp, reloc, pcrel and fup into i860_fi.
1371 (md_assemble): Replace all instances of exp, reloc, pcrel
1372 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1373 Add a loop to possibly emit multiple fix-ups for each insn.
1374 (i860_process_insn): Likewise.
1375 (i860_get_expression): Likewise.
1376 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1378 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1380 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1382 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1384 * config/tc-ia64.c (alias_hash): New.
1385 (alias_name_hash): New.
1386 (secalias_hash): New.
1387 (secalias_name_hash): New.
1388 (md_pseudo_table): Add "secalias".
1389 (md_begin): Initialize alias_hash, alias_name_hash,
1390 secalias_hash and secalias_name_hash.
1391 (struct alias): New.
1392 (dot_alias): Implement .alias and .secalias directives.
1394 (ia64_adjust_symtab): New.
1396 (ia64_frob_file): New.
1398 * config/tc-ia64.h (ia64_adjust_symtab): New.
1399 (tc_adjust_symtab): Defined.
1400 (ia64_frob_file): New.
1401 (tc_frob_file): Defined.
1403 2003-05-07 Dmitry Diky <diwil@mail.ru>
1405 * tc-msp430.c: Add missing lines to known cpus list.
1407 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1409 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1410 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1411 * config.in, configure: Rebuilt.
1413 2003-05-05 H.J. Lu <hjl@gnu.org>
1415 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1416 howto->partial_inplace is false.
1418 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1420 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1421 symbol_used_in_reloc_p check.
1422 (md_apply_fix3): Remove check for howto->pcrel_offset.
1424 2003-05-03 H.J. Lu <hjl@gnu.org>
1426 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1427 fatal error for unknown section attribute.
1429 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1430 unknown section attribute.
1431 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1432 * config/tc-ppc.c (ppc_section_letter): Likewise.
1434 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1435 (ia64_elf_section_type): Accept "unwind".
1437 2003-05-02 H.J. Lu <hjl@gnu.org>
1439 * read.h (demand_copy_string): New.
1441 * config/tc-alpha.c (demand_copy_string): Removed.
1443 2003-05-02 Michael Snyder <msnyder@redhat.com>
1445 * write.h (FAKE_LABEL_NAME): Allow override
1446 (for targets that like eg. a leading dot in a local label).
1448 2003-05-02 Nick Clifton <nickc@redhat.com>
1450 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1451 addend with the symbol's value for pc-relative relocations against
1452 a defined symbol - this will be done automatically.
1454 2003-05-01 H.J. Lu <hjl@gnu.org>
1456 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1459 2003-05-01 H.J. Lu <hjl@gnu.org>
1461 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1463 * config/obj-elf.c (obj_elf_section_name): Call
1464 tc_canonicalize_section_name if it is defined.
1466 2003-05-01 H.J. Lu <hjl@gnu.org>
1468 * config/tc-ia64.c (ia64_check_label): New.
1469 * config/tc-ia64.h (tc_check_label): New.
1471 * read.c (read_a_source_file): Call tc_check_label after
1472 creating a user-defined label if defined.
1474 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1476 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1477 -be and split strings to below 509 bytes in length.
1479 2003-05-01 Christian Groessler <chris@groessler.org>
1481 * expr.h: Fix comments in operatorT typedef.
1482 * config/tc-z8k.c: Add 2003 to copyright message.
1483 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1484 decides by the parameter.
1485 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1486 command line argument was given to select the intended
1488 (get_interrupt_operand): Warn if NOP type code is emitted.
1489 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1490 (apply_fix): Call newfix with additional 'size' parameter.
1491 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1492 4 bit immediate arguments.
1493 (md_longopts): Add 'linkrelax' option.
1494 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1495 variable when 'linkrelax' command line option is specified.
1496 (md_show_usage): Display 'linkrelax' option.
1497 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1498 R_CALLR and R_REL16.
1499 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1501 2003-04-30 H.J. Lu <hjl@gnu.org>
1503 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1504 (ia64_float_to_chars): Likewise.
1505 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1506 and ia64_float_to_chars by tc_segment_info_data.endian from
1507 the current segment if byteorder == -1.
1508 (md_begin): Call dot_byteorder to set target_big_endian.
1509 (md_atof): Call ia64_float_to_chars to convert floating point.
1510 (ia64_float_to_chars_bigendian): New function.
1511 (ia64_float_to_chars_littleendian): Likewise.
1512 (ia64_elf_section_change_hook): Likewise.
1514 * config/tc-ia64.h (ia64_number_to_chars): New.
1515 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1516 (ia64_elf_section_change_hook): New.
1517 (md_elf_section_change_hook): Defined.
1518 (ia64_segment_info_type): New struct.
1519 (TC_SEGMENT_INFO_TYPE): Defined.
1521 2003-04-30 H.J. Lu <hjl@gnu.org>
1523 * config/tc-ia64.c (md_section_align): Deleted.
1525 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1526 (md_section_align): New.
1528 2003-04-30 H.J. Lu <hjl@gnu.org>
1530 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1532 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1534 (md_atof): Add 6 byte padding of zero for real16.
1536 2003-04-29 Nick Clifton <nickc@redhat.com>
1538 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1539 start of a version name.
1541 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1543 * configure.in (mips-*-*n*bsd*): Replace with...
1544 (mips-*-netbsd*, mips-*-openbsd*): These.
1545 * configure: Regenerate.
1547 2003-04-28 H.J. Lu <hjl@gnu.org>
1549 * config/tc-hppa.c (hppa_symbol_chars): New.
1550 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1552 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1554 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1556 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1558 * NEWS: Belatedly mention support for MIPS32 Release 2.
1560 2003-04-24 Eric Christopher <echristo@redhat.com>
1562 * config/tc-mips.c (nopic_need_relax): Revert previous
1565 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1567 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1568 * config/tc-h8300.c (dwarf2dbg.h): Include
1569 (md_pseudo_table): Handle .loc and .file
1570 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1571 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1572 * Makefile.in: Regenerate.
1574 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1576 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1577 (md_pseudo_table): Add h8300hn, h8300sn.
1578 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1579 * doc/c-h8300.texi : Add documentation for new machine directives.
1581 2003-04-24 Nick Clifton <nickc@redhat.com>
1583 * config/tc-ppc.c (ppc_symbol_chars): Define.
1584 * config/tc-ppc.h (tc_symbol_chars): Define.
1586 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1588 * config/tc-sh.c: Amend comment to refer to SuperH.
1589 * config/tc-sh.h: Likewise.
1590 (LISTING_HEADER): Amend to refer to SuperH.
1591 * config/tc-sh64.c: Change comment to refer to SuperH.
1592 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1593 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1594 * doc/c-sh.texi: Amend to refer to SuperH.
1595 Add SuperH architecture documentation references.
1596 * doc/c-sh64.texi: Change to refer to SuperH.
1598 2003-04-23 H.J. Lu <hjl@gnu.org>
1600 * app.c (do_scrub_chars): More checks for valid labels.
1602 2003-04-22 H.J. Lu <hjl@gnu.org>
1604 * app.c (do_scrub_chars): Check for valid label.
1606 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1608 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1609 references to Renesas M32R.
1610 * doc/c-m32r.texi: Likewise.
1612 2003-04-21 Richard Henderson <rth@redhat.com>
1614 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1615 (out_file_list): Assign non-null filename after generating error.
1617 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1619 * ehopt.c (check_eh_frame): For aug_size == 0
1620 in state_seeing_aug_size state skip the state_skipping_aug
1623 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1625 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1627 * doc/c-h8500.texi: Likewise.
1628 * doc/c-sh.texi: Likewise.
1629 * doc/c-sh64.texi: Likewise.
1630 * doc/h8.texi: Likewise.
1631 * config/tc-h8300.c: Likewise.
1632 * config/tc-h8300.h: Likewise.
1633 * config/tc-h8500.c: Likewise.
1634 * config/tc-h8500.h: Likewise.
1635 * config/tc-sh.c: Likewise.
1636 * config/tc-sh.h: Likewise.
1637 * config/tc-sh64.c: Likewise.
1638 * config/tc-sh64.h: Likewise.
1640 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1642 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1643 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1644 (append_insn): When filling delay slots with instructions
1645 that have fixups that tc_gen_reloc might consider modifyable
1646 in variant frags, start a new frag.
1647 (load_address): Generate GOT_DISP with of without offset
1648 depending on whether symbol is local. For -xgot, use
1649 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1650 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1651 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1652 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1653 <ld_st>: In NewABI with small got, always use
1654 GOT_PAGE/GOT_OFST, with the latter in the load/store
1655 instruction. With big got, use GOT_HI16/GOT_LO16 or
1657 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1658 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1659 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1660 (md_convert_frag): Use memmove for safe copying of overlapping
1663 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1665 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1666 -mlong, -mshort-double and -mlong-double options; use table @code.
1667 (M68HC11-Syntax): Update to document 68HC12 operands.
1668 (M68HC11-Modifiers): New section for operand modifiers.
1669 (M68HC11-Directives): New section for specific assembler directives.
1670 (M68HC11-Branch): Fix Overfull hbox error.
1672 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1674 * config/tc-mips.c (macro): Add comments explaining the rationale
1677 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1679 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1680 constant address that Alexandre took out by accident. Reject
1681 64-bit addresses that are not sign extensions of 32 bits only if
1682 we don't support 64-bit address constants.
1684 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1686 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1688 2003-04-08 Nick Clifton <nickc@redhat.com>
1690 * as.c (perform_an_assembly_pass): If using cgen, call
1692 * cgen.c (gas_cgen_begin): New function. If
1693 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1694 otherwise call cgen_clear_signed_overflow_ok.
1695 * cgen.h: Prototype gas_cgen_begin.
1697 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1699 * write.c (write_relocs): Remove unused variable.
1701 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1703 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1704 (macro): Use new macro to decide whether to emit constant address
1705 as 32 or 64 bits if addresses are 32-bit wide but registers are
1708 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1710 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1711 (M6811_OP_PAGE_ADDR): New internal define.
1712 (get_operand): New modifier %page and %addr to obtain page and
1713 address part of a far-function.
1714 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1715 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1717 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1718 (find_opcode): Add comment.
1719 (md_estimate_size_before_relax): Force relocation of
1720 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1721 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1722 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1723 on the symbol itself so that DWARF2 strings are merged correctly.
1725 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1727 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1728 default tic4x target format to 'coff2-tic4x'.
1729 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1731 * config/tc-tic4x.h: Ditto
1733 2003-04-03 Nick Clifton <nickc@redhat.com>
1735 * NEWS: Mention support for Xtensa architecture.
1737 2003-04-02 Philip Blundell <philb@gnu.org>
1739 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1741 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1743 * config/tc-mips.c (macro2): Adjust implementation of
1744 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1745 in the case where the source and destination registers
1748 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1750 * Makefile.am (CPU_TYPES): Add xtensa.
1751 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1752 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1753 (xtensa-relax.o): New target.
1755 * Makefile.in: Regenerate.
1756 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1757 extra_objects for xtensa targets.
1758 * configure: Regenerate.
1759 * write.c (write_object_file): Add new md_post_relax_hook.
1760 * config/tc-xtensa.c: New file.
1761 * config/tc-xtensa.h: Likewise.
1762 * config/xtensa-istack.h: Likewise.
1763 * config/xtensa-relax.c: Likewise.
1764 * config/xtensa-relax.h: Likewise.
1765 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1766 * doc/Makefile.in: Regenerate.
1767 * doc/all.texi: Set new XTENSA variable.
1768 * doc/as.texinfo: Set new Xtensa variable. Describe
1769 Xtensa-specific options. Define line comment character for
1770 Xtensa. Add Xtensa processors to list of ELF targets where
1771 alignment is specified in bytes. Add new Xtensa-Dependent node.
1772 Add acknowledgements for those contributing to the Xtensa port.
1773 * doc/internals.texi: Describe new md_post_relax_hook.
1774 * doc/c-xtensa.texi: New file.
1776 2003-04-01 Nick Clifton <nickc@redhat.com>
1777 Richard Earnshaw <rearnsha@arm.com>
1779 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1780 (ARM_ARCH_IWMMXT): Simplify.
1781 (insns): Place iwmmx instructions in correct place in table.
1782 (arm_add_note): New function: Add a note entry to a .note section.
1783 (md_begin): Make the default architecture be unknown.
1784 Suppress the creation of an arm note section.
1786 2003-03-26 Eric Christopher <echristo@redhat.com>
1788 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1790 2003-03-25 Stan Cox <scox@redhat.com>
1791 Nick Clifton <nickc@redhat.com>
1793 Contribute support for Intel's iWMMXt chip - an ARM variant:
1795 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1796 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1797 (enum wreg_type, enum iwmmxt_insn_type): New types.
1798 (wr_register, wc_register, wcg_register): New macros.
1799 (iwmmxt_table): New variable.
1800 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1801 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1802 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1803 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1804 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1805 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1806 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1807 cp_byte_address_offset, cp_byte_address_required_here,
1808 check_iwmmxt_insn): New functions.
1809 (asm_opcode_insns): Add iWMMXt instructions.
1810 (md_begin): Set the mach value for iWMMXt targets. Create a note
1811 section to identify iwmmxt binaries.
1812 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1813 * doc/c-arm.texi: Document the support for the iWMMXt.
1814 * NEWS: Mention new support.
1816 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1818 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1819 * doc/all.texi: Likewise.
1820 * doc/c-tic54x.texi: Likewise.
1822 2003-03-21 Andreas Schwab <schwab@suse.de>
1824 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1825 avoid aliasing issue.
1827 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1829 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1830 (current_arch_mask): Rename to current_mode_mask.
1831 (current_arch_requested): Remove variable.
1832 (current_cpu): New variable.
1833 (init_default_arch): Set defaults values for s390_arch_size,
1834 current_mode_mask and current_cpu.
1835 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1836 (md_begin): Replace current_arch_mask by current_cpu.
1837 (md_assemble): Adapt check and error message to current_mode_mask and
1840 2003-03-09 James E Wilson <wilson@tuliptree.org>
1842 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1843 * read.c (get_line_sb): Return end of line character or '\n' if
1844 it is zero or non-existent.
1846 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1848 * config/tc-mips.c (mips_validate_fix): New function.
1849 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1850 (mips_validate_fix): Declare.
1852 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1854 * Reverted 2003-03-02's patch.
1856 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1858 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1859 (TC_DWARF2_EMIT_OFFSET): Provide default.
1860 (out_debug_aranges, out_debug_info): Use it.
1861 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1862 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1863 (ia64_gen_real_reloc_type): ... here.
1864 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1866 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1868 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1869 (s_mips_ent): Likewise.
1871 2003-03-04 Dmitry Diky <diwil@mail.ru>
1873 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1874 and x1123 devices, add missed x437.
1875 (md_show_usage): Sort device list.
1877 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1879 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1880 (md_begin): Use preset_target_arch.
1881 (md_longopts): Make isa option unconditional.
1882 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1883 set preset_target_arch.
1884 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1885 by -S_GET_VALUE (fixP->fx_subsy).
1886 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1887 and the addend is 0.
1888 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1889 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1891 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1893 * config/tc-mips.c (append_insn): Add handling of
1894 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1895 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1896 misaligned address and reange overflow.
1897 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1898 earlier warnings about misaligned address and reange overflow.
1899 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1900 (md_apply_fix): Likewise. Fix warning output.
1901 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1902 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1903 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1905 2003-02-21 Nick Clifton <nickc@redhat.com>
1907 * NEWS: Mention availability of test generator program.
1909 2003-02-21 Miles Bader <miles@gnu.org>
1911 * config/tc-v850.c (system_registers): Add v850e debug registers.
1912 (system_register_name): Accept up to 27 (the last v850e sys register).
1914 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1916 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1917 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1918 Capitalize section headings consistently. Format index entries more
1919 consistently. Unconditionalize text about whether text and data
1920 sections are alterable. Use @ifnottex for alternatives to @tex output
1921 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1922 .size and .type directives. Be more polite about bad bug reports.
1923 Move FDL into a separate file.
1924 * doc/fdl.texi: New file.
1926 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1928 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1929 (macro): Check it to decide whether a new frag is needed.
1930 (my_getSmallExpression): Set it.
1932 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1934 * cgen.c: Fix typo: intial -> initial.
1936 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1938 * app.c (do_scrub_chars): Handle '||' in two states.
1940 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1942 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1943 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1945 2003-02-11 Uwe Stieber <uwe@wwws.de>
1947 * configure.in: Add support for kaOS as cross build target system.
1948 * configure: Regenerated.
1950 2003-02-10 Nick Clifton <nickc@redhat.com>
1952 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1953 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1954 bfd_mach_arm_ep9312 machine number.
1956 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1958 * config/tc-mips.c (reloc_needs_lo_p): New function.
1959 (fixup_has_matching_lo_p): New function.
1960 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1961 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1962 if that fixup already has a matching %lo(). Don't call frag_wane here.
1963 (macro): Call frag_wane here if the last unmatched hi was in the
1965 (pic_need_relax): New function, split out from...
1966 (md_estimate_size_before_relax): ...here.
1967 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1968 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1970 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1972 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1974 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1976 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1979 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1981 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1982 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1983 accept x@got+off etc.
1984 (md_assemble): Handle TLS relocs.
1985 (ppc_force_relocation): Force for all TLS relocs.
1986 (ppc_fix_adjustable): Likewise.
1987 (md_apply_fix3): Handle TLS relocs.
1989 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1991 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1992 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1994 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1996 * config/tc-mips.c (enum small_ex_type): Remove.
1997 (imm_unmatched_hi): Remove.
1998 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1999 argument from calls to append_insn.
2000 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2002 (macro_build): Update append_insn calls.
2003 (mips16_macro_build, macro_build_lui): Likewise.
2004 (mips_ip): Rework handling of small expressions. Move explicit
2005 relocation handling into my_getSmallExpression. Assume that the
2006 value of 'o' operands is zero if there is only one bracketed
2008 (percent_op): Make constant. Record the BFD relocation code
2009 associated with each operator.
2010 (my_getSmallParser, my_getPercentOp): Remove.
2011 (parse_relocation): New function.
2012 (my_getSamllExpression): Rework. Fill in relocations here
2013 rather than in mips_ip.
2015 2003-01-29 Nick Clifton <nickc@redhat.com>
2017 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2018 assembler's handling of # <linenum> "<filename>" directives work.
2020 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2022 * dwarf2dbg.c: Include filenames.h.
2023 (struct file_entry): Make filename const char *.
2024 (dirs, dirs_in_use, dirs_allocated): New variables.
2025 (get_filenum): Add NUM argument. Build directory table.
2026 (dwarf2_where): Adjust caller.
2027 (dwarf2_directive_file): Use get_filenum to allocate
2028 slot in file and directory tables.
2029 (dwarf2_directive_loc): Recreate full filename from
2030 directory and filename part if needed for listing.
2031 (out_file_list): Output directory table.
2032 Output main source file dirname before its filename.
2034 2003-01-28 Dmitry Diky <diwil@mail.ru>
2036 * config/tc-msp430.c: Replace occurences of 'tolower' with
2039 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2041 * config/tc-ia64.c (dot_vframesp): Correct error message.
2042 (dot_vframepsp): Ditto.
2044 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2046 * configure.in (em): Set to irix on all Irix systems.
2047 * configure: Rebuilt.
2048 * config/te-irix.h: New file.
2049 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2050 whether to use Irix-specific 64-bit format.
2052 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2054 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2056 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2058 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2059 (tc_gen_reloc): Handle TLS relocs.
2060 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2061 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2063 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2064 (obj_elf_type): Handle tls_object.
2066 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2068 * config/tc-s390.c (s390_tls_suffix): New function.
2069 (elf_suffix_type): Add suffix enums for TLS relocations.
2070 (s390_elf_suffix): Add suffix strings for TLS relocations.
2071 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2073 (md_gather_operands): Map new instruction operand/elf suffix
2074 combinations for TLS to bfd relocations.
2075 (tc_s390_fix_adjustable): Add new TLS relocations.
2076 (tc_s390_force_relocation): Likewise.
2077 (md_apply_fix3): Likewise.
2079 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2081 * as.h: Update copyright date.
2082 * symbols.c: Likewise.
2083 * config/tc-d10v.h: Likewise.
2084 * config/tc-fr30.h: Likewise.
2085 * config/tc-i960.h: Likewise.
2086 * config/tc-mips.h: Likewise.
2088 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2089 (MD_APPLY_SYM_VALUE): Move.
2091 2003-01-23 Nick Clifton <nickc@redhat.com>
2093 * NEWS: Announce sh2e support.
2096 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2097 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2098 (sh_elf_final_processing): Handle arch_sh2e.
2100 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2102 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2103 * symbols.h (S_FORCE_RELOC): Likewise.
2104 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2105 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2106 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2107 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2108 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2109 * write.c (generic_force_reloc): New function.
2110 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2111 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2112 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2113 * as.h (generic_force_reloc): Declare.
2114 * doc/internals.texi (S_FORCE_RELOC): Update.
2115 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2117 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2118 generic_force_reloc.
2119 (alpha_fix_adjustable): Likewise.
2120 * config/tc-arm.c (arm_force_relocation): Likewise.
2121 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2122 * config/tc-frv.c (frv_force_relocation): Likewise.
2123 * config/tc-i386.c (md_apply_fix3): Likewise.
2124 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2125 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2126 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2127 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2128 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2129 * config/tc-mips.c (mips_force_relocation): Likewise.
2130 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2131 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2132 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2133 * config/tc-sh.c (sh_force_relocation): Likewise.
2134 (md_pcrel_from_section): Likewise.
2135 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2136 * config/tc-v850.c (v850_force_relocation): Likewise.
2137 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2138 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2139 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2140 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2142 * config/tc-d10v.c (d10v_force_relocation): Delete.
2143 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2144 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2145 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2146 * config/tc-fr30.c (fr30_force_relocation): Delete.
2147 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2148 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2149 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2150 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2151 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2152 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2153 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2154 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2155 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2156 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2157 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2158 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2159 * config/tc-i386.c (i386_force_relocation): Delete.
2160 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2162 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2163 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2164 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2165 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2167 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2168 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2170 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2172 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2173 sh64_elf_section_data.
2174 * config/tc-sh64.h: Include elf32-sh64.h.
2175 * config/tc-m68hc11.c: Don't include stdio.h.
2176 (md_show_usage): Fix missing continuation.
2177 * Makefile.am: Run "make dep-am".
2178 * Makefile.in: Regenerate.
2180 2003-01-22 Nick Clifton <nickc@redhat.com>
2182 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2184 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2186 * configure.in: Handle *-*-aros*.
2187 * configure: Regenerated from configure.in.
2189 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2191 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2192 gotplt and pltoff relocations.
2193 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2194 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2195 gotplt and pltoff to bfd relocations.
2196 (md_gather_operands): Map new instruction operand/elf suffix
2197 combinations to bfd relocations.
2198 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2199 to the list of unadjustable relocations.
2200 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2201 and pltoff relocations.
2202 (md_apply_fix3): Add the new relocations.
2204 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2206 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2207 with a subsy symbol.
2209 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2211 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2212 of relocs for memory bank addressing.
2214 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2216 * config/tc-m68hc11.c (md_show_usage): Update usage.
2217 (md_parse_option): Recognize -m68hcs12.
2218 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2220 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2222 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2224 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2226 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2228 * Makefile.am: Run "make dep-am".
2229 * Makefile.in: Regenerate.
2230 * po/POTFILES.in: Regenerate.
2232 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2234 * read.c (get_absolute_expr): New, split out from..
2235 (get_absolute_expression): ..here.
2236 * read.h (get_absolute_expr): Declare.
2237 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2238 Trim size to arch bits_per_address, and test for negative input
2239 via get_absolute_expr.
2241 2003-01-07 DJ Delorie <dj@redhat.com>
2243 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2245 (xstormy16_md_apply_fix3): Use adjustment.
2247 2003-01-02 Ben Elliston <bje@redhat.com>
2249 * configure.in: Add iq2000-elf target.
2250 * configure: Regenerate.
2251 * config/tc-iq2000.c: New file.
2252 * config/tc-iq2000.h: Likewise.
2253 * po/gas.pot: Regenerate.
2255 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2257 * config/tc-mips.c: Update copyright years to include 2003.
2258 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2259 Additionally, clean up their code slightly and clean up their
2262 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2264 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2266 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2268 * doc/Makefile.in: Regenerate.
2270 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2272 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2273 of .init and .fini sections for array initializers and finalizers.
2275 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2277 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2278 the "+D" operand, which will be used only by the disassembler.
2280 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2282 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2284 * configure: Regenerate.
2285 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2286 (macro_build): Handle "K" operand.
2287 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2288 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2289 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2290 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2291 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2292 (validate_mips_insn): Implement "+" as a way to extend the
2293 allowed operands, and implement "K", "+A", "+B", and "+C"
2295 (OPTION_MIPS32R2): New define.
2296 (md_longopts): Add entry for OPTION_MIPS32R2.
2297 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2298 (md_parse_option): Handle OPTION_MIPS32R2.
2299 (s_mipsset): Reimplement handling of ".set mipsN" options
2300 and add support for ".set mips32r2".
2301 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2302 (md_show_usage): Document "-mips32r2" option.
2303 * doc/as.texinfo: Document "-mips32r2" option.
2304 * doc/c-mips.texi: Likewise.
2306 2002-12-30 Dmitry Diky <diwil@mail.ru>
2308 * configure.in: Add msp430 target.
2309 * configure: Regenerate.
2310 * Makefile.am: Add msp430 target.
2311 * Makefile.in: Regenerate.
2312 * config/tc-msp430.c: New file: msp430 assembler.
2313 * config/tc-msp430.h: New file: target macros for msp430.
2314 * doc/Makefile.am: Add msp430 target.
2315 * doc/Makefile.in: Regenerate.
2316 * doc/as.texinfo: Include msp430 documenation.
2317 * doc/all.texi: Enable msp430 documentation.
2318 * doc/c-msp430.texi: New file: document msp430 specific features
2321 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2323 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2324 (dwarf2_finish): Use it.
2325 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2326 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2328 2002-12-20 DJ Delorie <dj@redhat.com>
2330 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2331 BFD_RELOC_XSTORMY16_12.
2333 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2335 * doc/as.texinfo (Invoking): Typo fix.
2336 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2338 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2340 * doc/c-alpha.texi: Fix typos.
2341 * doc/c-arm.texi: Likewise.
2342 * doc/c-d10v.texi: Likewise.
2343 * doc/c-i370.texi: Likewise.
2344 * doc/c-i960.texi: Likewise.
2345 * doc/c-ia64.texi: Likewise.
2346 * doc/c-mmix.texi: Likewise.
2347 * doc/c-ns32k.texi: Likewise.
2348 * doc/c-pdp11.texi: Likewise.
2349 * doc/c-pj.texi: Likewise.
2350 * doc/c-sh64.texi: Likewise.
2351 * doc/c-sparc.texi: Likewise.
2352 * doc/c-tic54x.texi: Likewise.
2353 * doc/c-v850.texi: Likewise.
2354 * doc/c-vax.texi: Likewise.
2355 * doc/internals.texi: Likewise.
2357 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2359 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2360 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2361 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2362 arrange not to issue warnings about use of AT when AT is not
2365 2002-12-17 Nick Clifton <nickc@redhat.com>
2367 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2368 prevent it being confused with -k.
2370 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2372 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2373 has already been set up, use it.
2375 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2377 * ChangeLog-9295: Fix a typo.
2379 * config/tc-d10v.c: Fix a comment typo.
2380 * config/tc-dlx.c: Likewise.
2381 * config/tc-h8300.h: Likewise.
2382 * config/tc-h8500.h: Likewise.
2383 * config/tc-mips.c: Likewise.
2384 * config/tc-s390.c: Likewise.
2385 * config/tc-sh.h: Likewise.
2386 * config/tc-tic80.h: Likewise.
2387 * config/tc-w65.h: Likewise.
2388 * config/tc-z8k.c: Likewise.
2389 * config/tc-z8k.h: Likewise.
2390 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2392 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2394 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2395 Simplify sign extension. Remove redundant unsigned < 0 test.
2396 * config/tc-i960.c (md_ri_to_chars): Prototype.
2397 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2398 (dump_literals): Init brarsym, and test later instead of isforce.
2400 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2401 (parse): Constify line and lineptr.
2402 (md_begin): Calculate endop here.
2404 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2406 * config/obj-vms.c: Formatting. Include fnctl.h.
2407 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2408 (Object_Record_Offset): Make it a size_t.
2409 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2410 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2411 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2412 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2413 (vms_fixup_data_section <data_size>): Add here instead.
2414 * config/e-criself.c: Fix typo in last change.
2416 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2418 * write.c (write_object_file): Fix signed/unsigned warning.
2419 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2420 * config/e-criself.c (criself_bfd_name): Prototype.
2421 * config/obj-aout.c (s_sect): Remove unused function.
2422 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2423 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2424 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2425 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2426 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2427 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2428 (vms_fixup_text_section <text_siz>): Likewise.
2429 (synthesize_data_segment <data_size>): Likewise.
2430 (vms_fixup_xtors_section <sect_no>): Likewise.
2431 (structure_count): Don't use implicit int type.
2432 * config/tc-a29k.c (insert_sreg): Prototype.
2433 (define_some_regs): Prototype, make static.
2434 (parse_operand): Likewise.
2435 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2436 (md_show_usage <stream>): Likewise.
2437 (md_section_align <segment>): Likewise.
2438 (md_convert_frag <all args>): Likewise.
2439 (md_estimate_size_before_relax <all args>): Likewise.
2440 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2441 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2442 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2443 (md_undefined_symbol <name>): Likewise.
2444 (md_convert_frag <all args>): Likewise.
2445 (write_long <opcode>): Likewise.
2446 (tc_gen_reloc <seg>): Likewise.
2447 (md_estimate_size_before_relax <all args>): Likewise.
2448 (md_apply_fix3 <seg>): Likewise.
2449 (s_d30v_align <ignore>): Likewise.
2450 (build_insn): Correct format string.
2451 (md_apply_fix3): Likewise.
2452 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2453 (md_undefined_symbol <name>): Likewise.
2454 (md_convert_frag <all args>): Likewise.
2455 (md_cgen_lookup_reloc <insn>): Likewise.
2456 (md_begin): Delete unused vars.
2457 (md_assemble): Likewise.
2458 (md_estimate_size_before_relax): Likewise.
2459 (fr30_relax_frag): #if 0 out, seems unused.
2460 (md_atof): Remove declaration of atof_ieee.
2461 (restore_colon): Prototype.
2462 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2463 (frv_find_in_vliw): Likewise.
2464 (frv_debug_tomcat): Likewise.
2465 (frv_adjust_vliw_count): Likewise.
2466 (frv_tomcat_shuffle): Likewise.
2467 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2468 frv_find_in_vliw call.
2469 (md_atof): Remove declaration of atof_ieee.
2470 * config/tc-h8500.c (cons): Delete declaration.
2471 (md_begin <opcode>): Constify.
2472 (displacement_size, immediate_size, absolute_size): Remove.
2473 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2474 (tc_crawl_symbol_chain <headers>): Likewise.
2475 (md_undefined_symbol <name>): Likewise.
2476 (tc_headers_hook <headers>): Likewise.
2477 (md_parse_option <c,arg>): Likewise.
2478 (md_show_usage <stream>): Likewise.
2479 (md_convert_frag <headers, seg>): Likewise.
2480 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2481 (md_atof): Remove declaration of atof_ieee.
2482 (tc_aout_fix_to_chars): Remove unused function.
2483 (parse_reg): Prototype.
2484 (parse_exp): Prototype.
2485 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2486 (parse_reglist): Prototype.
2487 (get_operand): Prototype.
2488 (get_operands): Prototype.
2489 (get_specific): Prototype. Make "this_index" signed.
2490 (check): Prototype, make static.
2492 (build_relaxable_instruction): Prototype, make static.
2493 (build_bytes): Prototype.
2494 (wordify_scb): Prototype.
2495 * config/tc-h8500.h (start_label): Declare.
2496 (tc_coff_sizemachdep): Declare.
2497 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2498 (i370_rmode <unused>): Likewise.
2499 (i370_csect <unused>): Likewise.
2500 (i370_dc <unused>): Likewise.
2501 (i370_ds <unused>): Likewise.
2502 (i370_elf_lcomm <unused>): Likewise.
2503 (i370_ltorg <ignore>): Likewise.
2504 (i370_using <ignore>): Likewise.
2505 (i370_drop <ignore>): Likewise.
2506 (i370_byte <ignore>): Likewise.
2507 (i370_tc <ignore>): Likewise.
2508 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2509 (md_convert_frag <all args>): Likewise.
2510 (md_undefined_symbol <name>): Likewise.
2511 (md_pcrel_from_section <sec>): Likewise.
2512 (tc_gen_reloc <seg>): Likewise.
2513 (i370_section_letter): #if 0 unused functions.
2514 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2515 (symbol_locate): Prototype.
2516 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2517 (md_number_to_disp, md_number_to_field): Remove.
2518 (md_apply_fix3): Correct format string and cast "fup".
2519 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2520 (s_endian <ignore>): Likewise.
2521 (md_undefined_symbol <name>): Likewise.
2522 (tc_crawl_symbol_chain <headers>): Likewise.
2523 (tc_set_bal_of_call): Likewise.
2524 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2525 (i960_handle_align <fragp>): Likewise.
2526 (i960_validate_fix <this_segment_type>): Likewise
2527 (tc_gen_reloc <section>): Likewise.
2528 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2529 (struct memS, struct regop): Forward declare.
2530 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2531 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2532 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2533 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2534 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2535 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2536 (md_number_to_field): Likewise.
2537 (md_number_to_disp): Remove unused function.
2538 (md_atof): Remove declaration of atof_ieee.
2539 (md_apply_fix3): Correct md_number_to_imm call.
2540 * config/tc-ip2k.c (md_assemble): Warning fix.
2541 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2542 (fill_insn <ignore>): Likewise.
2543 (debug_sym <ignore>): Likewise.
2544 (md_undefined_symbol <name>): Likewise.
2545 (m32r_scomm <ignore>): Likewise.
2546 (md_convert_frag <abfd>): Likewise.
2547 (md_cgen_lookup_reloc <insn>): Likewise.
2548 (m32r_record_hi16 <seg>): Likewise.
2549 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2550 (allow_m32rx): Prototype.
2551 (first_writes_to_seconds_operands): Prototype.
2552 (writes_to_pc): Prototype.
2553 (can_make_parallel): Prototype.
2554 (make_parallel): Prototype.
2555 (target_make_parallel): Prototype.
2556 (assemble_two_insns): Prototype.
2557 (m32r_record_hi16): Prototype.
2558 (md_atof): Remove declaration of atof_ieee.
2559 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2560 (m32r_force_relocation): Prototype.
2561 (m32r_elf_section_change_hook): Prototype.
2562 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2563 (md_show_usage): Fix signed/unsigned warning.
2564 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2565 (calcop): Ditto for reg_prefix var.
2566 (hexval): Add cast to fix signed/unsigned warning.
2567 (md_number_to_disp): Delete unused function.
2568 (md_number_to_field): Likewise.
2569 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2570 (match_name): Prototype.
2571 (get_bf2): Prototype.
2572 (get_bf_offset_expression): Prototype.
2573 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2574 (md_undefined_symbol <ignore>): Likewise.
2575 (md_create_short_jump <all args>): Likewise.
2576 (md_create_long_jump <all args>): Likewise.
2577 (md_convert_frag <abfd, sec>): Likewise.
2578 (md_apply_fix3 <segment>): Likewise.
2579 (md_section_align <segment>): Likewise.
2580 (md_pcrel_from_section <sec>): Likewise.
2581 (tc_gen_reloc <section>): Likewise.
2582 (reg_m, reg_n, immediate): Delete unused vars.
2583 (dump_literals): Fix signed/unsigned warning.
2584 (enter_literal): Likewise.
2585 (parse_imm): Likewise. Also fix format string.
2586 (parse_mem): Remove unused var.
2587 (md_assemble <LS>): Abort on unexpected inst.
2588 (md_atof): Remove declaration of atof_ieee.
2589 (md_parse_option): Remove unused vars.
2590 (md_apply_fix3): Fix format strings, cast args.
2591 (tc_gen_reloc): Delete unused var.
2592 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2593 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2594 (md_undefined_symbol <name>): Likewise.
2595 (md_convert_frag <abfd>): Likewise.
2596 (tc_gen_reloc <seg>): Likewise.
2597 (check_operand <insn>): Likewise.
2598 (md_convert_frag): Fix format strings.
2599 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2600 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2601 (md_atof): Remove declaration of atof_ieee.
2602 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2603 (md_apply_fix3): Fix bogus >>='s.
2604 (md_undefined_symbol): Delete unused var.
2605 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2606 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2607 (fake_opcode): Adjust for pj_opc_int_t change.
2608 (md_begin): Likewise.
2609 (md_assemble): Likewise.
2610 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2611 instead of non-existent third arg of parse_exp_save_ilp.
2612 (md_parse_option): Correct "little" and "big" calls.
2613 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2614 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2615 (tc_gen_reloc <section>): Likewise.
2616 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2617 (debug): Rewrite using VA_* macros.
2618 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2619 (md_convert_frag): Likewise.
2620 (md_parse_option): Likewise.
2621 (md_show_usage): Likewise.
2622 (md_undefined_symbol): Likewise.
2623 (tc_gen_reloc): Likewise.
2624 (md_operand): Likewise.
2625 (tc_aout_pre_write_hook): Delete.
2626 (struct tic30_insn): Make "operands" unsigned.
2627 (struct tic30_par_insn): Likewise.
2628 (md_assemble): Likewise for "count", "i" and "numops".
2629 (tic30_parallel_insn): Likewise for vars here.
2630 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2631 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2632 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2633 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2634 (md_undefined_symbol): Likewise.
2635 (md_parse_option): Likewise.
2636 (md_convert_frag): Likewise.
2637 (tc_coff_symbol_emit_hook): Likewise.
2638 (md_atof): Remove declaration of atof_ieee.
2639 (const_overflow): Warning fixes, tidy.
2640 (get_operands): Delete unused vars.
2641 (internal_error_a): Adjust format string to expect a long for arg.
2642 (find_opcode): Warning fixes, simplify.
2643 (build_insn): Cast internal_error_a arg.
2644 (md_begin): Likewise.
2645 (md_apply_fix3): Likewise.
2646 (md_assemble): Delete unused var.
2647 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2648 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2649 (whatreg, parse_reg, parse_exp): Make static, prototype.
2650 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2651 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2652 (get_operand, get_operands, get_specific, newfix): Likewise.
2653 (apply_fix, build_bytes): Likewise.
2654 (md_atof): Remove declaration of atof_ieee.
2655 (tc_aout_fix_to_chars): Delete.
2656 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2658 (md_parse_option): Fix s_segm and s_unseg calls.
2660 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2662 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2664 (RELAX_BRANCH_RELOC_S2): Delete.
2665 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2666 Do not handle BFD_RELOC_16_PCREL.
2667 (macro_build, mips_ip): Likewise.
2668 (md_pcrel_from): Return 4 for undefined symbols regardless of
2670 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2671 Don't dereference howto if no such relocation is available.
2672 Do not apply hack for in-place zero addend in NEWABI.
2673 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2675 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2676 Alan Modra <amodra@bigpond.net.au>
2678 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2679 (TC_LINKRELAX_FIXUP): Add comments.
2681 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2683 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2685 (r_register_name, xr_register_name): Add prototype declarations.
2687 2002-12-08 H.J. Lu <hjl@gnu.org>
2689 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2690 copied from tc-i386.c.
2692 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2694 Fix Bug savannah/1825:
2695 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2696 (md_relax_table): Define specific relax for PC-rel offsets.
2697 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2698 (m68hc11_relax_frag): Handle the new relax code.
2699 (md_convert_frag): Likewise.
2700 (md_estimate_size_before_relax): Likewise.
2702 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2704 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2706 2002-12-05 Richard Henderson <rth@redhat.com>
2708 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2709 (ia64_gen_real_reloc_type): Handle it.
2710 (pseudo_func): Add @ltoffx.
2711 (md_begin): Build .<ltoffx>.
2712 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2714 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2716 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2717 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2718 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2719 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2720 COFF to call arm_force_relocation.
2722 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2724 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2726 (emit_one_bundle): Handle "hint" instruction.
2727 (operand_match): Match IA64_OPND_AR_CSD.
2729 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2731 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2734 2002-12-03 Nick Clifton <nickc@redhat.com>
2736 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2737 .PPC.EMB.apuinfo sections.
2739 2002-12-03 Richard Henderson <rth@redhat.com>
2741 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2743 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2745 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2746 (cons, s_align_bytes): Delete declaration.
2748 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2750 (dot): Delete unused function.
2751 (w65_expression): Remove unused arg.
2752 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2754 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2756 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2758 (check): Remove unused function.
2759 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2760 on unhandled switch case.
2761 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2763 (tc_crawl_symbol_chain): Delete unused function.
2764 (tc_headers_hook): Likewise.
2765 (tc_Nout_fix_to_chars): Likewise.
2766 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2767 (md_parse_option): Likewise.
2768 (md_convert_frag): Likewise.
2769 (tc_coff_symbol_emit_hook): Likewise.
2770 (md_show_usage): Likewise.
2771 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2772 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2773 (w65_expression): Declare.
2775 * po/POTFILES.in: Regenerate.
2777 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2778 and ARM_ADRL_IMMEDIATE.
2780 2002-12-02 Nick Clifton <nickc@redhat.com>
2782 * gasp.c: Delete. It has been deprecated.
2783 * NEWS: Mention that gasp has been removed.
2784 * Makefile.am: Remove references to gasp.
2785 * makefile.vms: Likewise.
2786 * mpw-make.sed: Likewise.
2787 * Makeile.in: Regenerate.
2788 * doc/gasp.texi: Delete.
2789 * doc/Makefile.am: Remove references to gasp.texi.
2790 * doc/Makefile.in: Regenerate.
2791 * macro.c: Delete references to gasp.
2792 Remove use of comment_char function parameter as it is no longer
2794 * macro.h: Update prototypes to remove comment_char parameter.
2796 * read.c (read_a_source_file, s_irp): Remove comment_char
2797 parameter from invocation of functions in macro.c
2799 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2801 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2803 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2805 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2806 (tc_gen_reloc): Mark section param as not used.
2808 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2810 Fix Bug savannah/1825:
2811 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2812 that are not pc-relative.
2813 (m68hc11_relax_frag): Declare.
2815 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2816 the offsetable indexed addressing modes (n,r).
2817 (build_insn): Cleanup some locals.
2818 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2819 relaxation of difference between two symbols of same section.
2820 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2821 only when this is a PC-relative operand and the offset is not absolute.
2822 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2823 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2824 be handled by m68hc11_relax_frag.
2826 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2828 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2829 (32-bit int, 64-bit double).
2830 (md_longopts): New options -mshort, -mlong, -mshort-double and
2831 -mlong-double to control the ABI.
2832 (md_show_usage): Update.
2833 (md_parse_option): Handle new options.
2834 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2836 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2838 * symbols.c (report_op_error): New function, broken out of ...
2839 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2842 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2844 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2845 for BFD_RELOC_32_PLT_PCREL.
2847 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2849 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2850 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2851 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2852 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2853 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2854 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2855 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2856 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2857 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2858 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2859 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2860 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2861 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2862 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2863 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2864 TRUE/FALSE. Formatting.
2866 2002-11-29 Nick Clifton <nickc@redhat.com>
2868 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2869 assume a value of zero.
2870 (do_bkpt): Likewise.
2872 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2874 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2875 for TLS relocations.
2877 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2879 * config/tc-ia64.c (md_apply_fix3): Add default case.
2881 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2883 * symbols.c (S_SET_THREAD_LOCAL): New function.
2884 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2885 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2886 for TLS relocations.
2887 * config/tc-ia64.c (md_apply_fix3): Likewise.
2888 * config/tc-alpha.c (md_apply_fix3): Likewise.
2890 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2892 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2895 2002-11-26 DJ Delorie <dj@redhat.com.
2897 * dwarf2dbg.c (scale_addr_delta): New.
2898 (size_inc_line_addr): Use it.
2899 (emit_inc_line_addr): Use it.
2901 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2903 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2904 (md_assemble): Don't pass on branches to constants as relaxable.
2907 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2909 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2911 2002-11-21 Randolph Chung <randolph@tausq.org>
2913 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2914 only if they have default visibility.
2916 2002-11-21 Richard Henderson <rth@redhat.com>
2918 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2921 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2923 * config/tc-mcore.c (mcore_pool_count): New function.
2924 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2926 2002-11-20 Klee Dienes <kdienes@apple.com>
2928 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2929 coalesce the name fields to use the same pointer.
2931 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2932 the name fields to use the same pointer.
2933 (get_specific): Check for opcodes with the same name using strcmp
2934 as well as comparing the pointer.
2936 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2938 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2941 2002-11-19 Richard Henderson <rth@redhat.com>
2943 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2944 visibility portion of st_other.
2946 2002-11-19 Klee Dienes <kdienes@apple.com>
2948 * config/tc-h8300.c (struct h8_instruction): New type, used to
2949 wrap h8_opcodes with length, noperands, idx, and size fields
2950 (computed at run-time).
2951 (h8_instructions): New variable.
2952 (md_begin): Allocate the storage for h8_instructions. Fill
2953 h8_instructions with pointers to the appropriate opcode and the
2954 correct value for the additional fields.
2955 (clever_message): Update to use h8_instructions instead of
2957 (build_bytes): Ditto.
2958 (get_specific): Ditto.
2959 (md_assemble): Ditto.
2961 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2963 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2964 adjustments to symbols in merge sections.
2966 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2968 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2970 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2972 * dwarf2dbg.h (dwarf2_format): New enum.
2973 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2974 (out_debug_line, out_debug_info): Add code for handling 64-bit
2976 * config/tc-mips.h (mips_dwarf2_format): Declare.
2977 * config/tc-mips.c (mips_dwarf2_format): New function.
2978 * doc/internals.texi (DWARF2_FORMAT): Document.
2980 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2982 * config/tc-mips.c (s_change_section): Make sure input buffer
2983 is not accessed past the end. Don't hand
2984 obj_elf_change_section a pointer into the input buffer.
2986 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2988 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2991 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2993 * config/tc-tic4x.c: Fixed proper commandline
2994 parameters. Added support for new opcode-list format. General
2995 error message fixups.
2996 (c4x_inst_add): Reject insn not for our CPU
2997 (md_begin): Added matrix for setting the proper opcode-level &
2998 device-flags according to cpu type and revision. Rewrite the
3000 (c4x_operand_parse): Fix opcode bug
3001 (c4x_operands_match): New function argument. Added dry-run
3002 mechanism, that is optional error generation. Added constraint 'i'
3004 (c4x_insn_check): Added new function for post-verification of the
3006 (md_assemble): Check all opcodes before croaking because of an
3007 argument mismatch. Need this to be able to fully support
3008 ortogonally arguments.
3009 (md_parse_options): Revised commandprompt swicthes and added new
3011 (md_show_usage): Complete rewrite of printout.
3013 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3015 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3016 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3017 warning when using constant direct bigger than 2^16. Add the new
3020 2002-11-11 Christopher Faylor <cgf@redhat.com>
3022 * configure.in: Use .gdbinit under Cygwin.
3023 * configure: Regenerate.
3025 2002-11-11 Christopher Faylor <cgf@redhat.com>
3027 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3030 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3032 * config/tc-tic4x.c: Declare as many functions as possible as
3033 static. Maintenance on the general indenting. Removed unnecessary
3034 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3035 function. Add support for new DSP, TMS320VC33. Fix bug for
3036 converting flonum constants.
3037 (c4x_do_align): Add proper align handling. Setup align to insert
3039 (c4x_gen_to_words): Support for extended TI type floats.
3040 (md_atof): Proper dumping of multiple-word littlenums.
3041 (c4x_atof): Added support for extended TI type floats.
3042 (c4x_stringer): Added new function to handle compact strings.
3043 (c4x_emit_char): Added new function argument to handle custom
3044 length inserts, like single-byte strings.
3045 * config/tc-tic4x.h: Add proper align handling with NOP's.
3046 * Makefile.am: Added tic4x dependecy
3047 * Makefile.in: Regenerate
3049 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3051 * macro.c (get_any_string): Correct logic for not going beyond end
3054 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3056 * config/tc-mmix.c (get_putget_operands): Mark both possible
3057 operands as invalid at beginning.
3059 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3060 Initialize target of fixup to zero.
3062 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3064 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3065 NEWABI, but we should still emit HI16_S for non-PIC n32.
3067 2002-11-06 Richard Henderson <rth@redhat.com>
3069 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3070 (alpha_fix_adjustable): ... here.
3071 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3073 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3075 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3078 2002-11-05 H.J. Lu <hjl@gnu.org>
3080 * config/tc-mips.c (support_64bit_objects): Check *l before it
3083 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3085 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3086 SEC_LOAD flags for sections marked as 's'.
3088 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3090 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3091 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3092 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3095 * dep-in.sed: Fix typo.
3097 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3099 * configure.in: Update ARM CPU patterns.
3100 * configure: Regenerated.
3102 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3104 * itbl-lex.l: Use #include <> for generated headers.
3105 * itbl-ops.c: Likewise.
3107 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3109 * doc/gasp.texi: Fix typo in deprecation note.
3111 2002-10-23 Nick Clifton <nickc@redhat.com>
3113 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3114 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3116 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3118 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3119 (tc_frob_file_before_adjust): Don't define.
3120 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3122 (mmix_frob_file_before_adjust): Remove ineffective function.
3124 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3126 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3127 (cris_relax_frag): New function.
3128 (md_estimate_size_before_relax) <case ENCODE_RELAX
3129 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3130 expressions that will become absolute expressions to relaxation.
3131 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3132 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3133 value, not distance to symbol.
3134 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3135 Ditto. Correct placement of fixup.
3136 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3138 * config/tc-cris.h (cris_relax_frag): Declare.
3139 (md_relax_frag): Define.
3141 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3143 * config/obj-elf.c (special_sections): Use correct types for init
3145 (obj_elf_change_section): Don't mess with init array section type.
3147 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3149 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3150 for relocs against symbols in a merged section.
3152 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3154 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3155 table as register names.
3157 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3159 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3162 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3164 * expr.c (operand): Add support for n.nn flonums.
3166 2002-10-17 Johannes Stezenbach <js@convergence.de>
3168 * itbl-parse.y (entry): Provide empty action.
3170 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3172 * configure.in (BFDVER_H): Set and subst.
3173 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3174 * Makefile.am: Run "make dep-am".
3176 * configure: Regenerate.
3177 * Makefile.in: Regenerate.
3178 * doc/Makefile.in: Regenerate.
3180 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3182 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3183 (MD_APPLY_SYM_VALUE): Define for PE too.
3185 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3187 * Makefile.am: Run "make dep-am".
3188 (CPU_OBJ_VALID): sh64 coff is invalid.
3189 * as.c: #include "bfdver.h".
3190 * Makefile.in: Regenerate.
3191 * config.in: Regenerate.
3193 2002-10-14 Momchil Velikov <velco@fadata.bg>
3195 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3197 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3199 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3200 * configure: Regenerate.
3202 2002-10-13 Eric Christopher <echristo@redhat.com>
3203 Alexandre Oliva <aoliva@redhat.com>
3205 * config/tc-mips.c (s_gpdword): New function.
3206 (mips_pseudo_table): Add .gpdword.
3207 (mips_need_elf_addend_fixup): never for NEWABI.
3208 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3210 (s_cpadd): Generate .cpadd on NEWABI.
3212 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3214 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3216 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3218 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3219 (md_relax_frag): Adjust macro.
3220 * config/tc-mips.c (mips_relax_branch): New variable.
3221 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3222 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3223 (RELAX_MIPS16_P): Adjust.
3224 (append_insn): Emit branch to non-constant in a frag_var if
3225 branch-relaxation is desirable and possible.
3226 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3227 (OPTION_ELF_BASE): Adjust.
3228 (md_parse_option): Handle new options.
3229 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3231 (relaxed_branch_length): New function.
3232 (md_estimate_size_before_relax): Handle branch frags.
3233 (mips_relax_frag): Likewise.
3234 (md_convert_frag): Handle branch frags. Warn if branch is
3237 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3239 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3241 (md_apply_fix3): Add TLS relocs.
3242 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3245 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3246 Alan Modra <amodra@bigpond.net.au>
3248 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3249 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3251 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3253 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3256 2002-10-09 Richard Shann <richard.shann@superh.com>
3257 Stephen Clarke <stephen.clarke@superh.com>
3259 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3262 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3264 * contig/tc-sh.c (sh_local_pcrel): New.
3265 (sh_force_relocation): Use sh_local_pcrel.
3266 (md_pcrel_from_section): Check the relocation type whether it
3267 should be resolved locally. Use S_FORCE_RELOC.
3269 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3271 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3272 (TC_FORCE_RELOCATION): Tidy arg.
3274 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3275 Ken Raeburn <raeburn@cygnus.com>
3276 Aldy Hernandez <aldyh@redhat.com>
3277 DJ Delorie <dj@redhat.com>
3278 Michael Meissner <meissner@redhat.com>
3279 Eric Christopher <echristo@redhat.com>
3280 Richard Sandiford <rsandifo@redhat.com>
3282 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3283 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3284 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3285 (hilo_interlocks): True for CPU_VR5500.
3286 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3287 (mips_fix_vr4122_bugs): New.
3288 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3289 (mips_emit_delays): Likewise.
3290 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3291 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3292 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3293 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3294 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3295 (OPTION_ELF_BASE): Bump.
3296 (md_parse_option): Handle the new options.
3297 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3300 2002-09-29 H.J. Lu <hjl@gnu.org>
3302 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3303 twice if howto->pcrel_offset is true.
3305 2002-09-28 Matt Thomas <matt@3am-software.com>
3306 Jason Thorpe <thorpej@wasabisystems.com>
3308 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3309 convert undefined references to GOT32/PLT32 if PIC code is
3310 requested. Fix comment.
3312 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3314 * config/tc-sh.c (sh_force_relocation): Return 0 for
3315 some PC relative relocations when not relaxing.
3317 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3319 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3320 Define them if not BFD_ASSEMBLER.
3321 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3323 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3324 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3325 (tc_gen_reloc): Handle x86-64 TLS relocs.
3327 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3329 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3330 fixups to current or absolute section.
3332 2002-09-26 Jim Wilson <wilson@redhat.com>
3334 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3337 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3339 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3340 capable configuration.
3341 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3343 (mips_ip): Likewise.
3345 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3347 * config/tc-mips.c (append_insn): Fix jump overflow check.
3349 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3351 * config/tc-i386.c (process_operands): Warn about "lea" segment
3354 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3356 * write.c: Delete set_segment_vma and prototype. Update all callers.
3358 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3360 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3361 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3362 Rename "fseg" to "sym_seg".
3363 * Makefile.am: Run "make dep-am".
3364 * Makefile.in: Regenerate.
3365 * doc/Makefile.in: Regenerate.
3367 2002-09-20 Nick Clifton <nickc@redhat.com>
3369 * symbols.c (colon): Do not allow symbols to be created in the
3370 absolute section if WORKING_DOT_WORD is not defined and
3371 new_broken_words would require a new frag to be created.
3373 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3375 * expr.c (expr): Simplify foo-foo here.
3376 (clean_up_expression): Remove O_subtract code.
3378 * write.h (struct fix): Add fx_dot_value.
3379 (dot_value): Declare.
3380 * write.c (dot_value): New var.
3381 (fix_new_internal): Save dot_value as fx_dot_value.
3382 (fixup_segment): Adjust fx_offset using fx_dot_value.
3383 * expr.c (expr): Update dot_value.
3385 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3387 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3388 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3389 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3391 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3392 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3393 BFD_RELOC_386_TLS_GOTIE.
3395 2002-09-19 Richard Henderson <rth@redhat.com>
3397 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3399 (alpha_force_relocation): Don't special-case branch type relocs.
3401 2002-09-19 Nick Clifton <nickc@redhat.com>
3403 * config/tc-m68k.c (select_control_regs): Handle situation where
3404 architecture has not yet been selected.
3406 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3408 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3409 (IS_SEXT_16BIT_NUM): New macro.
3410 (macro_build_ldst_constoffset): New function, to build a set of
3411 instructions to do a load or store from a constant offset relative
3412 to a given register.
3413 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3414 .cprestore pseudo-op.
3416 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3418 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3420 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3422 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3424 2002-09-17 Stan Cox <scox@redhat.com>
3426 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3427 (macro): Likewise for la. Likewise for ld.
3428 (mips_after_parse_args): Make -xgot optional, not the default.
3429 (md_apply_fix3): Allow composite relocation to set up gp.
3430 (tc_gen_reloc): Allow relaxing for newabi.
3431 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3432 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3434 2002-09-17 Nick Clifton <nickc@redhat.com>
3436 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3437 BFD_RELOC_ARM_IMMEDIATE has been done.
3438 (tc_gen_reloc): Do not issue reloc number of unimplemented
3439 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3440 their name is already in the error message - plus remove them
3441 from the default case.
3443 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3444 behavior of instructions.
3446 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3448 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3449 Convert functions to K&R format.
3451 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3453 * config/tc-mips.c (pdr_seg): Define only for ELF.
3454 (s_change_section): Remove unused variable. Don't use for nonELF.
3456 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3458 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3460 * config/obj-elf.h (obj_elf_change_section): Likewise.
3462 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3464 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3465 (out_debug_info): Likewise.
3467 2002-09-16 Bruno Haible <bruno@clisp.org>
3469 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3470 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3471 * config/tc-i386.c (i386_target_format): Likewise.
3472 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3473 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3475 2002-09-13 Nick Clifton <nickc@redhat.com>
3477 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3478 when deciding if any operands have been skipped.
3480 2002-09-11 Nick Clifton <nickc@redhat.com>
3482 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3484 * po/tr.po: Updated Turkish translation.
3486 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3488 * config/tc-i386.c (md_apply_fix3): Allow addend for
3489 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3490 BFD_RELOC_386_TLS_LE_32.
3492 2002-09-05 Jeff Law <law@redhat.com>
3494 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3495 marker relocations such as ENTRY/EXIT.
3496 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3497 to both OBJ_ELF and OBJ_SOM.
3499 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3501 * doc/internals.texi (md_apply_fix3): Expand.
3502 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3503 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3504 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3505 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3506 EXTERN_FORCE_RELOC): Document.
3507 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3508 * as.h: Don't include struc-symbol.h for arc.
3510 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3511 subtract absolute symbol.
3512 * obj.h (struct format_ops): Add frob_file_before_fix.
3513 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3514 * symbols.c (S_FORCE_RELOC): New function.
3515 * symbols.h (S_FORCE_RELOC): Declare.
3516 * write.c (TC_FORCE_RELOCATION): Change default.
3517 (TC_FORCE_RELOCATION_ABS): Define.
3518 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3519 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3520 (TC_FORCE_RELOCATION_SECTION): Don't define.
3521 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3522 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3523 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3524 (TC_VALIDATE_FIX_SUB): Define.
3525 (TC_FIX_ADJUSTABLE): Don't define.
3526 (MD_APPLY_SYM_VALUE): Define this instead.
3527 (abs_section_sym): New variable.
3528 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3529 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3530 Don't put the absolute section sym on fixups here.
3531 (fix_segment): New function.
3532 (write_relocs): Don't call fixup_segment from here.
3533 (write_object_file): Instead call tc_frob_file_before_fix,
3534 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3535 Don't output the absolute section symbol.
3536 (fixup_segment): Rewrite.
3537 * write.h (abs_section_sym): Declare.
3538 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3540 (aout_format_ops): Adjust to suit.
3541 * config/obj-aout.h (obj_frob_file): Don't define.
3542 (obj_frob_file_before_fix): Define.
3543 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3544 (S_FORCE_RELOC): Define.
3545 * config/obj-bout.h (S_FORCE_RELOC): Define.
3546 * config/obj-coff.c (coff_format_ops): Init new field.
3547 * config/obj-coff.h: Formatting fixes.
3548 (obj_sec_sym_ok_for_reloc): Define.
3549 (S_FORCE_RELOC): Define.
3550 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3551 (ecoff_frob_file): .. from here.
3552 (ecoff_format_ops): Add new function.
3553 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3554 (obj_frob_file_before_fix): Define.
3555 * config/obj-elf.c (elf_format_ops): Init new field.
3556 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3557 * config/obj-ieee.h: Formatting fixes.
3558 (S_FORCE_RELOC): Define.
3559 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3560 * config/obj-vms.h (S_FORCE_RELOC): Define.
3561 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3562 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3563 for BFD_RELOC_32 and BFD_RELOC_64.
3564 (alpha_fix_adjustable): Remove extern and weak tests.
3565 (alpha_before_fix): Rename from alpha_adjust_symtab.
3566 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3567 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3568 (TC_VALIDATE_FIX): Tweak param name.
3569 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3570 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3571 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3572 (MD_APPLY_SYM_VALUE): Define.
3573 (tc_adjust_symtab): Don't define.
3574 (alpha_adjust_symtab): Don't declare.
3575 (tc_frob_file_before_fix): Define.
3576 (alpha_before_fix): Declare.
3577 (TC_INIT_FIX_DATA): Tweak param names.
3578 * config/tc-arc.c: Include "struc-symbol.h".
3579 (md_pcrel_from): Remove undefined sym fudge.
3580 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3581 Don't set fx_addnumber.
3582 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3583 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3584 (EXTERN_FORCE_RELOC): Define.
3585 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3586 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3587 (arm_validate_fix): Return void.
3588 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3589 Add plt and got reloc tests.
3590 (arm_force_relocation): Call S_FORCE_RELOC.
3591 * config/tc-arm.h (struct fix): Forward declare.
3592 (TC_VALIDATE_FIX): No longer set add_symbolP.
3593 (arm_validate_fix): Adjust declaration.
3594 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3595 (TC_FORCE_RELOCATION): Tweak param name.
3596 (TC_INIT_FIX_DATA): Likewise.
3597 (obj_fix_adjustable): Don't define.
3598 (tc_fix_adjustable): Call arm_fix_adjustable.
3599 (TC_FIX_ADJUSTABLE): Don't define.
3600 (MD_APPLY_SYM_VALUE): Define.
3601 (EXTERN_FORCE_RELOC): Define.
3602 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3603 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3604 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3605 Remove *valP fudges and code to subtract abs sym. Don't set
3607 * config/tc-avr.h: Formatting.
3608 (EXTERN_FORCE_RELOC): Define.
3609 (MD_APPLY_SYM_VALUE): Define.
3610 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3611 (md_apply_fix3): Remove code to subtract abs sym.
3612 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3613 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3614 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3615 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3616 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3617 (tc_fix_adjustable): Remove extern, weak tests.
3618 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3619 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3620 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3621 and code to subtract abs sym.
3622 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3623 (d10v_force_relocation): Call S_FORCE_RELOC.
3624 * config/tc-d10v.h: Don't include write.h.
3625 (struct fix): Instead, forward declare.
3626 (MD_PCREL_FROM_SECTION): Tweak param names.
3627 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3628 (d10v_fix_adjustable): Likewise.
3629 (obj_fix_adjustable): Don't define.
3630 (tc_fix_adjustable): Define.
3631 (TC_FORCE_RELOCATION): Tweak param name.
3632 (MD_APPLY_SYM_VALUE): Define.
3633 (EXTERN_FORCE_RELOC): Define.
3634 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3635 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3636 and code to subtract abs sym.
3637 * config/tc-d30v.h: Don't include write.h.
3638 (struct fix): Instead, forward declare.
3639 (MD_PCREL_FROM_SECTION): Tweak param names.
3640 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3641 (MD_APPLY_SYM_VALUE): Define.
3642 (EXTERN_FORCE_RELOC): Define.
3643 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3644 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3645 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3646 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3647 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3648 Don't use fx_addnumber.
3649 * config/tc-dlx.h: Don't include write.h.
3650 (md_convert_frag): We're not alpha twice over.
3651 (EXTERN_FORCE_RELOC): Define.
3652 (obj_fix_adjustable): Don't define.
3653 (tc_fix_adjustable): Define.
3654 (TC_FIX_ADJUSTABLE): Don't define.
3655 (MD_APPLY_SYM_VALUE): Define.
3656 (LOCAL_LABELS_DOLLAR): Undef always.
3657 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3658 (fr30_fix_adjustable): Remove extern, weak tests.
3659 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3660 (obj_fix_adjustable): Don't define.
3661 (tc_fix_adjustable): Define.
3662 (struct fix): Forward declare.
3663 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3664 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3665 (frv_fix_adjustable): Don't do extern, weak tests.
3666 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3667 (TC_FIX_ADJUSTABLE): Don't define.
3668 (obj_fix_adjustable): Don't define.
3669 (tc_fix_adjustable): Define.
3670 (struct fix): Forward declare.
3671 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3672 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3673 * config/tc-h8300.h (struct fix): Forward declare.
3674 (EXTERN_FORCE_RELOC): Define.
3675 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3676 (hppa_fix_adjustable): Don't test extern or weak. Don't
3677 symbol_mark_used_in_reloc.
3678 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3680 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3681 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3682 (TC_FORCE_RELOCATION_SECTION): Don't define.
3683 (MD_APPLY_SYM_VALUE): Define.
3684 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3685 to subtract abs sym.
3686 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3687 (MD_APPLY_SYM_VALUE): Define.
3688 (MD_PCREL_FROM_SECTION): Tweak param name.
3689 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3690 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3691 (i386_force_relocation): New function.
3692 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3693 (TC_VALIDATE_FIX): Likewise.
3694 (TC_FIX_ADJUSTABLE): Don't define.
3695 (MD_APPLY_SYM_VALUE): Define.
3696 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3697 (i386_force_relocation): Declare.
3698 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3699 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3700 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3701 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3702 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3703 (EXTERN_FORCE_RELOC): Define.
3704 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3705 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3706 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3707 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3708 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3709 Remove #if 0 code. Invert return boolean.
3710 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3711 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3712 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3713 (tc_coff_sizemachdep): Prototype.
3714 (i960_handle_align): Likewise.
3715 (i960_validate_fix): Adjust declaration.
3716 (reloc_callj): Likewise.
3717 (EXTERN_FORCE_RELOC): Define.
3718 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3719 (TC_FORCE_RELOCATION_ABS): Define.
3720 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3721 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3722 (TC_FIX_ADJUSTABLE): Don't define.
3723 (MD_APPLY_SYM_VALUE): Define.
3724 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3725 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3726 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3727 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3728 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3729 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3730 (MD_APPLY_SYM_VALUE): Define.
3731 (EXTERN_FORCE_RELOC): Define.
3732 (TC_FORCE_RELOCATION): Tweak param name.
3733 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3734 (m32r_fix_adjustable): Don't test extern, weak.
3735 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3736 (MD_APPLY_SYM_VALUE): Define.
3737 (obj_fix_adjustable): Don't define.
3738 (tc_fix_adjustable): Define.
3739 (tc_frob_file): Don't define.
3740 (tc_frob_file_before_fix): Define.
3741 (EXTERN_FORCE_RELOC): Define.
3742 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3743 BFD_RELOC_VTABLE_ENTRY address.
3744 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3745 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3746 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3747 Remove duplicated fx_done code.
3748 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3749 (EXTERN_FORCE_RELOC): Define.
3750 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3752 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3753 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3754 (TC_FIX_ADJUSTABLE): Don't define.
3755 (EXTERN_FORCE_RELOC): Define.
3756 (MD_APPLY_SYM_VALUE): Define.
3757 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3758 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3759 Remove fx_addsy tests.
3760 (mcore_force_relocation): Call S_FORCE_RELOC.
3761 (mcore_fix_adjustable): Don't test fx_addsy.
3762 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3763 (EXTERN_FORCE_RELOC): Define.
3764 (obj_fix_adjustable): Don't define.
3765 (tc_fix_adjustable): Define.
3766 (MD_APPLY_SYM_VALUE): Define.
3767 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3768 (mips_pic): No longer static.
3769 (mips_force_relocation): Call S_FORCE_RELOC.
3770 (mips_fix_adjustable): Remove extern, weak tests.
3771 * config/tc-mips.h (enum mips_pic_level): Declare.
3772 (mips_pic): Declare.
3773 (tc_frob_file): Don't define.
3774 (tc_frob_file_before_fix): Define this instead.
3775 (EXTERN_FORCE_RELOC): Define.
3776 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3777 with reg_section tests. Set fx_done instead of calling
3778 symbol_clear_used_in_reloc on bad relocs.
3779 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3780 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3781 (mmix_adjust_symtab): Simplify list handling. Abort on any
3783 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3784 BFD_RELOC_MMIX_LOCAL.
3785 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3786 (EXTERN_FORCE_RELOC): Define.
3787 (MD_PCREL_FROM_SECTION): Tweak param name.
3788 (tc_frob_file): Don't define.
3789 (tc_frob_file_before_fix): Define this instead.
3790 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3791 Remove SEC_CODE checks.
3792 (mn10300_fix_adjustable): Remove extern and weak tests.
3793 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3794 (TC_FORCE_RELOCATION): Tweak param name.
3795 (obj_fix_adjustable): Don't define.
3796 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3797 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3798 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3799 (openrisc_fix_adjustable): Don't test fx_addsy.
3800 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3801 (obj_fix_adjustable): Don't define.
3802 (tc_fix_adjustable): Define this instead.
3803 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3804 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3805 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3806 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3807 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3808 (MD_APPLY_SYM_VALUE): Define.
3809 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3810 Don't subtract symbol value.
3811 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3812 (EXTERN_FORCE_RELOC): Define.
3813 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3814 (MD_APPLY_SYM_VALUE): Define.
3815 (obj_fix_adjustable): Don't define.
3816 (tc_fix_adjustable): Define this instead.
3817 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3819 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3820 (ppc_force_relocation <elf version>): New.
3821 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3822 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3823 comments. Don't subtract fx_subsy as that is already done.
3824 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3825 (MD_PCREL_FROM_SECTION): Likewise.
3826 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3827 ppc_force_relocation.
3828 (TC_FORCE_RELOCATION_SECTION): Delete.
3829 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3830 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3831 (MD_APPLY_SYM_VALUE): Define.
3832 * config/tc-s390.c: #include "dwarf2dbg.h".
3833 (s390_insn): Remove excess parens.
3834 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3835 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3836 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3837 non-NULL. Don't subtract off fx_addsy value.
3838 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3839 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3840 (TC_FIX_ADJUSTABLE): Don't define.
3841 (MD_APPLY_SYM_VALUE): Define.
3842 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3843 (SWITCH_TABLE): Likewise.
3844 (sh_force_relocation): Call S_FORCE_RELOC.
3845 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3846 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3847 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3848 fx_addnumber is zero on entry. Save val in fx_addnumber.
3849 (tc_gen_reloc): Don't subtract fx_subsy.
3850 * config/tc-sh.h (struct fix): Move.
3851 (obj_fix_adjustable): Don't define.
3852 (tc_fix_adjustable): Define this instead.
3853 (TC_FIX_ADJUSTABLE): Don't define.
3854 (MD_APPLY_SYM_VALUE): Define.
3855 (SWITCH_TABLE_CONS): Define.
3856 (SWITCH_TABLE): Define.
3857 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3858 (TC_VALIDATE_FIX_SUB): Define.
3859 (MD_PCREL_FROM_SECTION): Tweak param name.
3860 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3861 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3862 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3863 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3864 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3865 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3866 (TC_VALIDATE_FIX_SUB): Define.
3867 (MD_PCREL_FROM_SECTION): Tweak param name.
3868 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3869 (tc_gen_reloc): Use S_FORCE_RELOC.
3870 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3871 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3872 (TC_FORCE_RELOCATION_ABS): Define this instead.
3873 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3874 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3875 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3876 (MD_APPLY_SYM_VALUE): Define.
3877 (TC_FIX_DATA_PRINT): Tweak param name.
3878 * config/tc-tic30.c (USE_STDOUT): Don't define.
3879 (md_parse_option): Remove stupid debug code.
3880 (tc_gen_reloc): Don't use fx_addnumber.
3881 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3882 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3883 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3884 (tc_fix_adjustable): Define this instead.
3885 (TC_FIX_ADJUSTABLE): Don't define.
3886 (MD_APPLY_SYM_VALUE): Define this instead.
3887 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3888 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3889 (TC_FIX_ADJUSTABLE): Don't define.
3890 (MD_APPLY_SYM_VALUE): Define this instead.
3891 (tc_fix_adjustable): Remove extern and weak tests.
3892 * config/tc-w65.h (struct fix): Forward declare.
3893 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3895 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3896 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3897 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3899 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3900 (MD_APPLY_SYM_VALUE): Define.
3901 (obj_fix_adjustable): Don't define.
3902 (tc_fix_adjustable): Define this instead.
3903 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3905 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3907 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3908 (ppc_fix_adjustable <coff version>): Cleanup.
3910 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3911 (md_parse_option): No -a64 without BFD64.
3912 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3913 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3915 2002-09-04 Nick Clifton <nickc@redhat.com>
3917 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3918 instructions into the hash table if the target cpu is the BookE32.
3920 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3922 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3925 2000-08-28 Catherine Moore <clm@redhat.com>
3927 * tc-v850.c (v850_relax): Declare.
3928 (v850_longcode): New routine.
3929 (v850_handle_align): New routine.
3930 (md_pseudo_table): Add longcall and longjump.
3931 (md_parse_option): Check for relax option.
3932 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3933 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3934 (md_apply_fix3): Likewise.
3935 (v850_force_relocation): Likewise.
3936 (v850_comm): Change the current section.
3937 (md_assemble): Ensure that the correct value is put in the
3939 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3940 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3941 Remove redundant v850ea support.
3942 * tc-v850.h (HANDLE_ALIGN): Define.
3943 (v850_handle_align): Declare.
3944 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3946 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3948 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3949 * configure: Regenerate.
3950 * NEWS: Mention new port.
3952 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3954 * config/obj-coff.c: Add sdef definition.
3955 * config/obj-coff.h: Add tic4x include file and set
3957 * config/tc-tic4x.c: New file.
3958 * config/tc-tic4x.h: New file.
3960 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3962 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3963 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3964 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3965 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3966 (RELOC_ENUM): Define.
3967 (fix_new_internal): Use RELOC_ENUM.
3968 (fix_new, fix_new_exp): Likewise.
3969 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3970 Replace gotos with continue.
3971 (write_relocs): Formatting. Avoid symbol loops in
3972 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3973 errors, and error number in other cases.
3974 (fixup_segment): Remove param names from prototype. Rename
3975 "this_segment_type" to "this_segment". Update linkrelax comment.
3976 Remove "size, "place" and "where" local vars. Formatting. Update
3977 "no symbol" comment. Remove #if 0 and #if 1.
3979 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3981 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3983 * dwarf2dbg.c: Always include dwarf2dbg.h.
3984 (dwarf2_directive_file): Adjust dummy version args.
3985 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3986 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3987 when symbol values differ.
3988 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3989 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3990 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3992 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3994 * config/tc-w65.c (md_section_align): Fix typo.
3995 (md_parse_option): Return 0, not 1.
3997 2002-08-22 Nick Clifton <nickc@redhat.com>
3999 * doc/as.texinfo (Section): Note that if '@' is a comment
4000 character then another symbol is used to prefix the section's
4003 2002-08-22 Christian Groessler <chris@groessler.org>
4005 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4008 2002-08-12 Graeme Peterson <gp@qnx.com>
4010 * configure.in: Add support for sh-**-nto* target.
4011 * configure: Regenerate.
4013 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4015 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4017 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4019 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4021 (ppc_apuinfo_section_add): Define only if format is ELF.
4022 (md_assemble): Emit APUinfo section only if format is ELF.
4025 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4027 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4028 * config/tc-frv.c: Likewise.
4029 * config/tc-hppa.c: Likewise.
4030 * config/tc-ia64.c: Likewise.
4031 * config/tc-ip2k.c: Likewise.
4032 * config/tc-m68hc11.c: Likewise.
4033 * config/tc-m68k.c: Likewise.
4034 * config/tc-mmix.c: Likewise.
4035 * config/tc-mn10300.c: Likewise.
4036 * config/tc-sh.c: Likewise.
4037 * config/tc-sparc.c: Likewise.
4038 * config/tc-v850.c: Likewise.
4040 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4042 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4045 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4047 From matthew green <mrg@redhat.com>
4049 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4050 PPC_OPCODE_PPC is, except for BookE architectures.
4051 (md_parse_option): Add support for -mspe.
4052 (md_show_usage): Add -mspe.
4053 (md_parse_option): Add support for -me500 and
4054 -me500x2 to generate code for Motorola e500 core complex.
4055 (md_show_usage): Add -me500 and -me500x2.
4057 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4058 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4059 PPC_APUINFO_BRLOCK): New macros.
4061 (ppc_cleanup): New function.
4062 (ppc_apuinfo_section_add): New function.
4064 (md_assemble): Collect info and write the APUinfo section.
4066 * config/tc-ppc.h (md_cleanup): Define.
4067 (ppc_cleanup): Export.
4068 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4070 2002-08-17 Stan Cox <scox@redhat.com>
4072 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4073 config/tc-mips.c (s_change_section): New function to support
4074 IRIX .section pseudo-op.
4076 2002-08-16 Nick Clifton <nickc@redhat.com>
4078 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4080 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4082 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4083 the fix-up against on the right frag.
4084 (s_cpsetup): Likewise. Parse third argument as expression, to
4085 handle global symbols and forward/backward labels correctly.
4087 2002-08-14 Nick Clifton <nickc@redhat.com>
4089 * read.c (stringer): Catch attempts to create strings in the abs
4092 * config/tc-alpha.c: Fix compiling for COFF targets.
4093 Some minor formatting tidyups.
4095 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4097 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4098 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4099 according to the reloc.
4100 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4101 (TC_FORCE_RELOCATION): Define.
4102 (tc_m68hc11_force_relocation): Declare.
4104 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4105 (s_m68hc11_relax): New function for relax group.
4106 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4107 beginning of jump instruction.
4108 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4109 address computation.
4110 (tc-gen_reloc): Update.
4111 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4113 (tc_m68hc11_force_relocation): New function, handle new relocs.
4114 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4115 reloc for the linker relax pass.
4116 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4119 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4121 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4122 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4123 (s_m68hc11_mode): New function for .mode pseudo op.
4124 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4126 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4127 (m68hc11_elf_final_processing): Declare.
4129 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4131 * config/tc-m68hc11.c (md_begin): Take into account additional
4132 page operand for call instruction.
4133 (print_opcode_format): Likewise.
4134 (check_range): Likewise for page range checking.
4135 (get_operand): Don't skip a possible comma in operands.
4136 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4137 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4138 (fixup24): New to handle call reloc.
4139 (build_insn): Handle missing page operand for call instruction.
4141 (md_apply_fix3): Take into account new relocs.
4142 (get_operand): Fix the mode for indexed indirect addressing.
4143 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4145 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4147 * config/tc-mips.c (mips_ip): Don't work out the value of
4148 constant %hi()s here.
4150 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4152 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4153 for ELF, and don't bother checking ELF relocs when non-ELF.
4154 (i386_immediate): Allow absolute_section expressions for aout.
4155 (i386_displacement): Likewise. Also test bfd_is_com_section.
4156 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4157 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4158 not when fx_addsy. Remove dead code.
4160 2002-08-09 Graeme Peterson <gp@qnx.com>
4162 * configure.in: Add support for ppc-*-nto* target.
4163 * configure: Regenerate.
4165 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4167 * config/tc-i386.h: Reorganize.
4169 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4171 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4172 immediate offset in "dla" and "la" expansions.
4174 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4176 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4177 Remove "bfd_gas=yes" from target table when covered later.
4178 Consolidate some entries.
4179 * configure: Regenerate
4181 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4183 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4184 at start of insn, pass it to output_disp and output_imm.
4185 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4186 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4188 (output_imm): Added arguments. Compute properly addend for
4190 (md_apply_fix3): Remove R_386_GOTPC handling.
4192 2002-08-06 George France <france@handhelds.org>
4194 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4195 and m21264b processor names and cpu types.
4196 * doc/c-alpha.texi: Documented new types.
4198 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4200 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4202 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4204 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4205 handling to BFD_RELOC_MIPS16_GPREL.
4207 2002-08-01 Nick Clifton <nickc@redhat.com>
4209 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4210 pool is computed using signed arithmetic so that proper sign
4211 extension is performed if X_add_number is a 64-bit integer.
4213 2002-08-01 H.J. Lu <hjl@gnu.org>
4214 Daniel Jacobowitz <drow@mvista.com>
4216 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4217 .debug_line section unless it has line information.
4219 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4221 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4222 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4223 Allow default displacement size to be an option "--disp-size-default".
4224 (md_number_to_disp): Make error messages include value. Use %d to
4225 print integers, not %s.
4226 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4227 get duplicate messages sometimes.
4228 (convert_iif): Grow frag to max possible instruction size. Avoid
4229 creating unnecessary fixes.
4230 (md_number_to_field) Add prototype.
4231 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4232 prototypes and make static.
4233 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4234 (evaluate_expr): Use resultP argument instead of exprP global.
4235 (get_addr_mode): Quiten compiler warnings.
4236 (encode_operand): eliminate unused variables. Quiten compiler
4237 warnings. Eliminate nul character in format strings.
4238 (parse): argc is unsigned.
4239 (reloc): Type cast index to quieten compiler.
4240 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4241 (md_convert_frag): Note unused parameters. Remove unused
4243 (md_create_long_jump, md_create_short_jump,
4244 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4247 2002-07-31 Nick Clifton <nickc@redhat.com>
4249 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4250 of the PDP-11 and 2.11BSD a.out support.
4252 2002-07-31 Momchil Velikov <velco@fadata.bg>
4254 * config/tc-v850.c (md_assemble): Fix range check for immediate
4257 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4259 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4260 to Broadcom SB-1 core support.
4262 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4264 * config/tc-mips.c (mips_target_format): Fix formatting.
4265 Add recognition of n32 ABI formats.
4267 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4269 * tc-mips.c (load_address): Don't clobber $at when loading a
4270 64-bit address in non-PIC code if noat is in effect.
4273 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4275 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4276 used in division/multiply macro expansions similarly to how they
4277 are used in the variants with break instructions.
4280 2002-07-30 Graeme Peterson <gp@qnx.com>
4282 * configure.in: Add support for arm-*-nto target.
4283 * configure: Regenerate.
4285 2002-07-30 Nick Clifton <nickc@redhat.com>
4287 * config/tc-arm.c (struct literal_pool): Add fields to allow
4288 multiple literal pools to be maintained.
4289 (find_literal_pool): New function.
4290 (find_or_make_literal_pool): New function.
4291 (add_to_literal_pool): Use find_or_make_literal_pool.
4292 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4294 (s_ltorg): Use find_literal_pool.
4295 (arm_cleanup): Dump all literal pools.
4296 * doc/c-arm.texi: Document new behaviour of only dumping literal
4299 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4301 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4302 rather than PPC_OPCODE_32 for powerpc64*.
4304 2002-07-25 Nick Clifton <nickc@redhat.com>
4306 * po/es.po: Updated Spanish translation.
4307 * po/fr.po: Updated French translation.
4309 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4311 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4312 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4313 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4314 * configure, config.in: Regenerate.
4315 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4316 (mips_set_options): Remove "abi" field.
4317 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4320 (mips_arch_string, mips_arch_info): New vars.
4321 (mips_tune_string, mips_tune_info): New vars.
4322 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4323 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4324 (mips_isa_to_str, mips_cpu_to_str): Remove.
4325 (mips_ip): If the selected architecture is a generic ISA rather
4326 than a processor, only mention the ISA level in error messages.
4327 (OPTION_MCPU): Remove.
4329 (md_longopts): Add -mfp64, remove -mcpu.
4330 (mips_set_option_string): New fn.
4331 (md_parse_option): Make -mipsN update file_mips_isa rather than
4332 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4333 Don't let -mgp32 and -mfp32 change the ABI.
4334 (show): Move to end of file. Constify string argument.
4335 (md_show_usage): Move to the end of the file. Read available
4336 architectures from mips_cpu_info_table.
4337 (mips_set_architecture): New fn.
4338 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4339 is an alias for -march=mipsN. Don't change the ABI based on other
4340 flags. Infer the register size from the ABI as well as the
4341 architecture. Complain about more conflicting arguments.
4342 Unify logic with GCC.
4343 (s_mipsset): Don't change the ABI.
4344 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4345 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4346 "mipsN"-type entries. Remove entries that vary only in the
4347 manufacturer's prefix, or that have "000" replaced by "k".
4348 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4349 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4350 (mips_parse_cpu): New fn.
4351 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4352 (mips_cpu_info_from_isa): Minor formatting tweak.
4354 2002-07-24 Nick Clifton <nickc@redhat.com>
4356 * po/sv.po: Updated Swedish translation.
4357 * po/es.po: Updated Spanish translation.
4359 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4361 * Makefile.am: Run "make dep-am".
4362 * Makefile.in: Regenerate.
4363 * doc/Makefile.in: Regenerate.
4364 * config.in: Regenerate.
4365 * po/POTFILES.in: Regenerate.
4367 2002-07-23 Nick Clifton <nickc@redhat.com>
4369 * po/fr.po: Updated French translation.
4371 2002-07-23 Nick Clifton <nickc@redhat.com>
4373 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4376 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4378 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4379 instead of S_IS_EXTERN.
4380 (md_estimate_size_before_relax): Likewise.
4381 (mips_fix_adjustable): Likewise.
4383 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4385 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4387 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4388 Nick Clifton <nickc@redhat.com>
4390 * cond.c (s_ifdef): Treat a referenced but not yet defined
4391 symbol as if it were undefined, in exactly the same way as
4394 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4395 consider referenced bug not yet defined symbols to be
4398 2002-07-18 Denis Chertykov <denisc@overta.ru>
4399 Frank Ch. Eigler <fche@redhat.com>
4400 Alan Lehotsky <alehotsky@cygnus.com>
4401 John Healy <jhealy@redhat.com>
4402 Jeff Johnston <jjohnstn@redhat.com>
4404 * configure.in: Add ip2k configuraton.
4405 * configure: Regenerate.
4406 * Makefile.am: Add ip2k configuraton.
4407 * Makefile.in: Regenerate.
4408 * configure: Regenerate.
4409 * Makefile.in: Regenerate.
4410 * config/tc-ip2k.c: New file.
4411 * config/tc-ip2k.h: New files.
4412 * NEWS: Mention new support.
4413 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4414 * doc/Makefile.in: Regenerate.
4415 * doc/all.texi: Set IP2K
4416 * doc/as.texinfo: Add IP2K description.
4417 * doc/c-ip2k.texi: New file.
4419 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4421 * NEWS: Reformat to match style of other NEWS files.
4423 2002-07-17 Jan Hubicka <jh@suse.cz>
4425 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4427 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4429 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4431 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4433 * NEWS: Add 'Changes in 2.13'.
4435 2002-07-15 Matt Fredette <fredette@netbsd.org>
4437 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4439 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4441 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4442 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4445 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4447 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4448 (ppc_frob_file_before_adjust): New function.
4449 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4450 (ppc_elf_frob_symbol): Don't declare.
4451 (tc_frob_file_before_adjust): Define.
4452 (ppc_frob_file_before_adjust): Declare.
4454 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4455 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4458 (ppc_xcoff64): Rename to ppc_obj64.
4459 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4460 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4461 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4463 (ppc_target_format): Use ppc_obj64 to select format.
4464 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4465 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4466 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4467 (tc_frob_symbol): Likewise.
4468 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4469 BFD_DEFAULT_TARGET_SIZE.
4471 (ppc_is_toc_sym): Likewise.
4472 (md_apply_fix3): Likewise.
4473 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4474 BFD_DEFAULT_TARGET_SIZE.
4475 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4476 (tc_frob_symbol): Likewise.
4478 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4480 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4481 (mips_ip): Likewise.
4483 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4485 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4486 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4487 (md_apply_fix3): Formatting. Remove redundant test.
4488 (tc_gen_reloc): Remove redundant code.
4489 (tc_i386_force_relocation): Delete. Movy body of function to..
4490 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4492 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4494 * configure.in: Add hppa-*-openbsd* target, change
4495 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4497 * configure: Regenerate.
4499 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4501 * config/tc-mips.c (macro): Shift the 32-bit address range
4502 accessible with a lone "lui" down by 32768.
4504 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4506 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4507 instead of "dadd" in address calculations.
4510 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4512 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4514 (md_assemble): Instead, zap the suffix here.
4516 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4518 * NEWS: Remove next release number until the release is actually
4521 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4523 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4525 * Makefile.in: Regenerate.
4527 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4529 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4530 to symbols in merge sections, even non pc-relative ones.
4532 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4534 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4536 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4538 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4539 .softregs and .eeprom.
4541 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4543 * NEWS: Note the next release is 2.13.
4545 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4547 * po/tr.po: New translation imported.
4549 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4551 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4552 (ecoff_directive_def): Likewise.
4553 (ecoff_directive_tag): Likewise.
4554 * listing.c (file_info): Likewise.
4555 * hash.c (what): Likewise.
4557 2002-06-25 H.J. Lu <hjl@gnu.org>
4559 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4560 * Makefile.in: Regenerated.
4562 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4564 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4565 (assemble_ppi): Generate warning if the same register is used
4566 twice as destination in the same padd / pmuls instruction.
4568 2002-06-18 Dave Brolley <brolley@redhat.com>
4570 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4571 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4572 * configure.in: Support frv-*-*.
4573 * Makefile.am (CPU_TYPES): Add frv.
4574 (TARGET_CPU_CFILES): Add tc-frv.c.
4575 (TARGET_CPU_HFILES): Add tc-frv.h.
4576 (DEPTC_frv_coff): New variable.
4577 (DEPTC_frv_elf): New variable.
4578 (DEPOBJ_frv_coff): New variable.
4579 (DEPOBJ_frv_elf): New variable.
4580 (DEP_frv_coff): New variable.
4581 (DEP_frv_elf): New variable.
4582 * tc-frv.c: New file.
4583 * tc-frv.h: New file.
4585 2002-06-17 Catherine Moore <clm@redhat.com>
4587 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4589 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4591 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4593 2002-06-17 Tom Rix <trix@redhat.com>
4595 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4597 2002-06-14 H.J. Lu <hjl@gnu.org>
4598 Daniel Jacobowitz <drow@mvista.com>
4600 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4601 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4602 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4603 and new_logical_line for the first .file directive.
4604 * read.c (s_app_file_string): New function.
4605 (s_app_file): Call it.
4606 * read.h (s_app_file_string): Add declaration.
4608 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4610 * configure.in: Remove MIPS_STABS_ELF.
4611 * configure: Regenerated.
4612 * config.in: Regenerated.
4613 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4615 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4617 (pdr_seg): Declare unconditionally.
4618 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4619 (s_mips_end): Likewise. Generate stabs function markers.
4620 (s_mips_ent): Generate stabs function markers.
4621 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4623 (s_mips_mask): Likewise.
4624 (mips_flag_mdebug): New.
4625 (md_longopts): Add "mdebug" and "no-mdebug".
4626 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4627 (mips_after_parse_args): Set mips_flag_mdebug.
4628 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4630 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4632 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4633 value twice for RELA relocations.
4635 2002-06-12 Ben Elliston <bje@redhat.com>
4637 * symbols.c (resolve_symbol_value): Initialise final_val.
4639 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4641 2002-06-11 Tom Rix <trix@redhat.com>
4643 * config/tc-ppc.c (ppc_subseg_align): Delete.
4644 (ppc_change_csect): Default csect align is 2.
4645 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4647 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4649 * config/tc-avr.c (mcu_types): Update.
4651 2002-06-08 Matt Thomas <matt@3am-software.com>
4653 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4654 (vax-*-netbsd*): New targets.
4655 * configure: Regenerate.
4656 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4657 * config/tc-vax.c: Add support for ELF and PIC.
4658 (flag_want_pic): New flag.
4659 (float_cons): Fix prototype.
4660 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4661 (md_assemble): Introduce a new is_absolute local, and use it
4662 rather than repeating the test. Make fatal errors actually
4663 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4664 Add support for ELF. Add support for PIC.
4665 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4666 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4668 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4669 optional for a.out, and not allowed for VMS. Adjust all callers.
4670 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4671 (md_create_long_jump): Likewise.
4672 (md_undefined_symbol): Likewise.
4673 (md_section_align): Likewise.
4674 (md_shortopts): Allow -k and -K for ELF.
4675 (md_parse_option): Set flag_want_pic if -k or -K.
4676 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4677 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4678 * config/tc-vax.h (tc_headers_hook): Remove.
4679 (TARGET_FORMAT): Set according to object format and target
4681 (BFD_ARCH, TARGET_ARCH): Define.
4682 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4683 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4684 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4685 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4687 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4689 * Makefile.am: Run "make dep-am".
4690 * Makefile.in: Regenerate.
4692 * as.c: Replace CONST with const.
4693 * write.c: Likewise.
4694 * config/obj-coff.c: Likewise.
4695 * config/tc-a29k.c: Likewise.
4696 * config/tc-arm.c: Likewise.
4697 * config/tc-dlx.c: Likewise.
4698 * config/tc-h8300.c: Likewise.
4699 * config/tc-h8500.c: Likewise.
4700 * config/tc-i370.c: Likewise.
4701 * config/tc-i860.c: Likewise.
4702 * config/tc-i960.c: Likewise.
4703 * config/tc-m68hc11.c: Likewise.
4704 * config/tc-m68k.c: Likewise.
4705 * config/tc-m88k.c: Likewise.
4706 * config/tc-mcore.c: Likewise.
4707 * config/tc-mips.c: Likewise.
4708 * config/tc-ns32k.c: Likewise.
4709 * config/tc-pdp11.c: Likewise.
4710 * config/tc-pj.c: Likewise.
4711 * config/tc-s390.c: Likewise.
4712 * config/tc-sh.c: Likewise.
4713 * config/tc-sparc.c: Likewise.
4714 * config/tc-tahoe.c: Likewise.
4715 * config/tc-tic80.c: Likewise.
4716 * config/tc-v850.c: Likewise.
4717 * config/tc-vax.c: Likewise.
4718 * config/tc-w65.c: Likewise.
4719 * config/tc-z8k.c: Likewise.
4721 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4723 Based on patch from Matt Green:
4724 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4725 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4726 (s_mips_loc): New function.
4727 (mips_nonecoff_pseudo_table): Call them.
4728 (append_insn): Call dwarf2_emit_insn.
4730 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4732 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4734 (file_ase_mips16): New veriable.
4735 (mips_eabi64): Remove.
4736 (CPU_HAS_MIPS16): New define.
4737 (CPU_HAS_MDMX): Fix data type.
4738 (md_begin): Code cleanup. Use file_ase_mips16.
4739 (mips_elf_final_processing): Handle mips16 header flag.
4740 Handle EABI flag without intermediate variable.
4742 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4744 * doc/as.texinfo: Update MIPS documentation.
4746 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4748 * config/tc-mips.c: Add define for $zero register.
4749 (md_begin): Add $zero as alias name for $0.
4750 (insn_uses_reg): Use ZERO define.
4751 (mips_ip): Add $zero as alias name for $0.
4752 (mips16_ip): Likewise.
4753 (s_cplocal): Demand empty rest of input line.
4754 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4755 names. Use ZERO define. Fix input_line_pointer progress.
4757 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4759 * symbols.c: Replace CONST by const throughout.
4760 (symbol_find_exact): Split out from..
4761 (symbol_find_base): ..here.
4762 * symbols.h: Replace CONST by const throughout.
4763 (symbol_find_exact): Declare.
4764 * config/obj-elf.c: #include "struc-symbol.h".
4765 (elf_frob_file): If group name matches an exported symbol, use that
4766 symbol for the signature and ".group" as the section name.
4768 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4770 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4773 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4775 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4776 and mips_opts.ase_mdmx if they are uninitialized.
4778 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4780 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4781 (hppa_force_relocation): Check if a stub just before the start symbol
4782 of the last call_info is reachable before forcing relocation. Fix
4785 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4787 * config/tc-mips.c (mips_after_parse_args): New function.
4788 (md_begin): Move processing of defaults to mips_after_parse_args.
4789 config/tc-mips.h (md_after_parse_args): Define.
4791 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4793 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4794 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4795 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4796 * configure: Regenerate.
4797 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4800 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4802 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4804 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4806 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4807 linkonce flag. Print all warnings.
4808 (obj_elf_section): Parse ",comdat" for groups.
4809 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4810 consistency of comdat flag.
4812 2002-06-02 Richard Henderson <rth@redhat.com>
4814 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4815 with LITERALs without sequence numbers.
4817 2002-06-01 Richard Henderson <rth@redhat.com>
4819 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4820 Rename them LITUSE_ALPHA_*.
4822 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4824 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4825 accept parentheses enclosed register lists.
4827 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4829 * Makefile.am: Run "make dep-am".
4830 * Makefile.in: Regenerate.
4831 * po/POTFILES.in: Regenerate.
4833 2002-05-31 Graeme Peterson <gp@qnx.com>
4835 * configure.in: Add i386-*-nto-qnx*.
4836 * configure: Regenerate.
4838 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4840 * config/tc-mips.c (mips_ip): Use unsigned long values for
4843 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4845 * config/tc-mips.c (s_cpsetup): Fix initialization of
4846 mips_cpreturn_register and mips_cpreturn_offset.
4848 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4850 * config/tc-mips.c (s_cpsetup): Fix comment.
4852 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4854 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4855 (mips_ip): Likewise.
4856 (mips16_ip): Likewise.
4857 (tc_get_register): Likewise.
4859 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4860 Ed Satterthwaite <ehs@broadcom.com>
4862 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4863 (mips_opts): Initialize "ase_mdmx" member.
4864 (file_ase_mdmx): New variable.
4865 (CPU_HAS_MDMX): New macro.
4866 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4867 based on command line options and configuration defaults.
4868 (macro_build): Note in comment that use of MDMX in macros is
4869 not currently allowed.
4870 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4871 "Z" MDMX operand types.
4872 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4873 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4875 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4876 Add support for "-mdmx" and "-no-mdmx" options.
4877 (OPTION_ELF_BASE): Move to accomodate new options.
4878 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4879 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4880 file_ase_mdmx was set.
4881 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4882 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4885 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4887 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4888 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4889 command line switch conforming to gcc conventions.
4890 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4892 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4894 * config/tc-mips.c (macro_build_jalr): New Function.
4895 (md_begin): NewABI uses big GOTs.
4896 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4897 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4898 (load_address): Add some NewABI PIC support.
4900 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4901 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4903 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4905 * config/tc-mips.c (load_address): Use mips_gp_register instead
4906 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4908 (macro): Use mips_gp_register instead of hardcoded value.
4910 2002-05-30 Richard Henderson <rth@redhat.com>
4912 * expr.h (operatorT): Add O_md17..O_md32.
4913 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4914 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4915 O_tprelhi, O_tprello, O_tprel): New.
4916 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4917 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4918 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4919 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4920 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4921 (md_apply_fix3): Handle TLS relocations.
4922 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4923 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4924 associated TLS reloc. Check lituse_tls relocs match up.
4925 (emit_insn): Handle TLS relocations.
4928 * doc/c-alpha.texi: Add docs for tls relocations.
4930 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4932 * config/tc-mips.c (mips_gprel_offset): New variable.
4933 (s_gpvalue): Use it.
4935 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4937 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4938 write-write conflicts.
4939 (md_assemble): Reformat introductory comment.
4940 (parallel_ok): Prevent packing only if the first
4941 instruction cannot be packed.
4943 2002-05-30 Jason Eckhardt <jle@redhat.com>
4944 Tom Rix <trix@redhat.com>
4946 * config/tc-d10v.c (build_insn): Check for immediates.
4948 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4950 * config/tc-mips.c: Replace GP in comments by $gp.
4951 (mips_big_got): Initialize.
4952 (mips_trap): Initialize.
4953 (load_address): Use mips_gp_register instead of hardcoded value.
4954 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4955 (macro): Use mips_gp_register instead of hardcoded value.
4956 (macro2): Change load_address calls.
4957 (md_pcrel_from): Comment formatting.
4958 (s_cpload): Use mips_gp_register instead of hardcoded value.
4959 (s_cprestore): Likewise. Comment formatting.
4960 (s_gpword): Fix data type.
4961 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4962 (nopic_need_relax): Replace GP in comments by $gp.
4963 (mips_elf_final_processing): Better comment.
4965 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4967 * configure.in: Add DLX configuraton
4968 * Makefile.am: Add DLX configuraton
4969 * configure: Regenerate.
4970 * Makefile.in: Regenerate.
4971 * config/tc-dlx.c: New file.
4972 * config/tc-dlx.h: New files.
4973 * NEWS: Mention new support.
4975 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4977 * config/obj-coff.c (write_object_file): Add missing semicolon.
4979 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4981 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4982 by the define. Remove superfluous check of mips_opts.mips16.
4983 (append_insn): Likewise. Canonicalize variable increments.
4984 (macro_build): Canonicalize variable increments.
4985 (macro_build_lui): Likewise.
4986 (load_register): Likewise.
4987 (load_address): Move pointer initialization.
4988 (macro): Move pointer to a more local scope. Canonicalize variable
4989 increments. Better comments. Replace magic constant for RA by the
4991 (macro2): Replace magic constant for RA by the define. Canonicalize
4992 variable increments.
4993 (mips_ip): Canonicalize variable increments.
4994 (mips16_ip): Replace magic constant for RA by the define.
4995 (my_getSmallParser): Canonicalize variable increments/decrements.
4996 (my_getPercentOp): Likewise.
4997 (my_getSmallExpression): Likewise.
4998 (s_align): Likewise.
4999 (s_mipsset): Likewise.
5000 (s_cpsetup): Likewise.
5001 (s_insn): Remove superfluous check of mips_opts.mips16.
5002 (s_mips_stab): Likewise.
5003 (mips_handle_align): Canonicalize variable increments.
5004 (s_mips_ent): Likewise.
5005 (s_mips_end): Add comment.
5007 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5009 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5010 * configure: Regenerate.
5012 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5014 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5015 * Makefile.in: Regenerate.
5016 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5017 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5018 * configure: Regenerate.
5019 * as.h: Use #include "" instead of <> for local header files.
5020 * flonum-konst.c: Likewise.
5021 * flonum-mult.c: Likewise.
5023 * listing.c: Likewise.
5024 * config/tc-ia64.h: Likewise.
5025 * config/tc-v850.h: Likewise.
5027 2002-05-24 TAMURA Kent <kent@netbsd.org>
5029 * configure.in: Add a target for i386-netbsdpe.
5030 * configure: Regenerate.
5032 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5034 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5035 (obj_elf_common): Call elf_common.
5036 (obj_elf_tls_common): New function.
5037 (elf_pseudo_tab): Support .tls_common.
5038 (special_sections): Add .tdata and .tbss.
5039 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5041 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5042 (obj_elf_parse_section_letters): Include T in error message.
5043 * config/tc-ppc.c (ppc_section_letter): Likewise.
5044 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5045 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5047 * config/tc-sparc.c (md_apply_fix3): Likewise.
5048 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5049 Define them if not BFD_ASSEMBLER.
5050 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5052 (md_apply_fix3): Add TLS relocs.
5053 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5054 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5055 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5056 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5057 (ia64_elf_section_letter): Include T in error message.
5058 (md_begin): Support TLS operators.
5059 (md_operand): Likewise.
5060 (ia64_gen_real_reloc_type): Support TLS relocs.
5061 * write.c (adjust_reloc_syms): Don't change symbols in
5062 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5064 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5066 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5067 round the relocation up rather than down.
5069 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5071 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5073 * doc/as.texinfo: Document that the COFF version of .section
5074 ignores the 'a' flag.
5076 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5078 * config/tc-alpha.c (assemble_tokens): Protect use of
5079 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5081 * write.c (size_seg): Check adjustment to last frag.
5082 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5084 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5085 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5086 (write_object_file): Invoke md_do_align if available, and use
5087 frag_align_code on text sections.
5088 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5089 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5090 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5091 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5092 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5095 2002-05-22 H.J. Lu <hjl@gnu.org>
5097 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5100 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5102 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5105 2002-05-22 H.J. Lu <hjl@gnu.org>
5107 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5108 for one .loc for compiler.
5110 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5112 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5115 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5117 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5118 Optimize the rotate by zero case.
5120 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5122 * configure.in: Remove accidental enabling of bfd_gas=yes for
5124 * configure: Regenerate.
5126 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5128 * app.c: Fix formatting.
5130 * ehopt.c: Likewise.
5132 * input-file.c: Likewise.
5133 * listing.c: Likewise.
5134 * macro.h: Likewise.
5135 * stabs.c: Likewise.
5136 * symbols.c: Likewise.
5138 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5140 * config/obj-generic.c: Delete file.
5141 * config/obj-generic.h: Likewise.
5143 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5145 * config/tc-avr.c (mcu_types): Update for new devices.
5147 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5149 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5151 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5153 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5154 worked sometimes by accident. Fix copy&paste comment.
5156 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5158 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5159 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5160 (mips_elf_final_processing): Let n32 use .reginfo.
5162 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5164 * config/tc-mips.c (append_insn): Fix too small range of variable.
5166 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5168 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5169 listing_prev_line().
5171 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5173 * config/tc-arm.c (md_assemble): Remove redundant call to
5176 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5179 * stabs.c (s_stab_generic): Fix grammatical error in warning
5182 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5184 * write.c (subsegs_finish): Don't specially align last subseg.
5186 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5188 * stabs.c (s_stab_generic): Warn about a description field that is
5191 * config/obj-coff.c: Fix compile time warnings when compiling
5192 without BFD_ASSEMBLER defined.
5195 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5197 (md_pcrel_from_section): Use md_pcrel_from().
5199 2002-05-11 Bruno Haible <bruno@clisp.org>
5201 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5202 by dwarf2_directive_loc, instead of calling dwarf2_where.
5204 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5206 * config/obj-coff.h: Fix formatting.
5207 * config/tc-mcore.c: Likewise.
5208 * config/tc-mn10300.c: Likewise.
5209 * config/tc-openrisc.c: Likewise.
5210 * config/tc-or32.c: Likewise.
5211 * config/tc-pdp11.c: Likewise.
5212 * config/tc-ppc.c: Likewise.
5213 * config/tc-ppc.h: Likewise.
5214 * config/tc-sh64.c: Likewise.
5215 * config/tc-sh.c: Likewise.
5216 * config/tc-tic54x.c: Likewise.
5217 * config/tc-xstormy16.c: Likewise.
5218 * config/tc-xstormy16.h: Likewise.
5220 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5222 * config/obj-coff.c: Fix formatting.
5223 * config/obj-elf.c: Likewise.
5224 * config/tc-alpha.c: Likewise.
5225 * config/tc-arm.c: Likewise.
5226 * config/tc-d10v.c: Likewise.
5227 * config/tc-d30v.c: Likewise.
5228 * config/tc-h8300.c: Likewise.
5229 * config/tc-hppa.c: Likewise.
5231 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5233 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5234 reloc when no_cond_jump_promotion.
5236 2002-05-08 Jim Wilson <wilson@redhat.com>
5238 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5239 current variable part of frag.
5241 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5243 * config/tc-mmix.c: Fix formatting.
5244 * config/tc-mmix.h: Likewise.
5246 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5248 * configure: Regenerate.
5250 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5252 * config/tc-m68k.c: Fix formatting.
5254 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5256 * Makefile.am: Honour DESTDIR.
5257 * Makefile.in: Regenerate.
5259 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5261 * config/tc-ia64.c: Fix formatting.
5262 * config/tc-ia64.h: Likewise.
5264 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5266 * config/tc-mips.c: Fix formatting.
5267 * config/tc-s390.c: Likewise.
5268 * config/tc-s390.h: Likewise.
5270 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5272 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5273 information for instructions.
5275 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5277 * as.h: Fix formatting.
5280 * dwarf2dbg.c: Likewise.
5281 * frags.h: Likewise.
5283 * macro.c: Likewise.
5285 * stabs.c: Likewise.
5286 * symbols.c: Likewise.
5288 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5290 * app.c (mri_pseudo): Only declare for TC_M68K.
5292 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5293 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5294 BFD_RELOC_16_BASEREL.
5295 (md_assemble): Likewise.
5296 (md_apply_fix3): Likewise.
5298 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5300 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5301 zero into an add of zero - it is not the same.
5303 2002-05-01 Arati Dikey <aratid@kpit.com>
5305 * tc-sh.c (get_specific): Generate warning if the same
5306 destination register is used in parallel instructions.
5308 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5310 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5312 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5314 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5315 backwards to prevent cascading errors.
5317 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5319 * configure.in: Add support for powerpc-*-windiss.
5320 * configure: Regenerated.
5322 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5324 * config/tc-s390.c (md_parse_option): Formatting.
5326 * config/tc-i386.c: Formatting fixes, add missing space in error
5329 2002-04-24 Christian Groessler <chris@groessler.org>
5331 * config/tc-z8k.c (build_bytes): Add support for new cases:
5332 CLASS_IGNORE and ARG_NIM4.
5333 (md_assemble): Prevent destruction of input_line_pointer if
5334 get_operands returns failure.
5336 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5338 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5339 instructions to be generated by macros.
5341 2002-04-24 Andreas Schwab <schwab@suse.de>
5343 * config/tc-i386.c (output_jump, output_disp)
5344 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5346 (md_apply_fix3): Remember addend value for rela relocations.
5347 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5349 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5351 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5352 from previous change.
5354 2002-04-22 Eric Christopher <echristo@redhat.com>
5356 * config/tc-mips.c (macro_build): Add warning if macro instructions
5357 are expanded into a branch delay slot.
5359 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5361 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5362 numbers, gdb relies on them to detect the start of the prologue.
5364 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5366 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5367 symbols in merge sections.
5369 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5371 * as.c (main): Don't reference _bfd_chunksize.
5373 2002-04-15 Tom Rix <trix@redhat.com>
5375 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5376 symbols in merge sections.
5378 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5380 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5381 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5382 argument for the precision.
5383 (gen_to_words): Update accordingly.
5385 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5387 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5388 BFD_VERSION_STRING unavailable.
5389 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5391 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5393 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5394 symbol_used_in_reloc_p is true.
5396 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5399 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5401 * dep-in.sed: Cope with absolute paths.
5402 * Makefile.am (dep.sed): Subst TOPDIR.
5404 * Makefile.in: Regenerate.
5406 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5408 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5409 (mips_ip): Remove unused variable.
5410 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5411 unsigned char with bfd_byte.
5412 (s_file): Remove unused variable.
5413 (s_mips_ent): Likewise.
5415 2002-04-03 Tom Rix <trix@redhat.com>
5417 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5419 (find_opcode): Fix warning in as_warn.
5420 * config/tc-d10v.h: Update Copyright.
5422 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5423 Tom Rix <trix@redhat.com>
5425 From Jeff Knaggs <jknaggs@redhat.com>
5426 * config/tc-d10v.c (check_resource_conflict): New function to
5427 check for resource conflicts.
5429 From Jason Eckhardt <jle@redhat.com>
5430 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5432 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5433 reserved control registers is used.
5434 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5437 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5438 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5439 instruction cannot be packed.
5441 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5442 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5443 write-write conflicts.
5444 (md_assemble): Reformat introductory comment.
5445 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5448 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5450 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5451 O_logical_not>): Derive final_seg from add_symbol.
5452 <O_multiply..O_logical_or>: More final_seg twiddles.
5454 2002-04-01 Jessica Han <jessica@cup.hp.com>
5456 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5459 2002-03-27 Andreas Schwab <schwab@suse.de>
5461 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5462 field for pc-relative fixups.
5463 (output_disp): Likewise.
5464 (md_estimate_size_before_relax): Likewise.
5465 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5466 pc-relative fixups in 64bit mode.
5468 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5470 * config/te-aix5.h: Typo fix.
5472 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5474 * Makefile.am: Run "make dep-am".
5475 * Makefile.in: Regenerate.
5476 * doc/Makefile.in: Regenerate.
5478 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5480 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5481 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5483 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5485 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5486 the EXTENDED bit here; report the estimate according to the
5489 2002-03-18 Tom Rix <trix@redhat.com>
5491 * configure.in: Add AIX 5 support.
5492 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5493 * config/te-aix5.h: New file. AIX 5 support.
5494 * configure: Regenerate.
5496 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5498 * po/fr.po: Updated version.
5500 2002-03-16 Andreas Jaeger <aj@suse.de>
5502 * doc/c-mips.texi (Machine Dependencies): Add new node.
5504 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5506 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5507 (mips_opts): Initialize "ase_mips3d" member.
5508 (file_ase_mips3d): New variable.
5509 (CPU_HAS_MIPS3D): New macro.
5510 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5511 based on command line options and configuration defaults.
5512 (macro_build, mips_ip): Accept MIPS-3D instructions if
5513 mips_opts.ase_mips3d is set.
5514 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5515 Add support for "-mips3d" and "-no-mips3d" options.
5516 (OPTION_ELF_BASE): Move to accomodate new options.
5517 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5518 (mips_elf_final_processing): Add a comment indicating that a
5519 MIPS-3D ASE ELF header flag should be set, when one exists.
5520 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5521 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5522 nomips3d" directives.
5524 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5526 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5527 a weak symbol in same section to be within reach.
5529 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5531 * po/fr.po: Updated version.
5533 2002-03-12 Andreas Schwab <schwab@suse.de>
5535 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5536 body record so that an error is given for misplaced .save
5539 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5541 * config/tc-i386.h (REX_OPCODE): Define.
5542 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5543 (rex_byte): typedef to int.
5544 * config/tc-i386.c: Group prototypes and vars together.
5545 Formatting fixes. Remove occurrences of "register" keyword.
5548 (mode_from_disp_size): Add INLINE keyword to prototype.
5549 (fits_in_signed_byte): Likewise.
5550 (fits_in_unsigned_byte): Likewise.
5551 (fits_in_unsigned_word): Likewise.
5552 (fits_in_signed_word): Likewise.
5553 (fits_in_unsigned_long): Likewise.
5554 (fits_in_signed_long): Likewise.
5555 (type_names): Constify.
5556 (intel_float_operand): Constify param.
5557 (add_prefix): Use REX_OPCODE.
5558 (md_assemble): Likewise. Modify for changed rex_byte.
5559 (parse_insn): Split out of md_assemble.
5560 (parse_operands): Likewise.
5561 (swap_operands): Likewise.
5562 (optimize_imm): Likewise.
5563 (optimize_disp): Likewise.
5564 (match_template): Likewise.
5565 (check_string): Likewise.
5566 (process_suffix): Likewise.
5567 (check_byte_reg): Likewise.
5568 (check_long_reg): Likewise.
5569 (check_qword_reg): Likewise.
5570 (check_word_reg): Likewise.
5571 (finalize_imm): Likewise.
5572 (process_operands): Likewise.
5573 (build_modrm_byte): Likewise.
5574 (output_insn): Likewise.
5575 (output_branch): Likewise.
5576 (output_jump): Likewise.
5577 (output_interseg_jump): Likewise.
5578 (output_disp): Likewise.
5579 (output_imm): Likewise.
5581 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5583 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5585 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5587 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5588 relocs except when BFD64.
5590 * write.c (number_to_chars_bigendian): Don't abort when N is
5591 larger than sizeof (VAL).
5592 (number_to_chars_littleendian): Likewise.
5594 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5596 * config/tc-hppa.c (md_apply_fix3): Add cast.
5597 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5600 2002-03-05 Paul Koning <pkoning@equallogic.com>
5602 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5603 (parse_ac5): New function for parsing float regs in float operand.
5604 (parse_expression): Remove attempt to make literals be octal.
5605 (parse_op_no_deferred): Support float literals.
5606 (parse_op): Reject attempts to refer to float regs.
5607 (parse_fop): New function, like parse_op but for float operand.
5608 (md_assemble): Add cases to parse float operands. Also fix
5609 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5611 2002-03-04 H.J. Lu <hjl@gnu.org>
5613 * config/obj-elf.c (special_section): Add .init_array,
5614 .fini_array and .preinit_array.
5616 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5617 .init_array and .fini_array.
5619 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5621 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5623 (obj_frob_symbol): Copy visibility.
5625 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5627 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5629 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5631 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5633 * po/es.po: Updated.
5635 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5637 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5638 only, undo the changes made on 2001-06-08, with the
5639 effect being that common or extern symbols are
5640 adjusted for embedded-PIC, but weak symbols are not.
5641 (md_estimate_size_before_relax: Likewise, with the effect
5642 that extern symbols are treated the same as weak symbols
5643 only if not embedded-PIC.
5644 (mips_fix_adjustable) Likewise, with the effect that
5645 weak or extern symbols are not adjusted for embedded-PIC.
5646 (md_apply_fix3): Tweak so that the case where value is zero
5647 is handled more correctly for embedded-PIC code.
5649 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5651 * doc/as.texinfo (Overview): Add missing @ifset IA64
5653 * configure.in (LINGUAS): Add es.po.
5654 * configure: Regenerate.
5655 * po/es.po: New file.
5657 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5659 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5660 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5661 and NO_PIC cases. Code cleanup.
5662 (macro2): Fix handling of 64bit register loads.
5664 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5666 * doc/as.texinfo: Add entry for IA64.
5667 * doc/c-ia64.texi: New file.
5669 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5671 * config/tc-hppa.c: Update copyright date.
5673 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5674 Remove references to chip manufacturers.
5675 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5677 (md_show_usage): Remove references to chip manufacturers. Mention
5679 (md_begin): Test power4 opcode flag bits.
5681 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5683 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5684 count exceeds prologue count.
5685 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5686 (unwind.label_prologue_count): New member.
5688 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5690 (get_saved_prologue_count): New function.
5691 (save_prologue_count): New function.
5692 (free_saved_prologue_count): New function.
5693 (dot_label_state): Record state label by calling save_prologue_count().
5694 (dot_copy_state): Restore prologue count by calling
5695 get_saved_prologue_count().
5696 (generate_unwind_image): Free up list of saved prologue
5697 counts by calling free_saved_prologue_counts().
5699 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5701 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5702 function declarations.
5704 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5706 * NEWS: Note that GASP is now deprecated.
5707 * Makefile.am: Do not build gasp-new by default.
5708 * Makefile.in: Regenerate.
5709 * doc/Makefile.am: Do not install gasp.info.
5710 * doc/Makefile.in: Regenerate.
5711 * gas/gasp.texi: Note that gasp is now deprecated.
5713 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5715 * NEWS: Mark 2.12 branch.
5717 2002-02-19 Tom Tromey <tromey@redhat.com>
5719 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5721 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5723 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5726 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5728 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5729 Make bit size independent of architecture switch.
5730 (md_begin): Add warning for -m64 with -Aesa.
5731 (s390_md_end): Use renamed architecture defines.
5733 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5735 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5737 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5739 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5742 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5744 * config/tc-mips.c (md_estimate_size_before_relax): Really
5745 make sure we treat weak like extern only for ELF. (Fixes
5746 patch from 2001-07-25.)
5748 2002-02-15 Ben Elliston <bje@redhat.com>
5750 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5753 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5755 * NEWS: Mention support for MMIX.
5757 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5759 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5760 a sequence of indpendent 'if' statements for easier debugging
5761 and future modification.
5763 2002-02-13 Matt Fredette <fredette@netbsd.org>
5765 * config/tc-m68k.c (md_show_usage): No longer display a
5766 hard-coded "68020" for the default CPU, instead display the
5767 canonical name of the true, configured default CPU.
5768 (m68k_elf_final_processing): Mark objects for sub-68020
5769 CPUs with the new EF_M68000 flag.
5771 2002-02-13 Andreas Schwab <schwab@suse.de>
5773 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5774 pc-relative relocations to merge sections in 64-bit mode.
5776 2002-02-13 Ben Elliston <bje@redhat.com>
5778 * NEWS: Document floating point number handling in gasp.
5779 * gasp.c: Include <assert.h> and "xregex.h".
5780 (is_flonum): New function.
5781 (chew_flownum): Likewise.
5782 (change_base): Consume flonums from the input, where possible.
5783 * doc/gasp.texi (Constants): Document floating point numbers.
5785 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5787 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5788 that implicitly use LR and RR selectors.
5790 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5792 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5793 and `epsw' as available on AM33 and above only.
5794 (other_register_name): Add logic to handle machine type encoded in
5797 2002-02-11 Tom Rix <trix@redhat.com>
5799 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5802 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5804 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5807 2002-02-11 Jan Hubicka <jh@suse.cz>
5809 * i386.c (md_assemble): Support 32bit address prefix.
5810 (i386_displacement): Likewise.
5811 (i386_index_check): Accept 32bit addressing in 64bit mode.
5813 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5815 * config/tc-sh.c (dot): Removed unused function.
5817 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5819 * Makefile.am: "make dep-am".
5820 * Makefile.in: Regenerate.
5821 * aclocal.m4: Regenerate.
5822 * config.in: Regenerate.
5823 * configure: Regenerate.
5824 * doc/Makefile.in: Regenerate.
5826 2002-02-10 Richard Henderson <rth@redhat.com>
5828 * doc/c-alpha.texi: New file.
5829 * doc/Makefile.am (CPU_DOCS): Add it.
5830 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5832 2002-02-09 Richard Henderson <rth@redhat.com>
5834 * config/tc-alpha.c (O_samegp): New.
5835 (USER_RELOC_P): Include it.
5836 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5837 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5838 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5839 (alpha_validate_fix): New.
5840 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5842 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5844 * doc/c-cris.texi: New.
5845 * doc/all.texi: @set CRIS.
5846 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5847 Include c-cris.texi.
5848 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5849 * doc/Makefile.in: Regenerate.
5851 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5853 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5854 determine if a number is a sign-extended 32-bit number.
5855 (load_register): Use IS_SEXT_32BIT_NUM.
5856 (macro): Check if load/store macro handling is using a
5857 constant 32-bit address on 64-bit address systems, and if
5858 so optimize the generation of that address.
5860 2002-02-08 Richard Henderson <rth@redhat.com>
5862 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5863 we've eliminated all foreign relocation types yet.
5864 (alpha_fix_adjustable): Likewise.
5866 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5868 Contribute sh64-elf.
5869 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5870 Stephen Clarke <Stephen.Clarke@st.com>
5871 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5872 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5873 * config/tc-sh.c (md_relax_table): Added default sizes for
5874 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5875 MOVI_16, MOVI_32 and MOVI_48.
5876 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5877 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5879 (shmedia_md_estimate_size_before_relax): Remove redundant
5880 blocks. Set fragP->fr_var even if relaxation type unchanged.
5881 Retain UNDEF_MOVI until expression decays to number.
5882 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5883 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5884 relocation types. Take fixP->fx_addnumber into account too.
5885 (shmedia_md_apply_fix): Likewise.
5886 (shmedia_md_convert_frag): Likewise.
5887 (shmedia_build_Mytes): Likewise.
5888 (sh64_consume_datalabel): Complain about nested datalabel.
5889 Support PIC relocs. Call sh_parse_name.
5890 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5891 in tc-sh.h to SHmedia reloc types.
5892 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5893 MOVI_GOTPC): New relaxation constants.
5894 (md_relax_table): Introduce relaxation directives for PIC-related
5896 (sh_PIC_related_p): Handle datalabel.
5897 (sh_check_fixup): Choose SH5 PIC relocations.
5898 (sh_cons_fix_new): Added BDF_RELOC_64.
5899 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5900 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5901 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5902 current ISA is SHmedia, get 7 bytes.
5903 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5904 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5906 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5907 shmedia_apply_fix3 and make void.
5908 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5909 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5911 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5912 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5913 2001-03-14 DJ Delorie <dj@redhat.com>
5914 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5915 * doc/Makefile.in(CPU_DOCS): Ditto.
5916 * doc/c-sh64.texi: New file.
5917 * doc/as.texinfo: Add SH64 support.
5918 2001-03-13 DJ Delorie <dj@redhat.com>
5919 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5920 A_REUSE_PREV so that its purpose is more obvious.
5921 (shmedia_build_Mytes): Ditto.
5922 2001-03-07 DJ Delorie <dj@redhat.com>
5923 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5925 (sh64_vtable_inherit): Ditto.
5926 (strip_datalabels): New, strip "datalabel" from given line.
5927 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5929 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5930 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5932 (shmedia_build_Mytes): ... to here.
5933 2001-03-06 DJ Delorie <dj@redhat.com>
5934 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5936 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5937 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5938 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5939 address by one in call to dwarf2_emit_insn.
5940 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5941 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5942 alignment handling broken by imported changes.
5943 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5944 (sh64_handle_align): Declare.
5945 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5946 (sh64_max_mem_for_rs_align_code): Declare.
5947 (enum sh64_isa_values): Moved here from tc-sh64.c.
5948 (md_do_align): Define.
5949 (sh64_do_align): Declare.
5950 (struct sh64_tc_frag_data): New.
5951 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5953 (TC_FRAG_INIT): Change to set new datatype.
5954 (struct sh64_segment_info_type): Rename member
5955 last_flushed_location to last_contents_mark. All users changed.
5956 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5957 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5958 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5959 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5960 of unsetting seen_insn.
5961 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5962 call sh64_update_contents_mark.
5963 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5964 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5965 enum sh64_isa_values.
5966 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5967 (emitting_crange): Boolean guard moved to file scope from function
5968 scope in sh64_set_contents_type.
5970 (sh64_update_contents_mark): New; most split out from
5971 sh64_flush_pending_output.
5972 (shmedia_md_end): Call sh64_update_contents_mark. Set
5973 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5974 (sh64_do_align): New function.
5975 (sh64_max_mem_for_rs_align_code): New function.
5976 (sh64_handle_align): Rename from shmedia_do_align. Make
5977 non-static. Add head comment. Emit zero bytes for n bytes modulo
5978 four. Change return-type to void.
5979 (shmedia_elf_new_section): Remove.
5980 (shmedia_md_assemble): Call sh64_update_contents_mark.
5981 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5982 new frag. Call sh64_update_contents_mark after making the new
5984 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5985 and sh_flush_pending_output.
5986 (sh64_flag_output): Also call md_flush_pending_output, but add
5987 condition on not emitting_crange.
5988 (sh64_tc_cons_fix_new): Remove.
5989 2001-01-12 Nick Clifton <nickc@redhat.com>
5990 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5991 alignment handling scheme imported from sourceware.
5992 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5993 * config/tc-sh64.h (TARGET_FORMAT): Define.
5994 (sh64_target_format): Prototype.
5995 * config/tc-sh64.c (sh64_target_mach): New function.
5996 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5997 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5998 zero_address_frag instead of copying the frag of the symbol.
5999 (shmedia_frob_file_before_adjust): Ditto.
6000 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6001 to valueT to remove signedness.
6002 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6003 headers to output_bfd. Do not evaluate symbols if final is false;
6005 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6006 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6007 to the current frag, call shmedia_md_convert_frag to emit fixups
6008 and make frag_wane neutralize the frag. Update comments.
6009 * config/tc-sh.c (md_convert_frag): Change caller of
6010 shmedia_md_convert_frag.
6011 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6012 * config/tc-sh64.h: Tweak comments and correct formatting.
6013 * config/tc-sh64.c: Ditto.
6014 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6015 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6016 for the no-relocation case.
6017 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6018 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6020 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6022 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6023 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6025 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6027 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6028 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6029 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6030 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6031 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6032 if reloc is emitted.
6033 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6034 New options plus bugfixes.
6035 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6037 (md_parse_option): Handle new options.
6038 (md_show_usage): Add blurb for new options.
6039 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6040 (sh64_expand, sh64_pt32): New variables.
6041 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6042 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6043 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6044 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6045 <resolved previously-pc-relative relocs>: Handle
6046 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6047 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6048 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6049 points to SHcompact code.
6050 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6051 SH64PCREL16)>: Check that ISA of what operand points at and
6052 PTA/PTB matches, or emit error.
6053 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6054 SHMEDIA_BFD_RELOC_PT.
6055 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6057 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6058 condition for MOVI expansion.
6059 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6060 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6062 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6064 (sh64_target_format): Error-check setting of sh64_pt32 and
6065 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6066 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6067 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6068 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6069 * config/tc-sh64.c: Improve comments.
6070 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6071 not say the linker will check correctness of PTA/PTB expansion.
6072 (shmedia_md_end): Make non-static.
6073 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6075 * config/tc-sh.c (sh_finalize): Remove.
6076 * config/tc-sh.h (md_end): Do not define.
6077 Remove prototype for sh_finalize.
6078 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6079 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6080 sh64_section_data container when storing section type in tdata
6081 field in elf_section_data.
6082 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6084 * Makefile.am: Update dependencies.
6085 * Makefile.in: Regenerate.
6086 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6087 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6088 dwarf2_emit_insn call with test on debug_type.
6089 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6090 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6091 CRT_SH5_ISA32 sticky for 64-bit.
6092 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6093 Generate .crange sections when switching ISA mode or emitting
6094 constants in same section as code.
6095 * config/tc-sh64.c: Reformat structure definitions.
6096 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6098 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6099 to emit a .cranges descriptor when contents type changes. Only
6100 emit error if changing contents type and -no-mix is in effect.
6101 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6102 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6103 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6104 sh64_flush_last_crange over sections.
6105 When checking main symbol of datalabel symbol, check for
6106 STO_SH5_ISA32, not ISA type of section in definition.
6107 (shmedia_frob_file_before_adjust): Check main symbol for
6108 STO_SH5_ISA32; don't check ISA type of section in definition.
6109 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6110 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6111 .cranges entries have been output.
6112 (shmedia_elf_new_section): Just call md_flush_pending_output.
6113 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6114 fix. Do not set tc_segment_info_data.in_code for section. Call
6115 sh64_set_contents_type for SHmedia code.
6116 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6117 false. Call md_flush_pending_output.
6118 (sh64_target_format): Check that -no-mix and
6119 -shcompact-const-crange are used in sane combination with other
6121 (shmedia_md_pcrel_from_section): Check type of fix for how to
6123 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6124 not ISA type of section in definition.
6125 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6126 hold contents-type state.
6127 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6128 (sh64_flush_pending_output): Declare.
6129 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6130 (sh64_tc_cons_fix_new): Declare.
6131 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6132 call sh64_flag_output.
6133 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6134 call sh64_set_contents_type to mark SHcompact code and set
6136 (md_longopts): New options "-no-mix" and
6137 "-shcompact-const-crange".
6138 (md_parse_option): Handle new options.
6139 (md_show_usage): Add blurb for new options.
6140 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6141 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6142 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6143 (sh64_last_insn_frag): New.
6144 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6145 to get frag for insn opcode for generating fixups; do not assume it
6147 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6149 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6151 (TC_FRAG_TYPE): Define as fragS *.
6152 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6153 (sh64_last_insn_frag): Declare.
6154 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6155 not == NULL before dereferencing.
6156 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6157 Get rid of BFD section flag and EF_SH64_ABI64.
6158 * config/tc-sh64.c (shmedia_frob_section_type): Use
6159 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6160 communicate the section as containing SHmedia code. Describe why.
6161 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6162 EF_SH64 regardless of ABI.
6163 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6164 in error message. Handle resolved expressions for
6165 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6166 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6167 (shmedia_check_limits): Handle BFD_RELOC_64.
6168 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6169 a STO_SH5_ISA32 symbol, only the BFD value.
6170 2000-12-11 Ben Elliston <bje@redhat.com>
6171 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6172 dwarf2_generate_asm_lineno.
6173 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6174 Handle PC-relative MOVI expansions with assembler relaxation.
6175 Generate PC-relative relocs from 16-bit PC-relative expressions.
6176 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6177 (shmedia_md_pcrel_from_section): ...here.
6178 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6179 turned completely resolved. Adjust relocation type for 16-bit
6180 immediate operands that has turned PC-relative. Adjust back for
6181 MD_PCREL_FROM_SECTION being applied twice.
6182 (shmedia_md_convert_frag): Always emit reloc for expression with
6183 global or weak symbol. Handle relaxation result for PC-relative
6185 (shmedia_md_estimate_size_before_relax): An expression with a weak
6186 or global symbol can not be relaxed. Break out tests for
6187 relaxable symbol into variable sym_relaxable.
6188 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6189 UNDEF_MOVI)>: Break out any PC-relative expression and change
6191 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6193 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6194 MOVI expansion. If X_op_symbol of the immediate expression is
6195 set, make an expression symbol for the argument to frag_var.
6196 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6198 (END): Adjust for new relaxations.
6199 (md_relax_table): Add entries for new relaxations.
6200 2000-12-07 Ben Elliston <bje@redhat.com>
6201 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6202 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6203 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6204 SHORI operand offsets in PT/PTA/PTB expansions.
6205 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6206 Implement DataLabel semantics.
6207 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6208 shmedia_frob_file_before_adjust.
6209 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6210 (DATALABEL_SUFFIX): Define.
6211 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6212 symbol list to update "datalabel" symbols to their main symbol
6214 (shmedia_frob_file_before_adjust): New.
6215 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6216 undefined and set STT_DATALABEL.
6217 (sh64_frob_label): Initialize TC symbol field.
6218 (sh64_consume_datalabel): Actually implement semantics. New
6219 parameter operandf, call it instead of expression.
6220 (sh64_exclude_symbol): New.
6221 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6222 to sh64_consume_datalabel.
6223 (tc_symbol_new_hook): Define to tc_frob_symbol.
6224 (TC_SYMFIELD_TYPE): Define to symbolS *.
6225 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6226 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6227 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6229 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6230 generating dwarf2 debug information.
6231 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6232 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6233 elf64-sh64 for the 64-bit ABI.
6234 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6236 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6237 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6239 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6240 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6241 (enum sh64_abi_values): New type.
6242 (enum sh64_isa_values): New type.
6243 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6244 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6245 (sh64_abi): Replace shmedia_64.
6246 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6247 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6248 (s_sh64_mode): Check validity for this target.
6249 (sh64_target_format): Initialize defaults for ISA and ABI.
6250 Fallback to old object format if no SH64 ISA or ABI has been
6252 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6253 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6254 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6255 * config/tc-sh64.h: Fix typo in comment.
6256 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6257 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6258 <PT fixups for absolute values>: Size will be longest, not
6260 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6261 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6262 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6263 and l1 to hold lowercase of two first characters. Change all
6264 remaining TO_LOWER to tolower.
6265 * config/tc-sh64.c (TO_LOWER): Delete.
6266 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6267 (md_parse_name): Define.
6268 (sh64_consume_datalabel): Declare.
6269 (DOLLAR_DOT): Define.
6270 * config/tc-sh64.c (shmedia_parse_exp): New.
6271 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6272 (shmedia_parse_reg): Remove const from src
6274 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6275 (shmedia_md_assemble): Ditto for op_end variable.
6276 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6277 Use shmedia_parse_exp, not parse_exp.
6278 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6279 parameter. All callers changed.
6280 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6282 (shmedia_parse_reg): Put first two character in local variables.
6283 Use tolower, not TO_LOWER. If no register is found and argtype
6284 indicates a control register, scan shmedia_creg_table
6286 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6287 * Makefile.am (CPU_TYPES): Add sh64.
6288 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6289 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6290 Regenerate dependencies.
6291 * Makefile.in: Regenerate.
6292 * configure.in: Add support for sh64-*-elf*.
6293 * configure: Regenerate.
6294 * config/tc-sh64.h: New.
6295 * config/tc-sh64.c: New.
6296 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6297 .mode, .isa and .uaquad.
6298 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6299 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6300 [HAVE_SH64] (END): Define as 10.
6301 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6302 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6304 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6305 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6306 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6307 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6309 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6310 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6311 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6312 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6313 SHmedia instructions. Handle state-change after switching to
6315 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6316 (md_parse_option) [HAVE_SH64]: Parse new options.
6317 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6318 (md_convert_frag) [HAVE_SH64] <default>: Call
6319 shmedia_md_convert_frag instead of abort.
6320 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6321 BFD_RELOC_SH_SHMEDIA_CODE.
6322 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6323 SHcompact or SHmedia code.
6324 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6325 shmedia_md_apply_fix instead of abort.
6326 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6327 result from calling shmedia_md_estimate_size_before_relax instead
6329 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6331 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6332 shmedia_init_reloc and do nothing more if it returns non-zero.
6333 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6334 * po/POTFILES.in: Regenerate.
6335 * po/gas.pot: Regenerate.
6337 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6339 * config/tc-sh.c (parse_at): Install the correct version of
6342 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6343 assume fixP->fx_subsy is non-NULL.
6345 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6347 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6348 A_DISP_PC_ABS, and adjust it by -4.
6349 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6351 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6352 the operand type is not A_DISP_PC_ABS.
6354 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6356 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6357 common and weak symbols. Handle common and weak symbols as
6358 undefined symbols with regards to GREG handling and merging.
6359 (mmix_frob_file): Ditto.
6361 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6363 * configure.in (hppa-*-netbsd*): New target.
6364 * configure: Regenerate.
6365 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6367 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6369 * config/tc-v850.c: Add missing prototypes amd use old-style
6370 function definitions.
6371 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6372 (sdata_section tdata_section, zdata_section, sbss_section,
6373 tbss_section, zbss_section, rosdata_section, rozdata_section,
6374 scommon_section, tcommon_section, zcommon_section,
6375 call_table_data_section, call_table_text_section): Delete.
6376 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6377 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6378 v850_call_table_data, v850_call_table_text): Delete.
6379 (struct v850_seg_entry): New.
6380 (v850_seg_table): New.
6381 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6382 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6383 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6384 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6387 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6388 recording of alignment.
6389 (md_pseudo_table): Use v850_seg.
6390 (md_begin): Don't init .call_table_data and .call_table_text here.
6391 Set v850_seg_table bss entry.
6393 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6395 Support on-demand global register allocation by passing on
6396 base-plus-offset relocs to the linker.
6397 * config/tc-mmix.c: Tweak and fix typos in comments.
6398 (allocate_undefined_gregs_in_linker): New variable.
6399 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6400 (md_longopts): Add --linker-allocated-gregs.
6401 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6402 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6403 (md_show_usage): Update text for -x. Add text for
6404 --linker-allocated-gregs.
6405 (tc_gen_reloc): Derive default value for addend from val and
6406 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6407 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6408 GREG if allocate_undefined_gregs_in_linker.
6409 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6410 --linker-allocated-gregs.
6411 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6412 --linker-allocated-gregs. Mention that it's implied by -x.
6413 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6414 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6416 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6418 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6420 * Makefile.am: Run "make dep-am"
6421 * Makefile.in: Regenerate.
6423 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6425 * config/tc-or32.c: New file.
6426 * config/tc-or32.h: New file.
6427 * configure.in: Add support for or32 targets.
6428 * configure: Regenerate.
6429 * config/obj-coff.c: Add support for or32 targets.
6430 * config/obj-coff.h: Add support for or32 targets.
6431 * Makefile.am: Add support for or32 targets.
6432 * Makefile.in: Regenerate.
6433 * NEWS: Mention support for OpenRISC.
6434 * doc/Makefile.in: Regenerate.
6435 * po/POTFILES.in: Regenerate.
6436 * po/gas.pot: Regenerate.
6438 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6440 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6443 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6445 * config/tc-mips.c (tc_gen_reloc): Arrange for
6446 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6447 their LO16 parts, even for ELF.
6449 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6451 * config/tc-i386.c: Protect definitions of true and false
6454 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6456 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6457 made because of .weak, if they are neither defined nor used in any
6460 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6462 * configure: Regenerated.
6464 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6466 * doc/Makefile.am (install): Depend on install-info.
6467 * doc/Makefile.in: Regenerate.
6469 2002-01-26 Nick Clifton <nick@redhat.com>
6471 * po/fr.po: Updated version
6473 2002-01-24 Kazu Hirata <kazu@hxi.com>
6475 * config/tc-h8300.c (check_operand): Don't print a warning
6476 when a valid 24-bit address is given to a 16-bit address
6479 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6481 * config/tc-sh.c (sh_elf_suffix): Removed.
6482 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6483 sh_end_of_match, sh_parse_name): New functions.
6484 (sh_elf_cons): Simplify.
6485 (parse_exp): Reject misplaced PIC operands.
6486 (md_undefined_symbol): Simplify.
6487 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6488 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6489 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6490 Complain if subsy remains at the end.
6491 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6492 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6494 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6496 * config/tc-mn10300.c (xr_registers): Move `pc'...
6497 (other_registers): ... here.
6499 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6501 * Makefile.am: Run "make dep-am".
6502 * Makefile.in: Regenerate.
6503 * gas/po/POTFILES.in: Regenerate.
6505 2002-01-21 DJ Delorie <dj@redhat.com>
6507 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6508 stabstr_name allocation permanent, as it will be referenced from
6511 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6513 * configure.in (ia64-*-netbsd*): New target.
6514 * configure: Regenerate.
6516 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6518 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6520 <Detailed description, ARM options>: Ditto.
6521 * doc/c-arm.texi (ARM Options): Ditto.
6523 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6525 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6526 do_mia, do_mar and do_mra respectively.
6527 (do_mav_*): Renamed from do_c_*.
6528 (mav_reg_required_here, mav_parse_offset): Renamed from
6529 cirrus_reg_required_here and cirrus_parse_offset respectively.
6530 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6532 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6533 Keith Walker <keith.walker@arm.com>
6535 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6536 (insns): Add pattern for bxj instruction.
6537 (do_bxj): New function.
6538 (arm_cpus): Add arm926ej.
6539 (arm_archs): Add armv5tej.
6541 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6543 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6545 2002-01-19 Keith Walker <keith.walker@arm.com>
6547 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6549 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6551 * NEWS: Mention new ARM command-line options and VFP support.
6553 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6555 (ARM_CEXT_MAVERICK): Similarly.
6556 (ARM_ANY): Now means any core instruction.
6557 (CPU_DEFAULT): Default to ARM_ANY.
6558 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6559 (pic_code): Declare for all object types. Make type int.
6560 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6561 (march_fpu_opt, mfpu_opt): Declare.
6562 (md_longopts): Tidy up conditional definitions.
6563 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6564 (arm_long_opts): New tables.
6565 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6566 (arm_parse_extension): New function.
6567 (md_parse_option): Rewrite using new table-driven system.
6568 (md_show_usage): Use new table-driven system.
6569 (md_begin): Calculate cpu_variant from command line option data.
6570 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6571 command-line options.
6572 * doc/c-arm.texi: Likewise.
6574 2002-01-18 Andreas Jaeger <aj@suse.de>
6576 * as.c (parse_args): Update year.
6578 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6580 * config/tc-tic54x.c (encode_address): Add a more informative
6581 warning about incorrect syntax.
6583 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6585 * po/gas.pot: Regenerate.
6587 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6589 * macro.c (get_any_string): Add no-c-format comment to prevent
6590 confusion when translating string.
6591 * gasp.c (get_any_string): Add no-c-format comment to prevent
6592 confusion when translating string.
6594 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6595 Johannes Stezenbach <js@convergence.de>
6596 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6597 matched before the shorter ones.
6598 (my_getSmallParser): Fix handling of nested parentheses in
6599 percent_op's. Code cleanup.
6600 (my_getPercentOp): New function, code from my_getSmallParser.
6601 (my_getSmallExpression): Fix handling of closing parentheses.
6602 Code cleanup. Better comments.
6604 2002-01-16 Nick Clifton <nickc@redhat.com>
6606 po/tr.po: New file: Turkish translation.
6607 configure.in (LINGUAS): Add "tr".
6608 configure: Regenerate.
6610 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6612 Support for VFP instructions
6613 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6614 (cp_address_required_here): New argument wb_ok. When false, do not
6615 accept write-back forms of addressing. Change all callers.
6616 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6617 (FPU_VFP_EXT_V2): Define.
6618 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6619 Define in terms of above.
6620 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6621 (vfp_reg): New struct.
6622 (vfp_regs): New array of registers.
6623 (insns): Add VFP instructions.
6624 (sn_table): New array of VFP single-precision register names.
6625 (dn_table): New array of VFP double-precision register names.
6626 (all_reg_maps): Add the new register tables.
6627 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6628 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6629 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6630 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6631 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6632 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6633 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6634 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6635 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6636 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6637 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6638 (do_vfp_sp_dp_cvt): New functions.
6639 (md_begin): Set soft-float flag for appropriate VFP work.
6640 (md_atof): Handle VFP-format doubles.
6641 (md_parse_option): Handle VFP command-line options.
6642 (md_show_usage): Display VFP command-line options.
6644 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6646 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6647 various command line options.
6649 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6651 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6653 (xstormy16_md_apply_fix3): Do not return a value.
6655 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6657 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6658 the -EL/-EB option that matches the target's endianness.
6659 (md_parse_option): Likewise.
6661 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6663 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6664 is not dependent on ARM_BI_ENDIAN.
6666 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6668 * tc-arm.c (all error messages): Normalize capitalization of messages.
6670 * tc-arm.h (md_operand): Delete define.
6671 * tc-arm.c (in_my_get_expression): New static variable.
6672 (my_get_expression): Set and clear it.
6673 (md_operand): New function. If called from my_get_expression
6674 put the error in inst.error.
6675 (output_inst): Now takes argument of instruction being assembled.
6676 Print it out with any error message.
6677 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6679 (end_of_line): Don't update inst.error if it is already set.
6681 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6683 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6684 op that can be translated into a mvn instruction.
6686 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6688 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6689 setting default md.flags.
6690 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6691 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6692 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6693 for 32 bit unwind info blocks.
6694 (generate_unwind_image): Add support for different types
6695 of unwind images (32 bits and/or big-endian).
6696 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6697 (ia64_target_format): Add support for hpux target formats.
6698 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6699 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6700 SHT_FINI_ARRAY elf section types.
6702 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6704 * tc-arm.c (struct reg_entry): Move before prototypes.
6705 (int_register, cp_register, fp_register): Delete.
6706 (reg_table): Delete. Replaced with ...
6707 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6708 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6709 (mav_dspsc_table): ... one table per register set.
6710 (arm_reg_hsh): Delete.
6711 (struct reg_map): New structure.
6712 (all_reg_maps): New array.
6713 (enum arm_reg_type): New enums.
6714 (build_reg_hsh): New function.
6715 (insert_reg_alias): Use hash table passed by caller. Adjust all
6717 (create_register_alias): New function, split out from ...
6718 (md_assemble): ... here.
6719 (md_begin): Build new register hash tables.
6720 (arm_reg_parse): New argument for the hash table to search. Adjust all
6722 (arm_reg_parse_any): New function.
6723 (co_proc_number): Look up the processor number in the processor hash
6725 (cirrus_regtype): Delete.
6726 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6727 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6728 (ARM_EXT_MAVERICKsc_register): Delete.
6729 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6730 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6732 (do_c_triple_4, do_c_triple_5): Delete.
6733 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6734 (do_c_quad_6): Delete.
6735 (do_c_quad_6[ab]): New functions.
6736 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6737 arguments to use new register parsing methods.
6738 (cirrus_reg_required_here): Likewise.
6739 (insns): Reclassify cirrus maverick worker functions.
6740 (cirrus_valid_reg): Delete.
6742 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6744 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6745 (sh*-*-netbsdelf*): New target.
6746 * configure: Regenerate.
6747 * tc-sh.h: Update copyright years.
6748 (TARGET_FORMAT): Add version for TE_NetBSD.
6750 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6752 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6755 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6757 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6758 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6760 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6762 * tc-mips.c (mips_cprestore_valid): New flag.
6763 (mips_frame_reg_valid): New flag.
6764 (macro) [M_JAL_2]: Check both flags.
6765 [M_JAL_A]: Likewise.
6766 (s_cprestore): Set mips_cprestore_valid.
6767 (tc_get_register): If setting mips_frame_reg, set
6768 mips_frame_reg_valid and clear mips_cprestore_valid.
6769 (s_mips_ent): Clear both flags.
6770 (s_mips_end): Clear both flags.
6772 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6774 * write.c (write_object_file): Make use of bfd_section_list_remove.
6775 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6776 * config/tc-mmix.c (mmix_frob_file): Likewise.
6778 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6780 * configure.in (i386-*-netbsdelf*): Collapse target into...
6781 (i386-*-netbsd*): ...this. Add support for x86-64.
6782 * configure: Regenerated.
6784 2002-01-03 matthew green <mrg@redhat.com>
6786 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6788 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6790 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6793 For older changes see ChangeLog-0001
6799 version-control: never