1 2003-10-06 Matt Thomas <matt@3am-software.com>
3 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
6 tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
7 register names. Change all "defined (TE_LINUX)" to
8 "(defined (TE_LINUX) || defined (TE_NETBSD))".
10 tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
11 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
13 2003-10-06 Robert Millan <robertmh@gnu.org>
15 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
16 * configure: Regenerate.
18 2003-10-05 Nick Clifton <nickc@redhat.com>
20 * as.c (parse_args): Revert patch to change handling of -f
21 option. Its behaviour is mandated by the POSIX 2 spec.
23 2003-10-04 Christian Groessler <chris@groessler.org>
25 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
26 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
27 (md_pcrel_from): This function now gets called. Supply return
30 2003-10-04 Nick Clifton <nickc@redhat.com>
32 * as.c: Convert to ISO C90.
34 2003-10-04 Nick Clifton <nickc@redhat.com>
36 * as.c (std_shortopts): Remove 'f'.
37 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
38 acecpted as an alias for -f.
40 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
42 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
43 Make 'r' mean readonly data.
45 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
47 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
48 Unbreak overflow checks.
50 2003-10-01 Chris Demetriou <cgd@broadcom.com>
52 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
54 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
56 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
58 (load_register): Likewise.
61 2003-09-30 Chris Demetriou <cgd@broadcom.com>
63 * config/tc-mips.c (mips_ip): Capitalize first word of
64 existing condition code warning, and add condition code
65 warnings for .ps instructions, and for bc1any[24][tf].
67 2003-09-30 Chris Demetriou <cgd@broadcom.com>
69 * NEWS: Mention support for MIPS64 Release 2.
71 2003-09-30 Chris Demetriou <cgd@broadcom.com>
73 * NEWS: Add an indication of the cutoff for 2.14.
75 2003-09-30 Chris Demetriou <cgd@broadcom.com>
77 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
78 * configure: Regenerate.
79 * config/tc-mips.c (imm2_expr): New variable.
80 (md_assemble, mips16_ip): Initialize imm2_expr.
81 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
82 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
83 (macro): Handle M_DEXT and M_DINS.
84 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
86 (OPTION_MIPS64R2): New define.
87 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
88 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
89 (md_parse_option): Handle OPTION_MIPS64R2.
90 (s_mipsset): Handle setting "mips64r2" ISA.
91 (mips_cpu_info_table): Add mips64r2.
92 (md_show_usage): Document -mips64r2 option.
93 * doc/as.texinfo: Docuemnt -mips64r2 option.
94 * doc/c-mips.texi: Likewise.
96 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
98 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
100 2003-09-26 Matt Thomas <matt@3am-software.com>
102 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
103 (OPTION_PIC): Define.
104 (md_longopts): Add "pic" option.
105 (md_parse_option): Change 'K' to OPTION_PIC.
107 2003-09-23 Alan Modra <alan@modra.org>
109 * config/obj-elf.c (obj_elf_change_section): Adjust for
110 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
111 to be set when defaults are not. Don't set attr from defaults if
114 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
116 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
117 truncate values which won't fit im 32 bits.
118 (load_register): Likewise.
121 2003-09-17 Dmitry Diky <diwil@mail.ru>
123 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
124 (msp430_operands): Remove redundant l2[16] within switch-case.
126 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
128 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
129 * configure: Regenerate.
131 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
133 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
134 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
135 the function prototype.
136 (load_register): Likewise. Simplify the checks for sign-extended
138 (macro): Likewise. Fix code generation for 64-bit address constants
139 outside the 32-bit compatibility space. Adjust
140 macro_build_ldst_constoffset calls.
141 (s_cprestore): Adjust macro_build_ldst_constoffset call.
143 2003-09-11 Bob Wilson <bob.wilson@acm.org>
145 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
146 literal_syms): New global variables.
147 (xtensa_define_label, add_target_symbol, xtensa_find_label,
148 map_over_defined_symbols, is_loop_target_label,
149 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
150 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
151 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
152 from insn_labels to saved_insn_labels when entering a literal region.
153 (xtensa_end_directive): Call md_flush_pending_output. Restore
154 insn_labels list when leaving a literal region.
155 (xtensa_literal_position): Call xtensa_clear_insn_labels.
156 (xtensa_literal_pseudo): Add check to disallow .literal inside a
157 literal region. Move insn_labels to saved_insn_labels and then restore
159 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
160 code to set is_loop_target or is_branch_target flag on the symbol
161 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
162 (xtensa_add_literal_sym, xtensa_add_insn_label,
163 xtensa_clear_insn_labels): New functions.
164 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
165 loops_ok argument. Rewrite to use insn_labels list instead of
166 calling xtensa_find_label and to check the is_loop_target flag on
167 symbols when loops_ok is false.
168 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
169 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
170 call to xtensa_move_labels. Propagate is_branch_target and
171 is_loop_target flags from symbols to frags.
172 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
173 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
174 aligning a loop instruction. Adjust call to xtensa_move_labels for
175 aligning entry instructions. Add call to xtensa_clear_insn_labels.
176 (xtensa_end): Remove call to xtensa_mark_target_fragments.
177 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
178 code to use new literal_syms list.
179 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
180 is_branch_target flags.
182 2003-09-09 Bob Wilson <bob.wilson@acm.org>
184 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
185 "move_labels" argument and corresponding call to xtensa_move_labels.
186 (md_assemble): Add a separate call to xtensa_move_labels and remove
187 argument for call to xtensa_mark_literal_pool_location.
188 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
189 calls to xtensa_mark_literal_pool_location.
190 (xtensa_create_local_symbol): Delete and inline the code into...
191 (xtensa_create_literal_symbol): ...here.
192 (xtensa_frob_label): Combine conditionals.
193 (expression_maybe_register, xtensa_symbol_new_hook,
194 fix_new_exp_in_seg): Use symbol_get_tc.
196 2003-09-09 Bob Wilson <bob.wilson@acm.org>
198 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
199 combining identical literals.
200 (expression_maybe_register): Remove call to find_lit_sym_translation.
201 (is_duplicate_expression, cache_literal, is_duplicate_literal,
202 add_lit_sym_translation, find_lit_sym_translation): Delete.
204 2003-09-07 Nick Clifton <nickc@redhat.com>
206 * doc/as.texinfo (Comments): Comment character for PPC is #.
208 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
211 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
214 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
216 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
218 2003-09-04 Nick Clifton <nickc@redhat.com>
220 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
221 (md_pseudo_table): Add .v850e1 pseudo op.
222 (md_show_usage): Document -mv850e1 switch.
223 (md_parse_option): Accept -mv850e1 switch.
224 (md_begin): Allow TARGET_CPU to be v850e1.
225 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
226 * NEWS: Mention support for v850e1.
228 2003-09-04 Alan Modra <amodra@bigpond.net.au>
230 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
231 ppc_cpu selection rather than replacing.
232 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
233 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
235 2003-09-03 Robert Millan <robertmh@gnu.org>
237 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
239 * configure: Regenerate.
241 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
243 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
244 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
245 Specify AC_CONFIG_AUX_DIR.
246 * aclocal.m4: Regenerated with aclocal-1.7.
247 * configure: Regenerated with autoconf 2.57.
248 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
250 2003-08-29 Jakub Jelinek <jakub@redhat.com>
252 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
253 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
254 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
255 nor tc_cfi_emit_pcrel_expr are defined.
256 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
257 DIFF_EXPR_OK is not defined.
258 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
259 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
260 tc_cfi_emit_pcrel_expr): Define.
261 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
262 sparc_cfi_emit_pcrel_expr): New prototypes.
263 (sparc_cie_data_alignment): New decl.
264 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
265 * config/tc-sparc.c: Include dw2gencfi.h.
266 (sparc_cie_data_alignment): New variable.
267 (md_begin): Initialize it.
268 (sparc_cfi_frame_initial_instructions): New function.
269 (sparc_regname_to_dw2regnum): Likewise.
270 (sparc_cfi_emit_pcrel_expr): Likewise.
271 * doc/as.texinfo: Document .cfi_window_save.
273 * config/tc-sparc.c (s_common): Cast last argument to long and
274 change format string to shut up warning.
276 2003-08-25 Jason Eckhardt <jle@rice.edu>
278 * doc/c-i860.texi: Update text about relocatable address expansions.
280 2003-08-24 Jason Eckhardt <jle@rice.edu>
282 * config/tc-i860.c (md_assemble): Use isrc2 from the original
283 instruction when expanding E_ADDR.
285 2003-08-21 Nick Clifton <nickc@redhat.com>
287 * po/tr.po: Updated Turkish translation.
289 2003-08-20 Alan Modra <amodra@bigpond.net.au>
291 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
292 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
294 2003-08-19 Nick Clifton <nickc@redhat.com>
296 * config/tc-arm.c (cp_address_required_here): Add code to handle
297 unindexed addressing mode.
299 2003-08-19 Alan Modra <amodra@bigpond.net.au>
301 * config/tc-ppc.c (md_parse_option): Handle -m440.
302 (md_show_usage): Add -m440.
303 (md_apply_fix3): Warning fix.
304 * doc/c-ppc.texi: Document -m440.
306 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
308 * read.c (s_print): Check for NULL.
310 2003-08-16 Alan Modra <amodra@bigpond.net.au>
312 * write.c (fixup_segment): When handling an expression involving
313 the subtraction of two symbols in the same segment, don't clear
314 fx_pcrel except for TC_M68K.
316 2003-08-14 Alan Modra <amodra@bigpond.net.au>
318 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
320 * config/tc-i386.c: Likewise.
321 (RELOC_ENUM): Don't define. Replace throughout with enum.
323 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
324 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
326 * Makefile.in: Regenerate.
328 2003-08-08 Andreas Schwab <schwab@suse.de>
330 * config/tc-m68k.h (TARGET_USE_CFIPOP)
331 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
332 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
334 * config/tc-m68k.c: Include "dw2gencfi.h".
335 (tc_m68k_regname_to_dw2regnum)
336 (tc_m68k_frame_initial_instructions): New functions.
338 2003-08-08 Dmitry Diky <diwil@mail.ru>
340 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
341 according to gcc order.
343 2003-08-07 Jason Eckhardt <jle@rice.edu>
345 * config/tc-i860.c (i860_check_label): New function.
346 * config/tc-i860.h (i860_check_label): New prototype.
347 (tc_check_label): Define macro as i860_check_label.
349 2003-08-06 Jason Eckhardt <jle@rice.edu>
351 * config/tc-i860.c (s_align_wrapper): New function and prototype.
352 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
353 surrounding OBJ_ELF ifdef, and re-format slightly.
354 * doc/c-i860.texi: Document the special .align syntax available
357 2003-08-06 Jason Eckhardt <jle@rice.edu>
359 * config/tc-i860.c (i860_handle_align): New function.
360 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
361 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
363 2003-08-06 Jason Eckhardt <jle@rice.edu>
365 * config/tc-i860.c (i860_process_insn): Check that instructions
366 with their dual-bit set are 8-byte aligned.
368 2003-08-06 Nick Clifton <nickc@redhat.com>
370 * po/fr.po: Updated French translation.
372 2003-08-05 Jason Eckhardt <jle@rice.edu>
374 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
375 setting during flop argument parsing. Instead, do it after
376 instruction is fully parsed.
378 2003-08-05 Jason Eckhardt <jle@rice.edu>
380 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
381 directives are only available in Intel syntax mode.
383 2003-08-05 Jason Eckhardt <jle@rice.edu>
385 * config/tc-i860.c (s_dual): Accept .dual directive only in
386 the Intel syntax mode.
387 (s_enddual): Likewise for .enddual.
388 (s_atmp): Likewise for .atmp.
390 2003-08-04 Alan Modra <amodra@bigpond.net.au>
392 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
393 for memory operands. Pass the full operand_string to i386_index_check.
395 2003-08-01 Jason Eckhardt <jle@rice.edu>
397 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
398 (target_intel_syntax): Declare variable.
399 (OPTION_INTEL_SYNTAX): Declare macro.
400 (md_longopts): Add option -mintel-syntax.
401 (md_parse_option): Set target_intel_syntax.
402 (md_show_usage): Add -mintel-syntax usage.
403 (md_begin): Set reg_prefix based on target_intel_syntax.
404 (i860_process_insn): Skip register prefix only if there is one.
405 Parse relocatable expressions in either Intel or AT&T syntax based
406 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
407 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
408 about the differences in syntax.
410 2003-08-01 Dmitry Diky <diwil@mail.ru>
412 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
415 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
417 * config/tc-sh.c (md_assemble): For branches, check & update
420 2003-07-30 Jason Eckhardt <jle@rice.edu>
422 * config/tc-i860.c: Convert to ISO C90.
424 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
426 * read.c (s_space): Revert 2003-07-28 change.
428 2003-07-30 Alan Modra <amodra@bigpond.net.au>
430 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
432 2003-07-29 Alan Modra <amodra@bigpond.net.au>
434 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
436 2003-07-29 Jakub Jelinek <jakub@redhat.com>
438 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
440 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
442 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
444 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
446 * read.c (s_space): Don't warn about .space 0.
448 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
450 * config/tc-mips.c (mips_flag_pdr): Define.
451 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
452 (s_mips_end) [OBJ_ELF]: Likewise.
453 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
454 (md_parse_option) [OBJ_ELF]: Handle them.
455 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
457 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
458 * doc/as.texinfo (Overview) [MIPS]: Likewise.
460 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
462 * config/obj-elf.c (obj_elf_change_section): Update
463 elf_section_type and elf_section_flags only when they are
466 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
468 * config/obj-elf.c (obj_elf_change_section): Always set section
471 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
473 * config/obj-elf.c (special_sections): Removed.
474 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
475 elf_section_type and elf_section_flags.
476 (elf_frob_file): Set SHT_GROUP.
478 * config/obj-elf.h (obj_sec_set_private_data): New.
480 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
481 * config/tc-ia64.h: Likewise.
482 * config/tc-m32r.h: Likewise.
483 * config/tc-m68hc11.h: Likewise.
484 * config/tc-mcore.h: Likewise.
485 * config/tc-mips.h: Likewise.
486 * config/tc-ppc.h: Likewise.
487 * config/tc-sh64.h: Likewise.
488 * config/tc-v850.h: Likewise.
489 * config/tc-xtensa.h: Likewise.
491 * config/tc-v850.h (SHF_V850_GPREL): Removed.
492 (SHF_V850_EPREL): Likewise.
493 (SHF_V850_R0REL): Likewise.
495 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
498 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
500 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
501 debugging symbols so that we handle page memory correctly.
503 2003-07-24 Nick Clifton <nickc@redhat.com>
505 * po/fr.po: Updated French translation.
507 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
509 * config/tc-arm.c (arm_archs): Add iwmmxt.
511 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
513 * read.c (do_parse_cons_expression): Mark nbytes unused to
516 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
518 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
521 * config/tc-h8300.c (md_assemble): Make sure characters after
522 slash and dot are lower-case.
524 2003-07-17 Nick Clifton <nickc@redhat.com>
526 * po/es.po: New Spanish translation.
527 * po/tr.po: New Turkish translation.
528 * po/opcodes.pot: Regenerate.
530 2003-07-16 Alan Modra <amodra@bigpond.net.au>
532 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
533 (generic_dwarf2_emit_offset): Don't define function when
534 TC__DWARF2_EMIT_OFFSET is defined.
536 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
538 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
539 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
540 * doc/c-mips.texi: Document -march=rm9000.
542 2003-07-15 Alan Modra <amodra@bigpond.net.au>
544 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
545 only for V850_OPERAND_DISP operands.
547 2003-07-15 Alan Modra <amodra@bigpond.net.au>
549 * frags.c (frag_more): Move segment checks to..
550 (frag_alloc_check): ..here. New function.
551 (frag_append_1_char): Call frag_alloc_check.
553 2003-07-14 Nick Clifton <nickc@redhat.com>
555 * po/tr.po: Update with latest version.
556 * po/POTFILES.in: Regenerate.
557 * po/gas.pot: Regenerate.
558 * configure: Regenerate.
560 2003-07-14 Nick Clifton <nickc@redhat.com>
562 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
563 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
564 "safe-ctype.h" and update use of macros.
565 * Makefile.am: Update dependencies.
566 * Makefile.in: Regenerate.
568 2003-07-11 Alan Modra <amodra@bigpond.net.au>
570 * po/gas.pot: Regenerate.
572 2003-07-10 Jakub Jelinek <jakub@redhat.com>
574 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
575 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
576 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
577 DWARF2_CIE_DATA_ALIGNMENT): Define.
578 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
580 (ppc_cie_data_alignment): Declare.
581 * config/tc-ppc.c: Include dw2gencfi.h.
582 (ppc_cie_data_alignment): Define.
583 (md_begin): Initialize ppc_cie_data_alignment.
584 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
586 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
587 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
588 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
589 DWARF2_CIE_DATA_ALIGNMENT): Define.
590 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
592 (s390_cie_data_alignment): Declare.
593 * config/tc-s390.c: Include dw2gencfi.h.
594 (s390_cie_data_alignment): Define.
595 (md_begin): Initialize s390_cie_data_alignment.
596 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
599 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
601 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
602 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
603 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
604 * configure.in (am33_2.0, mn10300-*-linux*): Added.
605 * configure: Rebuilt.
606 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
608 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
611 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
613 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
614 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
615 for subtracts from GLOBAL_OFFSET_TABLE that could not be
617 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
618 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
619 could not be simplified.
620 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
621 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
622 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
623 BDF_RELOC_MN10300_GOT32.
624 * config/tc-mn10300.c (mn10300_fix_adjustable): If
625 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
626 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
627 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
628 symbol if we know its value.
629 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
630 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
631 duplicate underscore prefix.
632 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
633 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
634 type in X_md, not X_add_number. Zero X_add_number.
635 (mn10300_check_fixup): Extract relocation type from X_md.
636 * config/tc-mn10300.h: Update comment.
637 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
638 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
640 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
641 (mn10300_check_fixup): Likewise.
642 (mn10300_parse_name): Set X_add_number to relocation type.
643 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
644 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
645 O_GOTOFF, O_PLT, O_GOT): Define.
646 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
647 (mn10300_check_fixup): New fn.
648 (md_assemble): Call it. Check for PIC-related relocs.
649 (mn10300_cons_fix_new): Likewise. New fn.
650 (mn10300_end_of_match): New fn.
651 (mn10300_md_parse_name_cont): New fn.
653 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
655 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
656 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
658 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
659 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
660 md_assemble, md_estimate_size_before_relax): Handle fbCC.
661 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
662 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
664 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
665 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
666 (HAVE_AM33): Match AM33_2 too.
667 (HAVE_AM33_2): New macro.
668 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
669 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
670 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
671 (float_registers, double_registers): New variables.
672 (float_register_name, double_register_name): New functions.
673 (md_assemble): Recognize FP registers. Implement FMT_D3.
674 (mn10300_insert_operand): Support FP registers.
676 2003-07-08 Chris Demetriou <cgd@broadcom.com>
678 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
679 target being a global symbol if not compiling SVR4 PIC code.
681 2003-07-07 Nick Clifton <nickc@redhat.com>
683 * doc/c-m32r.texi (M32R-Directives): New node. Document the
684 .high, .shigh and .low directives.
686 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
688 * config/tc-h8300.c (h8300sxnmode): Add prototype.
690 (parse_exp): Replace expressionS argument with a h8_op. Parse the
691 operand size as well.
692 (skip_colonthing): Remove unused expression argument. Tighten checks
694 (colonmod24): Remove.
695 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
696 (get_operand): Likewise. Use the standard code to read the size of
697 pc-relative operands.
698 (fix_operand_size): Include the size-guessing logic that used to be
699 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
700 offsets with a symbolic component.
702 2003-07-04 Nick Clifton <nickc@redhat.com>
704 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
705 macro to compute size of selected register name array.
707 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
709 * config/tc-s390.c (md_parse_option): Add cpu type z990.
710 (md_begin): Add minimal cpu type logic for instructions with different
711 binary format depending on the cpu.
712 (md_assemble): Remove check for minimal cpu.
713 (s390_insert_operand): Add support for long displacements.
714 (md_gather_operands): Likewise.
715 (tc_s390_fix_adjustable): Likewise.
716 (tc_s390_force_relocation): Likewise.
717 (md_apply_fix3): Likewise.
719 2003-06-30 Chris Demetriou <cgd@broadcom.com>
721 * config/tc-mips.c (s_mipsset): Implement -march= handling
724 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
726 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
727 prototypes and casts. Replace PTR with void *. Reformat.
728 * config/tc-mips.h: Likewise.
730 2003-06-30 Alan Modra <amodra@bigpond.net.au>
732 * config/tc-ia64.c (note_register_values): Warning fix.
733 * config/tc-mips.c (append_insn): Likewise.
735 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
737 * config/tc-mips.c (mips_set_options,mips_opts): Support for
739 (file_mips_arch): Rename mips_arch.
740 (mips_arch_info,mips_tune_info): Remove.
741 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
742 (mips_cpu_info_from_arch): New function.
743 (md_begin): Use file_mips_arch.
744 (macro_build,macro,mips_ip): Use mips_opts.arch.
745 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
746 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
748 (s_mipsset): Support for .set arch=FOO.
749 (mips_cpu_info_table): Fix typo.
751 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
753 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
755 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
757 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
758 unsigned 8-bit operands.
760 2003-06-24 Nick Clifton <nickc@redhat.com>
762 * read.c (s_comm): Change error message to assume an unsigned size
763 has been passed to .comm.
764 * config/tc-sparc.c (s_common): Likewise.
765 * write.c (write_contents): Replace 'unsigned long' with
766 'addressT' and 'long' with offsetT in order to allow computations
767 with very large values to work for 64-bit addressed targets.
768 (relax_and_size_all_segments): Likewise.
769 (relax_frag): Likewise.
770 (relax_segment): Likewise.
772 2003-06-23 Mark Mitchell <mark@codesourcery.com>
774 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
776 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
778 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
781 * gas/config/tc-i386.h (CpuPNI): New.
782 (CpuUnknownFlags): Add CpuPNI.
784 2003-06-23 <davidm@hpl.hp.com>
786 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
787 freebsd, openvms, and nsk (non-stop kernel).
789 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
791 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
792 all locals have been declared.
794 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
796 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
797 special handling for n32 ABI.
800 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
802 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
805 2003-06-19 Christian Groessler <chris@groessler.org>
807 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
808 now, not only a warning. Add some more checks to detect invalid
810 (get_operand): For CLASS_IR remember register size in mode struct.
811 (get_specific): Handle new CLASS_IRO type. Add register size
812 checks for CLASS_IR and CLASS_IRO.
813 (md_apply_fix3): Fix undefined usage of buf.
815 2003-06-19 Alan Modra <amodra@bigpond.net.au>
817 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
818 (ppc_change_csect): Add align param. Align frag at start of csect.
819 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
820 (ppc_frob_section): Align vma.
822 2003-06-18 Jakub Jelinek <jakub@redhat.com>
824 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
825 (output_cie): Don't pad.
826 (output_fde): Add align argument. Pad to align if not 0.
827 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
828 Pad just last FDE to EH_FRAME_ALIGNMENT.
830 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
832 * config/tc-s390.c (init_default_arch): Make current_mode_mask
833 dependent on s390_arch_size and current_cpu dependent on
836 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
838 * configure.in: Add c4x as an architecture variant to tic4x.
839 * configure: Regenerate.
840 * Makefile.in: Regenerate.
841 * doc/Makefile.in: Regenerate.
843 2003-06-18 Alan Modra <amodra@bigpond.net.au>
845 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
846 ".TOC." from PPC64_TOC relocs.
848 2003-06-17 Alan Modra <amodra@bigpond.net.au>
850 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
852 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
854 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
855 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
856 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
857 s_cprestore,s_cpadd): Use them.
859 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
861 * configure.in: Add specific case for cris-*-linux-gnu* with
863 * configure: Regenerate.
864 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
865 if TE_LINUX defined, else FALSE.
866 (bfd_boolean demand_register_prefix): Set default from
867 DEFAULT_CRIS_AXIS_LINUX_GNU.
868 (symbols_have_leading_underscore): Similar.
869 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
871 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
873 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
874 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
875 FPU_ARCH_FPA for AOUT.
876 (md_begin): Don't try to guess the floating point architecture from
877 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
879 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
881 * configure.in: Add i386-netbsd-gnu target.
882 * configure: Regenerate.
884 2003-06-12 Tom Tromey <tromey@redhat.com>
886 * doc/as.texinfo (Comm): Added @node. Moved before CFI
889 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
891 * config/tc-mips.c (append_insn): In a compound relocation, take the
892 field width from the final (outermost) operator.
894 2003-06-11 Richard Henderson <rth@redhat.com>
896 * dw2gencfi.c (struct cfi_escape_data): New.
897 (cfi_add_CFA_nop): Remove.
898 (CFI_escape, dot_cfi_escape): New.
899 (dot_cfi): Remove nop.
900 (cfi_pseudo_table): Remove nop; add escape.
901 (output_cfi_insn): Likewise.
902 (select_cie_for_fde): Stop on escape.
903 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
904 * read.c, read.h (do_parse_cons_expression): New.
905 * doc/as.texinfo (.cfi_escape): New.
907 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
909 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
910 (s_cprestore): Likewise.
911 (s_cpreturn): Likewise.
913 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
915 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
918 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
920 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
921 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
922 exceptions from size assert. Remove most of the addend fixup
923 specialcasing. Remove value, use valP directly. simplify fx_addnumber
924 handling. Remove zero addend specialcases.
925 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
926 the addend fixup specialcase.
927 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
929 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
931 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
932 in the RELOC_EXPANSION_POSSIBLE case.
934 2003-06-11 Alan Modra <amodra@bigpond.net.au>
936 * config/tc-i960.c (line_comment_chars): Add '#'.
937 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
939 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
941 * po/Make-in (DESTDIR): New.
942 (install-data-yes): Support $(DESTDIR).
943 (uninstall): Likewise.
945 2003-06-11 Alan Modra <amodra@bigpond.net.au>
947 * Makefile.am: Run "make dep-am".
948 * Makefile.in: Regenerate.
949 * po/POTFILES.in: Regenerate.
951 2003-06-10 Doug Evans <dje@sebabeach.org>
953 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
955 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
956 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
957 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
959 2003-06-10 Alan Modra <amodra@bigpond.net.au>
960 Gary Hade <garyhade@us.ibm.com>
962 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
963 (md_apply_fix3): Special case lq insn.
965 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
967 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
968 lists. Allow single-register ranges.
970 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
972 * config/tc-h8300.c (h8300sxnmode): New.
973 (md_pseudo_table): Add .h8300sxn entry.
975 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
977 * NEWS: Updated for the new -n option for the i386 assembler.
979 * config/tc-i386.c (optimize_align_code): New.
980 (md_shortopts): Add 'n'.
981 (md_parse_option): Handle 'n'.
982 (md_show_usage): Add '-n'.
984 * config/tc-i386.h (optimize_align_code): Declared.
985 (md_do_align): Optimize code alignment only if optimize_align_code
988 * doc/as.texinfo: Add the new -n option.
990 * doc/c-i386.texi: Document the new -n option.
992 2003-06-07 Richard Henderson <rth@redhat.com>
994 * doc/as.texinfo: Document .cfi_rel_offset.
996 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
997 (cfi_add_CFA_offset): Detect invalid offsets.
998 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
999 (cfi_add_CFA_restore_state): Restore it.
1000 (CFI_rel_offset): New.
1001 (cfi_pseudo_table): Add it.
1002 (dot_cfi): Handle it.
1004 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1006 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1009 2003-06-05 Michael Snyder <msnyder@redhat.com>
1011 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1012 (build_bytes): Ditto.
1014 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1016 * config/tc-h8sx.c (DMODE): Remove.
1017 (colonmod24): Don't choose a default if the operand is a 16-bit
1019 (fix_operand_size): New function.
1020 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1021 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1023 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1025 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1026 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1027 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1028 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1029 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1030 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1031 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1032 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1033 (cfi_pseudo_table): New directives .cfi_return_column,
1034 .cfi_restore, .cfi_undefined, .cfi_same_value,
1035 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1036 (dot_cfi, output_cfi_insn): Handle new directives.
1037 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1038 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1039 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1041 2003-06-04 Richard Henderson <rth@redhat.com>
1043 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1045 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1047 2003-06-04 Richard Henderson <rth@redhat.com>
1049 * config/tc-alpha.c (s_alpha_usepv): New.
1050 (md_pseudo_table): Add it.
1051 (alpha_cfi_frame_initial_instructions): New.
1052 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1053 (tc_cfi_frame_initial_instructions): New.
1054 * doc/c-alpha.texi: Document .usepv.
1056 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1058 * as.c (show_usage): Document --execstack and --noexecstack.
1059 (parse_args): Add --execstack and --noexecstack.
1060 (main): Create .note.GNU-stack section if --execstack or
1061 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1062 * as.h (flag_execstack, flag_noexecstack): New.
1064 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1066 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1067 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1068 (OPTION_MISC_BASE): New defines.
1069 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1070 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1071 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1072 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1073 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1074 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1075 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1076 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1077 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1078 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1079 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1080 (OPTION_TRAP): Redefine in terms of new defines.
1081 (md_longopts): Reorder entries.
1083 2003-05-14 Michael Snyder <msnyder@redhat.com>
1084 From Bernd Schmidt <bernds@redhat.com>
1085 and Michael Snyder <msnyder@redhat.com>
1086 and Alexandre Oliva <aoliva@redhat.com>
1087 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1088 * config/tc-h8300.h: Ditto.
1090 2003-06-03 Nick Clifton <nickc@redhat.com>
1092 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1093 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1094 before calling bfd_reloc_type_lookup.
1096 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1098 * read.c (emit_expr): Set dot_value.
1099 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1101 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1103 * macro.c (sub_actual): Don't lose string if it turns out that
1104 &string wasn't an arg.
1106 2003-05-31 Richard Henderson <rth@redhat.com>
1108 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1109 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1111 2003-05-29 Richard Henderson <rth@redhat.com>
1113 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1114 (all_frame_data, plast_frame_data, cur_frame_data): New.
1115 (s_alpha_ent): Record data for dwarf2 cfi.
1116 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1117 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1118 * config/tc-alpha.h (md_end): New.
1119 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1120 (DWARF2_CIE_DATA_ALIGNMENT): New.
1122 2003-05-29 Nick Clifton <nickc@redhat.com>
1124 * configure.in: Add i386-*-freebsd* entry.
1125 * configure: Regenerate.
1127 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1129 * config/tc-m32r.c: Amend comment to refer to Renesas
1131 2003-05-27 Richard Henderson <rth@redhat.com>
1133 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1135 (current_location): Use symbol_temp_new_now.
1136 * stabs.c (s_stab_generic): Use symbol_temp_new.
1137 * symbols.c (temp_label_name): Remove.
1138 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1140 2003-05-27 Richard Henderson <rth@redhat.com>
1142 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1143 * as.c (main): Always call cfi_finish.
1144 * config/tc-i386.c (x86_dwarf2_return_column): New.
1145 (x86_cie_data_alignment): New.
1146 (md_begin): Set them.
1147 (tc_x86_cfi_init): Remove.
1148 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1149 return int, not unsigned long; don't as_bad here.
1150 (tc_x86_frame_initial_instructions): Streamline; use
1152 * config/tc-i386.h (tc_cfi_init): Remove.
1153 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1154 (DWARF2_CIE_DATA_ALIGNMENT): New.
1156 2003-05-27 Richard Henderson <rth@redhat.com>
1158 * symbols.c (temp_label_name): New.
1159 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1160 (symbol_set_value_now): New.
1161 * symbols.h: Prototype them.
1162 * dwarf2dbg.c: Use them.
1163 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1165 2003-05-23 Jason Eckhardt <jle@rice.edu>
1167 * config/tc-i860.c (target_xp): Declare variable.
1168 (OPTION_XP): Declare macro.
1169 (md_longopts): Add option -mxp.
1170 (md_parse_option): Set target_xp.
1171 (md_show_usage): Add -mxp usage.
1172 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1173 (md_assemble): Don't try expansions if XP_ONLY is set.
1174 * doc/c-i860.texi: Document -mxp option and i860XP support.
1176 2003-05-23 Eric Christopher <echristo@redhat.com>
1178 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1180 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1182 * config/tc-mips.c (append_insn): Use actual relocation size for new
1183 fixp's. Don't relax overflow checking for partial_inplace relocations.
1184 Use the actual relocation type in combined relocs, not just the type
1186 (macro_build_jalr): Use actual relocation size for new fix.
1187 (s_cpsetup, s_gpdword): Likewise.
1189 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1191 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1193 2003-05-22 Nick Clifton <nickc@redhat.com>
1195 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1196 section relative offsets for relocs that will not be based on the
1198 (xstormy16_md_apply_fix3): Remove previous patch to this
1201 2003-05-07 Eric Christopher <echristo@redhat.com>
1203 * config/tc-mips.c (mips_abicalls): New variable.
1204 (md_parse_option): Use.
1206 (s_abicalls): Ditto.
1207 (mips_elf_final_processing): Set EF_MIPS_PIC and
1208 EF_MIPS_CPIC dependent on above.
1210 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1212 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1214 2003-05-21 Nick Clifton <nickc@redhat.com>
1216 * config/obj-elf.c: Include dwarf2dbg.h.
1217 (elf_pseudo_tab): Add .file and .loc.
1218 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1219 * config/tc-arm.c: Likewise.
1220 * config/tc-h8300.c: Likewise.
1221 * config/tc-hppa.c: Likewise.
1222 * config/tc-ia64.c: Likewise.
1223 * config/tc-m68hc11.c: Likewise.
1224 * config/tc-m68k.c: Likewise.
1225 * config/tc-mmix.c: Likewise.
1226 * config/tc-mn10300.c: Likewise.
1227 * config/tc-ppc.c: Likewise.
1228 * config/tc-sh.c: Likewise.
1229 * config/tc-sparc.c: Likewise.
1230 * config/tc-v850.c: Likewise.
1231 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1233 * config/tc-ip2k.c: Likewise.
1234 * config/tc-iq2000.c: Likewise.
1235 * config/tc-xstormy16.c: Likewise.
1236 * config/tc-xtensa.c: Likewise.
1237 * Makefile.am: Regenerate dependencies.
1238 * Makefile.in: Regenerate.
1239 * aclocal.m4: Regenerate.
1240 * config.in: Regenerate.
1241 * configure: Regenerate.
1242 * po/POTFILES.in: Regenerate.
1243 * po/gas.pot: Regenerate.
1245 2003-05-21 Nick Clifton <nickc@redhat.com>
1247 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1248 BFD_ASSEMBLER targets.
1249 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1250 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1251 defining BFD_ASSEMBLER.
1253 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1255 * as.c (main): Remove tc_cfi_init().
1256 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1258 (cfi_pseudo_table): Add "cfi_register" entry.
1259 (cfi_make_insn): Handle CFA_register.
1260 (cfi_output_insn): Ditto.
1262 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1263 (dot_cfi_endproc): Reuse already emitted CIEs.
1264 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1265 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1267 2003-05-20 Nick Clifton <nickc@redhat.com>
1269 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1270 (md_pseudo_table): Add entries for .loc and .line.
1272 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1274 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1276 (dot_cfi_endproc): Avoid C99 construct.
1278 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1280 * dw2gencfi.c, dw2gencfi.h: New files.
1281 * config/tc-i386.c (tc_x86_cfi_init): New function.
1282 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1283 * as.c (parse_args): Set verbose flag on --verbose.
1284 (main): Call tc_cfi_init()/cfi_finish().
1285 * as.h (verbose): New external variable.
1286 * read.c (pobegin): Insert CFI pops to the list.
1287 * symbols.c (local_symbol_make): Make symbol external.
1288 * symbols.h (local_symbol_make): New prototype.
1289 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1290 * Makefile.in: Regenerate.
1291 * doc/as.texinfo: Added node "CFI directives" with description of
1292 all implemented .cfi_* directives.
1293 * doc/Makefile.in: Regenerate.
1294 * po/POTFILES.in: Regenerate.
1296 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1298 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1300 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1302 2003-05-18 Jason Eckhardt <jle@rice.edu>
1304 * config/tc-i860.c (i860_process_insn): Initialize fc after
1305 each opcode mismatch.
1307 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1309 * configure.in: Accept i[3-7]86 variants.
1310 * configure: Regenerate.
1312 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1314 * config/tc-mips.h: Fix comment formatting.
1316 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1318 * read.c (old_buffer, old_input, old_limit): Remove variables.
1319 (read_a_source_file): Delete label contin.
1320 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1321 input as with macros, instead of in separate old_* variables.
1322 Zero-terminate string being scrubbed.
1324 2003-05-12 Nick Clifton <nickc@redhat.com>
1326 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1327 (md_assemble): Reset skipping_fptr.
1328 (md_operand): If @fptr() is followed by a minus sign, set
1329 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1330 @fptr is detected, ignore it and reset skipping_fptr.
1332 2003-05-11 Jason Eckhardt <jle@rice.edu>
1334 * config/tc-i860.c (MAX_FIXUPS): Define.
1335 (struct i860_fi fi[]): New struct.
1336 (struct i860_it the_insn): Add above as member and move fields
1337 exp, reloc, pcrel and fup into i860_fi.
1338 (md_assemble): Replace all instances of exp, reloc, pcrel
1339 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1340 Add a loop to possibly emit multiple fix-ups for each insn.
1341 (i860_process_insn): Likewise.
1342 (i860_get_expression): Likewise.
1343 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1345 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1347 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1349 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1351 * config/tc-ia64.c (alias_hash): New.
1352 (alias_name_hash): New.
1353 (secalias_hash): New.
1354 (secalias_name_hash): New.
1355 (md_pseudo_table): Add "secalias".
1356 (md_begin): Initialize alias_hash, alias_name_hash,
1357 secalias_hash and secalias_name_hash.
1358 (struct alias): New.
1359 (dot_alias): Implement .alias and .secalias directives.
1361 (ia64_adjust_symtab): New.
1363 (ia64_frob_file): New.
1365 * config/tc-ia64.h (ia64_adjust_symtab): New.
1366 (tc_adjust_symtab): Defined.
1367 (ia64_frob_file): New.
1368 (tc_frob_file): Defined.
1370 2003-05-07 Dmitry Diky <diwil@mail.ru>
1372 * tc-msp430.c: Add missing lines to known cpus list.
1374 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1376 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1377 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1378 * config.in, configure: Rebuilt.
1380 2003-05-05 H.J. Lu <hjl@gnu.org>
1382 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1383 howto->partial_inplace is false.
1385 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1387 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1388 symbol_used_in_reloc_p check.
1389 (md_apply_fix3): Remove check for howto->pcrel_offset.
1391 2003-05-03 H.J. Lu <hjl@gnu.org>
1393 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1394 fatal error for unknown section attribute.
1396 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1397 unknown section attribute.
1398 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1399 * config/tc-ppc.c (ppc_section_letter): Likewise.
1401 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1402 (ia64_elf_section_type): Accept "unwind".
1404 2003-05-02 H.J. Lu <hjl@gnu.org>
1406 * read.h (demand_copy_string): New.
1408 * config/tc-alpha.c (demand_copy_string): Removed.
1410 2003-05-02 Michael Snyder <msnyder@redhat.com>
1412 * write.h (FAKE_LABEL_NAME): Allow override
1413 (for targets that like eg. a leading dot in a local label).
1415 2003-05-02 Nick Clifton <nickc@redhat.com>
1417 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1418 addend with the symbol's value for pc-relative relocations against
1419 a defined symbol - this will be done automatically.
1421 2003-05-01 H.J. Lu <hjl@gnu.org>
1423 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1426 2003-05-01 H.J. Lu <hjl@gnu.org>
1428 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1430 * config/obj-elf.c (obj_elf_section_name): Call
1431 tc_canonicalize_section_name if it is defined.
1433 2003-05-01 H.J. Lu <hjl@gnu.org>
1435 * config/tc-ia64.c (ia64_check_label): New.
1436 * config/tc-ia64.h (tc_check_label): New.
1438 * read.c (read_a_source_file): Call tc_check_label after
1439 creating a user-defined label if defined.
1441 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1443 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1444 -be and split strings to below 509 bytes in length.
1446 2003-05-01 Christian Groessler <chris@groessler.org>
1448 * expr.h: Fix comments in operatorT typedef.
1449 * config/tc-z8k.c: Add 2003 to copyright message.
1450 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1451 decides by the parameter.
1452 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1453 command line argument was given to select the intended
1455 (get_interrupt_operand): Warn if NOP type code is emitted.
1456 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1457 (apply_fix): Call newfix with additional 'size' parameter.
1458 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1459 4 bit immediate arguments.
1460 (md_longopts): Add 'linkrelax' option.
1461 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1462 variable when 'linkrelax' command line option is specified.
1463 (md_show_usage): Display 'linkrelax' option.
1464 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1465 R_CALLR and R_REL16.
1466 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1468 2003-04-30 H.J. Lu <hjl@gnu.org>
1470 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1471 (ia64_float_to_chars): Likewise.
1472 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1473 and ia64_float_to_chars by tc_segment_info_data.endian from
1474 the current segment if byteorder == -1.
1475 (md_begin): Call dot_byteorder to set target_big_endian.
1476 (md_atof): Call ia64_float_to_chars to convert floating point.
1477 (ia64_float_to_chars_bigendian): New function.
1478 (ia64_float_to_chars_littleendian): Likewise.
1479 (ia64_elf_section_change_hook): Likewise.
1481 * config/tc-ia64.h (ia64_number_to_chars): New.
1482 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1483 (ia64_elf_section_change_hook): New.
1484 (md_elf_section_change_hook): Defined.
1485 (ia64_segment_info_type): New struct.
1486 (TC_SEGMENT_INFO_TYPE): Defined.
1488 2003-04-30 H.J. Lu <hjl@gnu.org>
1490 * config/tc-ia64.c (md_section_align): Deleted.
1492 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1493 (md_section_align): New.
1495 2003-04-30 H.J. Lu <hjl@gnu.org>
1497 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1499 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1501 (md_atof): Add 6 byte padding of zero for real16.
1503 2003-04-29 Nick Clifton <nickc@redhat.com>
1505 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1506 start of a version name.
1508 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1510 * configure.in (mips-*-*n*bsd*): Replace with...
1511 (mips-*-netbsd*, mips-*-openbsd*): These.
1512 * configure: Regenerate.
1514 2003-04-28 H.J. Lu <hjl@gnu.org>
1516 * config/tc-hppa.c (hppa_symbol_chars): New.
1517 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1519 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1521 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1523 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1525 * NEWS: Belatedly mention support for MIPS32 Release 2.
1527 2003-04-24 Eric Christopher <echristo@redhat.com>
1529 * config/tc-mips.c (nopic_need_relax): Revert previous
1532 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1534 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1535 * config/tc-h8300.c (dwarf2dbg.h): Include
1536 (md_pseudo_table): Handle .loc and .file
1537 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1538 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1539 * Makefile.in: Regenerate.
1541 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1543 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1544 (md_pseudo_table): Add h8300hn, h8300sn.
1545 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1546 * doc/c-h8300.texi : Add documentation for new machine directives.
1548 2003-04-24 Nick Clifton <nickc@redhat.com>
1550 * config/tc-ppc.c (ppc_symbol_chars): Define.
1551 * config/tc-ppc.h (tc_symbol_chars): Define.
1553 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1555 * config/tc-sh.c: Amend comment to refer to SuperH.
1556 * config/tc-sh.h: Likewise.
1557 (LISTING_HEADER): Amend to refer to SuperH.
1558 * config/tc-sh64.c: Change comment to refer to SuperH.
1559 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1560 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1561 * doc/c-sh.texi: Amend to refer to SuperH.
1562 Add SuperH architecture documentation references.
1563 * doc/c-sh64.texi: Change to refer to SuperH.
1565 2003-04-23 H.J. Lu <hjl@gnu.org>
1567 * app.c (do_scrub_chars): More checks for valid labels.
1569 2003-04-22 H.J. Lu <hjl@gnu.org>
1571 * app.c (do_scrub_chars): Check for valid label.
1573 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1575 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1576 references to Renesas M32R.
1577 * doc/c-m32r.texi: Likewise.
1579 2003-04-21 Richard Henderson <rth@redhat.com>
1581 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1582 (out_file_list): Assign non-null filename after generating error.
1584 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1586 * ehopt.c (check_eh_frame): For aug_size == 0
1587 in state_seeing_aug_size state skip the state_skipping_aug
1590 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1592 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1594 * doc/c-h8500.texi: Likewise.
1595 * doc/c-sh.texi: Likewise.
1596 * doc/c-sh64.texi: Likewise.
1597 * doc/h8.texi: Likewise.
1598 * config/tc-h8300.c: Likewise.
1599 * config/tc-h8300.h: Likewise.
1600 * config/tc-h8500.c: Likewise.
1601 * config/tc-h8500.h: Likewise.
1602 * config/tc-sh.c: Likewise.
1603 * config/tc-sh.h: Likewise.
1604 * config/tc-sh64.c: Likewise.
1605 * config/tc-sh64.h: Likewise.
1607 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1609 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1610 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1611 (append_insn): When filling delay slots with instructions
1612 that have fixups that tc_gen_reloc might consider modifyable
1613 in variant frags, start a new frag.
1614 (load_address): Generate GOT_DISP with of without offset
1615 depending on whether symbol is local. For -xgot, use
1616 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1617 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1618 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1619 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1620 <ld_st>: In NewABI with small got, always use
1621 GOT_PAGE/GOT_OFST, with the latter in the load/store
1622 instruction. With big got, use GOT_HI16/GOT_LO16 or
1624 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1625 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1626 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1627 (md_convert_frag): Use memmove for safe copying of overlapping
1630 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1632 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1633 -mlong, -mshort-double and -mlong-double options; use table @code.
1634 (M68HC11-Syntax): Update to document 68HC12 operands.
1635 (M68HC11-Modifiers): New section for operand modifiers.
1636 (M68HC11-Directives): New section for specific assembler directives.
1637 (M68HC11-Branch): Fix Overfull hbox error.
1639 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1641 * config/tc-mips.c (macro): Add comments explaining the rationale
1644 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1646 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1647 constant address that Alexandre took out by accident. Reject
1648 64-bit addresses that are not sign extensions of 32 bits only if
1649 we don't support 64-bit address constants.
1651 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1653 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1655 2003-04-08 Nick Clifton <nickc@redhat.com>
1657 * as.c (perform_an_assembly_pass): If using cgen, call
1659 * cgen.c (gas_cgen_begin): New function. If
1660 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1661 otherwise call cgen_clear_signed_overflow_ok.
1662 * cgen.h: Prototype gas_cgen_begin.
1664 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1666 * write.c (write_relocs): Remove unused variable.
1668 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1670 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1671 (macro): Use new macro to decide whether to emit constant address
1672 as 32 or 64 bits if addresses are 32-bit wide but registers are
1675 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1677 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1678 (M6811_OP_PAGE_ADDR): New internal define.
1679 (get_operand): New modifier %page and %addr to obtain page and
1680 address part of a far-function.
1681 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1682 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1684 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1685 (find_opcode): Add comment.
1686 (md_estimate_size_before_relax): Force relocation of
1687 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1688 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1689 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1690 on the symbol itself so that DWARF2 strings are merged correctly.
1692 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1694 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1695 default tic4x target format to 'coff2-tic4x'.
1696 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1698 * config/tc-tic4x.h: Ditto
1700 2003-04-03 Nick Clifton <nickc@redhat.com>
1702 * NEWS: Mention support for Xtensa architecture.
1704 2003-04-02 Philip Blundell <philb@gnu.org>
1706 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1708 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1710 * config/tc-mips.c (macro2): Adjust implementation of
1711 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1712 in the case where the source and destination registers
1715 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1717 * Makefile.am (CPU_TYPES): Add xtensa.
1718 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1719 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1720 (xtensa-relax.o): New target.
1722 * Makefile.in: Regenerate.
1723 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1724 extra_objects for xtensa targets.
1725 * configure: Regenerate.
1726 * write.c (write_object_file): Add new md_post_relax_hook.
1727 * config/tc-xtensa.c: New file.
1728 * config/tc-xtensa.h: Likewise.
1729 * config/xtensa-istack.h: Likewise.
1730 * config/xtensa-relax.c: Likewise.
1731 * config/xtensa-relax.h: Likewise.
1732 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1733 * doc/Makefile.in: Regenerate.
1734 * doc/all.texi: Set new XTENSA variable.
1735 * doc/as.texinfo: Set new Xtensa variable. Describe
1736 Xtensa-specific options. Define line comment character for
1737 Xtensa. Add Xtensa processors to list of ELF targets where
1738 alignment is specified in bytes. Add new Xtensa-Dependent node.
1739 Add acknowledgements for those contributing to the Xtensa port.
1740 * doc/internals.texi: Describe new md_post_relax_hook.
1741 * doc/c-xtensa.texi: New file.
1743 2003-04-01 Nick Clifton <nickc@redhat.com>
1744 Richard Earnshaw <rearnsha@arm.com>
1746 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1747 (ARM_ARCH_IWMMXT): Simplify.
1748 (insns): Place iwmmx instructions in correct place in table.
1749 (arm_add_note): New function: Add a note entry to a .note section.
1750 (md_begin): Make the default architecture be unknown.
1751 Suppress the creation of an arm note section.
1753 2003-03-26 Eric Christopher <echristo@redhat.com>
1755 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1757 2003-03-25 Stan Cox <scox@redhat.com>
1758 Nick Clifton <nickc@redhat.com>
1760 Contribute support for Intel's iWMMXt chip - an ARM variant:
1762 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1763 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1764 (enum wreg_type, enum iwmmxt_insn_type): New types.
1765 (wr_register, wc_register, wcg_register): New macros.
1766 (iwmmxt_table): New variable.
1767 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1768 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1769 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1770 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1771 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1772 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1773 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1774 cp_byte_address_offset, cp_byte_address_required_here,
1775 check_iwmmxt_insn): New functions.
1776 (asm_opcode_insns): Add iWMMXt instructions.
1777 (md_begin): Set the mach value for iWMMXt targets. Create a note
1778 section to identify iwmmxt binaries.
1779 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1780 * doc/c-arm.texi: Document the support for the iWMMXt.
1781 * NEWS: Mention new support.
1783 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1785 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1786 * doc/all.texi: Likewise.
1787 * doc/c-tic54x.texi: Likewise.
1789 2003-03-21 Andreas Schwab <schwab@suse.de>
1791 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1792 avoid aliasing issue.
1794 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1796 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1797 (current_arch_mask): Rename to current_mode_mask.
1798 (current_arch_requested): Remove variable.
1799 (current_cpu): New variable.
1800 (init_default_arch): Set defaults values for s390_arch_size,
1801 current_mode_mask and current_cpu.
1802 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1803 (md_begin): Replace current_arch_mask by current_cpu.
1804 (md_assemble): Adapt check and error message to current_mode_mask and
1807 2003-03-09 James E Wilson <wilson@tuliptree.org>
1809 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1810 * read.c (get_line_sb): Return end of line character or '\n' if
1811 it is zero or non-existent.
1813 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1815 * config/tc-mips.c (mips_validate_fix): New function.
1816 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1817 (mips_validate_fix): Declare.
1819 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1821 * Reverted 2003-03-02's patch.
1823 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1825 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1826 (TC_DWARF2_EMIT_OFFSET): Provide default.
1827 (out_debug_aranges, out_debug_info): Use it.
1828 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1829 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1830 (ia64_gen_real_reloc_type): ... here.
1831 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1833 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1835 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1836 (s_mips_ent): Likewise.
1838 2003-03-04 Dmitry Diky <diwil@mail.ru>
1840 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1841 and x1123 devices, add missed x437.
1842 (md_show_usage): Sort device list.
1844 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1846 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1847 (md_begin): Use preset_target_arch.
1848 (md_longopts): Make isa option unconditional.
1849 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1850 set preset_target_arch.
1851 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1852 by -S_GET_VALUE (fixP->fx_subsy).
1853 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1854 and the addend is 0.
1855 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1856 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1858 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1860 * config/tc-mips.c (append_insn): Add handling of
1861 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1862 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1863 misaligned address and reange overflow.
1864 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1865 earlier warnings about misaligned address and reange overflow.
1866 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1867 (md_apply_fix): Likewise. Fix warning output.
1868 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1869 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1870 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1872 2003-02-21 Nick Clifton <nickc@redhat.com>
1874 * NEWS: Mention availability of test generator program.
1876 2003-02-21 Miles Bader <miles@gnu.org>
1878 * config/tc-v850.c (system_registers): Add v850e debug registers.
1879 (system_register_name): Accept up to 27 (the last v850e sys register).
1881 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1883 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1884 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1885 Capitalize section headings consistently. Format index entries more
1886 consistently. Unconditionalize text about whether text and data
1887 sections are alterable. Use @ifnottex for alternatives to @tex output
1888 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1889 .size and .type directives. Be more polite about bad bug reports.
1890 Move FDL into a separate file.
1891 * doc/fdl.texi: New file.
1893 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1895 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1896 (macro): Check it to decide whether a new frag is needed.
1897 (my_getSmallExpression): Set it.
1899 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1901 * cgen.c: Fix typo: intial -> initial.
1903 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1905 * app.c (do_scrub_chars): Handle '||' in two states.
1907 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1909 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1910 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1912 2003-02-11 Uwe Stieber <uwe@wwws.de>
1914 * configure.in: Add support for kaOS as cross build target system.
1915 * configure: Regenerated.
1917 2003-02-10 Nick Clifton <nickc@redhat.com>
1919 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1920 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1921 bfd_mach_arm_ep9312 machine number.
1923 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1925 * config/tc-mips.c (reloc_needs_lo_p): New function.
1926 (fixup_has_matching_lo_p): New function.
1927 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1928 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1929 if that fixup already has a matching %lo(). Don't call frag_wane here.
1930 (macro): Call frag_wane here if the last unmatched hi was in the
1932 (pic_need_relax): New function, split out from...
1933 (md_estimate_size_before_relax): ...here.
1934 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1935 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1937 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1939 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1941 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1943 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1946 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1948 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1949 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1950 accept x@got+off etc.
1951 (md_assemble): Handle TLS relocs.
1952 (ppc_force_relocation): Force for all TLS relocs.
1953 (ppc_fix_adjustable): Likewise.
1954 (md_apply_fix3): Handle TLS relocs.
1956 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1958 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1959 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1961 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1963 * config/tc-mips.c (enum small_ex_type): Remove.
1964 (imm_unmatched_hi): Remove.
1965 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1966 argument from calls to append_insn.
1967 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1969 (macro_build): Update append_insn calls.
1970 (mips16_macro_build, macro_build_lui): Likewise.
1971 (mips_ip): Rework handling of small expressions. Move explicit
1972 relocation handling into my_getSmallExpression. Assume that the
1973 value of 'o' operands is zero if there is only one bracketed
1975 (percent_op): Make constant. Record the BFD relocation code
1976 associated with each operator.
1977 (my_getSmallParser, my_getPercentOp): Remove.
1978 (parse_relocation): New function.
1979 (my_getSamllExpression): Rework. Fill in relocations here
1980 rather than in mips_ip.
1982 2003-01-29 Nick Clifton <nickc@redhat.com>
1984 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1985 assembler's handling of # <linenum> "<filename>" directives work.
1987 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1989 * dwarf2dbg.c: Include filenames.h.
1990 (struct file_entry): Make filename const char *.
1991 (dirs, dirs_in_use, dirs_allocated): New variables.
1992 (get_filenum): Add NUM argument. Build directory table.
1993 (dwarf2_where): Adjust caller.
1994 (dwarf2_directive_file): Use get_filenum to allocate
1995 slot in file and directory tables.
1996 (dwarf2_directive_loc): Recreate full filename from
1997 directory and filename part if needed for listing.
1998 (out_file_list): Output directory table.
1999 Output main source file dirname before its filename.
2001 2003-01-28 Dmitry Diky <diwil@mail.ru>
2003 * config/tc-msp430.c: Replace occurences of 'tolower' with
2006 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2008 * config/tc-ia64.c (dot_vframesp): Correct error message.
2009 (dot_vframepsp): Ditto.
2011 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2013 * configure.in (em): Set to irix on all Irix systems.
2014 * configure: Rebuilt.
2015 * config/te-irix.h: New file.
2016 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2017 whether to use Irix-specific 64-bit format.
2019 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2021 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2023 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2025 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2026 (tc_gen_reloc): Handle TLS relocs.
2027 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2028 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2030 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2031 (obj_elf_type): Handle tls_object.
2033 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2035 * config/tc-s390.c (s390_tls_suffix): New function.
2036 (elf_suffix_type): Add suffix enums for TLS relocations.
2037 (s390_elf_suffix): Add suffix strings for TLS relocations.
2038 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2040 (md_gather_operands): Map new instruction operand/elf suffix
2041 combinations for TLS to bfd relocations.
2042 (tc_s390_fix_adjustable): Add new TLS relocations.
2043 (tc_s390_force_relocation): Likewise.
2044 (md_apply_fix3): Likewise.
2046 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2048 * as.h: Update copyright date.
2049 * symbols.c: Likewise.
2050 * config/tc-d10v.h: Likewise.
2051 * config/tc-fr30.h: Likewise.
2052 * config/tc-i960.h: Likewise.
2053 * config/tc-mips.h: Likewise.
2055 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2056 (MD_APPLY_SYM_VALUE): Move.
2058 2003-01-23 Nick Clifton <nickc@redhat.com>
2060 * NEWS: Announce sh2e support.
2063 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2064 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2065 (sh_elf_final_processing): Handle arch_sh2e.
2067 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2069 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2070 * symbols.h (S_FORCE_RELOC): Likewise.
2071 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2072 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2073 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2074 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2075 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2076 * write.c (generic_force_reloc): New function.
2077 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2078 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2079 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2080 * as.h (generic_force_reloc): Declare.
2081 * doc/internals.texi (S_FORCE_RELOC): Update.
2082 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2084 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2085 generic_force_reloc.
2086 (alpha_fix_adjustable): Likewise.
2087 * config/tc-arm.c (arm_force_relocation): Likewise.
2088 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2089 * config/tc-frv.c (frv_force_relocation): Likewise.
2090 * config/tc-i386.c (md_apply_fix3): Likewise.
2091 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2092 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2093 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2094 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2095 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2096 * config/tc-mips.c (mips_force_relocation): Likewise.
2097 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2098 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2099 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2100 * config/tc-sh.c (sh_force_relocation): Likewise.
2101 (md_pcrel_from_section): Likewise.
2102 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2103 * config/tc-v850.c (v850_force_relocation): Likewise.
2104 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2105 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2106 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2107 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2109 * config/tc-d10v.c (d10v_force_relocation): Delete.
2110 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2111 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2112 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2113 * config/tc-fr30.c (fr30_force_relocation): Delete.
2114 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2115 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2116 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2117 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2118 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2119 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2120 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2121 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2122 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2123 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2124 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2125 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2126 * config/tc-i386.c (i386_force_relocation): Delete.
2127 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2129 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2130 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2131 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2132 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2134 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2135 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2137 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2139 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2140 sh64_elf_section_data.
2141 * config/tc-sh64.h: Include elf32-sh64.h.
2142 * config/tc-m68hc11.c: Don't include stdio.h.
2143 (md_show_usage): Fix missing continuation.
2144 * Makefile.am: Run "make dep-am".
2145 * Makefile.in: Regenerate.
2147 2003-01-22 Nick Clifton <nickc@redhat.com>
2149 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2151 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2153 * configure.in: Handle *-*-aros*.
2154 * configure: Regenerated from configure.in.
2156 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2158 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2159 gotplt and pltoff relocations.
2160 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2161 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2162 gotplt and pltoff to bfd relocations.
2163 (md_gather_operands): Map new instruction operand/elf suffix
2164 combinations to bfd relocations.
2165 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2166 to the list of unadjustable relocations.
2167 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2168 and pltoff relocations.
2169 (md_apply_fix3): Add the new relocations.
2171 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2173 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2174 with a subsy symbol.
2176 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2178 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2179 of relocs for memory bank addressing.
2181 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2183 * config/tc-m68hc11.c (md_show_usage): Update usage.
2184 (md_parse_option): Recognize -m68hcs12.
2185 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2187 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2189 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2191 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2193 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2195 * Makefile.am: Run "make dep-am".
2196 * Makefile.in: Regenerate.
2197 * po/POTFILES.in: Regenerate.
2199 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2201 * read.c (get_absolute_expr): New, split out from..
2202 (get_absolute_expression): ..here.
2203 * read.h (get_absolute_expr): Declare.
2204 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2205 Trim size to arch bits_per_address, and test for negative input
2206 via get_absolute_expr.
2208 2003-01-07 DJ Delorie <dj@redhat.com>
2210 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2212 (xstormy16_md_apply_fix3): Use adjustment.
2214 2003-01-02 Ben Elliston <bje@redhat.com>
2216 * configure.in: Add iq2000-elf target.
2217 * configure: Regenerate.
2218 * config/tc-iq2000.c: New file.
2219 * config/tc-iq2000.h: Likewise.
2220 * po/gas.pot: Regenerate.
2222 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2224 * config/tc-mips.c: Update copyright years to include 2003.
2225 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2226 Additionally, clean up their code slightly and clean up their
2229 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2231 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2233 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2235 * doc/Makefile.in: Regenerate.
2237 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2239 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2240 of .init and .fini sections for array initializers and finalizers.
2242 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2244 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2245 the "+D" operand, which will be used only by the disassembler.
2247 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2249 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2251 * configure: Regenerate.
2252 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2253 (macro_build): Handle "K" operand.
2254 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2255 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2256 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2257 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2258 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2259 (validate_mips_insn): Implement "+" as a way to extend the
2260 allowed operands, and implement "K", "+A", "+B", and "+C"
2262 (OPTION_MIPS32R2): New define.
2263 (md_longopts): Add entry for OPTION_MIPS32R2.
2264 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2265 (md_parse_option): Handle OPTION_MIPS32R2.
2266 (s_mipsset): Reimplement handling of ".set mipsN" options
2267 and add support for ".set mips32r2".
2268 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2269 (md_show_usage): Document "-mips32r2" option.
2270 * doc/as.texinfo: Document "-mips32r2" option.
2271 * doc/c-mips.texi: Likewise.
2273 2002-12-30 Dmitry Diky <diwil@mail.ru>
2275 * configure.in: Add msp430 target.
2276 * configure: Regenerate.
2277 * Makefile.am: Add msp430 target.
2278 * Makefile.in: Regenerate.
2279 * config/tc-msp430.c: New file: msp430 assembler.
2280 * config/tc-msp430.h: New file: target macros for msp430.
2281 * doc/Makefile.am: Add msp430 target.
2282 * doc/Makefile.in: Regenerate.
2283 * doc/as.texinfo: Include msp430 documenation.
2284 * doc/all.texi: Enable msp430 documentation.
2285 * doc/c-msp430.texi: New file: document msp430 specific features
2288 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2290 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2291 (dwarf2_finish): Use it.
2292 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2293 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2295 2002-12-20 DJ Delorie <dj@redhat.com>
2297 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2298 BFD_RELOC_XSTORMY16_12.
2300 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2302 * doc/as.texinfo (Invoking): Typo fix.
2303 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2305 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2307 * doc/c-alpha.texi: Fix typos.
2308 * doc/c-arm.texi: Likewise.
2309 * doc/c-d10v.texi: Likewise.
2310 * doc/c-i370.texi: Likewise.
2311 * doc/c-i960.texi: Likewise.
2312 * doc/c-ia64.texi: Likewise.
2313 * doc/c-mmix.texi: Likewise.
2314 * doc/c-ns32k.texi: Likewise.
2315 * doc/c-pdp11.texi: Likewise.
2316 * doc/c-pj.texi: Likewise.
2317 * doc/c-sh64.texi: Likewise.
2318 * doc/c-sparc.texi: Likewise.
2319 * doc/c-tic54x.texi: Likewise.
2320 * doc/c-v850.texi: Likewise.
2321 * doc/c-vax.texi: Likewise.
2322 * doc/internals.texi: Likewise.
2324 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2326 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2327 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2328 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2329 arrange not to issue warnings about use of AT when AT is not
2332 2002-12-17 Nick Clifton <nickc@redhat.com>
2334 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2335 prevent it being confused with -k.
2337 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2339 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2340 has already been set up, use it.
2342 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2344 * ChangeLog-9295: Fix a typo.
2346 * config/tc-d10v.c: Fix a comment typo.
2347 * config/tc-dlx.c: Likewise.
2348 * config/tc-h8300.h: Likewise.
2349 * config/tc-h8500.h: Likewise.
2350 * config/tc-mips.c: Likewise.
2351 * config/tc-s390.c: Likewise.
2352 * config/tc-sh.h: Likewise.
2353 * config/tc-tic80.h: Likewise.
2354 * config/tc-w65.h: Likewise.
2355 * config/tc-z8k.c: Likewise.
2356 * config/tc-z8k.h: Likewise.
2357 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2359 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2361 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2362 Simplify sign extension. Remove redundant unsigned < 0 test.
2363 * config/tc-i960.c (md_ri_to_chars): Prototype.
2364 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2365 (dump_literals): Init brarsym, and test later instead of isforce.
2367 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2368 (parse): Constify line and lineptr.
2369 (md_begin): Calculate endop here.
2371 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2373 * config/obj-vms.c: Formatting. Include fnctl.h.
2374 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2375 (Object_Record_Offset): Make it a size_t.
2376 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2377 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2378 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2379 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2380 (vms_fixup_data_section <data_size>): Add here instead.
2381 * config/e-criself.c: Fix typo in last change.
2383 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2385 * write.c (write_object_file): Fix signed/unsigned warning.
2386 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2387 * config/e-criself.c (criself_bfd_name): Prototype.
2388 * config/obj-aout.c (s_sect): Remove unused function.
2389 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2390 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2391 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2392 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2393 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2394 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2395 (vms_fixup_text_section <text_siz>): Likewise.
2396 (synthesize_data_segment <data_size>): Likewise.
2397 (vms_fixup_xtors_section <sect_no>): Likewise.
2398 (structure_count): Don't use implicit int type.
2399 * config/tc-a29k.c (insert_sreg): Prototype.
2400 (define_some_regs): Prototype, make static.
2401 (parse_operand): Likewise.
2402 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2403 (md_show_usage <stream>): Likewise.
2404 (md_section_align <segment>): Likewise.
2405 (md_convert_frag <all args>): Likewise.
2406 (md_estimate_size_before_relax <all args>): Likewise.
2407 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2408 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2409 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2410 (md_undefined_symbol <name>): Likewise.
2411 (md_convert_frag <all args>): Likewise.
2412 (write_long <opcode>): Likewise.
2413 (tc_gen_reloc <seg>): Likewise.
2414 (md_estimate_size_before_relax <all args>): Likewise.
2415 (md_apply_fix3 <seg>): Likewise.
2416 (s_d30v_align <ignore>): Likewise.
2417 (build_insn): Correct format string.
2418 (md_apply_fix3): Likewise.
2419 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2420 (md_undefined_symbol <name>): Likewise.
2421 (md_convert_frag <all args>): Likewise.
2422 (md_cgen_lookup_reloc <insn>): Likewise.
2423 (md_begin): Delete unused vars.
2424 (md_assemble): Likewise.
2425 (md_estimate_size_before_relax): Likewise.
2426 (fr30_relax_frag): #if 0 out, seems unused.
2427 (md_atof): Remove declaration of atof_ieee.
2428 (restore_colon): Prototype.
2429 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2430 (frv_find_in_vliw): Likewise.
2431 (frv_debug_tomcat): Likewise.
2432 (frv_adjust_vliw_count): Likewise.
2433 (frv_tomcat_shuffle): Likewise.
2434 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2435 frv_find_in_vliw call.
2436 (md_atof): Remove declaration of atof_ieee.
2437 * config/tc-h8500.c (cons): Delete declaration.
2438 (md_begin <opcode>): Constify.
2439 (displacement_size, immediate_size, absolute_size): Remove.
2440 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2441 (tc_crawl_symbol_chain <headers>): Likewise.
2442 (md_undefined_symbol <name>): Likewise.
2443 (tc_headers_hook <headers>): Likewise.
2444 (md_parse_option <c,arg>): Likewise.
2445 (md_show_usage <stream>): Likewise.
2446 (md_convert_frag <headers, seg>): Likewise.
2447 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2448 (md_atof): Remove declaration of atof_ieee.
2449 (tc_aout_fix_to_chars): Remove unused function.
2450 (parse_reg): Prototype.
2451 (parse_exp): Prototype.
2452 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2453 (parse_reglist): Prototype.
2454 (get_operand): Prototype.
2455 (get_operands): Prototype.
2456 (get_specific): Prototype. Make "this_index" signed.
2457 (check): Prototype, make static.
2459 (build_relaxable_instruction): Prototype, make static.
2460 (build_bytes): Prototype.
2461 (wordify_scb): Prototype.
2462 * config/tc-h8500.h (start_label): Declare.
2463 (tc_coff_sizemachdep): Declare.
2464 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2465 (i370_rmode <unused>): Likewise.
2466 (i370_csect <unused>): Likewise.
2467 (i370_dc <unused>): Likewise.
2468 (i370_ds <unused>): Likewise.
2469 (i370_elf_lcomm <unused>): Likewise.
2470 (i370_ltorg <ignore>): Likewise.
2471 (i370_using <ignore>): Likewise.
2472 (i370_drop <ignore>): Likewise.
2473 (i370_byte <ignore>): Likewise.
2474 (i370_tc <ignore>): Likewise.
2475 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2476 (md_convert_frag <all args>): Likewise.
2477 (md_undefined_symbol <name>): Likewise.
2478 (md_pcrel_from_section <sec>): Likewise.
2479 (tc_gen_reloc <seg>): Likewise.
2480 (i370_section_letter): #if 0 unused functions.
2481 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2482 (symbol_locate): Prototype.
2483 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2484 (md_number_to_disp, md_number_to_field): Remove.
2485 (md_apply_fix3): Correct format string and cast "fup".
2486 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2487 (s_endian <ignore>): Likewise.
2488 (md_undefined_symbol <name>): Likewise.
2489 (tc_crawl_symbol_chain <headers>): Likewise.
2490 (tc_set_bal_of_call): Likewise.
2491 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2492 (i960_handle_align <fragp>): Likewise.
2493 (i960_validate_fix <this_segment_type>): Likewise
2494 (tc_gen_reloc <section>): Likewise.
2495 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2496 (struct memS, struct regop): Forward declare.
2497 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2498 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2499 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2500 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2501 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2502 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2503 (md_number_to_field): Likewise.
2504 (md_number_to_disp): Remove unused function.
2505 (md_atof): Remove declaration of atof_ieee.
2506 (md_apply_fix3): Correct md_number_to_imm call.
2507 * config/tc-ip2k.c (md_assemble): Warning fix.
2508 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2509 (fill_insn <ignore>): Likewise.
2510 (debug_sym <ignore>): Likewise.
2511 (md_undefined_symbol <name>): Likewise.
2512 (m32r_scomm <ignore>): Likewise.
2513 (md_convert_frag <abfd>): Likewise.
2514 (md_cgen_lookup_reloc <insn>): Likewise.
2515 (m32r_record_hi16 <seg>): Likewise.
2516 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2517 (allow_m32rx): Prototype.
2518 (first_writes_to_seconds_operands): Prototype.
2519 (writes_to_pc): Prototype.
2520 (can_make_parallel): Prototype.
2521 (make_parallel): Prototype.
2522 (target_make_parallel): Prototype.
2523 (assemble_two_insns): Prototype.
2524 (m32r_record_hi16): Prototype.
2525 (md_atof): Remove declaration of atof_ieee.
2526 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2527 (m32r_force_relocation): Prototype.
2528 (m32r_elf_section_change_hook): Prototype.
2529 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2530 (md_show_usage): Fix signed/unsigned warning.
2531 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2532 (calcop): Ditto for reg_prefix var.
2533 (hexval): Add cast to fix signed/unsigned warning.
2534 (md_number_to_disp): Delete unused function.
2535 (md_number_to_field): Likewise.
2536 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2537 (match_name): Prototype.
2538 (get_bf2): Prototype.
2539 (get_bf_offset_expression): Prototype.
2540 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2541 (md_undefined_symbol <ignore>): Likewise.
2542 (md_create_short_jump <all args>): Likewise.
2543 (md_create_long_jump <all args>): Likewise.
2544 (md_convert_frag <abfd, sec>): Likewise.
2545 (md_apply_fix3 <segment>): Likewise.
2546 (md_section_align <segment>): Likewise.
2547 (md_pcrel_from_section <sec>): Likewise.
2548 (tc_gen_reloc <section>): Likewise.
2549 (reg_m, reg_n, immediate): Delete unused vars.
2550 (dump_literals): Fix signed/unsigned warning.
2551 (enter_literal): Likewise.
2552 (parse_imm): Likewise. Also fix format string.
2553 (parse_mem): Remove unused var.
2554 (md_assemble <LS>): Abort on unexpected inst.
2555 (md_atof): Remove declaration of atof_ieee.
2556 (md_parse_option): Remove unused vars.
2557 (md_apply_fix3): Fix format strings, cast args.
2558 (tc_gen_reloc): Delete unused var.
2559 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2560 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2561 (md_undefined_symbol <name>): Likewise.
2562 (md_convert_frag <abfd>): Likewise.
2563 (tc_gen_reloc <seg>): Likewise.
2564 (check_operand <insn>): Likewise.
2565 (md_convert_frag): Fix format strings.
2566 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2567 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2568 (md_atof): Remove declaration of atof_ieee.
2569 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2570 (md_apply_fix3): Fix bogus >>='s.
2571 (md_undefined_symbol): Delete unused var.
2572 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2573 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2574 (fake_opcode): Adjust for pj_opc_int_t change.
2575 (md_begin): Likewise.
2576 (md_assemble): Likewise.
2577 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2578 instead of non-existent third arg of parse_exp_save_ilp.
2579 (md_parse_option): Correct "little" and "big" calls.
2580 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2581 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2582 (tc_gen_reloc <section>): Likewise.
2583 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2584 (debug): Rewrite using VA_* macros.
2585 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2586 (md_convert_frag): Likewise.
2587 (md_parse_option): Likewise.
2588 (md_show_usage): Likewise.
2589 (md_undefined_symbol): Likewise.
2590 (tc_gen_reloc): Likewise.
2591 (md_operand): Likewise.
2592 (tc_aout_pre_write_hook): Delete.
2593 (struct tic30_insn): Make "operands" unsigned.
2594 (struct tic30_par_insn): Likewise.
2595 (md_assemble): Likewise for "count", "i" and "numops".
2596 (tic30_parallel_insn): Likewise for vars here.
2597 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2598 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2599 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2600 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2601 (md_undefined_symbol): Likewise.
2602 (md_parse_option): Likewise.
2603 (md_convert_frag): Likewise.
2604 (tc_coff_symbol_emit_hook): Likewise.
2605 (md_atof): Remove declaration of atof_ieee.
2606 (const_overflow): Warning fixes, tidy.
2607 (get_operands): Delete unused vars.
2608 (internal_error_a): Adjust format string to expect a long for arg.
2609 (find_opcode): Warning fixes, simplify.
2610 (build_insn): Cast internal_error_a arg.
2611 (md_begin): Likewise.
2612 (md_apply_fix3): Likewise.
2613 (md_assemble): Delete unused var.
2614 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2615 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2616 (whatreg, parse_reg, parse_exp): Make static, prototype.
2617 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2618 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2619 (get_operand, get_operands, get_specific, newfix): Likewise.
2620 (apply_fix, build_bytes): Likewise.
2621 (md_atof): Remove declaration of atof_ieee.
2622 (tc_aout_fix_to_chars): Delete.
2623 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2625 (md_parse_option): Fix s_segm and s_unseg calls.
2627 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2629 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2631 (RELAX_BRANCH_RELOC_S2): Delete.
2632 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2633 Do not handle BFD_RELOC_16_PCREL.
2634 (macro_build, mips_ip): Likewise.
2635 (md_pcrel_from): Return 4 for undefined symbols regardless of
2637 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2638 Don't dereference howto if no such relocation is available.
2639 Do not apply hack for in-place zero addend in NEWABI.
2640 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2642 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2643 Alan Modra <amodra@bigpond.net.au>
2645 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2646 (TC_LINKRELAX_FIXUP): Add comments.
2648 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2650 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2652 (r_register_name, xr_register_name): Add prototype declarations.
2654 2002-12-08 H.J. Lu <hjl@gnu.org>
2656 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2657 copied from tc-i386.c.
2659 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2661 Fix Bug savannah/1825:
2662 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2663 (md_relax_table): Define specific relax for PC-rel offsets.
2664 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2665 (m68hc11_relax_frag): Handle the new relax code.
2666 (md_convert_frag): Likewise.
2667 (md_estimate_size_before_relax): Likewise.
2669 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2671 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2673 2002-12-05 Richard Henderson <rth@redhat.com>
2675 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2676 (ia64_gen_real_reloc_type): Handle it.
2677 (pseudo_func): Add @ltoffx.
2678 (md_begin): Build .<ltoffx>.
2679 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2681 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2683 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2684 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2685 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2686 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2687 COFF to call arm_force_relocation.
2689 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2691 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2693 (emit_one_bundle): Handle "hint" instruction.
2694 (operand_match): Match IA64_OPND_AR_CSD.
2696 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2698 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2701 2002-12-03 Nick Clifton <nickc@redhat.com>
2703 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2704 .PPC.EMB.apuinfo sections.
2706 2002-12-03 Richard Henderson <rth@redhat.com>
2708 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2710 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2712 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2713 (cons, s_align_bytes): Delete declaration.
2715 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2717 (dot): Delete unused function.
2718 (w65_expression): Remove unused arg.
2719 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2721 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2723 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2725 (check): Remove unused function.
2726 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2727 on unhandled switch case.
2728 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2730 (tc_crawl_symbol_chain): Delete unused function.
2731 (tc_headers_hook): Likewise.
2732 (tc_Nout_fix_to_chars): Likewise.
2733 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2734 (md_parse_option): Likewise.
2735 (md_convert_frag): Likewise.
2736 (tc_coff_symbol_emit_hook): Likewise.
2737 (md_show_usage): Likewise.
2738 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2739 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2740 (w65_expression): Declare.
2742 * po/POTFILES.in: Regenerate.
2744 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2745 and ARM_ADRL_IMMEDIATE.
2747 2002-12-02 Nick Clifton <nickc@redhat.com>
2749 * gasp.c: Delete. It has been deprecated.
2750 * NEWS: Mention that gasp has been removed.
2751 * Makefile.am: Remove references to gasp.
2752 * makefile.vms: Likewise.
2753 * mpw-make.sed: Likewise.
2754 * Makeile.in: Regenerate.
2755 * doc/gasp.texi: Delete.
2756 * doc/Makefile.am: Remove references to gasp.texi.
2757 * doc/Makefile.in: Regenerate.
2758 * macro.c: Delete references to gasp.
2759 Remove use of comment_char function parameter as it is no longer
2761 * macro.h: Update prototypes to remove comment_char parameter.
2763 * read.c (read_a_source_file, s_irp): Remove comment_char
2764 parameter from invocation of functions in macro.c
2766 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2768 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2770 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2772 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2773 (tc_gen_reloc): Mark section param as not used.
2775 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2777 Fix Bug savannah/1825:
2778 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2779 that are not pc-relative.
2780 (m68hc11_relax_frag): Declare.
2782 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2783 the offsetable indexed addressing modes (n,r).
2784 (build_insn): Cleanup some locals.
2785 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2786 relaxation of difference between two symbols of same section.
2787 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2788 only when this is a PC-relative operand and the offset is not absolute.
2789 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2790 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2791 be handled by m68hc11_relax_frag.
2793 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2795 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2796 (32-bit int, 64-bit double).
2797 (md_longopts): New options -mshort, -mlong, -mshort-double and
2798 -mlong-double to control the ABI.
2799 (md_show_usage): Update.
2800 (md_parse_option): Handle new options.
2801 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2803 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2805 * symbols.c (report_op_error): New function, broken out of ...
2806 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2809 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2811 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2812 for BFD_RELOC_32_PLT_PCREL.
2814 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2816 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2817 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2818 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2819 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2820 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2821 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2822 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2823 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2824 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2825 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2826 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2827 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2828 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2829 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2830 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2831 TRUE/FALSE. Formatting.
2833 2002-11-29 Nick Clifton <nickc@redhat.com>
2835 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2836 assume a value of zero.
2837 (do_bkpt): Likewise.
2839 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2841 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2842 for TLS relocations.
2844 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2846 * config/tc-ia64.c (md_apply_fix3): Add default case.
2848 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2850 * symbols.c (S_SET_THREAD_LOCAL): New function.
2851 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2852 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2853 for TLS relocations.
2854 * config/tc-ia64.c (md_apply_fix3): Likewise.
2855 * config/tc-alpha.c (md_apply_fix3): Likewise.
2857 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2859 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2862 2002-11-26 DJ Delorie <dj@redhat.com.
2864 * dwarf2dbg.c (scale_addr_delta): New.
2865 (size_inc_line_addr): Use it.
2866 (emit_inc_line_addr): Use it.
2868 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2870 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2871 (md_assemble): Don't pass on branches to constants as relaxable.
2874 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2876 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2878 2002-11-21 Randolph Chung <randolph@tausq.org>
2880 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2881 only if they have default visibility.
2883 2002-11-21 Richard Henderson <rth@redhat.com>
2885 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2888 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2890 * config/tc-mcore.c (mcore_pool_count): New function.
2891 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2893 2002-11-20 Klee Dienes <kdienes@apple.com>
2895 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2896 coalesce the name fields to use the same pointer.
2898 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2899 the name fields to use the same pointer.
2900 (get_specific): Check for opcodes with the same name using strcmp
2901 as well as comparing the pointer.
2903 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2905 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2908 2002-11-19 Richard Henderson <rth@redhat.com>
2910 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2911 visibility portion of st_other.
2913 2002-11-19 Klee Dienes <kdienes@apple.com>
2915 * config/tc-h8300.c (struct h8_instruction): New type, used to
2916 wrap h8_opcodes with length, noperands, idx, and size fields
2917 (computed at run-time).
2918 (h8_instructions): New variable.
2919 (md_begin): Allocate the storage for h8_instructions. Fill
2920 h8_instructions with pointers to the appropriate opcode and the
2921 correct value for the additional fields.
2922 (clever_message): Update to use h8_instructions instead of
2924 (build_bytes): Ditto.
2925 (get_specific): Ditto.
2926 (md_assemble): Ditto.
2928 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2930 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2931 adjustments to symbols in merge sections.
2933 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2935 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2937 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2939 * dwarf2dbg.h (dwarf2_format): New enum.
2940 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2941 (out_debug_line, out_debug_info): Add code for handling 64-bit
2943 * config/tc-mips.h (mips_dwarf2_format): Declare.
2944 * config/tc-mips.c (mips_dwarf2_format): New function.
2945 * doc/internals.texi (DWARF2_FORMAT): Document.
2947 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2949 * config/tc-mips.c (s_change_section): Make sure input buffer
2950 is not accessed past the end. Don't hand
2951 obj_elf_change_section a pointer into the input buffer.
2953 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2955 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2958 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2960 * config/tc-tic4x.c: Fixed proper commandline
2961 parameters. Added support for new opcode-list format. General
2962 error message fixups.
2963 (c4x_inst_add): Reject insn not for our CPU
2964 (md_begin): Added matrix for setting the proper opcode-level &
2965 device-flags according to cpu type and revision. Rewrite the
2967 (c4x_operand_parse): Fix opcode bug
2968 (c4x_operands_match): New function argument. Added dry-run
2969 mechanism, that is optional error generation. Added constraint 'i'
2971 (c4x_insn_check): Added new function for post-verification of the
2973 (md_assemble): Check all opcodes before croaking because of an
2974 argument mismatch. Need this to be able to fully support
2975 ortogonally arguments.
2976 (md_parse_options): Revised commandprompt swicthes and added new
2978 (md_show_usage): Complete rewrite of printout.
2980 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2982 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2983 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2984 warning when using constant direct bigger than 2^16. Add the new
2987 2002-11-11 Christopher Faylor <cgf@redhat.com>
2989 * configure.in: Use .gdbinit under Cygwin.
2990 * configure: Regenerate.
2992 2002-11-11 Christopher Faylor <cgf@redhat.com>
2994 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2997 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2999 * config/tc-tic4x.c: Declare as many functions as possible as
3000 static. Maintenance on the general indenting. Removed unnecessary
3001 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3002 function. Add support for new DSP, TMS320VC33. Fix bug for
3003 converting flonum constants.
3004 (c4x_do_align): Add proper align handling. Setup align to insert
3006 (c4x_gen_to_words): Support for extended TI type floats.
3007 (md_atof): Proper dumping of multiple-word littlenums.
3008 (c4x_atof): Added support for extended TI type floats.
3009 (c4x_stringer): Added new function to handle compact strings.
3010 (c4x_emit_char): Added new function argument to handle custom
3011 length inserts, like single-byte strings.
3012 * config/tc-tic4x.h: Add proper align handling with NOP's.
3013 * Makefile.am: Added tic4x dependecy
3014 * Makefile.in: Regenerate
3016 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3018 * macro.c (get_any_string): Correct logic for not going beyond end
3021 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3023 * config/tc-mmix.c (get_putget_operands): Mark both possible
3024 operands as invalid at beginning.
3026 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3027 Initialize target of fixup to zero.
3029 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3031 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3032 NEWABI, but we should still emit HI16_S for non-PIC n32.
3034 2002-11-06 Richard Henderson <rth@redhat.com>
3036 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3037 (alpha_fix_adjustable): ... here.
3038 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3040 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3042 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3045 2002-11-05 H.J. Lu <hjl@gnu.org>
3047 * config/tc-mips.c (support_64bit_objects): Check *l before it
3050 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3052 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3053 SEC_LOAD flags for sections marked as 's'.
3055 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3057 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3058 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3059 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3062 * dep-in.sed: Fix typo.
3064 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3066 * configure.in: Update ARM CPU patterns.
3067 * configure: Regenerated.
3069 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3071 * itbl-lex.l: Use #include <> for generated headers.
3072 * itbl-ops.c: Likewise.
3074 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3076 * doc/gasp.texi: Fix typo in deprecation note.
3078 2002-10-23 Nick Clifton <nickc@redhat.com>
3080 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3081 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3083 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3085 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3086 (tc_frob_file_before_adjust): Don't define.
3087 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3089 (mmix_frob_file_before_adjust): Remove ineffective function.
3091 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3093 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3094 (cris_relax_frag): New function.
3095 (md_estimate_size_before_relax) <case ENCODE_RELAX
3096 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3097 expressions that will become absolute expressions to relaxation.
3098 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3099 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3100 value, not distance to symbol.
3101 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3102 Ditto. Correct placement of fixup.
3103 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3105 * config/tc-cris.h (cris_relax_frag): Declare.
3106 (md_relax_frag): Define.
3108 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3110 * config/obj-elf.c (special_sections): Use correct types for init
3112 (obj_elf_change_section): Don't mess with init array section type.
3114 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3116 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3117 for relocs against symbols in a merged section.
3119 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3121 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3122 table as register names.
3124 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3126 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3129 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3131 * expr.c (operand): Add support for n.nn flonums.
3133 2002-10-17 Johannes Stezenbach <js@convergence.de>
3135 * itbl-parse.y (entry): Provide empty action.
3137 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3139 * configure.in (BFDVER_H): Set and subst.
3140 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3141 * Makefile.am: Run "make dep-am".
3143 * configure: Regenerate.
3144 * Makefile.in: Regenerate.
3145 * doc/Makefile.in: Regenerate.
3147 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3149 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3150 (MD_APPLY_SYM_VALUE): Define for PE too.
3152 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3154 * Makefile.am: Run "make dep-am".
3155 (CPU_OBJ_VALID): sh64 coff is invalid.
3156 * as.c: #include "bfdver.h".
3157 * Makefile.in: Regenerate.
3158 * config.in: Regenerate.
3160 2002-10-14 Momchil Velikov <velco@fadata.bg>
3162 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3164 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3166 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3167 * configure: Regenerate.
3169 2002-10-13 Eric Christopher <echristo@redhat.com>
3170 Alexandre Oliva <aoliva@redhat.com>
3172 * config/tc-mips.c (s_gpdword): New function.
3173 (mips_pseudo_table): Add .gpdword.
3174 (mips_need_elf_addend_fixup): never for NEWABI.
3175 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3177 (s_cpadd): Generate .cpadd on NEWABI.
3179 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3181 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3183 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3185 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3186 (md_relax_frag): Adjust macro.
3187 * config/tc-mips.c (mips_relax_branch): New variable.
3188 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3189 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3190 (RELAX_MIPS16_P): Adjust.
3191 (append_insn): Emit branch to non-constant in a frag_var if
3192 branch-relaxation is desirable and possible.
3193 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3194 (OPTION_ELF_BASE): Adjust.
3195 (md_parse_option): Handle new options.
3196 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3198 (relaxed_branch_length): New function.
3199 (md_estimate_size_before_relax): Handle branch frags.
3200 (mips_relax_frag): Likewise.
3201 (md_convert_frag): Handle branch frags. Warn if branch is
3204 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3206 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3208 (md_apply_fix3): Add TLS relocs.
3209 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3212 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3213 Alan Modra <amodra@bigpond.net.au>
3215 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3216 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3218 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3220 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3223 2002-10-09 Richard Shann <richard.shann@superh.com>
3224 Stephen Clarke <stephen.clarke@superh.com>
3226 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3229 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3231 * contig/tc-sh.c (sh_local_pcrel): New.
3232 (sh_force_relocation): Use sh_local_pcrel.
3233 (md_pcrel_from_section): Check the relocation type whether it
3234 should be resolved locally. Use S_FORCE_RELOC.
3236 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3238 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3239 (TC_FORCE_RELOCATION): Tidy arg.
3241 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3242 Ken Raeburn <raeburn@cygnus.com>
3243 Aldy Hernandez <aldyh@redhat.com>
3244 DJ Delorie <dj@redhat.com>
3245 Michael Meissner <meissner@redhat.com>
3246 Eric Christopher <echristo@redhat.com>
3247 Richard Sandiford <rsandifo@redhat.com>
3249 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3250 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3251 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3252 (hilo_interlocks): True for CPU_VR5500.
3253 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3254 (mips_fix_vr4122_bugs): New.
3255 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3256 (mips_emit_delays): Likewise.
3257 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3258 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3259 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3260 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3261 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3262 (OPTION_ELF_BASE): Bump.
3263 (md_parse_option): Handle the new options.
3264 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3267 2002-09-29 H.J. Lu <hjl@gnu.org>
3269 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3270 twice if howto->pcrel_offset is true.
3272 2002-09-28 Matt Thomas <matt@3am-software.com>
3273 Jason Thorpe <thorpej@wasabisystems.com>
3275 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3276 convert undefined references to GOT32/PLT32 if PIC code is
3277 requested. Fix comment.
3279 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3281 * config/tc-sh.c (sh_force_relocation): Return 0 for
3282 some PC relative relocations when not relaxing.
3284 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3286 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3287 Define them if not BFD_ASSEMBLER.
3288 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3290 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3291 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3292 (tc_gen_reloc): Handle x86-64 TLS relocs.
3294 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3296 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3297 fixups to current or absolute section.
3299 2002-09-26 Jim Wilson <wilson@redhat.com>
3301 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3304 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3306 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3307 capable configuration.
3308 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3310 (mips_ip): Likewise.
3312 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3314 * config/tc-mips.c (append_insn): Fix jump overflow check.
3316 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3318 * config/tc-i386.c (process_operands): Warn about "lea" segment
3321 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3323 * write.c: Delete set_segment_vma and prototype. Update all callers.
3325 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3327 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3328 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3329 Rename "fseg" to "sym_seg".
3330 * Makefile.am: Run "make dep-am".
3331 * Makefile.in: Regenerate.
3332 * doc/Makefile.in: Regenerate.
3334 2002-09-20 Nick Clifton <nickc@redhat.com>
3336 * symbols.c (colon): Do not allow symbols to be created in the
3337 absolute section if WORKING_DOT_WORD is not defined and
3338 new_broken_words would require a new frag to be created.
3340 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3342 * expr.c (expr): Simplify foo-foo here.
3343 (clean_up_expression): Remove O_subtract code.
3345 * write.h (struct fix): Add fx_dot_value.
3346 (dot_value): Declare.
3347 * write.c (dot_value): New var.
3348 (fix_new_internal): Save dot_value as fx_dot_value.
3349 (fixup_segment): Adjust fx_offset using fx_dot_value.
3350 * expr.c (expr): Update dot_value.
3352 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3354 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3355 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3356 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3358 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3359 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3360 BFD_RELOC_386_TLS_GOTIE.
3362 2002-09-19 Richard Henderson <rth@redhat.com>
3364 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3366 (alpha_force_relocation): Don't special-case branch type relocs.
3368 2002-09-19 Nick Clifton <nickc@redhat.com>
3370 * config/tc-m68k.c (select_control_regs): Handle situation where
3371 architecture has not yet been selected.
3373 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3375 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3376 (IS_SEXT_16BIT_NUM): New macro.
3377 (macro_build_ldst_constoffset): New function, to build a set of
3378 instructions to do a load or store from a constant offset relative
3379 to a given register.
3380 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3381 .cprestore pseudo-op.
3383 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3385 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3387 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3389 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3391 2002-09-17 Stan Cox <scox@redhat.com>
3393 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3394 (macro): Likewise for la. Likewise for ld.
3395 (mips_after_parse_args): Make -xgot optional, not the default.
3396 (md_apply_fix3): Allow composite relocation to set up gp.
3397 (tc_gen_reloc): Allow relaxing for newabi.
3398 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3399 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3401 2002-09-17 Nick Clifton <nickc@redhat.com>
3403 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3404 BFD_RELOC_ARM_IMMEDIATE has been done.
3405 (tc_gen_reloc): Do not issue reloc number of unimplemented
3406 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3407 their name is already in the error message - plus remove them
3408 from the default case.
3410 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3411 behavior of instructions.
3413 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3415 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3416 Convert functions to K&R format.
3418 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3420 * config/tc-mips.c (pdr_seg): Define only for ELF.
3421 (s_change_section): Remove unused variable. Don't use for nonELF.
3423 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3425 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3427 * config/obj-elf.h (obj_elf_change_section): Likewise.
3429 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3431 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3432 (out_debug_info): Likewise.
3434 2002-09-16 Bruno Haible <bruno@clisp.org>
3436 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3437 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3438 * config/tc-i386.c (i386_target_format): Likewise.
3439 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3440 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3442 2002-09-13 Nick Clifton <nickc@redhat.com>
3444 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3445 when deciding if any operands have been skipped.
3447 2002-09-11 Nick Clifton <nickc@redhat.com>
3449 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3451 * po/tr.po: Updated Turkish translation.
3453 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3455 * config/tc-i386.c (md_apply_fix3): Allow addend for
3456 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3457 BFD_RELOC_386_TLS_LE_32.
3459 2002-09-05 Jeff Law <law@redhat.com>
3461 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3462 marker relocations such as ENTRY/EXIT.
3463 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3464 to both OBJ_ELF and OBJ_SOM.
3466 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3468 * doc/internals.texi (md_apply_fix3): Expand.
3469 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3470 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3471 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3472 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3473 EXTERN_FORCE_RELOC): Document.
3474 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3475 * as.h: Don't include struc-symbol.h for arc.
3477 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3478 subtract absolute symbol.
3479 * obj.h (struct format_ops): Add frob_file_before_fix.
3480 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3481 * symbols.c (S_FORCE_RELOC): New function.
3482 * symbols.h (S_FORCE_RELOC): Declare.
3483 * write.c (TC_FORCE_RELOCATION): Change default.
3484 (TC_FORCE_RELOCATION_ABS): Define.
3485 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3486 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3487 (TC_FORCE_RELOCATION_SECTION): Don't define.
3488 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3489 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3490 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3491 (TC_VALIDATE_FIX_SUB): Define.
3492 (TC_FIX_ADJUSTABLE): Don't define.
3493 (MD_APPLY_SYM_VALUE): Define this instead.
3494 (abs_section_sym): New variable.
3495 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3496 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3497 Don't put the absolute section sym on fixups here.
3498 (fix_segment): New function.
3499 (write_relocs): Don't call fixup_segment from here.
3500 (write_object_file): Instead call tc_frob_file_before_fix,
3501 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3502 Don't output the absolute section symbol.
3503 (fixup_segment): Rewrite.
3504 * write.h (abs_section_sym): Declare.
3505 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3507 (aout_format_ops): Adjust to suit.
3508 * config/obj-aout.h (obj_frob_file): Don't define.
3509 (obj_frob_file_before_fix): Define.
3510 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3511 (S_FORCE_RELOC): Define.
3512 * config/obj-bout.h (S_FORCE_RELOC): Define.
3513 * config/obj-coff.c (coff_format_ops): Init new field.
3514 * config/obj-coff.h: Formatting fixes.
3515 (obj_sec_sym_ok_for_reloc): Define.
3516 (S_FORCE_RELOC): Define.
3517 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3518 (ecoff_frob_file): .. from here.
3519 (ecoff_format_ops): Add new function.
3520 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3521 (obj_frob_file_before_fix): Define.
3522 * config/obj-elf.c (elf_format_ops): Init new field.
3523 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3524 * config/obj-ieee.h: Formatting fixes.
3525 (S_FORCE_RELOC): Define.
3526 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3527 * config/obj-vms.h (S_FORCE_RELOC): Define.
3528 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3529 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3530 for BFD_RELOC_32 and BFD_RELOC_64.
3531 (alpha_fix_adjustable): Remove extern and weak tests.
3532 (alpha_before_fix): Rename from alpha_adjust_symtab.
3533 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3534 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3535 (TC_VALIDATE_FIX): Tweak param name.
3536 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3537 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3538 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3539 (MD_APPLY_SYM_VALUE): Define.
3540 (tc_adjust_symtab): Don't define.
3541 (alpha_adjust_symtab): Don't declare.
3542 (tc_frob_file_before_fix): Define.
3543 (alpha_before_fix): Declare.
3544 (TC_INIT_FIX_DATA): Tweak param names.
3545 * config/tc-arc.c: Include "struc-symbol.h".
3546 (md_pcrel_from): Remove undefined sym fudge.
3547 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3548 Don't set fx_addnumber.
3549 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3550 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3551 (EXTERN_FORCE_RELOC): Define.
3552 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3553 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3554 (arm_validate_fix): Return void.
3555 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3556 Add plt and got reloc tests.
3557 (arm_force_relocation): Call S_FORCE_RELOC.
3558 * config/tc-arm.h (struct fix): Forward declare.
3559 (TC_VALIDATE_FIX): No longer set add_symbolP.
3560 (arm_validate_fix): Adjust declaration.
3561 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3562 (TC_FORCE_RELOCATION): Tweak param name.
3563 (TC_INIT_FIX_DATA): Likewise.
3564 (obj_fix_adjustable): Don't define.
3565 (tc_fix_adjustable): Call arm_fix_adjustable.
3566 (TC_FIX_ADJUSTABLE): Don't define.
3567 (MD_APPLY_SYM_VALUE): Define.
3568 (EXTERN_FORCE_RELOC): Define.
3569 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3570 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3571 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3572 Remove *valP fudges and code to subtract abs sym. Don't set
3574 * config/tc-avr.h: Formatting.
3575 (EXTERN_FORCE_RELOC): Define.
3576 (MD_APPLY_SYM_VALUE): Define.
3577 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3578 (md_apply_fix3): Remove code to subtract abs sym.
3579 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3580 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3581 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3582 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3583 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3584 (tc_fix_adjustable): Remove extern, weak tests.
3585 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3586 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3587 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3588 and code to subtract abs sym.
3589 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3590 (d10v_force_relocation): Call S_FORCE_RELOC.
3591 * config/tc-d10v.h: Don't include write.h.
3592 (struct fix): Instead, forward declare.
3593 (MD_PCREL_FROM_SECTION): Tweak param names.
3594 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3595 (d10v_fix_adjustable): Likewise.
3596 (obj_fix_adjustable): Don't define.
3597 (tc_fix_adjustable): Define.
3598 (TC_FORCE_RELOCATION): Tweak param name.
3599 (MD_APPLY_SYM_VALUE): Define.
3600 (EXTERN_FORCE_RELOC): Define.
3601 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3602 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3603 and code to subtract abs sym.
3604 * config/tc-d30v.h: Don't include write.h.
3605 (struct fix): Instead, forward declare.
3606 (MD_PCREL_FROM_SECTION): Tweak param names.
3607 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3608 (MD_APPLY_SYM_VALUE): Define.
3609 (EXTERN_FORCE_RELOC): Define.
3610 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3611 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3612 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3613 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3614 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3615 Don't use fx_addnumber.
3616 * config/tc-dlx.h: Don't include write.h.
3617 (md_convert_frag): We're not alpha twice over.
3618 (EXTERN_FORCE_RELOC): Define.
3619 (obj_fix_adjustable): Don't define.
3620 (tc_fix_adjustable): Define.
3621 (TC_FIX_ADJUSTABLE): Don't define.
3622 (MD_APPLY_SYM_VALUE): Define.
3623 (LOCAL_LABELS_DOLLAR): Undef always.
3624 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3625 (fr30_fix_adjustable): Remove extern, weak tests.
3626 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3627 (obj_fix_adjustable): Don't define.
3628 (tc_fix_adjustable): Define.
3629 (struct fix): Forward declare.
3630 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3631 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3632 (frv_fix_adjustable): Don't do extern, weak tests.
3633 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3634 (TC_FIX_ADJUSTABLE): Don't define.
3635 (obj_fix_adjustable): Don't define.
3636 (tc_fix_adjustable): Define.
3637 (struct fix): Forward declare.
3638 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3639 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3640 * config/tc-h8300.h (struct fix): Forward declare.
3641 (EXTERN_FORCE_RELOC): Define.
3642 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3643 (hppa_fix_adjustable): Don't test extern or weak. Don't
3644 symbol_mark_used_in_reloc.
3645 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3647 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3648 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3649 (TC_FORCE_RELOCATION_SECTION): Don't define.
3650 (MD_APPLY_SYM_VALUE): Define.
3651 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3652 to subtract abs sym.
3653 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3654 (MD_APPLY_SYM_VALUE): Define.
3655 (MD_PCREL_FROM_SECTION): Tweak param name.
3656 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3657 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3658 (i386_force_relocation): New function.
3659 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3660 (TC_VALIDATE_FIX): Likewise.
3661 (TC_FIX_ADJUSTABLE): Don't define.
3662 (MD_APPLY_SYM_VALUE): Define.
3663 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3664 (i386_force_relocation): Declare.
3665 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3666 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3667 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3668 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3669 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3670 (EXTERN_FORCE_RELOC): Define.
3671 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3672 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3673 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3674 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3675 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3676 Remove #if 0 code. Invert return boolean.
3677 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3678 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3679 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3680 (tc_coff_sizemachdep): Prototype.
3681 (i960_handle_align): Likewise.
3682 (i960_validate_fix): Adjust declaration.
3683 (reloc_callj): Likewise.
3684 (EXTERN_FORCE_RELOC): Define.
3685 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3686 (TC_FORCE_RELOCATION_ABS): Define.
3687 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3688 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3689 (TC_FIX_ADJUSTABLE): Don't define.
3690 (MD_APPLY_SYM_VALUE): Define.
3691 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3692 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3693 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3694 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3695 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3696 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3697 (MD_APPLY_SYM_VALUE): Define.
3698 (EXTERN_FORCE_RELOC): Define.
3699 (TC_FORCE_RELOCATION): Tweak param name.
3700 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3701 (m32r_fix_adjustable): Don't test extern, weak.
3702 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3703 (MD_APPLY_SYM_VALUE): Define.
3704 (obj_fix_adjustable): Don't define.
3705 (tc_fix_adjustable): Define.
3706 (tc_frob_file): Don't define.
3707 (tc_frob_file_before_fix): Define.
3708 (EXTERN_FORCE_RELOC): Define.
3709 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3710 BFD_RELOC_VTABLE_ENTRY address.
3711 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3712 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3713 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3714 Remove duplicated fx_done code.
3715 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3716 (EXTERN_FORCE_RELOC): Define.
3717 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3719 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3720 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3721 (TC_FIX_ADJUSTABLE): Don't define.
3722 (EXTERN_FORCE_RELOC): Define.
3723 (MD_APPLY_SYM_VALUE): Define.
3724 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3725 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3726 Remove fx_addsy tests.
3727 (mcore_force_relocation): Call S_FORCE_RELOC.
3728 (mcore_fix_adjustable): Don't test fx_addsy.
3729 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3730 (EXTERN_FORCE_RELOC): Define.
3731 (obj_fix_adjustable): Don't define.
3732 (tc_fix_adjustable): Define.
3733 (MD_APPLY_SYM_VALUE): Define.
3734 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3735 (mips_pic): No longer static.
3736 (mips_force_relocation): Call S_FORCE_RELOC.
3737 (mips_fix_adjustable): Remove extern, weak tests.
3738 * config/tc-mips.h (enum mips_pic_level): Declare.
3739 (mips_pic): Declare.
3740 (tc_frob_file): Don't define.
3741 (tc_frob_file_before_fix): Define this instead.
3742 (EXTERN_FORCE_RELOC): Define.
3743 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3744 with reg_section tests. Set fx_done instead of calling
3745 symbol_clear_used_in_reloc on bad relocs.
3746 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3747 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3748 (mmix_adjust_symtab): Simplify list handling. Abort on any
3750 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3751 BFD_RELOC_MMIX_LOCAL.
3752 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3753 (EXTERN_FORCE_RELOC): Define.
3754 (MD_PCREL_FROM_SECTION): Tweak param name.
3755 (tc_frob_file): Don't define.
3756 (tc_frob_file_before_fix): Define this instead.
3757 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3758 Remove SEC_CODE checks.
3759 (mn10300_fix_adjustable): Remove extern and weak tests.
3760 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3761 (TC_FORCE_RELOCATION): Tweak param name.
3762 (obj_fix_adjustable): Don't define.
3763 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3764 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3765 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3766 (openrisc_fix_adjustable): Don't test fx_addsy.
3767 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3768 (obj_fix_adjustable): Don't define.
3769 (tc_fix_adjustable): Define this instead.
3770 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3771 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3772 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3773 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3774 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3775 (MD_APPLY_SYM_VALUE): Define.
3776 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3777 Don't subtract symbol value.
3778 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3779 (EXTERN_FORCE_RELOC): Define.
3780 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3781 (MD_APPLY_SYM_VALUE): Define.
3782 (obj_fix_adjustable): Don't define.
3783 (tc_fix_adjustable): Define this instead.
3784 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3786 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3787 (ppc_force_relocation <elf version>): New.
3788 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3789 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3790 comments. Don't subtract fx_subsy as that is already done.
3791 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3792 (MD_PCREL_FROM_SECTION): Likewise.
3793 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3794 ppc_force_relocation.
3795 (TC_FORCE_RELOCATION_SECTION): Delete.
3796 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3797 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3798 (MD_APPLY_SYM_VALUE): Define.
3799 * config/tc-s390.c: #include "dwarf2dbg.h".
3800 (s390_insn): Remove excess parens.
3801 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3802 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3803 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3804 non-NULL. Don't subtract off fx_addsy value.
3805 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3806 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3807 (TC_FIX_ADJUSTABLE): Don't define.
3808 (MD_APPLY_SYM_VALUE): Define.
3809 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3810 (SWITCH_TABLE): Likewise.
3811 (sh_force_relocation): Call S_FORCE_RELOC.
3812 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3813 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3814 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3815 fx_addnumber is zero on entry. Save val in fx_addnumber.
3816 (tc_gen_reloc): Don't subtract fx_subsy.
3817 * config/tc-sh.h (struct fix): Move.
3818 (obj_fix_adjustable): Don't define.
3819 (tc_fix_adjustable): Define this instead.
3820 (TC_FIX_ADJUSTABLE): Don't define.
3821 (MD_APPLY_SYM_VALUE): Define.
3822 (SWITCH_TABLE_CONS): Define.
3823 (SWITCH_TABLE): Define.
3824 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3825 (TC_VALIDATE_FIX_SUB): Define.
3826 (MD_PCREL_FROM_SECTION): Tweak param name.
3827 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3828 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3829 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3830 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3831 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3832 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3833 (TC_VALIDATE_FIX_SUB): Define.
3834 (MD_PCREL_FROM_SECTION): Tweak param name.
3835 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3836 (tc_gen_reloc): Use S_FORCE_RELOC.
3837 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3838 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3839 (TC_FORCE_RELOCATION_ABS): Define this instead.
3840 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3841 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3842 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3843 (MD_APPLY_SYM_VALUE): Define.
3844 (TC_FIX_DATA_PRINT): Tweak param name.
3845 * config/tc-tic30.c (USE_STDOUT): Don't define.
3846 (md_parse_option): Remove stupid debug code.
3847 (tc_gen_reloc): Don't use fx_addnumber.
3848 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3849 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3850 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3851 (tc_fix_adjustable): Define this instead.
3852 (TC_FIX_ADJUSTABLE): Don't define.
3853 (MD_APPLY_SYM_VALUE): Define this instead.
3854 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3855 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3856 (TC_FIX_ADJUSTABLE): Don't define.
3857 (MD_APPLY_SYM_VALUE): Define this instead.
3858 (tc_fix_adjustable): Remove extern and weak tests.
3859 * config/tc-w65.h (struct fix): Forward declare.
3860 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3862 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3863 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3864 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3866 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3867 (MD_APPLY_SYM_VALUE): Define.
3868 (obj_fix_adjustable): Don't define.
3869 (tc_fix_adjustable): Define this instead.
3870 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3872 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3874 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3875 (ppc_fix_adjustable <coff version>): Cleanup.
3877 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3878 (md_parse_option): No -a64 without BFD64.
3879 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3880 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3882 2002-09-04 Nick Clifton <nickc@redhat.com>
3884 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3885 instructions into the hash table if the target cpu is the BookE32.
3887 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3889 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3892 2000-08-28 Catherine Moore <clm@redhat.com>
3894 * tc-v850.c (v850_relax): Declare.
3895 (v850_longcode): New routine.
3896 (v850_handle_align): New routine.
3897 (md_pseudo_table): Add longcall and longjump.
3898 (md_parse_option): Check for relax option.
3899 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3900 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3901 (md_apply_fix3): Likewise.
3902 (v850_force_relocation): Likewise.
3903 (v850_comm): Change the current section.
3904 (md_assemble): Ensure that the correct value is put in the
3906 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3907 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3908 Remove redundant v850ea support.
3909 * tc-v850.h (HANDLE_ALIGN): Define.
3910 (v850_handle_align): Declare.
3911 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3913 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3915 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3916 * configure: Regenerate.
3917 * NEWS: Mention new port.
3919 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3921 * config/obj-coff.c: Add sdef definition.
3922 * config/obj-coff.h: Add tic4x include file and set
3924 * config/tc-tic4x.c: New file.
3925 * config/tc-tic4x.h: New file.
3927 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3929 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3930 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3931 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3932 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3933 (RELOC_ENUM): Define.
3934 (fix_new_internal): Use RELOC_ENUM.
3935 (fix_new, fix_new_exp): Likewise.
3936 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3937 Replace gotos with continue.
3938 (write_relocs): Formatting. Avoid symbol loops in
3939 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3940 errors, and error number in other cases.
3941 (fixup_segment): Remove param names from prototype. Rename
3942 "this_segment_type" to "this_segment". Update linkrelax comment.
3943 Remove "size, "place" and "where" local vars. Formatting. Update
3944 "no symbol" comment. Remove #if 0 and #if 1.
3946 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3948 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3950 * dwarf2dbg.c: Always include dwarf2dbg.h.
3951 (dwarf2_directive_file): Adjust dummy version args.
3952 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3953 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3954 when symbol values differ.
3955 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3956 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3957 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3959 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3961 * config/tc-w65.c (md_section_align): Fix typo.
3962 (md_parse_option): Return 0, not 1.
3964 2002-08-22 Nick Clifton <nickc@redhat.com>
3966 * doc/as.texinfo (Section): Note that if '@' is a comment
3967 character then another symbol is used to prefix the section's
3970 2002-08-22 Christian Groessler <chris@groessler.org>
3972 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3975 2002-08-12 Graeme Peterson <gp@qnx.com>
3977 * configure.in: Add support for sh-**-nto* target.
3978 * configure: Regenerate.
3980 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3982 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3984 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3986 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3988 (ppc_apuinfo_section_add): Define only if format is ELF.
3989 (md_assemble): Emit APUinfo section only if format is ELF.
3992 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3994 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3995 * config/tc-frv.c: Likewise.
3996 * config/tc-hppa.c: Likewise.
3997 * config/tc-ia64.c: Likewise.
3998 * config/tc-ip2k.c: Likewise.
3999 * config/tc-m68hc11.c: Likewise.
4000 * config/tc-m68k.c: Likewise.
4001 * config/tc-mmix.c: Likewise.
4002 * config/tc-mn10300.c: Likewise.
4003 * config/tc-sh.c: Likewise.
4004 * config/tc-sparc.c: Likewise.
4005 * config/tc-v850.c: Likewise.
4007 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4009 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4012 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4014 From matthew green <mrg@redhat.com>
4016 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4017 PPC_OPCODE_PPC is, except for BookE architectures.
4018 (md_parse_option): Add support for -mspe.
4019 (md_show_usage): Add -mspe.
4020 (md_parse_option): Add support for -me500 and
4021 -me500x2 to generate code for Motorola e500 core complex.
4022 (md_show_usage): Add -me500 and -me500x2.
4024 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4025 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4026 PPC_APUINFO_BRLOCK): New macros.
4028 (ppc_cleanup): New function.
4029 (ppc_apuinfo_section_add): New function.
4031 (md_assemble): Collect info and write the APUinfo section.
4033 * config/tc-ppc.h (md_cleanup): Define.
4034 (ppc_cleanup): Export.
4035 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4037 2002-08-17 Stan Cox <scox@redhat.com>
4039 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4040 config/tc-mips.c (s_change_section): New function to support
4041 IRIX .section pseudo-op.
4043 2002-08-16 Nick Clifton <nickc@redhat.com>
4045 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4047 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4049 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4050 the fix-up against on the right frag.
4051 (s_cpsetup): Likewise. Parse third argument as expression, to
4052 handle global symbols and forward/backward labels correctly.
4054 2002-08-14 Nick Clifton <nickc@redhat.com>
4056 * read.c (stringer): Catch attempts to create strings in the abs
4059 * config/tc-alpha.c: Fix compiling for COFF targets.
4060 Some minor formatting tidyups.
4062 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4064 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4065 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4066 according to the reloc.
4067 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4068 (TC_FORCE_RELOCATION): Define.
4069 (tc_m68hc11_force_relocation): Declare.
4071 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4072 (s_m68hc11_relax): New function for relax group.
4073 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4074 beginning of jump instruction.
4075 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4076 address computation.
4077 (tc-gen_reloc): Update.
4078 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4080 (tc_m68hc11_force_relocation): New function, handle new relocs.
4081 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4082 reloc for the linker relax pass.
4083 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4086 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4088 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4089 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4090 (s_m68hc11_mode): New function for .mode pseudo op.
4091 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4093 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4094 (m68hc11_elf_final_processing): Declare.
4096 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4098 * config/tc-m68hc11.c (md_begin): Take into account additional
4099 page operand for call instruction.
4100 (print_opcode_format): Likewise.
4101 (check_range): Likewise for page range checking.
4102 (get_operand): Don't skip a possible comma in operands.
4103 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4104 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4105 (fixup24): New to handle call reloc.
4106 (build_insn): Handle missing page operand for call instruction.
4108 (md_apply_fix3): Take into account new relocs.
4109 (get_operand): Fix the mode for indexed indirect addressing.
4110 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4112 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4114 * config/tc-mips.c (mips_ip): Don't work out the value of
4115 constant %hi()s here.
4117 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4119 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4120 for ELF, and don't bother checking ELF relocs when non-ELF.
4121 (i386_immediate): Allow absolute_section expressions for aout.
4122 (i386_displacement): Likewise. Also test bfd_is_com_section.
4123 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4124 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4125 not when fx_addsy. Remove dead code.
4127 2002-08-09 Graeme Peterson <gp@qnx.com>
4129 * configure.in: Add support for ppc-*-nto* target.
4130 * configure: Regenerate.
4132 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4134 * config/tc-i386.h: Reorganize.
4136 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4138 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4139 immediate offset in "dla" and "la" expansions.
4141 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4143 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4144 Remove "bfd_gas=yes" from target table when covered later.
4145 Consolidate some entries.
4146 * configure: Regenerate
4148 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4150 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4151 at start of insn, pass it to output_disp and output_imm.
4152 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4153 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4155 (output_imm): Added arguments. Compute properly addend for
4157 (md_apply_fix3): Remove R_386_GOTPC handling.
4159 2002-08-06 George France <france@handhelds.org>
4161 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4162 and m21264b processor names and cpu types.
4163 * doc/c-alpha.texi: Documented new types.
4165 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4167 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4169 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4171 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4172 handling to BFD_RELOC_MIPS16_GPREL.
4174 2002-08-01 Nick Clifton <nickc@redhat.com>
4176 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4177 pool is computed using signed arithmetic so that proper sign
4178 extension is performed if X_add_number is a 64-bit integer.
4180 2002-08-01 H.J. Lu <hjl@gnu.org>
4181 Daniel Jacobowitz <drow@mvista.com>
4183 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4184 .debug_line section unless it has line information.
4186 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4188 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4189 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4190 Allow default displacement size to be an option "--disp-size-default".
4191 (md_number_to_disp): Make error messages include value. Use %d to
4192 print integers, not %s.
4193 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4194 get duplicate messages sometimes.
4195 (convert_iif): Grow frag to max possible instruction size. Avoid
4196 creating unnecessary fixes.
4197 (md_number_to_field) Add prototype.
4198 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4199 prototypes and make static.
4200 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4201 (evaluate_expr): Use resultP argument instead of exprP global.
4202 (get_addr_mode): Quiten compiler warnings.
4203 (encode_operand): eliminate unused variables. Quiten compiler
4204 warnings. Eliminate nul character in format strings.
4205 (parse): argc is unsigned.
4206 (reloc): Type cast index to quieten compiler.
4207 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4208 (md_convert_frag): Note unused parameters. Remove unused
4210 (md_create_long_jump, md_create_short_jump,
4211 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4214 2002-07-31 Nick Clifton <nickc@redhat.com>
4216 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4217 of the PDP-11 and 2.11BSD a.out support.
4219 2002-07-31 Momchil Velikov <velco@fadata.bg>
4221 * config/tc-v850.c (md_assemble): Fix range check for immediate
4224 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4226 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4227 to Broadcom SB-1 core support.
4229 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4231 * config/tc-mips.c (mips_target_format): Fix formatting.
4232 Add recognition of n32 ABI formats.
4234 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4236 * tc-mips.c (load_address): Don't clobber $at when loading a
4237 64-bit address in non-PIC code if noat is in effect.
4240 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4242 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4243 used in division/multiply macro expansions similarly to how they
4244 are used in the variants with break instructions.
4247 2002-07-30 Graeme Peterson <gp@qnx.com>
4249 * configure.in: Add support for arm-*-nto target.
4250 * configure: Regenerate.
4252 2002-07-30 Nick Clifton <nickc@redhat.com>
4254 * config/tc-arm.c (struct literal_pool): Add fields to allow
4255 multiple literal pools to be maintained.
4256 (find_literal_pool): New function.
4257 (find_or_make_literal_pool): New function.
4258 (add_to_literal_pool): Use find_or_make_literal_pool.
4259 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4261 (s_ltorg): Use find_literal_pool.
4262 (arm_cleanup): Dump all literal pools.
4263 * doc/c-arm.texi: Document new behaviour of only dumping literal
4266 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4268 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4269 rather than PPC_OPCODE_32 for powerpc64*.
4271 2002-07-25 Nick Clifton <nickc@redhat.com>
4273 * po/es.po: Updated Spanish translation.
4274 * po/fr.po: Updated French translation.
4276 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4278 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4279 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4280 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4281 * configure, config.in: Regenerate.
4282 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4283 (mips_set_options): Remove "abi" field.
4284 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4287 (mips_arch_string, mips_arch_info): New vars.
4288 (mips_tune_string, mips_tune_info): New vars.
4289 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4290 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4291 (mips_isa_to_str, mips_cpu_to_str): Remove.
4292 (mips_ip): If the selected architecture is a generic ISA rather
4293 than a processor, only mention the ISA level in error messages.
4294 (OPTION_MCPU): Remove.
4296 (md_longopts): Add -mfp64, remove -mcpu.
4297 (mips_set_option_string): New fn.
4298 (md_parse_option): Make -mipsN update file_mips_isa rather than
4299 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4300 Don't let -mgp32 and -mfp32 change the ABI.
4301 (show): Move to end of file. Constify string argument.
4302 (md_show_usage): Move to the end of the file. Read available
4303 architectures from mips_cpu_info_table.
4304 (mips_set_architecture): New fn.
4305 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4306 is an alias for -march=mipsN. Don't change the ABI based on other
4307 flags. Infer the register size from the ABI as well as the
4308 architecture. Complain about more conflicting arguments.
4309 Unify logic with GCC.
4310 (s_mipsset): Don't change the ABI.
4311 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4312 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4313 "mipsN"-type entries. Remove entries that vary only in the
4314 manufacturer's prefix, or that have "000" replaced by "k".
4315 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4316 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4317 (mips_parse_cpu): New fn.
4318 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4319 (mips_cpu_info_from_isa): Minor formatting tweak.
4321 2002-07-24 Nick Clifton <nickc@redhat.com>
4323 * po/sv.po: Updated Swedish translation.
4324 * po/es.po: Updated Spanish translation.
4326 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4328 * Makefile.am: Run "make dep-am".
4329 * Makefile.in: Regenerate.
4330 * doc/Makefile.in: Regenerate.
4331 * config.in: Regenerate.
4332 * po/POTFILES.in: Regenerate.
4334 2002-07-23 Nick Clifton <nickc@redhat.com>
4336 * po/fr.po: Updated French translation.
4338 2002-07-23 Nick Clifton <nickc@redhat.com>
4340 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4343 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4345 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4346 instead of S_IS_EXTERN.
4347 (md_estimate_size_before_relax): Likewise.
4348 (mips_fix_adjustable): Likewise.
4350 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4352 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4354 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4355 Nick Clifton <nickc@redhat.com>
4357 * cond.c (s_ifdef): Treat a referenced but not yet defined
4358 symbol as if it were undefined, in exactly the same way as
4361 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4362 consider referenced bug not yet defined symbols to be
4365 2002-07-18 Denis Chertykov <denisc@overta.ru>
4366 Frank Ch. Eigler <fche@redhat.com>
4367 Alan Lehotsky <alehotsky@cygnus.com>
4368 John Healy <jhealy@redhat.com>
4369 Jeff Johnston <jjohnstn@redhat.com>
4371 * configure.in: Add ip2k configuraton.
4372 * configure: Regenerate.
4373 * Makefile.am: Add ip2k configuraton.
4374 * Makefile.in: Regenerate.
4375 * configure: Regenerate.
4376 * Makefile.in: Regenerate.
4377 * config/tc-ip2k.c: New file.
4378 * config/tc-ip2k.h: New files.
4379 * NEWS: Mention new support.
4380 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4381 * doc/Makefile.in: Regenerate.
4382 * doc/all.texi: Set IP2K
4383 * doc/as.texinfo: Add IP2K description.
4384 * doc/c-ip2k.texi: New file.
4386 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4388 * NEWS: Reformat to match style of other NEWS files.
4390 2002-07-17 Jan Hubicka <jh@suse.cz>
4392 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4394 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4396 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4398 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4400 * NEWS: Add 'Changes in 2.13'.
4402 2002-07-15 Matt Fredette <fredette@netbsd.org>
4404 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4406 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4408 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4409 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4412 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4414 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4415 (ppc_frob_file_before_adjust): New function.
4416 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4417 (ppc_elf_frob_symbol): Don't declare.
4418 (tc_frob_file_before_adjust): Define.
4419 (ppc_frob_file_before_adjust): Declare.
4421 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4422 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4425 (ppc_xcoff64): Rename to ppc_obj64.
4426 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4427 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4428 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4430 (ppc_target_format): Use ppc_obj64 to select format.
4431 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4432 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4433 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4434 (tc_frob_symbol): Likewise.
4435 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4436 BFD_DEFAULT_TARGET_SIZE.
4438 (ppc_is_toc_sym): Likewise.
4439 (md_apply_fix3): Likewise.
4440 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4441 BFD_DEFAULT_TARGET_SIZE.
4442 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4443 (tc_frob_symbol): Likewise.
4445 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4447 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4448 (mips_ip): Likewise.
4450 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4452 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4453 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4454 (md_apply_fix3): Formatting. Remove redundant test.
4455 (tc_gen_reloc): Remove redundant code.
4456 (tc_i386_force_relocation): Delete. Movy body of function to..
4457 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4459 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4461 * configure.in: Add hppa-*-openbsd* target, change
4462 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4464 * configure: Regenerate.
4466 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4468 * config/tc-mips.c (macro): Shift the 32-bit address range
4469 accessible with a lone "lui" down by 32768.
4471 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4473 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4474 instead of "dadd" in address calculations.
4477 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4479 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4481 (md_assemble): Instead, zap the suffix here.
4483 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4485 * NEWS: Remove next release number until the release is actually
4488 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4490 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4492 * Makefile.in: Regenerate.
4494 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4496 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4497 to symbols in merge sections, even non pc-relative ones.
4499 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4501 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4503 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4505 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4506 .softregs and .eeprom.
4508 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4510 * NEWS: Note the next release is 2.13.
4512 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4514 * po/tr.po: New translation imported.
4516 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4518 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4519 (ecoff_directive_def): Likewise.
4520 (ecoff_directive_tag): Likewise.
4521 * listing.c (file_info): Likewise.
4522 * hash.c (what): Likewise.
4524 2002-06-25 H.J. Lu <hjl@gnu.org>
4526 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4527 * Makefile.in: Regenerated.
4529 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4531 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4532 (assemble_ppi): Generate warning if the same register is used
4533 twice as destination in the same padd / pmuls instruction.
4535 2002-06-18 Dave Brolley <brolley@redhat.com>
4537 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4538 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4539 * configure.in: Support frv-*-*.
4540 * Makefile.am (CPU_TYPES): Add frv.
4541 (TARGET_CPU_CFILES): Add tc-frv.c.
4542 (TARGET_CPU_HFILES): Add tc-frv.h.
4543 (DEPTC_frv_coff): New variable.
4544 (DEPTC_frv_elf): New variable.
4545 (DEPOBJ_frv_coff): New variable.
4546 (DEPOBJ_frv_elf): New variable.
4547 (DEP_frv_coff): New variable.
4548 (DEP_frv_elf): New variable.
4549 * tc-frv.c: New file.
4550 * tc-frv.h: New file.
4552 2002-06-17 Catherine Moore <clm@redhat.com>
4554 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4556 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4558 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4560 2002-06-17 Tom Rix <trix@redhat.com>
4562 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4564 2002-06-14 H.J. Lu <hjl@gnu.org>
4565 Daniel Jacobowitz <drow@mvista.com>
4567 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4568 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4569 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4570 and new_logical_line for the first .file directive.
4571 * read.c (s_app_file_string): New function.
4572 (s_app_file): Call it.
4573 * read.h (s_app_file_string): Add declaration.
4575 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4577 * configure.in: Remove MIPS_STABS_ELF.
4578 * configure: Regenerated.
4579 * config.in: Regenerated.
4580 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4582 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4584 (pdr_seg): Declare unconditionally.
4585 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4586 (s_mips_end): Likewise. Generate stabs function markers.
4587 (s_mips_ent): Generate stabs function markers.
4588 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4590 (s_mips_mask): Likewise.
4591 (mips_flag_mdebug): New.
4592 (md_longopts): Add "mdebug" and "no-mdebug".
4593 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4594 (mips_after_parse_args): Set mips_flag_mdebug.
4595 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4597 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4599 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4600 value twice for RELA relocations.
4602 2002-06-12 Ben Elliston <bje@redhat.com>
4604 * symbols.c (resolve_symbol_value): Initialise final_val.
4606 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4608 2002-06-11 Tom Rix <trix@redhat.com>
4610 * config/tc-ppc.c (ppc_subseg_align): Delete.
4611 (ppc_change_csect): Default csect align is 2.
4612 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4614 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4616 * config/tc-avr.c (mcu_types): Update.
4618 2002-06-08 Matt Thomas <matt@3am-software.com>
4620 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4621 (vax-*-netbsd*): New targets.
4622 * configure: Regenerate.
4623 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4624 * config/tc-vax.c: Add support for ELF and PIC.
4625 (flag_want_pic): New flag.
4626 (float_cons): Fix prototype.
4627 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4628 (md_assemble): Introduce a new is_absolute local, and use it
4629 rather than repeating the test. Make fatal errors actually
4630 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4631 Add support for ELF. Add support for PIC.
4632 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4633 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4635 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4636 optional for a.out, and not allowed for VMS. Adjust all callers.
4637 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4638 (md_create_long_jump): Likewise.
4639 (md_undefined_symbol): Likewise.
4640 (md_section_align): Likewise.
4641 (md_shortopts): Allow -k and -K for ELF.
4642 (md_parse_option): Set flag_want_pic if -k or -K.
4643 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4644 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4645 * config/tc-vax.h (tc_headers_hook): Remove.
4646 (TARGET_FORMAT): Set according to object format and target
4648 (BFD_ARCH, TARGET_ARCH): Define.
4649 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4650 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4651 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4652 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4654 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4656 * Makefile.am: Run "make dep-am".
4657 * Makefile.in: Regenerate.
4659 * as.c: Replace CONST with const.
4660 * write.c: Likewise.
4661 * config/obj-coff.c: Likewise.
4662 * config/tc-a29k.c: Likewise.
4663 * config/tc-arm.c: Likewise.
4664 * config/tc-dlx.c: Likewise.
4665 * config/tc-h8300.c: Likewise.
4666 * config/tc-h8500.c: Likewise.
4667 * config/tc-i370.c: Likewise.
4668 * config/tc-i860.c: Likewise.
4669 * config/tc-i960.c: Likewise.
4670 * config/tc-m68hc11.c: Likewise.
4671 * config/tc-m68k.c: Likewise.
4672 * config/tc-m88k.c: Likewise.
4673 * config/tc-mcore.c: Likewise.
4674 * config/tc-mips.c: Likewise.
4675 * config/tc-ns32k.c: Likewise.
4676 * config/tc-pdp11.c: Likewise.
4677 * config/tc-pj.c: Likewise.
4678 * config/tc-s390.c: Likewise.
4679 * config/tc-sh.c: Likewise.
4680 * config/tc-sparc.c: Likewise.
4681 * config/tc-tahoe.c: Likewise.
4682 * config/tc-tic80.c: Likewise.
4683 * config/tc-v850.c: Likewise.
4684 * config/tc-vax.c: Likewise.
4685 * config/tc-w65.c: Likewise.
4686 * config/tc-z8k.c: Likewise.
4688 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4690 Based on patch from Matt Green:
4691 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4692 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4693 (s_mips_loc): New function.
4694 (mips_nonecoff_pseudo_table): Call them.
4695 (append_insn): Call dwarf2_emit_insn.
4697 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4699 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4701 (file_ase_mips16): New veriable.
4702 (mips_eabi64): Remove.
4703 (CPU_HAS_MIPS16): New define.
4704 (CPU_HAS_MDMX): Fix data type.
4705 (md_begin): Code cleanup. Use file_ase_mips16.
4706 (mips_elf_final_processing): Handle mips16 header flag.
4707 Handle EABI flag without intermediate variable.
4709 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4711 * doc/as.texinfo: Update MIPS documentation.
4713 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4715 * config/tc-mips.c: Add define for $zero register.
4716 (md_begin): Add $zero as alias name for $0.
4717 (insn_uses_reg): Use ZERO define.
4718 (mips_ip): Add $zero as alias name for $0.
4719 (mips16_ip): Likewise.
4720 (s_cplocal): Demand empty rest of input line.
4721 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4722 names. Use ZERO define. Fix input_line_pointer progress.
4724 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4726 * symbols.c: Replace CONST by const throughout.
4727 (symbol_find_exact): Split out from..
4728 (symbol_find_base): ..here.
4729 * symbols.h: Replace CONST by const throughout.
4730 (symbol_find_exact): Declare.
4731 * config/obj-elf.c: #include "struc-symbol.h".
4732 (elf_frob_file): If group name matches an exported symbol, use that
4733 symbol for the signature and ".group" as the section name.
4735 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4737 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4740 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4742 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4743 and mips_opts.ase_mdmx if they are uninitialized.
4745 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4747 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4748 (hppa_force_relocation): Check if a stub just before the start symbol
4749 of the last call_info is reachable before forcing relocation. Fix
4752 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4754 * config/tc-mips.c (mips_after_parse_args): New function.
4755 (md_begin): Move processing of defaults to mips_after_parse_args.
4756 config/tc-mips.h (md_after_parse_args): Define.
4758 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4760 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4761 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4762 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4763 * configure: Regenerate.
4764 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4767 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4769 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4771 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4773 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4774 linkonce flag. Print all warnings.
4775 (obj_elf_section): Parse ",comdat" for groups.
4776 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4777 consistency of comdat flag.
4779 2002-06-02 Richard Henderson <rth@redhat.com>
4781 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4782 with LITERALs without sequence numbers.
4784 2002-06-01 Richard Henderson <rth@redhat.com>
4786 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4787 Rename them LITUSE_ALPHA_*.
4789 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4791 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4792 accept parentheses enclosed register lists.
4794 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4796 * Makefile.am: Run "make dep-am".
4797 * Makefile.in: Regenerate.
4798 * po/POTFILES.in: Regenerate.
4800 2002-05-31 Graeme Peterson <gp@qnx.com>
4802 * configure.in: Add i386-*-nto-qnx*.
4803 * configure: Regenerate.
4805 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4807 * config/tc-mips.c (mips_ip): Use unsigned long values for
4810 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4812 * config/tc-mips.c (s_cpsetup): Fix initialization of
4813 mips_cpreturn_register and mips_cpreturn_offset.
4815 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4817 * config/tc-mips.c (s_cpsetup): Fix comment.
4819 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4821 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4822 (mips_ip): Likewise.
4823 (mips16_ip): Likewise.
4824 (tc_get_register): Likewise.
4826 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4827 Ed Satterthwaite <ehs@broadcom.com>
4829 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4830 (mips_opts): Initialize "ase_mdmx" member.
4831 (file_ase_mdmx): New variable.
4832 (CPU_HAS_MDMX): New macro.
4833 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4834 based on command line options and configuration defaults.
4835 (macro_build): Note in comment that use of MDMX in macros is
4836 not currently allowed.
4837 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4838 "Z" MDMX operand types.
4839 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4840 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4842 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4843 Add support for "-mdmx" and "-no-mdmx" options.
4844 (OPTION_ELF_BASE): Move to accomodate new options.
4845 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4846 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4847 file_ase_mdmx was set.
4848 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4849 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4852 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4854 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4855 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4856 command line switch conforming to gcc conventions.
4857 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4859 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4861 * config/tc-mips.c (macro_build_jalr): New Function.
4862 (md_begin): NewABI uses big GOTs.
4863 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4864 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4865 (load_address): Add some NewABI PIC support.
4867 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4868 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4870 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4872 * config/tc-mips.c (load_address): Use mips_gp_register instead
4873 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4875 (macro): Use mips_gp_register instead of hardcoded value.
4877 2002-05-30 Richard Henderson <rth@redhat.com>
4879 * expr.h (operatorT): Add O_md17..O_md32.
4880 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4881 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4882 O_tprelhi, O_tprello, O_tprel): New.
4883 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4884 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4885 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4886 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4887 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4888 (md_apply_fix3): Handle TLS relocations.
4889 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4890 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4891 associated TLS reloc. Check lituse_tls relocs match up.
4892 (emit_insn): Handle TLS relocations.
4895 * doc/c-alpha.texi: Add docs for tls relocations.
4897 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4899 * config/tc-mips.c (mips_gprel_offset): New variable.
4900 (s_gpvalue): Use it.
4902 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4904 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4905 write-write conflicts.
4906 (md_assemble): Reformat introductory comment.
4907 (parallel_ok): Prevent packing only if the first
4908 instruction cannot be packed.
4910 2002-05-30 Jason Eckhardt <jle@redhat.com>
4911 Tom Rix <trix@redhat.com>
4913 * config/tc-d10v.c (build_insn): Check for immediates.
4915 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4917 * config/tc-mips.c: Replace GP in comments by $gp.
4918 (mips_big_got): Initialize.
4919 (mips_trap): Initialize.
4920 (load_address): Use mips_gp_register instead of hardcoded value.
4921 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4922 (macro): Use mips_gp_register instead of hardcoded value.
4923 (macro2): Change load_address calls.
4924 (md_pcrel_from): Comment formatting.
4925 (s_cpload): Use mips_gp_register instead of hardcoded value.
4926 (s_cprestore): Likewise. Comment formatting.
4927 (s_gpword): Fix data type.
4928 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4929 (nopic_need_relax): Replace GP in comments by $gp.
4930 (mips_elf_final_processing): Better comment.
4932 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4934 * configure.in: Add DLX configuraton
4935 * Makefile.am: Add DLX configuraton
4936 * configure: Regenerate.
4937 * Makefile.in: Regenerate.
4938 * config/tc-dlx.c: New file.
4939 * config/tc-dlx.h: New files.
4940 * NEWS: Mention new support.
4942 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4944 * config/obj-coff.c (write_object_file): Add missing semicolon.
4946 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4948 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4949 by the define. Remove superfluous check of mips_opts.mips16.
4950 (append_insn): Likewise. Canonicalize variable increments.
4951 (macro_build): Canonicalize variable increments.
4952 (macro_build_lui): Likewise.
4953 (load_register): Likewise.
4954 (load_address): Move pointer initialization.
4955 (macro): Move pointer to a more local scope. Canonicalize variable
4956 increments. Better comments. Replace magic constant for RA by the
4958 (macro2): Replace magic constant for RA by the define. Canonicalize
4959 variable increments.
4960 (mips_ip): Canonicalize variable increments.
4961 (mips16_ip): Replace magic constant for RA by the define.
4962 (my_getSmallParser): Canonicalize variable increments/decrements.
4963 (my_getPercentOp): Likewise.
4964 (my_getSmallExpression): Likewise.
4965 (s_align): Likewise.
4966 (s_mipsset): Likewise.
4967 (s_cpsetup): Likewise.
4968 (s_insn): Remove superfluous check of mips_opts.mips16.
4969 (s_mips_stab): Likewise.
4970 (mips_handle_align): Canonicalize variable increments.
4971 (s_mips_ent): Likewise.
4972 (s_mips_end): Add comment.
4974 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4976 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4977 * configure: Regenerate.
4979 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4981 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4982 * Makefile.in: Regenerate.
4983 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4984 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4985 * configure: Regenerate.
4986 * as.h: Use #include "" instead of <> for local header files.
4987 * flonum-konst.c: Likewise.
4988 * flonum-mult.c: Likewise.
4990 * listing.c: Likewise.
4991 * config/tc-ia64.h: Likewise.
4992 * config/tc-v850.h: Likewise.
4994 2002-05-24 TAMURA Kent <kent@netbsd.org>
4996 * configure.in: Add a target for i386-netbsdpe.
4997 * configure: Regenerate.
4999 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5001 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5002 (obj_elf_common): Call elf_common.
5003 (obj_elf_tls_common): New function.
5004 (elf_pseudo_tab): Support .tls_common.
5005 (special_sections): Add .tdata and .tbss.
5006 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5008 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5009 (obj_elf_parse_section_letters): Include T in error message.
5010 * config/tc-ppc.c (ppc_section_letter): Likewise.
5011 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5012 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5014 * config/tc-sparc.c (md_apply_fix3): Likewise.
5015 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5016 Define them if not BFD_ASSEMBLER.
5017 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5019 (md_apply_fix3): Add TLS relocs.
5020 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5021 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5022 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5023 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5024 (ia64_elf_section_letter): Include T in error message.
5025 (md_begin): Support TLS operators.
5026 (md_operand): Likewise.
5027 (ia64_gen_real_reloc_type): Support TLS relocs.
5028 * write.c (adjust_reloc_syms): Don't change symbols in
5029 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5031 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5033 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5034 round the relocation up rather than down.
5036 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5038 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5040 * doc/as.texinfo: Document that the COFF version of .section
5041 ignores the 'a' flag.
5043 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5045 * config/tc-alpha.c (assemble_tokens): Protect use of
5046 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5048 * write.c (size_seg): Check adjustment to last frag.
5049 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5051 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5052 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5053 (write_object_file): Invoke md_do_align if available, and use
5054 frag_align_code on text sections.
5055 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5056 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5057 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5058 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5059 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5062 2002-05-22 H.J. Lu <hjl@gnu.org>
5064 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5067 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5069 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5072 2002-05-22 H.J. Lu <hjl@gnu.org>
5074 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5075 for one .loc for compiler.
5077 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5079 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5082 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5084 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5085 Optimize the rotate by zero case.
5087 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5089 * configure.in: Remove accidental enabling of bfd_gas=yes for
5091 * configure: Regenerate.
5093 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5095 * app.c: Fix formatting.
5097 * ehopt.c: Likewise.
5099 * input-file.c: Likewise.
5100 * listing.c: Likewise.
5101 * macro.h: Likewise.
5102 * stabs.c: Likewise.
5103 * symbols.c: Likewise.
5105 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5107 * config/obj-generic.c: Delete file.
5108 * config/obj-generic.h: Likewise.
5110 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5112 * config/tc-avr.c (mcu_types): Update for new devices.
5114 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5116 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5118 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5120 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5121 worked sometimes by accident. Fix copy&paste comment.
5123 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5125 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5126 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5127 (mips_elf_final_processing): Let n32 use .reginfo.
5129 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5131 * config/tc-mips.c (append_insn): Fix too small range of variable.
5133 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5135 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5136 listing_prev_line().
5138 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5140 * config/tc-arm.c (md_assemble): Remove redundant call to
5143 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5146 * stabs.c (s_stab_generic): Fix grammatical error in warning
5149 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5151 * write.c (subsegs_finish): Don't specially align last subseg.
5153 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5155 * stabs.c (s_stab_generic): Warn about a description field that is
5158 * config/obj-coff.c: Fix compile time warnings when compiling
5159 without BFD_ASSEMBLER defined.
5162 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5164 (md_pcrel_from_section): Use md_pcrel_from().
5166 2002-05-11 Bruno Haible <bruno@clisp.org>
5168 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5169 by dwarf2_directive_loc, instead of calling dwarf2_where.
5171 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5173 * config/obj-coff.h: Fix formatting.
5174 * config/tc-mcore.c: Likewise.
5175 * config/tc-mn10300.c: Likewise.
5176 * config/tc-openrisc.c: Likewise.
5177 * config/tc-or32.c: Likewise.
5178 * config/tc-pdp11.c: Likewise.
5179 * config/tc-ppc.c: Likewise.
5180 * config/tc-ppc.h: Likewise.
5181 * config/tc-sh64.c: Likewise.
5182 * config/tc-sh.c: Likewise.
5183 * config/tc-tic54x.c: Likewise.
5184 * config/tc-xstormy16.c: Likewise.
5185 * config/tc-xstormy16.h: Likewise.
5187 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5189 * config/obj-coff.c: Fix formatting.
5190 * config/obj-elf.c: Likewise.
5191 * config/tc-alpha.c: Likewise.
5192 * config/tc-arm.c: Likewise.
5193 * config/tc-d10v.c: Likewise.
5194 * config/tc-d30v.c: Likewise.
5195 * config/tc-h8300.c: Likewise.
5196 * config/tc-hppa.c: Likewise.
5198 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5200 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5201 reloc when no_cond_jump_promotion.
5203 2002-05-08 Jim Wilson <wilson@redhat.com>
5205 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5206 current variable part of frag.
5208 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5210 * config/tc-mmix.c: Fix formatting.
5211 * config/tc-mmix.h: Likewise.
5213 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5215 * configure: Regenerate.
5217 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5219 * config/tc-m68k.c: Fix formatting.
5221 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5223 * Makefile.am: Honour DESTDIR.
5224 * Makefile.in: Regenerate.
5226 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5228 * config/tc-ia64.c: Fix formatting.
5229 * config/tc-ia64.h: Likewise.
5231 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5233 * config/tc-mips.c: Fix formatting.
5234 * config/tc-s390.c: Likewise.
5235 * config/tc-s390.h: Likewise.
5237 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5239 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5240 information for instructions.
5242 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5244 * as.h: Fix formatting.
5247 * dwarf2dbg.c: Likewise.
5248 * frags.h: Likewise.
5250 * macro.c: Likewise.
5252 * stabs.c: Likewise.
5253 * symbols.c: Likewise.
5255 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5257 * app.c (mri_pseudo): Only declare for TC_M68K.
5259 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5260 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5261 BFD_RELOC_16_BASEREL.
5262 (md_assemble): Likewise.
5263 (md_apply_fix3): Likewise.
5265 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5267 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5268 zero into an add of zero - it is not the same.
5270 2002-05-01 Arati Dikey <aratid@kpit.com>
5272 * tc-sh.c (get_specific): Generate warning if the same
5273 destination register is used in parallel instructions.
5275 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5277 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5279 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5281 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5282 backwards to prevent cascading errors.
5284 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5286 * configure.in: Add support for powerpc-*-windiss.
5287 * configure: Regenerated.
5289 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5291 * config/tc-s390.c (md_parse_option): Formatting.
5293 * config/tc-i386.c: Formatting fixes, add missing space in error
5296 2002-04-24 Christian Groessler <chris@groessler.org>
5298 * config/tc-z8k.c (build_bytes): Add support for new cases:
5299 CLASS_IGNORE and ARG_NIM4.
5300 (md_assemble): Prevent destruction of input_line_pointer if
5301 get_operands returns failure.
5303 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5305 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5306 instructions to be generated by macros.
5308 2002-04-24 Andreas Schwab <schwab@suse.de>
5310 * config/tc-i386.c (output_jump, output_disp)
5311 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5313 (md_apply_fix3): Remember addend value for rela relocations.
5314 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5316 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5318 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5319 from previous change.
5321 2002-04-22 Eric Christopher <echristo@redhat.com>
5323 * config/tc-mips.c (macro_build): Add warning if macro instructions
5324 are expanded into a branch delay slot.
5326 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5328 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5329 numbers, gdb relies on them to detect the start of the prologue.
5331 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5333 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5334 symbols in merge sections.
5336 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5338 * as.c (main): Don't reference _bfd_chunksize.
5340 2002-04-15 Tom Rix <trix@redhat.com>
5342 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5343 symbols in merge sections.
5345 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5347 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5348 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5349 argument for the precision.
5350 (gen_to_words): Update accordingly.
5352 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5354 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5355 BFD_VERSION_STRING unavailable.
5356 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5358 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5360 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5361 symbol_used_in_reloc_p is true.
5363 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5366 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5368 * dep-in.sed: Cope with absolute paths.
5369 * Makefile.am (dep.sed): Subst TOPDIR.
5371 * Makefile.in: Regenerate.
5373 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5375 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5376 (mips_ip): Remove unused variable.
5377 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5378 unsigned char with bfd_byte.
5379 (s_file): Remove unused variable.
5380 (s_mips_ent): Likewise.
5382 2002-04-03 Tom Rix <trix@redhat.com>
5384 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5386 (find_opcode): Fix warning in as_warn.
5387 * config/tc-d10v.h: Update Copyright.
5389 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5390 Tom Rix <trix@redhat.com>
5392 From Jeff Knaggs <jknaggs@redhat.com>
5393 * config/tc-d10v.c (check_resource_conflict): New function to
5394 check for resource conflicts.
5396 From Jason Eckhardt <jle@redhat.com>
5397 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5399 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5400 reserved control registers is used.
5401 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5404 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5405 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5406 instruction cannot be packed.
5408 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5409 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5410 write-write conflicts.
5411 (md_assemble): Reformat introductory comment.
5412 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5415 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5417 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5418 O_logical_not>): Derive final_seg from add_symbol.
5419 <O_multiply..O_logical_or>: More final_seg twiddles.
5421 2002-04-01 Jessica Han <jessica@cup.hp.com>
5423 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5426 2002-03-27 Andreas Schwab <schwab@suse.de>
5428 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5429 field for pc-relative fixups.
5430 (output_disp): Likewise.
5431 (md_estimate_size_before_relax): Likewise.
5432 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5433 pc-relative fixups in 64bit mode.
5435 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5437 * config/te-aix5.h: Typo fix.
5439 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5441 * Makefile.am: Run "make dep-am".
5442 * Makefile.in: Regenerate.
5443 * doc/Makefile.in: Regenerate.
5445 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5447 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5448 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5450 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5452 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5453 the EXTENDED bit here; report the estimate according to the
5456 2002-03-18 Tom Rix <trix@redhat.com>
5458 * configure.in: Add AIX 5 support.
5459 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5460 * config/te-aix5.h: New file. AIX 5 support.
5461 * configure: Regenerate.
5463 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5465 * po/fr.po: Updated version.
5467 2002-03-16 Andreas Jaeger <aj@suse.de>
5469 * doc/c-mips.texi (Machine Dependencies): Add new node.
5471 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5473 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5474 (mips_opts): Initialize "ase_mips3d" member.
5475 (file_ase_mips3d): New variable.
5476 (CPU_HAS_MIPS3D): New macro.
5477 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5478 based on command line options and configuration defaults.
5479 (macro_build, mips_ip): Accept MIPS-3D instructions if
5480 mips_opts.ase_mips3d is set.
5481 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5482 Add support for "-mips3d" and "-no-mips3d" options.
5483 (OPTION_ELF_BASE): Move to accomodate new options.
5484 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5485 (mips_elf_final_processing): Add a comment indicating that a
5486 MIPS-3D ASE ELF header flag should be set, when one exists.
5487 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5488 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5489 nomips3d" directives.
5491 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5493 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5494 a weak symbol in same section to be within reach.
5496 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5498 * po/fr.po: Updated version.
5500 2002-03-12 Andreas Schwab <schwab@suse.de>
5502 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5503 body record so that an error is given for misplaced .save
5506 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5508 * config/tc-i386.h (REX_OPCODE): Define.
5509 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5510 (rex_byte): typedef to int.
5511 * config/tc-i386.c: Group prototypes and vars together.
5512 Formatting fixes. Remove occurrences of "register" keyword.
5515 (mode_from_disp_size): Add INLINE keyword to prototype.
5516 (fits_in_signed_byte): Likewise.
5517 (fits_in_unsigned_byte): Likewise.
5518 (fits_in_unsigned_word): Likewise.
5519 (fits_in_signed_word): Likewise.
5520 (fits_in_unsigned_long): Likewise.
5521 (fits_in_signed_long): Likewise.
5522 (type_names): Constify.
5523 (intel_float_operand): Constify param.
5524 (add_prefix): Use REX_OPCODE.
5525 (md_assemble): Likewise. Modify for changed rex_byte.
5526 (parse_insn): Split out of md_assemble.
5527 (parse_operands): Likewise.
5528 (swap_operands): Likewise.
5529 (optimize_imm): Likewise.
5530 (optimize_disp): Likewise.
5531 (match_template): Likewise.
5532 (check_string): Likewise.
5533 (process_suffix): Likewise.
5534 (check_byte_reg): Likewise.
5535 (check_long_reg): Likewise.
5536 (check_qword_reg): Likewise.
5537 (check_word_reg): Likewise.
5538 (finalize_imm): Likewise.
5539 (process_operands): Likewise.
5540 (build_modrm_byte): Likewise.
5541 (output_insn): Likewise.
5542 (output_branch): Likewise.
5543 (output_jump): Likewise.
5544 (output_interseg_jump): Likewise.
5545 (output_disp): Likewise.
5546 (output_imm): Likewise.
5548 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5550 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5552 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5554 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5555 relocs except when BFD64.
5557 * write.c (number_to_chars_bigendian): Don't abort when N is
5558 larger than sizeof (VAL).
5559 (number_to_chars_littleendian): Likewise.
5561 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5563 * config/tc-hppa.c (md_apply_fix3): Add cast.
5564 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5567 2002-03-05 Paul Koning <pkoning@equallogic.com>
5569 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5570 (parse_ac5): New function for parsing float regs in float operand.
5571 (parse_expression): Remove attempt to make literals be octal.
5572 (parse_op_no_deferred): Support float literals.
5573 (parse_op): Reject attempts to refer to float regs.
5574 (parse_fop): New function, like parse_op but for float operand.
5575 (md_assemble): Add cases to parse float operands. Also fix
5576 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5578 2002-03-04 H.J. Lu <hjl@gnu.org>
5580 * config/obj-elf.c (special_section): Add .init_array,
5581 .fini_array and .preinit_array.
5583 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5584 .init_array and .fini_array.
5586 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5588 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5590 (obj_frob_symbol): Copy visibility.
5592 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5594 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5596 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5598 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5600 * po/es.po: Updated.
5602 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5604 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5605 only, undo the changes made on 2001-06-08, with the
5606 effect being that common or extern symbols are
5607 adjusted for embedded-PIC, but weak symbols are not.
5608 (md_estimate_size_before_relax: Likewise, with the effect
5609 that extern symbols are treated the same as weak symbols
5610 only if not embedded-PIC.
5611 (mips_fix_adjustable) Likewise, with the effect that
5612 weak or extern symbols are not adjusted for embedded-PIC.
5613 (md_apply_fix3): Tweak so that the case where value is zero
5614 is handled more correctly for embedded-PIC code.
5616 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5618 * doc/as.texinfo (Overview): Add missing @ifset IA64
5620 * configure.in (LINGUAS): Add es.po.
5621 * configure: Regenerate.
5622 * po/es.po: New file.
5624 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5626 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5627 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5628 and NO_PIC cases. Code cleanup.
5629 (macro2): Fix handling of 64bit register loads.
5631 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5633 * doc/as.texinfo: Add entry for IA64.
5634 * doc/c-ia64.texi: New file.
5636 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5638 * config/tc-hppa.c: Update copyright date.
5640 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5641 Remove references to chip manufacturers.
5642 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5644 (md_show_usage): Remove references to chip manufacturers. Mention
5646 (md_begin): Test power4 opcode flag bits.
5648 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5650 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5651 count exceeds prologue count.
5652 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5653 (unwind.label_prologue_count): New member.
5655 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5657 (get_saved_prologue_count): New function.
5658 (save_prologue_count): New function.
5659 (free_saved_prologue_count): New function.
5660 (dot_label_state): Record state label by calling save_prologue_count().
5661 (dot_copy_state): Restore prologue count by calling
5662 get_saved_prologue_count().
5663 (generate_unwind_image): Free up list of saved prologue
5664 counts by calling free_saved_prologue_counts().
5666 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5668 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5669 function declarations.
5671 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5673 * NEWS: Note that GASP is now deprecated.
5674 * Makefile.am: Do not build gasp-new by default.
5675 * Makefile.in: Regenerate.
5676 * doc/Makefile.am: Do not install gasp.info.
5677 * doc/Makefile.in: Regenerate.
5678 * gas/gasp.texi: Note that gasp is now deprecated.
5680 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5682 * NEWS: Mark 2.12 branch.
5684 2002-02-19 Tom Tromey <tromey@redhat.com>
5686 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5688 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5690 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5693 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5695 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5696 Make bit size independent of architecture switch.
5697 (md_begin): Add warning for -m64 with -Aesa.
5698 (s390_md_end): Use renamed architecture defines.
5700 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5702 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5704 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5706 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5709 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5711 * config/tc-mips.c (md_estimate_size_before_relax): Really
5712 make sure we treat weak like extern only for ELF. (Fixes
5713 patch from 2001-07-25.)
5715 2002-02-15 Ben Elliston <bje@redhat.com>
5717 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5720 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5722 * NEWS: Mention support for MMIX.
5724 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5726 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5727 a sequence of indpendent 'if' statements for easier debugging
5728 and future modification.
5730 2002-02-13 Matt Fredette <fredette@netbsd.org>
5732 * config/tc-m68k.c (md_show_usage): No longer display a
5733 hard-coded "68020" for the default CPU, instead display the
5734 canonical name of the true, configured default CPU.
5735 (m68k_elf_final_processing): Mark objects for sub-68020
5736 CPUs with the new EF_M68000 flag.
5738 2002-02-13 Andreas Schwab <schwab@suse.de>
5740 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5741 pc-relative relocations to merge sections in 64-bit mode.
5743 2002-02-13 Ben Elliston <bje@redhat.com>
5745 * NEWS: Document floating point number handling in gasp.
5746 * gasp.c: Include <assert.h> and "xregex.h".
5747 (is_flonum): New function.
5748 (chew_flownum): Likewise.
5749 (change_base): Consume flonums from the input, where possible.
5750 * doc/gasp.texi (Constants): Document floating point numbers.
5752 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5754 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5755 that implicitly use LR and RR selectors.
5757 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5759 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5760 and `epsw' as available on AM33 and above only.
5761 (other_register_name): Add logic to handle machine type encoded in
5764 2002-02-11 Tom Rix <trix@redhat.com>
5766 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5769 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5771 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5774 2002-02-11 Jan Hubicka <jh@suse.cz>
5776 * i386.c (md_assemble): Support 32bit address prefix.
5777 (i386_displacement): Likewise.
5778 (i386_index_check): Accept 32bit addressing in 64bit mode.
5780 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5782 * config/tc-sh.c (dot): Removed unused function.
5784 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5786 * Makefile.am: "make dep-am".
5787 * Makefile.in: Regenerate.
5788 * aclocal.m4: Regenerate.
5789 * config.in: Regenerate.
5790 * configure: Regenerate.
5791 * doc/Makefile.in: Regenerate.
5793 2002-02-10 Richard Henderson <rth@redhat.com>
5795 * doc/c-alpha.texi: New file.
5796 * doc/Makefile.am (CPU_DOCS): Add it.
5797 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5799 2002-02-09 Richard Henderson <rth@redhat.com>
5801 * config/tc-alpha.c (O_samegp): New.
5802 (USER_RELOC_P): Include it.
5803 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5804 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5805 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5806 (alpha_validate_fix): New.
5807 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5809 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5811 * doc/c-cris.texi: New.
5812 * doc/all.texi: @set CRIS.
5813 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5814 Include c-cris.texi.
5815 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5816 * doc/Makefile.in: Regenerate.
5818 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5820 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5821 determine if a number is a sign-extended 32-bit number.
5822 (load_register): Use IS_SEXT_32BIT_NUM.
5823 (macro): Check if load/store macro handling is using a
5824 constant 32-bit address on 64-bit address systems, and if
5825 so optimize the generation of that address.
5827 2002-02-08 Richard Henderson <rth@redhat.com>
5829 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5830 we've eliminated all foreign relocation types yet.
5831 (alpha_fix_adjustable): Likewise.
5833 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5835 Contribute sh64-elf.
5836 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5837 Stephen Clarke <Stephen.Clarke@st.com>
5838 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5839 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5840 * config/tc-sh.c (md_relax_table): Added default sizes for
5841 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5842 MOVI_16, MOVI_32 and MOVI_48.
5843 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5844 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5846 (shmedia_md_estimate_size_before_relax): Remove redundant
5847 blocks. Set fragP->fr_var even if relaxation type unchanged.
5848 Retain UNDEF_MOVI until expression decays to number.
5849 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5850 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5851 relocation types. Take fixP->fx_addnumber into account too.
5852 (shmedia_md_apply_fix): Likewise.
5853 (shmedia_md_convert_frag): Likewise.
5854 (shmedia_build_Mytes): Likewise.
5855 (sh64_consume_datalabel): Complain about nested datalabel.
5856 Support PIC relocs. Call sh_parse_name.
5857 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5858 in tc-sh.h to SHmedia reloc types.
5859 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5860 MOVI_GOTPC): New relaxation constants.
5861 (md_relax_table): Introduce relaxation directives for PIC-related
5863 (sh_PIC_related_p): Handle datalabel.
5864 (sh_check_fixup): Choose SH5 PIC relocations.
5865 (sh_cons_fix_new): Added BDF_RELOC_64.
5866 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5867 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5868 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5869 current ISA is SHmedia, get 7 bytes.
5870 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5871 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5873 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5874 shmedia_apply_fix3 and make void.
5875 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5876 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5878 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5879 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5880 2001-03-14 DJ Delorie <dj@redhat.com>
5881 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5882 * doc/Makefile.in(CPU_DOCS): Ditto.
5883 * doc/c-sh64.texi: New file.
5884 * doc/as.texinfo: Add SH64 support.
5885 2001-03-13 DJ Delorie <dj@redhat.com>
5886 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5887 A_REUSE_PREV so that its purpose is more obvious.
5888 (shmedia_build_Mytes): Ditto.
5889 2001-03-07 DJ Delorie <dj@redhat.com>
5890 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5892 (sh64_vtable_inherit): Ditto.
5893 (strip_datalabels): New, strip "datalabel" from given line.
5894 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5896 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5897 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5899 (shmedia_build_Mytes): ... to here.
5900 2001-03-06 DJ Delorie <dj@redhat.com>
5901 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5903 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5904 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5905 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5906 address by one in call to dwarf2_emit_insn.
5907 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5908 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5909 alignment handling broken by imported changes.
5910 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5911 (sh64_handle_align): Declare.
5912 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5913 (sh64_max_mem_for_rs_align_code): Declare.
5914 (enum sh64_isa_values): Moved here from tc-sh64.c.
5915 (md_do_align): Define.
5916 (sh64_do_align): Declare.
5917 (struct sh64_tc_frag_data): New.
5918 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5920 (TC_FRAG_INIT): Change to set new datatype.
5921 (struct sh64_segment_info_type): Rename member
5922 last_flushed_location to last_contents_mark. All users changed.
5923 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5924 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5925 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5926 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5927 of unsetting seen_insn.
5928 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5929 call sh64_update_contents_mark.
5930 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5931 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5932 enum sh64_isa_values.
5933 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5934 (emitting_crange): Boolean guard moved to file scope from function
5935 scope in sh64_set_contents_type.
5937 (sh64_update_contents_mark): New; most split out from
5938 sh64_flush_pending_output.
5939 (shmedia_md_end): Call sh64_update_contents_mark. Set
5940 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5941 (sh64_do_align): New function.
5942 (sh64_max_mem_for_rs_align_code): New function.
5943 (sh64_handle_align): Rename from shmedia_do_align. Make
5944 non-static. Add head comment. Emit zero bytes for n bytes modulo
5945 four. Change return-type to void.
5946 (shmedia_elf_new_section): Remove.
5947 (shmedia_md_assemble): Call sh64_update_contents_mark.
5948 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5949 new frag. Call sh64_update_contents_mark after making the new
5951 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5952 and sh_flush_pending_output.
5953 (sh64_flag_output): Also call md_flush_pending_output, but add
5954 condition on not emitting_crange.
5955 (sh64_tc_cons_fix_new): Remove.
5956 2001-01-12 Nick Clifton <nickc@redhat.com>
5957 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5958 alignment handling scheme imported from sourceware.
5959 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5960 * config/tc-sh64.h (TARGET_FORMAT): Define.
5961 (sh64_target_format): Prototype.
5962 * config/tc-sh64.c (sh64_target_mach): New function.
5963 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5964 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5965 zero_address_frag instead of copying the frag of the symbol.
5966 (shmedia_frob_file_before_adjust): Ditto.
5967 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5968 to valueT to remove signedness.
5969 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5970 headers to output_bfd. Do not evaluate symbols if final is false;
5972 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5973 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5974 to the current frag, call shmedia_md_convert_frag to emit fixups
5975 and make frag_wane neutralize the frag. Update comments.
5976 * config/tc-sh.c (md_convert_frag): Change caller of
5977 shmedia_md_convert_frag.
5978 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5979 * config/tc-sh64.h: Tweak comments and correct formatting.
5980 * config/tc-sh64.c: Ditto.
5981 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5982 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5983 for the no-relocation case.
5984 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5985 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5987 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5989 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5990 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5992 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5994 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5995 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5996 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5997 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5998 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5999 if reloc is emitted.
6000 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6001 New options plus bugfixes.
6002 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6004 (md_parse_option): Handle new options.
6005 (md_show_usage): Add blurb for new options.
6006 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6007 (sh64_expand, sh64_pt32): New variables.
6008 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6009 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6010 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6011 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6012 <resolved previously-pc-relative relocs>: Handle
6013 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6014 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6015 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6016 points to SHcompact code.
6017 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6018 SH64PCREL16)>: Check that ISA of what operand points at and
6019 PTA/PTB matches, or emit error.
6020 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6021 SHMEDIA_BFD_RELOC_PT.
6022 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6024 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6025 condition for MOVI expansion.
6026 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6027 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6029 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6031 (sh64_target_format): Error-check setting of sh64_pt32 and
6032 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6033 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6034 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6035 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6036 * config/tc-sh64.c: Improve comments.
6037 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6038 not say the linker will check correctness of PTA/PTB expansion.
6039 (shmedia_md_end): Make non-static.
6040 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6042 * config/tc-sh.c (sh_finalize): Remove.
6043 * config/tc-sh.h (md_end): Do not define.
6044 Remove prototype for sh_finalize.
6045 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6046 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6047 sh64_section_data container when storing section type in tdata
6048 field in elf_section_data.
6049 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6051 * Makefile.am: Update dependencies.
6052 * Makefile.in: Regenerate.
6053 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6054 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6055 dwarf2_emit_insn call with test on debug_type.
6056 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6057 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6058 CRT_SH5_ISA32 sticky for 64-bit.
6059 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6060 Generate .crange sections when switching ISA mode or emitting
6061 constants in same section as code.
6062 * config/tc-sh64.c: Reformat structure definitions.
6063 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6065 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6066 to emit a .cranges descriptor when contents type changes. Only
6067 emit error if changing contents type and -no-mix is in effect.
6068 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6069 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6070 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6071 sh64_flush_last_crange over sections.
6072 When checking main symbol of datalabel symbol, check for
6073 STO_SH5_ISA32, not ISA type of section in definition.
6074 (shmedia_frob_file_before_adjust): Check main symbol for
6075 STO_SH5_ISA32; don't check ISA type of section in definition.
6076 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6077 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6078 .cranges entries have been output.
6079 (shmedia_elf_new_section): Just call md_flush_pending_output.
6080 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6081 fix. Do not set tc_segment_info_data.in_code for section. Call
6082 sh64_set_contents_type for SHmedia code.
6083 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6084 false. Call md_flush_pending_output.
6085 (sh64_target_format): Check that -no-mix and
6086 -shcompact-const-crange are used in sane combination with other
6088 (shmedia_md_pcrel_from_section): Check type of fix for how to
6090 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6091 not ISA type of section in definition.
6092 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6093 hold contents-type state.
6094 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6095 (sh64_flush_pending_output): Declare.
6096 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6097 (sh64_tc_cons_fix_new): Declare.
6098 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6099 call sh64_flag_output.
6100 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6101 call sh64_set_contents_type to mark SHcompact code and set
6103 (md_longopts): New options "-no-mix" and
6104 "-shcompact-const-crange".
6105 (md_parse_option): Handle new options.
6106 (md_show_usage): Add blurb for new options.
6107 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6108 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6109 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6110 (sh64_last_insn_frag): New.
6111 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6112 to get frag for insn opcode for generating fixups; do not assume it
6114 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6116 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6118 (TC_FRAG_TYPE): Define as fragS *.
6119 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6120 (sh64_last_insn_frag): Declare.
6121 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6122 not == NULL before dereferencing.
6123 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6124 Get rid of BFD section flag and EF_SH64_ABI64.
6125 * config/tc-sh64.c (shmedia_frob_section_type): Use
6126 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6127 communicate the section as containing SHmedia code. Describe why.
6128 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6129 EF_SH64 regardless of ABI.
6130 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6131 in error message. Handle resolved expressions for
6132 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6133 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6134 (shmedia_check_limits): Handle BFD_RELOC_64.
6135 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6136 a STO_SH5_ISA32 symbol, only the BFD value.
6137 2000-12-11 Ben Elliston <bje@redhat.com>
6138 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6139 dwarf2_generate_asm_lineno.
6140 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6141 Handle PC-relative MOVI expansions with assembler relaxation.
6142 Generate PC-relative relocs from 16-bit PC-relative expressions.
6143 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6144 (shmedia_md_pcrel_from_section): ...here.
6145 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6146 turned completely resolved. Adjust relocation type for 16-bit
6147 immediate operands that has turned PC-relative. Adjust back for
6148 MD_PCREL_FROM_SECTION being applied twice.
6149 (shmedia_md_convert_frag): Always emit reloc for expression with
6150 global or weak symbol. Handle relaxation result for PC-relative
6152 (shmedia_md_estimate_size_before_relax): An expression with a weak
6153 or global symbol can not be relaxed. Break out tests for
6154 relaxable symbol into variable sym_relaxable.
6155 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6156 UNDEF_MOVI)>: Break out any PC-relative expression and change
6158 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6160 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6161 MOVI expansion. If X_op_symbol of the immediate expression is
6162 set, make an expression symbol for the argument to frag_var.
6163 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6165 (END): Adjust for new relaxations.
6166 (md_relax_table): Add entries for new relaxations.
6167 2000-12-07 Ben Elliston <bje@redhat.com>
6168 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6169 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6170 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6171 SHORI operand offsets in PT/PTA/PTB expansions.
6172 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6173 Implement DataLabel semantics.
6174 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6175 shmedia_frob_file_before_adjust.
6176 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6177 (DATALABEL_SUFFIX): Define.
6178 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6179 symbol list to update "datalabel" symbols to their main symbol
6181 (shmedia_frob_file_before_adjust): New.
6182 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6183 undefined and set STT_DATALABEL.
6184 (sh64_frob_label): Initialize TC symbol field.
6185 (sh64_consume_datalabel): Actually implement semantics. New
6186 parameter operandf, call it instead of expression.
6187 (sh64_exclude_symbol): New.
6188 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6189 to sh64_consume_datalabel.
6190 (tc_symbol_new_hook): Define to tc_frob_symbol.
6191 (TC_SYMFIELD_TYPE): Define to symbolS *.
6192 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6193 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6194 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6196 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6197 generating dwarf2 debug information.
6198 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6199 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6200 elf64-sh64 for the 64-bit ABI.
6201 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6203 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6204 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6206 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6207 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6208 (enum sh64_abi_values): New type.
6209 (enum sh64_isa_values): New type.
6210 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6211 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6212 (sh64_abi): Replace shmedia_64.
6213 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6214 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6215 (s_sh64_mode): Check validity for this target.
6216 (sh64_target_format): Initialize defaults for ISA and ABI.
6217 Fallback to old object format if no SH64 ISA or ABI has been
6219 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6220 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6221 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6222 * config/tc-sh64.h: Fix typo in comment.
6223 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6224 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6225 <PT fixups for absolute values>: Size will be longest, not
6227 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6228 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6229 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6230 and l1 to hold lowercase of two first characters. Change all
6231 remaining TO_LOWER to tolower.
6232 * config/tc-sh64.c (TO_LOWER): Delete.
6233 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6234 (md_parse_name): Define.
6235 (sh64_consume_datalabel): Declare.
6236 (DOLLAR_DOT): Define.
6237 * config/tc-sh64.c (shmedia_parse_exp): New.
6238 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6239 (shmedia_parse_reg): Remove const from src
6241 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6242 (shmedia_md_assemble): Ditto for op_end variable.
6243 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6244 Use shmedia_parse_exp, not parse_exp.
6245 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6246 parameter. All callers changed.
6247 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6249 (shmedia_parse_reg): Put first two character in local variables.
6250 Use tolower, not TO_LOWER. If no register is found and argtype
6251 indicates a control register, scan shmedia_creg_table
6253 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6254 * Makefile.am (CPU_TYPES): Add sh64.
6255 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6256 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6257 Regenerate dependencies.
6258 * Makefile.in: Regenerate.
6259 * configure.in: Add support for sh64-*-elf*.
6260 * configure: Regenerate.
6261 * config/tc-sh64.h: New.
6262 * config/tc-sh64.c: New.
6263 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6264 .mode, .isa and .uaquad.
6265 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6266 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6267 [HAVE_SH64] (END): Define as 10.
6268 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6269 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6271 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6272 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6273 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6274 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6276 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6277 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6278 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6279 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6280 SHmedia instructions. Handle state-change after switching to
6282 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6283 (md_parse_option) [HAVE_SH64]: Parse new options.
6284 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6285 (md_convert_frag) [HAVE_SH64] <default>: Call
6286 shmedia_md_convert_frag instead of abort.
6287 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6288 BFD_RELOC_SH_SHMEDIA_CODE.
6289 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6290 SHcompact or SHmedia code.
6291 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6292 shmedia_md_apply_fix instead of abort.
6293 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6294 result from calling shmedia_md_estimate_size_before_relax instead
6296 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6298 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6299 shmedia_init_reloc and do nothing more if it returns non-zero.
6300 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6301 * po/POTFILES.in: Regenerate.
6302 * po/gas.pot: Regenerate.
6304 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6306 * config/tc-sh.c (parse_at): Install the correct version of
6309 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6310 assume fixP->fx_subsy is non-NULL.
6312 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6314 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6315 A_DISP_PC_ABS, and adjust it by -4.
6316 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6318 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6319 the operand type is not A_DISP_PC_ABS.
6321 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6323 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6324 common and weak symbols. Handle common and weak symbols as
6325 undefined symbols with regards to GREG handling and merging.
6326 (mmix_frob_file): Ditto.
6328 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6330 * configure.in (hppa-*-netbsd*): New target.
6331 * configure: Regenerate.
6332 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6334 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6336 * config/tc-v850.c: Add missing prototypes amd use old-style
6337 function definitions.
6338 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6339 (sdata_section tdata_section, zdata_section, sbss_section,
6340 tbss_section, zbss_section, rosdata_section, rozdata_section,
6341 scommon_section, tcommon_section, zcommon_section,
6342 call_table_data_section, call_table_text_section): Delete.
6343 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6344 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6345 v850_call_table_data, v850_call_table_text): Delete.
6346 (struct v850_seg_entry): New.
6347 (v850_seg_table): New.
6348 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6349 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6350 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6351 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6354 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6355 recording of alignment.
6356 (md_pseudo_table): Use v850_seg.
6357 (md_begin): Don't init .call_table_data and .call_table_text here.
6358 Set v850_seg_table bss entry.
6360 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6362 Support on-demand global register allocation by passing on
6363 base-plus-offset relocs to the linker.
6364 * config/tc-mmix.c: Tweak and fix typos in comments.
6365 (allocate_undefined_gregs_in_linker): New variable.
6366 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6367 (md_longopts): Add --linker-allocated-gregs.
6368 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6369 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6370 (md_show_usage): Update text for -x. Add text for
6371 --linker-allocated-gregs.
6372 (tc_gen_reloc): Derive default value for addend from val and
6373 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6374 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6375 GREG if allocate_undefined_gregs_in_linker.
6376 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6377 --linker-allocated-gregs.
6378 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6379 --linker-allocated-gregs. Mention that it's implied by -x.
6380 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6381 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6383 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6385 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6387 * Makefile.am: Run "make dep-am"
6388 * Makefile.in: Regenerate.
6390 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6392 * config/tc-or32.c: New file.
6393 * config/tc-or32.h: New file.
6394 * configure.in: Add support for or32 targets.
6395 * configure: Regenerate.
6396 * config/obj-coff.c: Add support for or32 targets.
6397 * config/obj-coff.h: Add support for or32 targets.
6398 * Makefile.am: Add support for or32 targets.
6399 * Makefile.in: Regenerate.
6400 * NEWS: Mention support for OpenRISC.
6401 * doc/Makefile.in: Regenerate.
6402 * po/POTFILES.in: Regenerate.
6403 * po/gas.pot: Regenerate.
6405 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6407 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6410 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6412 * config/tc-mips.c (tc_gen_reloc): Arrange for
6413 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6414 their LO16 parts, even for ELF.
6416 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6418 * config/tc-i386.c: Protect definitions of true and false
6421 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6423 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6424 made because of .weak, if they are neither defined nor used in any
6427 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6429 * configure: Regenerated.
6431 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6433 * doc/Makefile.am (install): Depend on install-info.
6434 * doc/Makefile.in: Regenerate.
6436 2002-01-26 Nick Clifton <nick@redhat.com>
6438 * po/fr.po: Updated version
6440 2002-01-24 Kazu Hirata <kazu@hxi.com>
6442 * config/tc-h8300.c (check_operand): Don't print a warning
6443 when a valid 24-bit address is given to a 16-bit address
6446 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6448 * config/tc-sh.c (sh_elf_suffix): Removed.
6449 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6450 sh_end_of_match, sh_parse_name): New functions.
6451 (sh_elf_cons): Simplify.
6452 (parse_exp): Reject misplaced PIC operands.
6453 (md_undefined_symbol): Simplify.
6454 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6455 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6456 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6457 Complain if subsy remains at the end.
6458 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6459 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6461 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6463 * config/tc-mn10300.c (xr_registers): Move `pc'...
6464 (other_registers): ... here.
6466 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6468 * Makefile.am: Run "make dep-am".
6469 * Makefile.in: Regenerate.
6470 * gas/po/POTFILES.in: Regenerate.
6472 2002-01-21 DJ Delorie <dj@redhat.com>
6474 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6475 stabstr_name allocation permanent, as it will be referenced from
6478 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6480 * configure.in (ia64-*-netbsd*): New target.
6481 * configure: Regenerate.
6483 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6485 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6487 <Detailed description, ARM options>: Ditto.
6488 * doc/c-arm.texi (ARM Options): Ditto.
6490 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6492 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6493 do_mia, do_mar and do_mra respectively.
6494 (do_mav_*): Renamed from do_c_*.
6495 (mav_reg_required_here, mav_parse_offset): Renamed from
6496 cirrus_reg_required_here and cirrus_parse_offset respectively.
6497 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6499 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6500 Keith Walker <keith.walker@arm.com>
6502 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6503 (insns): Add pattern for bxj instruction.
6504 (do_bxj): New function.
6505 (arm_cpus): Add arm926ej.
6506 (arm_archs): Add armv5tej.
6508 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6510 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6512 2002-01-19 Keith Walker <keith.walker@arm.com>
6514 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6516 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6518 * NEWS: Mention new ARM command-line options and VFP support.
6520 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6522 (ARM_CEXT_MAVERICK): Similarly.
6523 (ARM_ANY): Now means any core instruction.
6524 (CPU_DEFAULT): Default to ARM_ANY.
6525 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6526 (pic_code): Declare for all object types. Make type int.
6527 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6528 (march_fpu_opt, mfpu_opt): Declare.
6529 (md_longopts): Tidy up conditional definitions.
6530 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6531 (arm_long_opts): New tables.
6532 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6533 (arm_parse_extension): New function.
6534 (md_parse_option): Rewrite using new table-driven system.
6535 (md_show_usage): Use new table-driven system.
6536 (md_begin): Calculate cpu_variant from command line option data.
6537 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6538 command-line options.
6539 * doc/c-arm.texi: Likewise.
6541 2002-01-18 Andreas Jaeger <aj@suse.de>
6543 * as.c (parse_args): Update year.
6545 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6547 * config/tc-tic54x.c (encode_address): Add a more informative
6548 warning about incorrect syntax.
6550 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6552 * po/gas.pot: Regenerate.
6554 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6556 * macro.c (get_any_string): Add no-c-format comment to prevent
6557 confusion when translating string.
6558 * gasp.c (get_any_string): Add no-c-format comment to prevent
6559 confusion when translating string.
6561 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6562 Johannes Stezenbach <js@convergence.de>
6563 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6564 matched before the shorter ones.
6565 (my_getSmallParser): Fix handling of nested parentheses in
6566 percent_op's. Code cleanup.
6567 (my_getPercentOp): New function, code from my_getSmallParser.
6568 (my_getSmallExpression): Fix handling of closing parentheses.
6569 Code cleanup. Better comments.
6571 2002-01-16 Nick Clifton <nickc@redhat.com>
6573 po/tr.po: New file: Turkish translation.
6574 configure.in (LINGUAS): Add "tr".
6575 configure: Regenerate.
6577 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6579 Support for VFP instructions
6580 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6581 (cp_address_required_here): New argument wb_ok. When false, do not
6582 accept write-back forms of addressing. Change all callers.
6583 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6584 (FPU_VFP_EXT_V2): Define.
6585 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6586 Define in terms of above.
6587 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6588 (vfp_reg): New struct.
6589 (vfp_regs): New array of registers.
6590 (insns): Add VFP instructions.
6591 (sn_table): New array of VFP single-precision register names.
6592 (dn_table): New array of VFP double-precision register names.
6593 (all_reg_maps): Add the new register tables.
6594 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6595 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6596 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6597 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6598 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6599 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6600 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6601 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6602 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6603 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6604 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6605 (do_vfp_sp_dp_cvt): New functions.
6606 (md_begin): Set soft-float flag for appropriate VFP work.
6607 (md_atof): Handle VFP-format doubles.
6608 (md_parse_option): Handle VFP command-line options.
6609 (md_show_usage): Display VFP command-line options.
6611 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6613 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6614 various command line options.
6616 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6618 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6620 (xstormy16_md_apply_fix3): Do not return a value.
6622 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6624 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6625 the -EL/-EB option that matches the target's endianness.
6626 (md_parse_option): Likewise.
6628 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6630 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6631 is not dependent on ARM_BI_ENDIAN.
6633 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6635 * tc-arm.c (all error messages): Normalize capitalization of messages.
6637 * tc-arm.h (md_operand): Delete define.
6638 * tc-arm.c (in_my_get_expression): New static variable.
6639 (my_get_expression): Set and clear it.
6640 (md_operand): New function. If called from my_get_expression
6641 put the error in inst.error.
6642 (output_inst): Now takes argument of instruction being assembled.
6643 Print it out with any error message.
6644 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6646 (end_of_line): Don't update inst.error if it is already set.
6648 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6650 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6651 op that can be translated into a mvn instruction.
6653 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6655 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6656 setting default md.flags.
6657 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6658 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6659 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6660 for 32 bit unwind info blocks.
6661 (generate_unwind_image): Add support for different types
6662 of unwind images (32 bits and/or big-endian).
6663 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6664 (ia64_target_format): Add support for hpux target formats.
6665 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6666 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6667 SHT_FINI_ARRAY elf section types.
6669 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6671 * tc-arm.c (struct reg_entry): Move before prototypes.
6672 (int_register, cp_register, fp_register): Delete.
6673 (reg_table): Delete. Replaced with ...
6674 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6675 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6676 (mav_dspsc_table): ... one table per register set.
6677 (arm_reg_hsh): Delete.
6678 (struct reg_map): New structure.
6679 (all_reg_maps): New array.
6680 (enum arm_reg_type): New enums.
6681 (build_reg_hsh): New function.
6682 (insert_reg_alias): Use hash table passed by caller. Adjust all
6684 (create_register_alias): New function, split out from ...
6685 (md_assemble): ... here.
6686 (md_begin): Build new register hash tables.
6687 (arm_reg_parse): New argument for the hash table to search. Adjust all
6689 (arm_reg_parse_any): New function.
6690 (co_proc_number): Look up the processor number in the processor hash
6692 (cirrus_regtype): Delete.
6693 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6694 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6695 (ARM_EXT_MAVERICKsc_register): Delete.
6696 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6697 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6699 (do_c_triple_4, do_c_triple_5): Delete.
6700 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6701 (do_c_quad_6): Delete.
6702 (do_c_quad_6[ab]): New functions.
6703 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6704 arguments to use new register parsing methods.
6705 (cirrus_reg_required_here): Likewise.
6706 (insns): Reclassify cirrus maverick worker functions.
6707 (cirrus_valid_reg): Delete.
6709 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6711 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6712 (sh*-*-netbsdelf*): New target.
6713 * configure: Regenerate.
6714 * tc-sh.h: Update copyright years.
6715 (TARGET_FORMAT): Add version for TE_NetBSD.
6717 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6719 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6722 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6724 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6725 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6727 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6729 * tc-mips.c (mips_cprestore_valid): New flag.
6730 (mips_frame_reg_valid): New flag.
6731 (macro) [M_JAL_2]: Check both flags.
6732 [M_JAL_A]: Likewise.
6733 (s_cprestore): Set mips_cprestore_valid.
6734 (tc_get_register): If setting mips_frame_reg, set
6735 mips_frame_reg_valid and clear mips_cprestore_valid.
6736 (s_mips_ent): Clear both flags.
6737 (s_mips_end): Clear both flags.
6739 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6741 * write.c (write_object_file): Make use of bfd_section_list_remove.
6742 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6743 * config/tc-mmix.c (mmix_frob_file): Likewise.
6745 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6747 * configure.in (i386-*-netbsdelf*): Collapse target into...
6748 (i386-*-netbsd*): ...this. Add support for x86-64.
6749 * configure: Regenerated.
6751 2002-01-03 matthew green <mrg@redhat.com>
6753 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6755 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6757 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6760 For older changes see ChangeLog-0001
6766 version-control: never